Edit or Modify the AAB file

I guess you missed this

pip install -r requirements.txt

Just paste it in cmd and try again

1 Like

i am getting this error message

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]*****:
close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr
Traceback (most recent call last):
File “run.py”, line 494, in
pad_reg=input_pad_reg)
File “run.py”, line 448, in run
status, _ = delete(temp_dir)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 101, in delete
return execute_cmd(cmd)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 23, in execute_cmd
close_fds=True)
File “C:\Program Files\Python36\lib\subprocess.py”, line 622, in init
“close_fds is not supported on Windows platforms”
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

Well you didn’t input the path of apk and be sure you put your apk on any folder in desktop expect windows installed drive

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”

i put apk
file path C:\Users\Mshiy\APK_TO_AAB\Scan.apk

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

C:\Users\Mshiy>cd APK_TO_AAB

C:\Users\Mshiy\APK_TO_AAB>pip install -r requirements.txt
Collecting PyYAML==5.4.1 (from -r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/30/d0/8699372d1c22202e80b160527f8412d98a5edfefeefac056df3997e84801/PyYAML-5.4.1-cp36-cp36m-win_amd64.whl (209kB)
100% |████████████████████████████████| 215kB 878kB/s
Installing collected packages: PyYAML
Successfully installed PyYAML-5.4.1
You are using pip version 9.0.1, however version 21.2.4 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.

C:\Users\Mshiy\APK_TO_AAB>python run.py -i C:\Users\Mshiy\APK_TO_AAB\Scan_me (1).apk -oC:\Users\Mshiy\APK_TO_AAB\o\scanme.aab
usage: run.py [-h] -i INPUT -o OUTPUT [–keystore KEYSTORE]
[–store_password STORE_PASSWORD] [–key_alias KEY_ALIAS]
[–key_password KEY_PASSWORD] [–apktool APKTOOL]
[–aapt2 AAPT2] [–android ANDROID] [–bundletool BUNDLETOOL]
[–pad_reg PAD_REG]
run.py: error: unrecognized arguments: (1).apk

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]*****:
close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr
Traceback (most recent call last):
File “run.py”, line 494, in
pad_reg=input_pad_reg)
File “run.py”, line 448, in run
status, _ = delete(temp_dir)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 101, in delete
return execute_cmd(cmd)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 23, in execute_cmd
close_fds=True)
File “C:\Program Files\Python36\lib\subprocess.py”, line 622, in init
“close_fds is not supported on Windows platforms”
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

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]*****:
close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr
Traceback (most recent call last):
File “run.py”, line 494, in
pad_reg=input_pad_reg)
File “run.py”, line 448, in run
status, _ = delete(temp_dir)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 101, in delete
return execute_cmd(cmd)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 23, in execute_cmd
close_fds=True)
File “C:\Program Files\Python36\lib\subprocess.py”, line 622, in init
“close_fds is not supported on Windows platforms”
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

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]*****:
close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr
Traceback (most recent call last):
File “run.py”, line 494, in
pad_reg=input_pad_reg)
File “run.py”, line 448, in run
status, _ = delete(temp_dir)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 101, in delete
return execute_cmd(cmd)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 23, in execute_cmd
close_fds=True)
File “C:\Program Files\Python36\lib\subprocess.py”, line 622, in init
“close_fds is not supported on Windows platforms”
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

C:\Users\Mshiy\APK_TO_AAB>APK_TO_AAB>python run.py -i C:\Users\Mshiy\OneDrive\Desktop\Scan.apk -o C:\Users\Mshiy\APK_TO_AAB\o\scan.aab
‘APK_TO_AAB’ is not recognized as an internal or external command,
operable program or batch file.

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]*****:
close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr
Traceback (most recent call last):
File “run.py”, line 494, in
pad_reg=input_pad_reg)
File “run.py”, line 448, in run
status, _ = delete(temp_dir)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 101, in delete
return execute_cmd(cmd)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 23, in execute_cmd
close_fds=True)
File “C:\Program Files\Python36\lib\subprocess.py”, line 622, in init
“close_fds is not supported on Windows platforms”
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

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]*****:
close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr
Traceback (most recent call last):
File “run.py”, line 494, in
pad_reg=input_pad_reg)
File “run.py”, line 448, in run
status, _ = delete(temp_dir)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 101, in delete
return execute_cmd(cmd)
File “C:\Users\Mshiy\APK_TO_AAB\utils.py”, line 23, in execute_cmd
close_fds=True)
File “C:\Program Files\Python36\lib\subprocess.py”, line 622, in init
“close_fds is not supported on Windows platforms”
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

C:\Users\Mshiy\APK_TO_AAB>

Its C drive windows installed drive that folder is not writeable with out admin permission

Create a folder on desktop and name it “aab” and place your apk in your created folder and if your apk name contains any symbol or number the remove it and create one more folder for output be sure what ever folder you create it does not contain any symbol in name

can you help me please if you want i send you my apk file

i changed the folder but same issue

I just google it and found that this issue is fixed on Python 3.7+ by default just download latest version of python

1 Like

You manifest is more 217 line you can use apk editor 1.10.0 or apk studio 1.5 or older version

Be sure you must be use that version only

1 Like

ok thanks i try it now

is this the apk editor or not ?

Yes download it

1 Like

what i have to click
full edit
simple edit
common edit
xml file edit beta

Full edit And decode all file

1 Like

after that what i have to do ?

Just go to Androidmanifest.xml and edit it like in told in my main post

1 Like

follow the steps given in the guide , i guess

2 Likes

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.