Edit or Modify the AAB file

thanks a lot they show me file saved it works

C:\Users\Mshiy\APK_TO_AAB>python run.py -i ā€œC:\Users\Mshiy\APK_TO_AAB\Scan.apkā€ -o ā€œC:\Users\Mshiy\APK_TO_AAB\o\scan.aabā€
ā€”Environment & parameter verification
[Current system]:Windows
[Current system JAVA version]*****:
[Enter apk]:C:\Users\Mshiy\APK_TO_AAB\ā€œC:\Users\Mshiy\APK_TO_AAB\Scan.apkā€
ā€”time consuming:0.07767438888549805 Environment & parameter verification status:-1 msg:The entered apk does not exist:C:\Users\Mshiy\APK_TO_AAB\ā€œC:\Users\Mshiy\APK_TO_AAB\Scan.apkā€
task Environment & parameter verification Execution abnormal status:-1 msg:The entered apk does not exist:C:\Users\Mshiy\APK_TO_AAB\ā€œC:\Users\Mshiy\APK_TO_AAB\Scan.apkā€

C:\Users\Mshiy\APK_TO_AAB>python run.py -i D:\apk\Scan.apk -o D:\apk\o\scan.aab
ā€”Environment & parameter verification
[Current system]:Windows
[Current system JAVA version]*****:
[Enter apk]:D:\apk\Scan.apk
[Output aab]:D:\apk\o\scan.aab
[sign]:C:\Users\Mshiy\APK_TO_AAB\libs\android.keystore,storepass:android,alias:androidkey,keypass:android
######################################################
Window does not check, to avoid libraries without openssl
######################################################
[apktool]:C:\Users\Mshiy\APK_TO_AAB\libs\apktool-2.5.2-fixed.jar
[apktool version number]:------
[aapt2]:C:\Users\Mshiy\APK_TO_AAB\libs\aapt2\Windows\aapt2
[aapt2 version number]:------
[android]:C:\Users\Mshiy\APK_TO_AAB\libs\android_sdk.jar
[bundletool]:C:\Users\Mshiy\APK_TO_AAB\libs\bundletool-all-1.8_fix.jar
[bundletool version number]:------
ā€”time consuming:0.5226774215698242 Environment & parameter verification status:0 msg:success
ā€”Unzip input_apk
ā€”time consuming:5.28120493888855 Unzip input_apk status:0 msg:I: Using Apktool 2.5.1-digrty on Scan.apk
I: Loading resource tableā€¦
I: Decoding AndroidManifest.xml with resourcesā€¦
I: Loading resource table from file: C:\Users\Mshiy\AppData\Local\apktool\framework\1.apk
I: Regular manifest packageā€¦
I: Decoding file-resourcesā€¦
I: Decoding values / XMLsā€¦
I: Copying raw classes.dex fileā€¦
I: Copying raw classes8.dex fileā€¦
I: Copying raw classes7.dex fileā€¦
I: Copying raw classes6.dex fileā€¦
I: Copying raw classes5.dex fileā€¦
I: Copying raw classes4.dex fileā€¦
I: Copying raw classes3.dex fileā€¦
I: Copying raw classes2.dex fileā€¦
I: Copying assets and libsā€¦
I: Copying unknown filesā€¦
I: Copying original filesā€¦

ā€”Parse apk information
ā€”time consuming:0.03191804885864258 Parse apk information status:0 msg:success
ā€”Build public.txt
ā€”time consuming:0.08328604698181152 Build public.txt status:0 msg:success
ā€”[base]-Build the module compression package
ā€”[base]-Compile resources
ā€”time consuming:1.1501872539520264 [base]-Compile resources status:0 msg:
ā€”[base]-Associated resources
ā€”time consuming:0.5146627426147461 [base]-Associated resources status:0 msg:
ā€”[base]-Unzip the resources apk
ā€”time consuming:0.27905941009521484 [base]-Unzip the resources apk status:0 msg:success
ā€”[base]-Data_AndroidManifest
ā€”time consuming:0.011754751205444336 [base]-Data_AndroidManifest status:0 msg:success
ā€”[base]-Copy assets
ā€”time consuming:0.19968748092651367 [base]-Copy assets status:0 msg:success
ā€”[base]-Process the original apk signature information
ā€”time consuming:0.0 [base]-Process the original apk signature information status:0 msg:success
ā€”[base]-Copy META-INF
ā€”time consuming:0.02496504783630371 [base]-Copy META-INF status:0 msg:success
ā€”[base]-Copy dex
ā€”time consuming:0.20168352127075195 [base]-Copy dex status:0 msg:success
ā€”[base]-Compressed zip
ā€”time consuming:5.451413869857788 [base]-Compressed zip status:0 msg:success
ā€”time consuming:7.853293180465698 [base]-Build the module compression package status:0 msg:success
ā€”Construct config json
ā€”time consuming:0.0 Construct config json status:0 msg:success
ā€”Construct aab
ā€”time consuming:2.722990036010742 Construct aab status:0 msg:
ā€”sign
ā€”time consuming:0.008976221084594727 sign status:-1 msg:ā€˜jarsignerā€™ is not recognized as an internal or external command,
operable program or batch file.

task sign Execution abnormal status:-1 msg:ā€˜jarsignerā€™ is not recognized as an internal or external command,
operable program or batch file.

Everything is fine :smile_cat: but java 8 is not installed on your pc you need to download after downloading it just add to your path in environment variables

3 Likes

https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
is this correct file

1 Like

That is java 16 wait let me give you correct link

1 Like

![Screenshot_20210902-192814_APK Editor Pro|230x500]
(upload://5rxja5orzJAXG6kcxWJiBU9QlWn.jpeg)

when i click on build they show this

https://www.java.com/en/download/java8_update.jsp

Download it from here ok

Screenshot is not visible to me

I guess you modify incorrectly just change the value from 29 to 30 only non thing else

i only change the 29 value i donā€™
t change anything else

Delete that apk editor and download this one
APK Editor Pro_1.10.0.apk (8.2 MB)

1 Like

what about this error?

Microsoft Windows [Version 10.0.22000.160]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Mshiy>python --version
Python 3.9.7

C:\Users\Mshiy>java -version
java version ā€œ1.8.0_301ā€
Javaā„¢ SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpotā„¢ 64-Bit Server VM (build 25.301-b09, mixed mode)

C:\Users\Mshiy>cd APK_TO_AAB

C:\Users\Mshiy\APK_TO_AAB>pip install -r requirements.txt
Requirement already satisfied: PyYAML==5.4.1 in c:\users\mshiy\appdata\local\programs\python\python39\lib\site-packages (from -r requirements.txt (line 1)) (5.4.1)

C:\Users\Mshiy\APK_TO_AAB>
C:\Users\Mshiy\APK_TO_AAB>python run.py -i C:\Users\Mshiy\APK_TO_AAB\Scan.apk -o C:\Users\Mshiy\APK_TO_AAB\o\scan.aab
ā€”Environment & parameter verification
[Current system]:Windows
[Current system JAVA version]*****:
[Enter apk]:C:\Users\Mshiy\APK_TO_AAB\Scan.apk
[Output aab]:C:\Users\Mshiy\APK_TO_AAB\o\scan.aab
[sign]:C:\Users\Mshiy\APK_TO_AAB\libs\android.keystore,storepass:android,alias:androidkey,keypass:android
######################################################
Window does not check, to avoid libraries without openssl
######################################################
[apktool]:C:\Users\Mshiy\APK_TO_AAB\libs\apktool-2.5.2-fixed.jar
[apktool version number]:------
[aapt2]:C:\Users\Mshiy\APK_TO_AAB\libs\aapt2\Windows\aapt2
[aapt2 version number]:------
[android]:C:\Users\Mshiy\APK_TO_AAB\libs\android_sdk.jar
[bundletool]:C:\Users\Mshiy\APK_TO_AAB\libs\bundletool-all-1.8_fix.jar
[bundletool version number]:------
ā€”time consuming:0.9814531803131104 Environment & parameter verification status:0 msg:success
ā€”Unzip input_apk
ā€”time consuming:4.70627498626709 Unzip input_apk status:0 msg:I: Using Apktool 2.5.1-dijrty on Scan.apk
I: Loading resource tableā€¦
I: Decoding AndroidManifest.xml with resourcesā€¦
I: Loading resource table from file: C:\Users\Mshiy\AppData\Local\apktool\framework\1.apk
I: Regular manifest packageā€¦
I: Decoding file-resourcesā€¦
I: Decoding values / XMLsā€¦
I: Copying raw classes.dex fileā€¦
I: Copying raw classes8.dex fileā€¦
I: Copying raw classes7.dex fileā€¦
I: Copying raw classes6.dex fileā€¦
I: Copying raw classes5.dex fileā€¦
I: Copying raw classes4.dex fileā€¦
I: Copying raw classes3.dex fileā€¦
I: Copying raw classes2.dex fileā€¦
I: Copying assets and libsā€¦
I: Copying unknown filesā€¦
I: Copying original filesā€¦

ā€”Parse apk information
ā€”time consuming:0.018951416015625 Parse apk information status:0 msg:success
ā€”Build public.txt
ā€”time consuming:0.019944429397583008 Build public.txt status:0 msg:success
ā€”[base]-Build the module compression package
ā€”[base]-Compile resources
ā€”time consuming:1.0166382789611816 [base]-Compile resources status:0 msg:
ā€”[base]-Associated resources
ā€”time consuming:0.505011796951294 [base]-Associated resources status:0 msg:
ā€”[base]-Unzip the resources apk
ā€”time consuming:0.2963283061981201 [base]-Unzip the resources apk status:0 msg:success
ā€”[base]-Data_AndroidManifest
ā€”time consuming:0.010008573532104492 [base]-Data_AndroidManifest status:0 msg:success
ā€”[base]-Copy assets
ā€”time consuming:0.17925214767456055 [base]-Copy assets status:0 msg:success
ā€”[base]-Process the original apk signature information
ā€”time consuming:0.0 [base]-Process the original apk signature information status:0 msg:success
ā€”[base]-Copy META-INF
ā€”time consuming:0.019948482513427734 [base]-Copy META-INF status:0 msg:success
ā€”[base]-Copy dex
ā€”time consuming:0.16987109184265137 [base]-Copy dex status:0 msg:success
ā€”[base]-Compressed zip
ā€”time consuming:3.5156424045562744 [base]-Compressed zip status:0 msg:success
ā€”time consuming:5.738427639007568 [base]-Build the module compression package status:0 msg:success
ā€”Construct config json
ā€”time consuming:0.0009958744049072266 Construct config json status:0 msg:success
ā€”Construct aab
ā€”time consuming:2.5234909057617188 Construct aab status:0 msg:
ā€”sign
ā€”time consuming:0.01230168342590332 sign status:-1 msg:ā€˜jarsignerā€™ is not recognized as an internal or external command,
operable program or batch file.

task sign Execution abnormal status:-1 msg:ā€˜jarsignerā€™ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Mshiy\APK_TO_AAB>

Final step is to add java in your environment variables

Follow this short guide Edit or Modify the AAB file - change API 29 to 30 android 11 - #79 by SimpleDimple

i have installed java and add java in your environment variables but the same issue

Microsoft Windows [Version 10.0.22000.160]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Mshiy>python --version
Python 3.9.7

C:\Users\Mshiy>java -version
java version ā€œ1.8.0_301ā€
Javaā„¢ SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpotā„¢ 64-Bit Server VM (build 25.301-b09, mixed mode)

There was something wrong with aapt exe I am looking into that give me some time

Seems like something is wrong with res/layout .XML files in your apk

For now put your apk and out put folder in desktop And disable your antivirus and real time protection

Just try it again and post full out here

1 Like

UnicodeDecodeError: ā€˜gbkā€™ codec canā€™t decode byte 0xad in position 10: illegal multibyte sequence
list index out of range , please help me