[TRICK] Compile with apktool on ubuntu linux 64bit without getting errors - Android Software/Hacking General [Developers Only]

This "trick" is for people on ubuntu 64 bit that are trying to use apktool, and getting some errors.
if you can correctly decompile but when trying to compile you get this error
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2420487276909255487.tmp, -x, -I, /home/chris/apktool/framework/1.apk, -S, /home/chris/Desktop/xres/res, -M, /home/chris/Desktop/xres/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2420487276909255487.tmp, -x, -I, /home/chris/apktool/framework/1.apk, -S, /home/chris/Desktop/xres/res, -M, /home/chris/Desktop/xres/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot ru..
BLABLABLA
You just have to type in the terminal
Code:
sudo apt-get install ia32-libs
in fact, this problem is related to aapt not being correclty installed.
to check if apktool is not working because of this, you can type in the terminal: aapt
if you are missing ia32-libs you'll get something like: bash: /usr/local/bin/aapt No such file or directory
otherwise you'll get a bunch of stuff related to aapt options.
my os is ubuntu 12.04 x64.
If you are looking for a complete apktool guide, i recommend to refer to this
http://forum.xda-developers.com/showthread.php?t=1814441

enryea123 said:
Code:
sudo apt-get install ia32-libs
Click to expand...
Click to collapse
thanks for sharing but as far as i remember that lib is only for X64 CPU architecture

angello2299 said:
thanks for sharing but as far as i remember that lib is only for X64 CPU architecture
Click to expand...
Click to collapse
Yes in fact I'm on a 64 bit machine.
The ia32-libs package is a hack to get 32-bit packages installed on a 64-bit installation. (Source)
So I think that it is not necessary on a 32bit machine. (I'm not sure but I can't test since I own only 64bit computers)

well i'm sure about it since i have a 32bit PC
in fact that package does not exit for 32bit computers

angello2299 said:
well i'm sure about it since i have a 32bit PC
in fact that package does not exit for 32bit computers
Click to expand...
Click to collapse
You mean that apktool works without installing ia32-libs on 32bit architecture (and I should edit the title of the thread ) or that it doesn't work and it is impossible to install ia32-libs?

enryea123 said:
You mean that apktool works without installing ia32-libs on 32bit architecture (and I should edit the title of the thread ) or that it doesn't work and it is impossible to install ia32-libs?
Click to expand...
Click to collapse
that's what i mean

angello2299 said:
that's what i mean
Click to expand...
Click to collapse
OK I already edited the first post. I will thank you tomorrow since today I already gave 8 thanks

I know this post is old, but I'm hitting all the 'aapt not in path' threads and other apktool error threads and linking to my minimal dependency kit. Just need java and you are good to go. Check it out.
http://forum.xda-developers.com/android/development/toolkit-apk-munky-rench-t3026757

Related

[Q] compile SystemUi.apk

when im compiling systemui from virtuous Inquisition 4.0.1 im geting errors:
Code:
c:\apktool>Java -jar apktool.jar b systemui
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\apktool\systemui\res/drawable-sw600dp-hdpi
invalid resource directory name: c:\apktool\systemui\res/layout-sw600dp
invalid resource directory name: c:\apktool\systemui\res/values-sw600dp
invalid resource directory name: c:\apktool\systemui\res/values-sw600dp-port
invalid resource directory name: c:\apktool\systemui\res/values-sw720dp
invalid resource directory name: c:\apktool\systemui\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\knyku\AppData\Local\Temp\A
PKTOOL1129380418371610026.tmp, -I, C:\Users\knyku\apktool\framework\1.apk, -S, c
:\apktool\systemui\res, -M, c:\apktool\systemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\knyku\AppData\Local\Temp\APKTOOL1129380418371610026.tmp, -I, C:\Users\knyku
\apktool\framework\1.apk, -S, c:\apktool\systemui\res, -M, c:\apktool\systemui\A
ndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
c:\apktool>
framework and resources installed, any ideas ?
Yes, build on linux. I've never had luck with apktool on windows...
Also, has apktool been updated yet to support ICS apk's? I haven't used it in a little while, but it was unsupported last time I tried...
have read somewhere that it supports now, but not working. anyway, if its not working so how devs theming their roms ?!
edit:
updated builtin framework to SDK API14
Click to expand...
Click to collapse
so not supporting. but rly, how devs doin' it ?
I'm looking at the changelog right now:
code.google.com/p/android-apktool/wiki/Changelog said:
1.4.3¶2011.12.08
•updated builtin framework to SDK API14
•fixed some "Multiple substitutions (...)" errors ( Issue 254 )
1.4.2¶2011.12.02
•added support for API14 (Android 4.0) resources
•updated smali to v1.3.0
•added --quiet option
•fixed decoding error when string ends with '%' ( Issue 169 )
•fixed decoding error when <plurals> contains a reference ( Issue 234 )
•fixed a broken res when decoding <array> with positional substitutions ( Issue 222 )
Click to expand...
Click to collapse
It looks like 4.0 should be supported in v1.4.2 and up. Verify that you're running the correct version, and if that doesn't work then I still defer to my original recommendation of running on a linux system. One thing I'm noticing from your posted error is that the file system for the missing resource is using a forward slash after the res directory. Possibly an error in the windows version of apktool.
If you want to upload your changes to a git repo I can update my apktool and play with it...
As far as I know sense 3.6 is now SDK 15 and I can see that sense 4.0 is SDK 18/19 so it would be interesting to see if somebody could download apktool from git, add the framework into it and compile. That should solve the issues.
I was able to download the apktool from GIT but dont know what to do to add the framework in.
solved.
just need to copy updated aapt.exe from platform-tools @ sdk to apktool folder.
to install type apktool if framework-res.apk and done
kamik_f said:
solved.
just need to copy updated aapt.exe from platform-tools @ sdk to apktool folder.
to install type apktool if framework-res.apk and done
Click to expand...
Click to collapse
That works for me as well. I dropped it into my /usr/local/bin directory after updating my apktool in order to resolve the errors...
I'm glad you posted this today. I've been putting off updating my apktool. This not only motivated me to update, but also got it working in a timely manner...
dziekuje
GhostXSeries said:
As far as I know sense 3.6 is now SDK 15 and I can see that sense 4.0 is SDK 18/19 so it would be interesting to see if somebody could download apktool from git, add the framework into it and compile. That should solve the issues.
I was able to download the apktool from GIT but dont know what to do to add the framework in.
Click to expand...
Click to collapse
The 3.32 based apktool works fine for me on sense 4. Just need to install the new framework and then no errors
Sent from my Sensation using xda premium

TF700T SystemUI.apk won't recompile

Well, having been developing on the SGS2 and SGS3 for awhile, I finally got my ASUS Infinity TF700T.
I have successfully made changes to framework-res.apk.
I wanted to make changes to the SystemUI.apk. The decompile with apktool worked (I think). But, when I tried to recompile it could not find some files. The files do not exist in the res/drawable or res/layout folders.
Has anyone been able to decompile/recompile a stock SystemUI.apk?
I have tried various combinations of apktool.jar (1.4.2 thru 1.4.9) as well as using different aapt.exe files. Nothing seems to work.
Here is the error if anyone is interested:
INFO: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL848757225396994910.tmp, -I, C:\Users\Administrator\apktool\framework\1.
apk, -S, D:\ASUSTF700T\ROMS\9456\test\systemui\res, -M, D:\ASUSTF700T\ROMS\9456\
test\systemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\ADMINI~1\AppData\Local\Temp\APKTOOL848757225396994910.tmp, -I, C:\Users\Adm
inistrator\apktool\framework\1.apk, -S, D:\ASUSTF700T\ROMS\9456\test\systemui\re
s, -M, D:\ASUSTF700T\ROMS\9456\test\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
So far I have not made any changes. I need to work out this problem.
gcrutchr said:
Well, having been developing on the SGS2 and SGS3 for awhile, I finally got my ASUS Infinity TF700T.
I have successfully made changes to framework-res.apk.
I wanted to make changes to the SystemUI.apk. The decompile with apktool worked (I think). But, when I tried to recompile it could not find some files. The files do not exist in the res/drawable or res/layout folders.
Has anyone been able to decompile/recompile a stock SystemUI.apk?
I have tried various combinations of apktool.jar (1.4.2 thru 1.4.9) as well as using different aapt.exe files. Nothing seems to work.
Here is the error if anyone is interested:
INFO: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL848757225396994910.tmp, -I, C:\Users\Administrator\apktool\framework\1.
apk, -S, D:\ASUSTF700T\ROMS\9456\test\systemui\res, -M, D:\ASUSTF700T\ROMS\9456\
test\systemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\ADMINI~1\AppData\Local\Temp\APKTOOL848757225396994910.tmp, -I, C:\Users\Adm
inistrator\apktool\framework\1.apk, -S, D:\ASUSTF700T\ROMS\9456\test\systemui\re
s, -M, D:\ASUSTF700T\ROMS\9456\test\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
So far I have not made any changes. I need to work out this problem.
Click to expand...
Click to collapse
I got the exact same error for my HTC One X! This not only occurs with SystemUI.apk, framework-res.apk gives the same problem as well! Really hope someone can provide a solution.
Mazzstrikers said:
I got the exact same error for my HTC One X! This not only occurs with SystemUI.apk, framework-res.apk gives the same problem as well! Really hope someone can provide a solution.
Click to expand...
Click to collapse
Ill try something tomorow, I used to have the same problem with roms and stuff for the sensation but I got a way around that now. But I want to make sure if that is the same problem with this, before posting any say that I got a fix XD
UPDATE:
I am trying to decompile/compile SystemUI.apk on an ASUS Transformer infinity (ICS 4.0.3). The file decompiles ok, but does not compile. When I turned on java -verbose, I noticied apktool could not find some .pngs. They are in the drawable-hdpi folder and defined in the values/public.xml file.
Example: in /drawable/status_bar_expand.xml there is a line:
<item android:drawable="@drawable/status_bar_expand_default" />
It cannot find status_bar_expand_default.png. It is defined in public.xml and is a .png in the drawable-hdpi folder.
According to user IBotPeaches, who is continuing work on apktool, it is a problem with apktool and he is working on correcting it.
When he does, and it works, then I can start posting some mods for the TF700T.
I currently have CRT OFF working, but most of what I want to do involves SystemUI.apk.
Sorry for the stupid question, but what exactly is "CRT OFF" - I've seen that mentioned a few places....
Thanks!
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2
It's the way old TVs used to turn off.
The screen collapses from the top/bottom at the same time until you have a horizontal white line. Then the screen goes off.

[Q]What does this error in apktool mean?

Hey Guys,
I was modding my SystemUI.apk. I successfully decompiled it with apktool (the latest one), made the changes and then recompiled. I didn't make any changes to .9.png files, when I tried to recompile... it failed, I get this error ---
Code:
[email protected]:/home/jason# apktool b /home/jason/SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
/home/jason/SystemUI/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
/home/jason/SystemUI/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
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, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/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, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/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, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
[email protected]:/home/jason#
I can see that most of these errors are related to AndroidManifest.xml. But I can't understand
Code:
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
and
Code:
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
part. BTW, I did tinker with the XMLs but I didn't make any changes to them. What does "[aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]" mean???
Any Ideas? I do have SDK installed...
Thanks in advance guys!
The only errors that mean anything is the beginning. The rest are due to that one error. It states that the styles XML is pointing to a style that isn't there. Do you have the proper frameworks installed?
Wayne Tech Nexus
Thanks for Replying!
I do have framework files installed... I did "apktool if framework-res.apk". That is the only framework apk I can find.
Ok here is your errors. Cross ref these in the decompiled frameworks apk
/home/jason/SystemUI/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
/home/jason/SystemUI/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
There is no such thing called Theme.Holo.Light.Panel in the decompiled framework! Wait a second, the SystemUI that I'm trying to edit has already been edited by someone, is that the reason things are not working???
Theme.Holo.Light.Panel is not there in any XML, I double checked.
Thanks!
JasonKZLY said:
There is no such thing called Theme.Holo.Light.Panel in the decompiled framework! Wait a second, the SystemUI that I'm trying to edit has already been edited by someone, is that the reason things are not working???
Theme.Holo.Light.Panel is not there in any XML, I double checked.
Thanks!
Click to expand...
Click to collapse
Very well could be. Where did you get the apk from?
I got the apk from a Custom ROM for my phone...
JasonKZLY said:
I got the apk from a Custom ROM for my phone...
Click to expand...
Click to collapse
Did you pull and install the framework from that rom?
Wayne Tech Nexus
zelendel said:
Did you pull and install the framework from that rom?
Click to expand...
Click to collapse
Well... no, I didn't pull the framework-res from the phone after installing the ROM because I can't setup ADB on Linux . I recently posted a thread where I asked if anybody knew the solution but nobody responded:crying:. I tried most of the methods out there to setup ADB on Linux but none of them work. I got the framework-res straight out of the flashable ZIP of the ROM.
Thank you!
JasonKZLY said:
Well... no, I didn't pull the framework-res from the phone after installing the ROM because I can't setup ADB on Linux . I recently posted a thread where I asked if anybody knew the solution but nobody responded:crying:. I tried most of the methods out there to setup ADB on Linux but none of them work. I got the framework-res straight out of the flashable ZIP of the ROM.
Thank you!
Click to expand...
Click to collapse
They should be the same thing. And you are running the if command for apktool for both the framework-res and the system ui apks right?
Not sure about the adb for linux as all my themeing is done in windows
zelendel said:
And you are running the if command for apktool for both the framework-res and the system ui apks right?
Click to expand...
Click to collapse
Yes, I have both of them if-ed I'm starting to consider formatting my whole system and setting up a good development environment...
JasonKZLY said:
Yes, I have both of them if-ed I'm starting to consider formatting my whole system and setting up a good development environment...
Click to expand...
Click to collapse
Thats what I did today myself. I have a proper dual boot going with win7 and ubuntu 13.04.
I believe this is the same problem I described here: http://forum.xda-developers.com/showthread.php?p=41045630#post41045630
In a nutshell, old APKs aren't compatible with new AAPT, mainly private extended styles and parents inherited must be present.
iBotPeaches said:
I believe this is the same problem I described here: http://forum.xda-developers.com/showthread.php?p=41045630#post41045630
In a nutshell, old APKs aren't compatible with new AAPT, mainly private extended styles and parents inherited must be present.
Click to expand...
Click to collapse
After downloading apktool(Thank you soo much for this), I replaced the aapt provided with apktool with the aapt from the latest SDK. Is this the reason?

Xperia framework cm11(solved)

I AM NOT ABLE TO RECOMPILE USING THIS METHOD CAN ANY1 PLEASE HELP ME AND THEME OUR FRAMEWORK ACC TO THIS GUIDE http://forum.xda-developers.com/and...framework-res-to-xperia-t2843046#post54871675
bhavstech said:
I AM NOT ABLE TO RECOMPILE USING THIS METHOD CAN ANY1 PLEASE HELP ME AND THEME OUR FRAMEWORK ACC TO THIS GUIDE http://forum.xda-developers.com/and...framework-res-to-xperia-t2843046#post54871675
Click to expand...
Click to collapse
what error do you get while recompiling? are you using apktool?
chimmychenga said:
what error do you get while recompiling? are you using apktool?
Click to expand...
Click to collapse
i get this error
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2>apktool b framew
ork-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: F:\project\decompile\apktool1.5.2.tar\apktool1.
5.2\apktool1.5.2\framework-res\res/values-mcc310-mnc-1
invalid resource directory name: F:\project\decompile\apktool1.5.2.tar\apktool1.
5.2\apktool1.5.2\framework-res\res/values-mcc450-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Bhavya\AppData\Local\Tem
p\APKTOOL2684508379156101602.tmp, -x, -S, F:\project\decompile\apktool1.5.2.tar\
apktool1.5.2\apktool1.5.2\framework-res\res, -M, F:\project\decompile\apktool1.5
.2.tar\apktool1.5.2\apktool1.5.2\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:
\Users\Bhavya\AppData\Local\Temp\APKTOOL2684508379156101602.tmp, -x, -S, F:\proj
ect\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2\framework-res\res, -M,
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2\framework-res\An
droidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Bhavya\AppData\Local\Temp\
APKTOOL2684508379156101602.tmp, -x, -S, F:\project\decompile\apktool1.5.2.tar\ap
ktool1.5.2\apktool1.5.2\framework-res\res, -M, F:\project\decompile\apktool1.5.2
.tar\apktool1.5.2\apktool1.5.2\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2
>
bhavstech said:
i get this error
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2>apktool b framew
ork-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: F:\project\decompile\apktool1.5.2.tar\apktool1.
5.2\apktool1.5.2\framework-res\res/values-mcc310-mnc-1
invalid resource directory name: F:\project\decompile\apktool1.5.2.tar\apktool1.
5.2\apktool1.5.2\framework-res\res/values-mcc450-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Bhavya\AppData\Local\Tem
p\APKTOOL2684508379156101602.tmp, -x, -S, F:\project\decompile\apktool1.5.2.tar\
apktool1.5.2\apktool1.5.2\framework-res\res, -M, F:\project\decompile\apktool1.5
.2.tar\apktool1.5.2\apktool1.5.2\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:
\Users\Bhavya\AppData\Local\Temp\APKTOOL2684508379156101602.tmp, -x, -S, F:\proj
ect\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2\framework-res\res, -M,
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2\framework-res\An
droidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Bhavya\AppData\Local\Temp\
APKTOOL2684508379156101602.tmp, -x, -S, F:\project\decompile\apktool1.5.2.tar\ap
ktool1.5.2\apktool1.5.2\framework-res\res, -M, F:\project\decompile\apktool1.5.2
.tar\apktool1.5.2\apktool1.5.2\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2
>
Click to expand...
Click to collapse
Ok, follow this steps:
1. Have you installed the latest java jdk and jre?
2. Have you download the latest android sdk?
3. Download the platform tools in android sdk. The latest tools + the one from build 17 or 19. I dont know for sure.
4. Go to the folder platform tools and there should be aapt.exe. copy this to your apktool folder. The only files there should be are the .exe .jar and .bat files.
Make sure there are no spaces in the names of folders.
Added: this thread should actually go to Q&A
chimmychenga said:
Ok, follow this steps:
1. Have you installed the latest java jdk and jre?
2. Have you download the latest android sdk?
3. Download the platform tools in android sdk. The latest tools + the one from build 17 or 19. I dont know for sure.
4. Go to the folder platform tools and there should be aapt.exe. copy this to your apktool folder. The only files there should be are the .exe .jar and .bat files.
Make sure there are no spaces in the names of folders.
Added: this thread should actually go to Q&A
Click to expand...
Click to collapse
i have everything i am able to recompile and decompile everythin but this doesnt get compiled
Well as i see in your command you are using "b" wich means that you are recompiling.
If you want to edit framework-res.apk you need to install it firts by running the command: apktool if framework-res.apk. then decompile: apktool d framework-res.apk.then modify your framework. THEN, at last, run: apktool b framework-res, Without .apk. Now it is finished.
If it still doesn't work you have to try an other aapt.exe.
chimmychenga said:
Well as i see in your command you are using "b" wich means that you are recompiling.
If you want to edit framework-res.apk you need to install it firts by running the command: apktool if framework-res.apk. then decompile: apktool d framework-res.apk.then modify your framework. THEN, at last, run: apktool b framework-res, Without .apk. Now it is finished.
If it still doesn't work you have to try an other aapt.exe.
Click to expand...
Click to collapse
solved it wan an issue with apk tool
bhavstech said:
solved it wan an issue with apk tool
Click to expand...
Click to collapse
Is it possible for you to share your work results if you are successful? I really will be thankful because I'm not very god whit that kind of procedures. Thanks in advance
SFCMouco said:
Is it possible for you to share your work results if you are successful? I really will be thankful because I'm not very god whit that kind of procedures. Thanks in advance
Click to expand...
Click to collapse
of course but its not booting atm
SFCMouco said:
Is it possible for you to share your work results if you are successful? I really will be thankful because I'm not very god whit that kind of procedures. Thanks in advance
Click to expand...
Click to collapse
http://forum.xda-developers.com/google-nexus-5/themes-apps/port-xperia-z2-framework-cm11-t2854266 here you go

[Discontinued] [Windows] APK Easy Tool v1.60 (2022-06-23)

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Apk Easy Tool is a lightweight GUI application that enables you to manage, sign, compile and decompile the APK files for the apps you are working on.
APK Easy Tool is absolute free for commercial and non-commercial use.
Please note: This tool is not meant for newbies, but meant for faster tasks for those who are lazy to use CMD
DISCONTINUED:
After 6 years, it has to be sadly announced that the project has been discontinued due to the changes my personal life, and lost the movitation to continue this project. I don't have the opportunity to get back to working on this anymore
Due to what happens with Android (Split APK/Android App Bundle, APK protections, Play Protect, system restrictions...) I decided to finish my Android journey right here. It was a nice experience, but not anymore.
The source code and assets are provided under download links. The project is based on C#, use Visual Studio 2019 or above to use it. Please feel free to continue developing with it, wish you good luck
Bitbucket server will be shut down at the end of 2022 (Jan 1 2023 00:00), users who use older version will no longer recieve update notification. Bitbucket became horrible service anyways, so there is no point keeping it up anymore I decided to keep Bitbucket server up in order to prevent threat actors from taking over
If you are looking for alternatives, here are the links below:
APK Toolkit (New): https://forum.xda-developers.com/t/tool-apk-toolkit-v1-2-windows.4572881/
APKEditor: (Can marge split APK) https://github.com/REAndroid/APKEditor
APKToolGUI: https://github.com/INF1NUM/APKToolGUI
APKToolGUI (New): https://github.com/AndnixSH/APKToolGUI
ApktoolFX: https://github.com/oscar0812/ApktoolFX
Apk Studio: https://github.com/vaibhavpandeyvpz/apkstudio
APKLab: https://github.com/APKLab/APKLab
Tickle My Android: https://forum.xda-developers.com/t/tool-tickle-my-android-decompile-recompile-with-ease.1633333/
INZ APKTool 2.4.0 (Beta): https://forum.xda-developers.com/t/inz-apktool-2-4-0-beta.4446939/
INZ APKTool: https://forum.xda-developers.com/t/inz-apktool-2-0-windows-gui-apk-tool.4000167/
APK Tools: https://github.com/kermage/APK-Tools
APK Multi Tool: https://forum.xda-developers.com/t/windows-utility-tool-apk-multi-tool.1310151/
APK Editor Studio: https://github.com/kefir500/apk-editor-studio
Thank you for your kind understanding and the support
Requirements:
- Windows 7 or above
- .NET Framework 4.7.2 or above
- Java 8 or JDK 8, doesn't matter which one
Features:
Decompile/Compile
Decomile and compile APK, DEX and JAR files, with spaces and symbols support. Characters like japanese, chinese.. are not supported. Can cancel during operation
Sign/Zipalign
Signing and ZipAligning of APK/JAR files. Can cancel during operation
Extract/Zip APK
Extract and zip APK with 7z Compression-level 0-9. Can cancel during operation
APK Infomation
Show APK infomation with icon using aapt dump badging and link to Play Store
Framework
Install your framework and manage framework paths
Log output
View your logs to find errors.
Options
Change options of tool, decompile, compile, sign and zipalign. Options: Java heap, Apktool version, apksigner version, directories, java path, Windows explorer integration, remeber window position and more
All options and textboxes are saved as config.xml and will load on launch
Quick options on main.
Drag and drop
Drop APK, DEX, JAR files and Decompiled folder on buttons to perform actions. Drop outside buttons to select/open as file/folder
Apktool.jar version selection
Can switch to other versions of apktool.jar on options
Add other apktool.jar in "Apktool" folder
Shortcuts
4 buttons to open work directories of decompiled APK, compiled APK, extracted APK and zipped APK
Jumplist shortcuts
Windows explorer integration
Do actions by just right-clicking on APK file and choose the following options, decomile or compile APK, DEX, and JAR files, Zipalign APK, Check align, Sign APK and Install APK
Download links:
MSI Installer is no longer released due to an unknown error with Microsoft Visual Studio Installer Projects, it always breaks randomly, so I gave up with it. Please use portable version, it's easy to extract and you can easly see the content before you extract
Downloads for : -Android- Utilities | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
379.43 MB folder on MEGA
10 files
mega.nz
Box
app.box.com
This tool may be flagged as virus by your anti-virus. It just typical anti-virus that doesn't like modding tools, don't believe in anti-virus
Softpedia labs has tested this tool multipletimes and still reported this tool 100% clean. See here: https://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/Apk-Easy-Tool.shtml
Virustotal 1/69.
VirusTotal
VirusTotal
www.virustotal.com
Getting started:
For the first time you launch the tool, it will automatically set apktool.jar and work directories for you. You can change it in Options
Selecting/opening APK or decompiled folder will be used as your main project work. So if you doing actions, it will be placed in your work directories that was been set.
Spaces are supported but accent characters are barely supported, you may need to rename it before opening APK. APK filename that contains chinese, japanese etc will still not work.
Drag and drop are supported. The files would be placed on the same directory where the apk came from
You do not need to use Framework unless you know what you are doing, it is for ROM developers and System App modder only
It works the same way as the command line version, just a bit faster
I don't cover how to modify APK in general, that just beyond the scope
Credits:
Evildog1 (Creator of this tool)
ibotpeaches (Creator of apktool.jar)
Google, Android NDK (adb, aapt, apksigner and zipalign)
bootstraponline (signapk)
Igor Pavlov (7zip)
JesusFreke (Smali/Baksmali)
dwmkerr (SharpShell https://github.com/dwmkerr/sharpshell)
Disclaimer:
Same as apktool, APK Easy Tool is neither intended for piracy, game hacking and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms, analyzing applications and much more. Just try to be fair with authors of an app, that you use and probably like.
If you just joined XDA just to come here, Please follow XDA rules first
This thread is NOT the right place to discuss about general modding like editing smali and xml files, editing png, decrypting stuff, app crashes, bypass security etc. None of these are in scope. I'm NOT here to help with it.
General modding question goes to Android Q&A, Help & Troubleshooting
Framework and system modding related should be posted at the correct section of your device model, post on Android Q&A, Help & Troubleshooting if the site does not have a specific model
Please keep this thread on-topic, and anything about apktool related only. I can't help with anything else unless it's really caused by APK Easy Tool or apktool. I won't be able to answer every inquiries stuff that may be already explained here!
FAQ:
Spoiler: FAQ
Q: Can you support .aab (Android app bundle)/Split APK format?
A: No, it's more complicated than you thought and I don't have time for that, not really a fan of app bundle. Just use any APK sites such as APK Combo to download standalone APK. There is no harm working with standalone APK.
If you need to merge split APK/app bundle, please look for alternative tools, like APKEditor https://github.com/REAndroid/APKEditor or Split APKs Packer https://www.andnixsh.com/2020/06/sap-split-apks-packer-by-kirlif-windows.html
Q: I'm getting an error "brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741701)"
This is a problem with Java 32-bit.
32-bit is old and support will be stopped on apktool 2.6.0. Please consider to switch to Windows 64-bit system, and use Java 64-bit or JDK 64-bit. Java and JDK doesn't matter
Q: How can I use other apktool.jar version?
A: Download apktool.jar here: https://bitbucket.org/iBotPeaches/apktool/downloads/
Place apktool.jar inside \APK Easy Tool\Apktool. Restart the tool if running
Go to Options and switch apktool version
Do not forget to clear the framework after switching version!
Q: I'm getting an error "'Java' is not found as an internal or external command"
A: Reinstall Java or JDK
Q: I'm getting an error "Error: An unexpected error while trying to open file (...)"
A: Symbols and special characters, chinese, japanese, arabic, etc are not supported. It is a known issue of the Windows system. Please remove any of these characters from the filename or the path, make sure it only contains latin alphabets
Q: I'm getting an error "java.lang.OutOfMemoryError"
A: Go to Options tab and increase Java heap size
If your system is Windows 64-bit, it is recommended to uninstall Java 32-bit version (and all other Java versions if you don't use) and install Java 64-bit or JDK 64-bit. Java and JDK doesn't matter
Q: I'm getting an error "Error occurred during initialization of VM. Could not reserve enough space for (...)KB object heap"
A: Go to Options tab and reduce Java heap size. Recommended size: 1024m
If your system is Windows 64-bit, it is recommended to uninstall Java 32-bit version (and all other Java versions if you don't use) and install Java 64-bit or install JDK 64-bit. Java and JDK doesn't matter
Q: Window is not opening but still appear in taskbar
A: The window is out of screen, edit the config.xml and change
Code:
<CheckBoxWinPos>true</CheckBoxWinPos>
to
Code:
<CheckBoxWinPos>false</CheckBoxWinPos>
Q: Drag and drop does not work
Do not run it as administrator. Windows never allow drag and drop if an application running as administraor for security reason
Q: How to update or delete AETShellExt.dll?
A: If you are using shell extension for APK Easy Tool and you want to update, you must unregister and uninstall it first
Open APK Easy Tool. Go to options -> General and click Uninstall to uninstall Context menu integration. It will ask you for admin rights
Windows 8/10: Open Task Manager and restart all explorer.exe processes
Windows 7: Open Task Manager, end task all explorer.exe processes and run new task explorer.exe
Then you can replace or delete AETShellExt.dll and don't forget SharpShell.dll ServerRegistrationManager.exe too
Q: Is drag and drop supported?
A: Yes it supports drag and drop APK/ZIP file Simply drop a file on buttons to do something.
Examples:
- Drop an APK file on "Decompile APK" button to decompile APK in the same directory
- Drop an APK file outside (drop file on white background) to select APK to work on.
Q: How can I reset APK Easy Tool?
A: Go to Options -> General. Scroll down and click Reset to default. You can also manually delete config.xml beside its exe
Q: Is APK Easy Tool collecting any data?
A: No, we respect your privacy very seriously. This tool can only connect to my read-only repo server that only checks for updates, and downloading update, nothing more.
Q: Alternatives?
A: I do like other nice alternatives, I don't competing against them. Try out Tickle My Android, a command line tool that are also easy to use. And if you are fan of IDE, try out APK Studio or APKLab. There are a lot more of tools than that. But don't expect that using other tools will solve any Apktool issues
Troubleshooting:
Spoiler: Troubleshooting
It's not unusual that it can't decompile or compile. Please try the troubleshooting below to see if it solves the problem:
Keep in mind that there's a big difference between identifying issues related specifically to the "APK Easy Tool Software" and the "Apktool Java Utility (by iBotPeaches).
More info https://forum.xda-developers.com/t/...1-58-3-dec-2020.3333960/page-25#post-79520098. Thanks @Ibuprophen for explaining
Make sure the filename does not contain any symbol or special characters like chinese, japanese, arabic etc since apktool.jar is command line based tool, it does not support it
Use latest version of apktool.jar (See FAQ for more info)
If you are using latest version of apktool.jar, try use older version of apktool.jar. Sometimes it can mitigate the issue (See FAQ for more info)
Go to Framework tab and clear the framework, and decompile the APK again. It can solve most of resource errors
Decompile APK with "Only disassemble the main dex classes (classes[0-9]*.dex) in the root" checked. Prevents disasemble dex from assets folder) (apktool 2.4.1 and up only)
Decompile APK with "Don't decode resources.arsc" checked if you are only editing Java (smali) (It will prevent the decompile of resources. This keeps the resources.arsc intact without any decode.)
Decompile APK with "Don't decode classes.dex" checked if you are only editing the resources (xml) (--no-src will prevent the disassembly of the dex file(s). This keeps the apk dex file(s) and simply moves it during build.)
Compile with "Use the aapt2 binary instead of aapt" checked (Use the aapt2 binary instead of appt)
Sometimes Java 8 64-bit works better than Java 8 32-bit. If your system is Windows 64-Bit, please uninstall Java 32-bit version (and all other Java versions you don't use) and install Java 64-bit version (Windows Offline (64-bit)) or install JDK 64-bit if you are developing Java. Java and JDK does not matter for apktool.jar
Sometimes your antivirus may prevent it from working correctly. Disable it temporary
If nothing solves your problem, please check list of Apktool.jar errors
Apktool.jar common errors and solutions
As I'm no longer modding, this thread will not be updated anymore. Please refer to apktool issues https://github.com/iBotPeaches/Apktool/issues?q=is:issue++ and discussions https://github.com/iBotPeaches/Apktool/discussions for latest infomation...
forum.xda-developers.com
Search for the issues on Apktool Github repo too.
Issues · iBotPeaches/Apktool
A tool for reverse engineering Android apk files. Contribute to iBotPeaches/Apktool development by creating an account on GitHub.
github.com
Reporting an issue:
Spoiler: Reporting an issue
Have any problem with APK Easy Tool? Please fill out the details before posting
- Describe the bug, clear and concise description of what the bug is.
- Full logs
- Steps to reproduce the behavior
- Screenshots or videos. If applicable, add them to help explain your problem.
- Version of your operating system (e.g Windows 10)
Please note, an issue with apktool is not an issue with APK Easy Tool. Please verify the context of issue before reporting an issue.
Changelogs:
Spoiler: Changelog
v1.60. It is the final version:
- Added Force manifest for decompiling
- Removed unused checkbox "v4 no merkle tree" because it wasn't available for apksigner.jar
- Upgraded to .NET Framework 4.8
- Print Java version
- Bring back click on launch activity to open file explorer
- Disabled update check
- Cleaned up the codes
- Updated Apktool to 2.6.1
- Updated adb to 33.0.2
- Updated aapt, zipalign, apksigner to 32.0.0
- Updated some languages
- Removed dialog of sign password.Password will always remember
- Other improvements
nice tool,thanks.
kikinda said:
nice tool,thanks.
Click to expand...
Click to collapse
No problem. hope you enjoy the tool
ok,there is a problem. when I try to recompile there is nothing hapening. the compiled apks folder is empty. With this app http://mdc.html5.qq.com/?channel_id=20820
aren't you suppose not to sign system apps? is it possible with this tool?
wertzPH said:
aren't you suppose not to sign system apps? is it possible with this tool?
Click to expand...
Click to collapse
Ya, I wondered about this too? Looking at the GUI, it appears there is no Option to Re-Compile without Signing. Any help/advice?
wertzPH said:
aren't you suppose not to sign system apps? is it possible with this tool?
Click to expand...
Click to collapse
Stupifier said:
Ya, I wondered about this too? Looking at the GUI, it appears there is no Option to Re-Compile without Signing. Any help/advice?
Click to expand...
Click to collapse
I didn't think about it, because i was thinking that the APK can't install without signing so i added sign apk. i have never tried to sign system apps because i don't develop system apps but i will fix it asap
kikinda said:
ok,there is a problem. when I try to recompile there is nothing hapening. the compiled apks folder is empty. With this app http://mdc.html5.qq.com/?channel_id=20820
Click to expand...
Click to collapse
i'm sorry to hear that. have you checked the log.txt inside APK Easy Tool?
I am getting this error in log file:
Decompiling...
'java' is not recognized as an internal or external command,
operable program or batch file.
But l have Java installed on my pc
Edit: l forget to add Java PATH nevermind.
Can you add clone apk function in this tool?
here is the log
Tue 03/15/2016 20:48:06.78
Decompiling...
-----------------------------------------------------------------
Tue 03/15/2016 20:49:15.09
Re-compiling...
ERROR: input directory '7z' does not exist
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\JOHNY~1\AppData\Local\Temp\brut_util_Jar_2001132480781272080.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 16, --version-code, 652170, --version-name, 6.5.0.2170, -F, C:\Users\JOHNY~1\AppData\Local\Temp\APKTOOL5019627172930567125.tmp, -0, conf, -0, ini, -0, , -0, 7z, -0, arsc, -I, C:\Users\johny\apktool\framework\1.apk, -S, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\res, -M, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
at brut.androlib.Androlib.buildResources(Androlib.java:410)
at brut.androlib.Androlib.build(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:268)
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\JOHNY~1\AppData\Local\Temp\brut_util_Jar_2001132480781272080.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 16, --version-code, 652170, --version-name, 6.5.0.2170, -F, C:\Users\JOHNY~1\AppData\Local\Temp\APKTOOL5019627172930567125.tmp, -0, conf, -0, ini, -0, , -0, 7z, -0, arsc, -I, C:\Users\johny\apktool\framework\1.apk, -S, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\res, -M, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\JOHNY~1\AppData\Local\Temp\brut_util_Jar_2001132480781272080.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 16, --version-code, 652170, --version-name, 6.5.0.2170, -F, C:\Users\JOHNY~1\AppData\Local\Temp\APKTOOL5019627172930567125.tmp, -0, conf, -0, ini, -0, , -0, 7z, -0, arsc, -I, C:\Users\johny\apktool\framework\1.apk, -S, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\res, -M, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
-----------------------------------------------------------------
Signing...
-----------------------------------------------------------------
Aimbot91 said:
I am getting this error in log file:
Decompiling...
'java' is not recognized as an internal or external command,
operable program or batch file.
But l have Java installed on my pc
Edit: l forget to add Java PATH nevermind.
Can you add clone apk function in this tool?
Click to expand...
Click to collapse
oh ok, and can you give me more details about cloning an apk?
Thanks!
kikinda said:
here is the log
Click to expand...
Click to collapse
Looks like the error caused by a file misspelling at C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifes t.xml
Rename the file to AndroidManifest.xml and try again
evildog1 said:
Looks like the error caused by a file misspelling at C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifes t.xml
Rename the file to AndroidManifest.xml and try again
Click to expand...
Click to collapse
ok I will try. just to say,I dont do nothing with the files. only decompile and recompile.
its the same
Thu 03/17/2016 14:39:29.58
Re-compiling...
ERROR: input directory '7z' does not exist
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\JOHNY~1\AppData\Local\Temp\brut_util_Jar_6490422566377319687.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 16, --version-code, 652170, --version-name, 6.5.0.2170, -F, C:\Users\JOHNY~1\AppData\Local\Temp\APKTOOL6973702748119735301.tmp, -0, conf, -0, ini, -0, , -0, 7z, -0, arsc, -I, C:\Users\JOHNY\apktool\framework\1.apk, -S, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\res, -M, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
at brut.androlib.Androlib.buildResources(Androlib.java:410)
at brut.androlib.Androlib.build(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:268)
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\JOHNY~1\AppData\Local\Temp\brut_util_Jar_6490422566377319687.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 16, --version-code, 652170, --version-name, 6.5.0.2170, -F, C:\Users\JOHNY~1\AppData\Local\Temp\APKTOOL6973702748119735301.tmp, -0, conf, -0, ini, -0, , -0, 7z, -0, arsc, -I, C:\Users\JOHNY\apktool\framework\1.apk, -S, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\res, -M, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\JOHNY~1\AppData\Local\Temp\brut_util_Jar_6490422566377319687.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 16, --version-code, 652170, --version-name, 6.5.0.2170, -F, C:\Users\JOHNY~1\AppData\Local\Temp\APKTOOL6973702748119735301.tmp, -0, conf, -0, ini, -0, , -0, 7z, -0, arsc, -I, C:\Users\JOHNY\apktool\framework\1.apk, -S, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\res, -M, C:\New folder (4)\APK Easy Tool\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
-----------------------------------------------------------------
Signing...
kikinda said:
its the same
Click to expand...
Click to collapse
Have you tried other apk tools to see if it works? can you give me the APK file so i can test it?
tool updated to v1.11!
i tested it again and its work with jbak.apk,decompiled,recompiled and signed, that ok. but not work with qqbrowser,only work when decompiling but cant recompile. can you test it? here is the log and the files.
PHP:
Tue 03/22/2016 20:23:07.88
Decompiling...
-----------------------------------------------------------------
Tue 03/22/2016 20:24:23.53
Re-compiling...
ERROR: input directory '7z' does not exist
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\JOHNY~1\AppData\Local\Temp\brut_util_Jar_8255447116955995116.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 16, --version-code, 652170, --version-name, 6.5.0.2170, -F, C:\Users\JOHNY~1\AppData\Local\Temp\APKTOOL5471454235674540777.tmp, -0, conf, -0, ini, -0, , -0, 7z, -0, arsc, -I, C:\Users\JOHNY\apktool\framework\1.apk, -S, C:\Users\JOHNY\Desktop\andro\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\res, -M, C:\Users\JOHNY\Desktop\andro\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
at brut.androlib.Androlib.buildResources(Androlib.java:410)
at brut.androlib.Androlib.build(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:268)
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\JOHNY~1\AppData\Local\Temp\brut_util_Jar_8255447116955995116.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 16, --version-code, 652170, --version-name, 6.5.0.2170, -F, C:\Users\JOHNY~1\AppData\Local\Temp\APKTOOL5471454235674540777.tmp, -0, conf, -0, ini, -0, , -0, 7z, -0, arsc, -I, C:\Users\JOHNY\apktool\framework\1.apk, -S, C:\Users\JOHNY\Desktop\andro\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\res, -M, C:\Users\JOHNY\Desktop\andro\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\JOHNY~1\AppData\Local\Temp\brut_util_Jar_8255447116955995116.tmp, p, --forced-package-id, 127, --min-sdk-version, 8, --target-sdk-version, 16, --version-code, 652170, --version-name, 6.5.0.2170, -F, C:\Users\JOHNY~1\AppData\Local\Temp\APKTOOL5471454235674540777.tmp, -0, conf, -0, ini, -0, , -0, 7z, -0, arsc, -I, C:\Users\JOHNY\apktool\framework\1.apk, -S, C:\Users\JOHNY\Desktop\andro\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\res, -M, C:\Users\JOHNY\Desktop\andro\Decompiled APKs\qqbrowser_6.5.0.2170_20820.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
-----------------------------------------------------------------
Signing...
java.io.FileNotFoundException: C:\Users\JOHNY\Desktop\andro\Recompiled APKs\qqbrowser_6.5.0.2170_20820.apk (The system cannot find the file 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:437)
-----------------------------------
kikinda said:
i tested it again and its work with jbak.apk,decompiled,recompiled and signed, that ok. but not work with qqbrowser,only work when decompiling but cant recompile. can you test it? here is the log and the files.
Click to expand...
Click to collapse
I have tested it on any apk tools and all of them failed to re-compile. It seems the APK is preventing from recompiling. I will contact the owner of apktool.jar to see if he can help
Ok,thanks. The same situation is with uc browser.

Categories

Resources