Change Application Language ApkTool - Android Q&A, Help & Troubleshooting

Hi!
I am trying to extract the apk file with apktool and change the application language
but after I decompile the apk file, it fails to recompile
it gives the following error
If you could help with this situation, I would greatly appreciate it
Log For : UE.apk
Log Type : Recompiling
Log Recorded At : Pzt -28.05.2018- 19:53:42,51
Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak
------------------------------------------------------
W: A/ ( 9496): First type is not attr!
W:
W: This application has requested the Runtime to terminate it in an unusual way.
W: Please contact the application's support team for more information.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 3): [C:\Users\KAPTAN\AppData\Local\Temp\brut_util_Jar_2549820411354606683.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 27, --version-code, 918020, --version-name, 0.20.7.918-arm64-v8a, -F, C:\Users\KAPTAN\AppData\Local\Temp\APKTOOL8002425952792824732.tmp, -0, arsc, -0, arsc, -I, C:\Users\KAPTAN\Desktop\apktool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\res, -M, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
at brut.androlib.Androlib.buildResources(Androlib.java:412)
at brut.androlib.Androlib.build(Androlib.java:311)
at brut.androlib.Androlib.build(Androlib.java:264)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 3): [C:\Users\KAPTAN\AppData\Local\Temp\brut_util_Jar_2549820411354606683.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 27, --version-code, 918020, --version-name, 0.20.7.918-arm64-v8a, -F, C:\Users\KAPTAN\AppData\Local\Temp\APKTOOL8002425952792824732.tmp, -0, arsc, -0, arsc, -I, C:\Users\KAPTAN\Desktop\apktool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\res, -M, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:464)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 3): [C:\Users\KAPTAN\AppData\Local\Temp\brut_util_Jar_2549820411354606683.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 27, --version-code, 918020, --version-name, 0.20.7.918-arm64-v8a, -F, C:\Users\KAPTAN\AppData\Local\Temp\APKTOOL8002425952792824732.tmp, -0, arsc, -0, arsc, -I, C:\Users\KAPTAN\Desktop\apktool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\res, -M, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
Click to expand...
Click to collapse
------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------
W: Cant find 9patch chunk in file: "drawable-hdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-xxhdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-xhdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:58)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:516)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:267)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:132)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:108)
at brut.apktool.Main.cmdDecode(Main.java:166)
at brut.apktool.Main.main(Main.java:81)
Click to expand...
Click to collapse

is there no information on this issue?

Related

decompiling/compiling error[framework files missing]

hey,i am trying to decompile contacts.apk from my micromax a52.
i tried from apk manager and apk multi tools but it is giving error
Code:
can't find framework resources for package of id:2.you must install proper framework files.
now i installed framework files to my computer and also by using "pull dependencies from device".
but still couldn't decompile it properly.it is also giving error during recompiling if i ignore those error and mod it.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
plsss someone give a helping hand.
Have sdk installed and then try again.I could not help with apkmulti tools but in original apktool,you can install frameworks with
Code:
java -jar apktool.jar if framework-apk
Sent from my GT-N7000 using xda app-developers app
already installed framework!!
vijai2011 said:
Have sdk installed and then try again.I could not help with apkmulti tools but in original apktool,you can install frameworks with
Code:
java -jar apktool.jar if framework-apk
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
have already installed framework from my phone from which that app is taken.
amank22 said:
have already installed framework from my phone from which that app is taken.
Click to expand...
Click to collapse
If its a samsung phone,did yoh also install twframework-res.apk?And htc also has 1 more framework but I don't know what it is as I have never owned a htc or modded one.Also have sdk?
Sent from my GT-N7000 using xda app-developers app
amank22 said:
hey,i am trying to decompile contacts.apk from my micromax a52.
i tried from apk manager and apk multi tools but it is giving error
Code:
can't find framework resources for package of id:2.you must install proper framework files.
now i installed framework files to my computer and also by using "pull dependencies from device".
but still couldn't decompile it properly.it is also giving error during recompiling if i ignore those error and mod it.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
plsss someone give a helping hand.
Click to expand...
Click to collapse
Pull out all the *.apk files from /system/framework/
N install them.
The frst bein framework-res.apk n thn the others.
Only *.apk files. Not *.jar files.
I tink it will help u get over your prblms..
Don't be lazy.
Lift your hand n press the Thanxxx Button.=)
ok ok..will do it n tell it if it solves my problem..
help me i have same issue when i compliling
i'm installed java and framework-res.apk
Please enter the number of your choice: 1
Enter the name of the folder to assembly (ex: dis_Name.apk) : dis_commod.apk
FICHIER
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\documents\ANDROID\tool mod android\easy apk\
dis_commod.apk\res/drawable-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp
\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework
\1.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -
M, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\AndroidManifest
.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 18, -F, C:\
Users\Finish\AppData\Local\Temp\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:
\Users\Finish\apktool\framework\1.apk, -S, D:\documents\ANDROID\tool mod android
\easy apk\dis_commod.apk\res, -M, D:\documents\ANDROID\tool mod android\easy apk
\dis_commod.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp\A
PKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework\1
.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -M,
D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
java.io.FileNotFoundException: dis_commod.apk\dist\commod.apk (The system cannot
find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:320)
Press any key to continue . . .
Click to expand...
Click to collapse
change the path names
superuser.pm said:
help me i have same issue when i compliling
i'm installed java and framework-res.apk
Click to expand...
Click to collapse
I think your problem lies in this line:
Code:
invalid resource directory name: D:\documents\ANDROID\tool mod android\easy apk\
dis_commod.apk\res/drawable-xxhdpi
try to remove the blank charcters from the path...change folder names in the path.
I have this error when I try to compile:
Code:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Proprietario\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:176: error: Error retrieving parent for item: No resource found that matches the given name 'Base.ThemeOverlay'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:462: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:506: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:527: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:535: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values-v21\styles.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:554: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:564: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat.DropDownItem'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:603: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
What's the problem?
Thanks.

[SOLVED] [APKTOOL] De- and Recompiling apk in debug-mode fails

Hi,
I'm trying to recompile an apk in debug mode (so no changes besides the one-liner in the manifest). But every time I execute "apktool b -d out" I get this error:
Code:
I: Using Apktool 2.0.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Me\AppData\Local\Temp\brut_util_Jar_7477717139219658502.tmp, p, --out-mode, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 19, --version-code, 26, --version-name, @string/versionname, -F, C:\Users\Me\AppData\Local\Temp\APKTOOL7991561937292063981.tmp, -0, arsc, -I, C:\Users\Me\apktool\framework\1.apk, -S, D:\out\res, -M, D:\out\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Me\AppData\Local\Temp\brut_util_Jar_7477717139219658502.tmp, p, --out-mode, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 19, --version-code, 26, --version-name, @string/versionname, -F, C:\Users\Me\AppData\Local\Temp\APKTOOL7991561937292063981.tmp, -0, arsc, -I, C:\Users\Me\apktool\framework\1.apk, -S, D:\out\res, -M, D:\out\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Me\AppData\Local\Temp\brut_util_Jar_7477717139219658502.tmp, p, --out-mode, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 19, --version-code, 26, --version-name, @string/versionname, -F, C:\Users\Me\AppData\Local\Temp\APKTOOL7991561937292063981.tmp, -0, arsc, -I, C:\Users\Me\apktool\framework\1.apk, -S, D:\out\res, -M, D:\out\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
I tried this both on Windows and Ubuntu and I'm always getting this error. If I decode with -r (copy resources raw) everything recompiles just fine, but then I can't add the "android:debuggable"-value (for obvious reasons, I just wanted to test the recompiling). I googled this error and often there is a problem with "aapt" not beeing recognized, so I added the path to my PATH-variable, but I'm still getting the above output.
Anyone out there with a fix or am I doing something wrong?
Regards,
me113
I fixed it myself. There was a problem with the decompiling of the resources. Three images were exported as jpg instead of png. Re-saving them as png fixed everything. :victory:

Error recompiling apk..

I'm trying to recompile my apk using apktool v4.2.0 once i decompile it i try to recompile it without touching anything then This is the error appears
PHP:
Log For : co.apk
Log Type : Recompiling
Log Recorded At : 02 2017-08- 16:30:32,42
Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak
------------------------------------------------------
W: max res 24, skipping values-v25
W: C:\Users\zeekdp\Desktop\AdvancedApkTool\3-Out\co.apk\res\values\public.xml:1139: error: Public symbol style/Platform.V25.AppCompat declared here is not defined.
W: C:\Users\zeekdp\Desktop\AdvancedApkTool\3-Out\co.apk\res\values\public.xml:1140: error: Public symbol style/Platform.V25.AppCompat.Light declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ABDELM~1\AppData\Local\Temp\brut_util_Jar_2951543882709119069.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 25, --max-sdk-version, 24, --max-res-version, 24, --version-code, 1, --version-name, 1.0, -F, C:\Users\ABDELM~1\AppData\Local\Temp\APKTOOL3839981288265792103.tmp, -0, arsc, -0, arsc, -I, C:\Users\zeekdp\Desktop\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\zeekdp\Desktop\AdvancedApkTool\3-Out\co.apk\res, -M, C:\Users\zeekdp\Desktop\AdvancedApkTool\3-Out\co.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
at brut.androlib.Androlib.buildResources(Androlib.java:412)
at brut.androlib.Androlib.build(Androlib.java:311)
at brut.androlib.Androlib.build(Androlib.java:264)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ABDELM~1\AppData\Local\Temp\brut_util_Jar_2951543882709119069.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 25, --max-sdk-version, 24, --max-res-version, 24, --version-code, 1, --version-name, 1.0, -F, C:\Users\ABDELM~1\AppData\Local\Temp\APKTOOL3839981288265792103.tmp, -0, arsc, -0, arsc, -I, C:\Users\zeekdp\Desktop\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\zeekdp\Desktop\AdvancedApkTool\3-Out\co.apk\res, -M, C:\Users\zeekdp\Desktop\AdvancedApkTool\3-Out\co.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:464)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ABDELM~1\AppData\Local\Temp\brut_util_Jar_2951543882709119069.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 25, --max-sdk-version, 24, --max-res-version, 24, --version-code, 1, --version-name, 1.0, -F, C:\Users\ABDELM~1\AppData\Local\Temp\APKTOOL3839981288265792103.tmp, -0, arsc, -0, arsc, -I, C:\Users\zeekdp\Desktop\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\zeekdp\Desktop\AdvancedApkTool\3-Out\co.apk\res, -M, C:\Users\zeekdp\Desktop\AdvancedApkTool\3-Out\co.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
------------------------------------------------------
Zeepdep said:
I'm trying to recompile my apk using apktool v4.2.0 once i decompile it i try to recompile it without touching anything then This is the error appears...
Click to expand...
Click to collapse
According to the header of the log, your using the Advanced Apktool by @BDFreak...
You should be posting this issue on that specific thread for the Advanced Apktool.
Please Note that it was just updated recently with the latest Apktool v2.2.4 release (a week +/- ago).
[Tool]Advanced ApkTool v4.2.0[Windows][10/02/2016] by BDFreak
I wish you the best of luck!
______________
PLEASE NOTE: I welcome any member to help with further valuable information/clarification for any of my posts.
×MY DEVELOPMENTS×
[APP][TOOL][4.2+]The SELinux Toggler
[ZIP][TOOL][AIO]BusyBox Stericson Binary Installer v1.26.2 {BB/TB Auto-Symlink}
×IN DEVELOPMENT×
[APP][TOOL][4.2+][OFFICIAL]The SELinux Switch
Will Supersede "The SELinux Toggler"
×IDEAS FOR DEVELOPMENT×
[APP][UNOFFICIAL][4.2+]XDA Forum {Classic}
[APP][UNOFFICIAL][4.2+]XDA Reader {Classic}

Samsung internet beta compile error

hey
I decompiled samsung internet beta successfully after installing the framework with no error
but when I try to recompile it it gives me this error I am not very knowledgable at apktool so I seek help from you
thanks in advance
E:\Developing\Apktool Nougat>java -jar apk.jar b -f base
I: Using Apktool 2.2.4
I: Copying base classes.dex file...
I: Copying base classes2.dex file...
I: Building resources...
W: warning: string 'certtitle' has no default translation.
W: warning: string 'events_samsung_rewards_sign_up_start_button_text' has no default translation.
W: warning: string 'network_error_data_blocked_during_call_message' has no default translation.
W: warning: string 'network_error_data_roaming_disabled' has no default translation.
Exception in thread "main" W: E:\Developing\Apktool Nougat\base\AndroidManifest.xml:106: error: No resource identifier found for attribute 'networkSecurityConfig' in package 'android'
W:
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Mohamed\AppData\Local\Temp\brut_util_Jar_8103137279753261827.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 25, --version-code, 620031020, --version-name, 6.2.00.31, --no-version-vectors, -F, C:\Users\Mohamed\AppData\Local\Temp\APKTOOL8719688651265958884.tmp, -0, arsc, -0, pak, -0, txt, -0, dat, -0, assets/m1_client_key, -0, bin, -0, PNG, -0, lpak, -0, arsc, -I, C:\Users\Mohamed\AppData\Local\apktool\framework\1.apk, -S, E:\Developing\Apktool Nougat\base\res, -M, E:\Developing\Apktool Nougat\base\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:496)
at brut.androlib.Androlib.buildResources(Androlib.java:430)
at brut.androlib.Androlib.build(Androlib.java:329)
at brut.androlib.Androlib.build(Androlib.java:267)
at brut.apktool.Main.cmdBuild(Main.java:230)
at brut.apktool.Main.main(Main.java:83)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Mohamed\AppData\Local\Temp\brut_util_Jar_8103137279753261827.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 25, --version-code, 620031020, --version-name, 6.2.00.31, --no-version-vectors, -F, C:\Users\Mohamed\AppData\Local\Temp\APKTOOL8719688651265958884.tmp, -0, arsc, -0, pak, -0, txt, -0, dat, -0, assets/m1_client_key, -0, bin, -0, PNG, -0, lpak, -0, arsc, -I, C:\Users\Mohamed\AppData\Local\apktool\framework\1.apk, -S, E:\Developing\Apktool Nougat\base\res, -M, E:\Developing\Apktool Nougat\base\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:441)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:482)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Mohamed\AppData\Local\Temp\brut_util_Jar_8103137279753261827.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 25, --version-code, 620031020, --version-name, 6.2.00.31, --no-version-vectors, -F, C:\Users\Mohamed\AppData\Local\Temp\APKTOOL8719688651265958884.tmp, -0, arsc, -0, pak, -0, txt, -0, dat, -0, assets/m1_client_key, -0, bin, -0, PNG, -0, lpak, -0, arsc, -I, C:\Users\Mohamed\AppData\Local\apktool\framework\1.apk, -S, E:\Developing\Apktool Nougat\base\res, -M, E:\Developing\Apktool Nougat\base\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:435)
... 6 more
W: E:\Developing\Apktool Nougat\base\AndroidManifest.xml:240: error: No resource identifier found for attribute 'enableVrMode' in package 'android'
W:
anyone that could help please ?
Looks like it was compiled with a special Samsung framework. Did you add in the TW frameworks?

Easy APK Tool Recompile

After decompiling this apk then immediatly attempting to recompile without changing anything I get this error log:
13/12/2017 19:22:55
java -Xmx1024m -jar "C:\Program Files (x86)\APK Easy Tool\Apktool\apktool_2.3.0.jar" b -f -o "C:\Users\James\Documents\2-Recompiled APKs\stick-fight-shadow-warrior-v1.04-mod-lenov.ru.apk" "C:\Users\James\Documents\1-Decompiled APKs\stick-fight-shadow-warrior-v1.04-mod-lenov.ru"
Compiling APK file...
I: Using Apktool 2.3.0
I: Smaling smali folder into classes.dex...
I: Building resources...
W: C:\Users\James\Documents\1-Decompiled APKs\stick-fight-shadow-warrior-v1.04-mod-lenov.ru\AndroidManifest.xml:3: error: No resource identifier found for attribute 'qihoo' in package 'android'
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\James\AppData\Local\Temp\brut_util_Jar_3839531451092608287.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 25, --version-code, 9, --version-name, 1.04, --no-version-vectors, -F, C:\Users\James\AppData\Local\Temp\APKTOOL9194040682419918563.tmp, -0, arsc, -0, bank, -0, appkey, -0, assets/Master Bank.strings.bank, -0, arsc, -I, C:\Users\James\AppData\Local\apktool\framework\1.apk, -S, C:\Users\James\Documents\1-Decompiled APKs\stick-fight-shadow-warrior-v1.04-mod-lenov.ru\res, -M, C:\Users\James\Documents\1-Decompiled APKs\stick-fight-shadow-warrior-v1.04-mod-lenov.ru\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:485)
at brut.androlib.Androlib.buildResources(Androlib.java:419)
at brut.androlib.Androlib.build(Androlib.java:318)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:75)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\James\AppData\Local\Temp\brut_util_Jar_3839531451092608287.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 25, --version-code, 9, --version-name, 1.04, --no-version-vectors, -F, C:\Users\James\AppData\Local\Temp\APKTOOL9194040682419918563.tmp, -0, arsc, -0, bank, -0, appkey, -0, assets/Master Bank.strings.bank, -0, arsc, -I, C:\Users\James\AppData\Local\apktool\framework\1.apk, -S, C:\Users\James\Documents\1-Decompiled APKs\stick-fight-shadow-warrior-v1.04-mod-lenov.ru\res, -M, C:\Users\James\Documents\1-Decompiled APKs\stick-fight-shadow-warrior-v1.04-mod-lenov.ru\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:454)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:471)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\James\AppData\Local\Temp\brut_util_Jar_3839531451092608287.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 25, --version-code, 9, --version-name, 1.04, --no-version-vectors, -F, C:\Users\James\AppData\Local\Temp\APKTOOL9194040682419918563.tmp, -0, arsc, -0, bank, -0, appkey, -0, assets/Master Bank.strings.bank, -0, arsc, -I, C:\Users\James\AppData\Local\apktool\framework\1.apk, -S, C:\Users\James\Documents\1-Decompiled APKs\stick-fight-shadow-warrior-v1.04-mod-lenov.ru\res, -M, C:\Users\James\Documents\1-Decompiled APKs\stick-fight-shadow-warrior-v1.04-mod-lenov.ru\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:448)
... 6 more
------------------------------------------
Could anybody help me to understand this?

Categories

Resources