Edit or Modify the AAB file

@Omar @Bruno_Cassio do you guys needs manually way to do ?? every step you need to do manually ?

Can you please help me. I am stuck here.

Microsoft Windows [versão 10.0.22000.168]
(c) Microsoft Corporation. Todos os direitos reservados.

C:\Users\bruno\Desktop\APK_TO_AAB>python --version
Python 3.9.7

C:\Users\bruno\Desktop\APK_TO_AAB>java -version
java version “1.8.0_301”
Java™ SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpot™ Client VM (build 25.301-b09, mixed mode)

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

C:\Users\bruno\Desktop\APK_TO_AAB>python run.py -i C:\Users\bruno\Desktop\APK_TO_AAB\Alo_Perola.apk -o C:\Users\bruno\Desktop\APK_TO_AAB\o\Alo_Perola.aab
—Environment_&_parameter_verification
[Current_system]:Windows
[Current_system_JAVA_version]#####:
[Enter_apk]:C:\Users\bruno\Desktop\APK_TO_AAB\Alo_Perola.apk
[Output_aab]:C:\Users\bruno\Desktop\APK_TO_AAB\o\Alo_Perola.aab
[sign]:C:\Users\bruno\Desktop\APK_TO_AAB\libs\key.jks,storepass:123456789,alias:123456789,keypass:123456789
Exception in thread Thread-4:
Traceback (most recent call last):
File “C:\Users\bruno\AppData\Local\Programs\Python\Python39\lib\threading.py”, line 973, in _bootstrap_inner
self.run()
File “C:\Users\bruno\AppData\Local\Programs\Python\Python39\lib\threading.py”, line 910, in run
self._target(*self._args, **self._kwargs)
File “C:\Users\bruno\AppData\Local\Programs\Python\Python39\lib\subprocess.py”, line 1479, in readerthread
buffer.append(fh.read())
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x82 in position 14: illegal multibyte sequence
##################################################
Window_does_not_check_to_avoid_libraries_without_openssl
##################################################
[apktool]:C:\Users\bruno\Desktop\APK_TO_AAB\libs\apktool-2.5.2-fixed.jar
[apktool_version_number]:#####
[aapt2]:C:\Users\bruno\Desktop\APK_TO_AAB\libs\aapt2\Windows\aapt2
[aapt2_version_number]:#####
[android]:C:\Users\bruno\Desktop\APK_TO_AAB\libs\android_sdk.jar
[bundletool]:C:\Users\bruno\Desktop\APK_TO_AAB\libs\bundletool-all-1.8_fix.jar
[bundletool_version_number]:#####
----time_consuming :1.334536075592041 Environment
&_parameter_verification status:0 msg:success
—Unzip_input_apk
----time_consuming :4.875398397445679 Unzip_input_apk status:0 msg:I: Using Apktool 2.5.1-(d-i-r-t-y-) on Alo_Perola.apk
I: Loading resource table…
I: Decoding AndroidManifest.xml with resources…
I: Loading resource table from file: C:\Users\bruno\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 classes2.dex file…
I: Copying raw classes3.dex file…
I: Copying assets and libs…
I: Copying unknown files…
I: Copying original files…

—Parse_apk_information
----time_consuming :0.0029935836791992188 Parse_apk_information status:0 msg:success
—[base]-Build_the_module_compression_package
—[base]-Compile_resources
----time_consuming :4.233898401260376 [base]-Compile_resources status:0 msg:
—[base]-Associated_resources
----time_consuming :0.670053243637085 [base]-Associated_resources status:0 msg:
—[base]-Unzip_resources_apk
----time_consuming :0.26628875732421875 [base]-Unzip_resources_apk status:0 msg:success
—[base]-Mobile_AndroidManifest
----time_consuming :0.0009958744049072266 [base]-Mobile_AndroidManifest status:0 msg:success
—[base]-Copy_assets
----time_consuming :0.021939516067504883 [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.003987550735473633 [base]-Copy_META-INF status:0 msg:success
—[base]-Copy_dex
----time_consuming :0.009974002838134766 [base]-Copy_dex status:0 msg:success
—[base]-Compressed_zip
Exception in thread Thread-18:
Traceback (most recent call last):
File “C:\Users\bruno\AppData\Local\Programs\Python\Python39\lib\threading.py”, line 973, in _bootstrap_inner
self.run()
File “C:\Users\bruno\AppData\Local\Programs\Python\Python39\lib\threading.py”, line 910, in run
self._target(*self._args, **self._kwargs)
File “C:\Users\bruno\AppData\Local\Programs\Python\Python39\lib\subprocess.py”, line 1479, in _readerthread
buffer.append(fh.read())
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x82 in position 10: illegal multibyte sequence
----time_consuming :0.13164949417114258 [base]-Compressed_zip status:0 msg:success
----time_consuming :5.3447418212890625 [base]-Build_the_module_compression_package status:0 msg:success
—Build_config_json
----time_consuming :0.0009982585906982422 Build_config_json status:0 msg:success
—Build_aab
----time_consuming :0.6104016304016113 Build_aab status:-1 msg:[BT:1.6.1] Error: File ‘temp_20210831081104\modules\base.zip’ was not found.
java.lang.IllegalArgumentException: File ‘temp_20210831081104\modules\base.zip’ was not found.
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:217)
at com.android.tools.build.bundletool.model.utils.files.FilePreconditions.checkFileExistsAndReadable(FilePreconditions.java:35)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.lambda$validateInput$2(BuildBundleCommand.java:280)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.validateInput(BuildBundleCommand.java:277)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.execute(BuildBundleCommand.java:201)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:73)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:49)

task Build_aab Execution_exception_status:-1 msg:[BT:1.6.1] Error: File ‘temp_20210831081104\modules\base.zip’ was not found.
java.lang.IllegalArgumentException: File ‘temp_20210831081104\modules\base.zip’ was not found.
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:217)
at com.android.tools.build.bundletool.model.utils.files.FilePreconditions.checkFileExistsAndReadable(FilePreconditions.java:35)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.lambda$validateInput$2(BuildBundleCommand.java:280)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.validateInput(BuildBundleCommand.java:277)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.execute(BuildBundleCommand.java:201)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:73)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:49)

C:\Users\bruno\Desktop\APK_TO_AAB>

wait for 15 min

1 Like

Hi … please can u help me :

java installed
jdk path installed

but this message still appear

@OSMAN_GAZI read this

I have applied all the steps …

but there is still an error which is:

task sign Execution_exception_status:-1 msg:‘jarsigner’


is not recognized as an internal or external command, operable program or batch file .

I also reinstalled java and checked its path

What is the solution… ?

Thank you very much

Have you installed python? And added the path in the environment variable

Java 8 is needed

2 Likes

Yes … I did

As Dora said you need to install jdk 8

i have posted the manual way and post is updated now who get error just try with hard method

Type below command in cmd and show your out put

java -version

look this video :

bandicam 2021-08-31 05-46-38-006.mp4 (3.78 MB)

… thank you

Thanks a lot simple dimple it was a great job! I was able to generate my aab file with ease but there is only one issue with the signing!

1 Like

yes you need to sign your aab file with your key

you can follow these guide1 and guide 2

@Shreyaa where are both the tutorials? In this thread I saw you talked about 2 methods of doing soand the post ended. I am unable to see your method. Below post there are some links by other people. How would I know your tutorial then?

If read the main post you will get anyway post link Edit or Modify the AAB file


This is the result of step 7 of the long method. Please help me.