[Update]FIX Proximity Bug build_15.3.A.1.12 odex/deodex - Sony Xperia L

Guyz I was just messing with my phone and its latest update bugs and I think I found the fix for the proximity bug
If you want deodexed, go down here....
1. Deodex your 15.3.A.1.12 firmware from here
2. Download the two files below
Patched services.jar from 15.3.A.1.12 with superuser mod from here
SomcPhone from old firmware here
3. Copy both files to /system and change permission to rw-r-r
4. Then move services.jar to /system/framework and SomcPhone.apk to /system/app
5. Reboot
For Odex...
1. Download SomcPhone.apk from here
2. Copy it to /system/app with proper permissions (rw-r-r)
3. Reboot
NOTE
Edit build.prop and change value from 0 to 1 to get "Network mode" again of this line ---->>>
telephony.lteOnCdmaDevice=0 to telephony.lteOnCdmaDevice=1
Credits to
1. Uttam Ningthemcha for build.prop edit to make "Network Mode working again"
2. Kenneth Ual for providing odex

shivamcheat said:
Guyz I was just messing with my phone and its latest update bugs and I think I found the fix for the proximity bug
1. Deodex your 15.3.A.1.12 firmware from here
2. Download the two files below
Patched services.jar from 15.3.A.1.12 with superuser mod from here
SomcPhone from old firmware here
3. Copy both files to /system and change permission to rw-r-r
4. Then move services.jar to /system/framework and SomcPhone.apk to /system/app
5. Reboot
Please tell me if it worked and don't get angry on me if it dosn't
Click to expand...
Click to collapse
Cool Bro! Thanks!

Xenodrome_ said:
Cool Bro! Thanks!
Click to expand...
Click to collapse
It worked ?

shivamcheat said:
It worked ?
Click to expand...
Click to collapse
yes :good: it was a bug with the phone apk after all

Tell Sony, maybe they have a job for you.
Ty!
Sent from my Xperia L

worked like a charm..thanks man..you rock..:good:

Thanks all for confirming that it worked!
Enjoy latest Sony build with one less bug

shivamcheat said:
Guyz I was just messing with my phone and its latest update bugs and I think I found the fix for the proximity bug
Click to expand...
Click to collapse
flashable zip by me
View attachment proxfix.zip

S1N1S73R said:
flashable zip by me
View attachment 2493233
Click to expand...
Click to collapse
I dones't work.I wiped cache,flashed this & rebootded.I told someone to call me in order to simulate a missed call,no luck.Rebooted twice,tried again,no luck.
Will try the manual method later.
ps*I don't have deodexed stock.Should I deodexed for this flashable zip?

Marius Cristian said:
I dones't work.I wiped cache,flashed this & rebootded.I told someone to call me in order to simulate a missed call,no luck.Rebooted twice,tried again,no luck.
Will try the manual method later.
ps*I don't have deodexed stock.Should I deodexed for this flashable zip?
Click to expand...
Click to collapse
yes u need to have deodexed rom before flashing ...read main post :good:
also mount system from mounts and storage if not rooted
---------- Post added at 04:33 PM ---------- Previous post was at 04:25 PM ----------
shivamcheat said:
Guyz I was just messing with my phone and its latest update bugs and I think I found the fix for the proximity bug
Click to expand...
Click to collapse
this removed the option to choose default network mode...use *#*#info#*#*>phone information to change it as a workaround :angel:

Does that flashable zip posted really work?

Raj joshi said:
Does that flashable zip posted really work?
Click to expand...
Click to collapse
any reason it should not?
Code:
ui_print("Proximity Fix Xperia L by shivamcheat");
ui_print("Flashable Zip by S1N1S73R");
run_program("/system/xbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/app/SomcPhone.apk");
set_perm(0, 0, 0644, "/system/framework/services.jar");
run_program("/system/xbin/busybox", "umount", "/system");
ui_print("Installation done!");

S1N1S73R said:
any reason it should not?
Code:
ui_print("Proximity Fix Xperia L by shivamcheat");
ui_print("Flashable Zip by S1N1S73R");
run_program("/system/xbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/app/SomcPhone.apk");
set_perm(0, 0, 0644, "/system/framework/services.jar");
run_program("/system/xbin/busybox", "umount", "/system");
ui_print("Installation done!");
Click to expand...
Click to collapse
Maybe he dont have busybox...
Can someone try with this commands for mount and unmount:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
unmount("/system");

siankatabg said:
Maybe he dont have busybox...
Can someone try with this commands for mount and unmount:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
unmount("/system");
Click to expand...
Click to collapse
well most xperia l kernels have auto root...so...+ i was lazy :laugh:
will create with your code and update on same post

Okay, here is a windows-installer so you don't have to copy and set permissions manually...
Needs root and deodex before!
Extract the zip, copy the "_cp2sd" folder to your internal sd, then run "install.bat". Wait until phone is rebooted.
@shivamcheat : Good work! Thank you very much.
...

S1N1S73R said:
any reason it should not?
Click to expand...
Click to collapse
Take this:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
...
...
...
unmount("/system");
...

R.A.B said:
Take this:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
...
...
...
unmount("/system");
...
Click to expand...
Click to collapse
already updated :good:

Deodex
Nice work dude.
But can't we just copy the given 2 files to system/app&framework directly without deodexing the mobile?? If we do so will the proceedure work???
Thanx...

rahul red said:
But can't we just copy the given 2 files to system/app&framework directly without deodexing the mobile?? If we do so will the proceedure work???
Click to expand...
Click to collapse
No

Unexpected error while recompiling SomcPhone.apk
I was looking around the SomcPhone.apk of latest firmware to find out the bug that is causing the proximity problem but meanwhile i came to know that I can't recompile it even if i have changed nothing. Here is the log. Can anybody tell what is the problem
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Decompiled_apk\SomcPhone\res/values-mcc454-mnc1000
invalid resource directory name: C:\Decompiled_apk\SomcPhone\res/values-mcc454-mnc1000-zh-rCN
invalid resource directory name: C:\Decompiled_apk\SomcPhone\res/values-mcc454-mnc1000-zh-rHK
invalid resource directory name: C:\Decompiled_apk\SomcPhone\res/values-mcc454-mnc1000-zh-rTW
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Shivam\AppData\Local\Temp\APKTOOL135074624942482104.tmp, -0, arsc, -I, C:\Users\Shivam\apktool\framework\1.apk, -I, C:\Users\Shivam\apktool\framework\2.apk, -S, C:\AndroidMultitool_2.1\AndroidMultitool\Decompiled_apk\SomcPhone\res, -M, C:\AndroidMultitool_2.1\AndroidMultitool\Decompiled_apk\SomcPhone\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, 17, --target-sdk-version, 17, -F, C:\Users\Shivam\AppData\Local\Temp\APKTOOL135074624942482104.tmp, -0, arsc, -I, C:\Users\Shivam\apktool\framework\1.apk, -I, C:\Users\Shivam\apktool\framework\2.apk, -S, C:\AndroidMultitool_2.1\AndroidMultitool\Decompiled_apk\SomcPhone\res, -M, C:\AndroidMultitool_2.1\AndroidMultitool\Decompiled_apk\SomcPhone\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, 17, --target-sdk-version, 17, -F, C:\Users\Shivam\AppData\Local\Temp\APKTOOL135074624942482104.tmp, -0, arsc, -I, C:\Users\Shivam\apktool\framework\1.apk, -I, C:\Users\Shivam\apktool\framework\2.apk, -S, C:\AndroidMultitool_2.1\AndroidMultitool\Decompiled_apk\SomcPhone\res, -M, C:\AndroidMultitool_2.1\AndroidMultitool\Decompiled_apk\SomcPhone\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
The system cannot find the file specified.
The system cannot find the file specified.

Related

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?

[Q] i can't recompile framework-res

i can decompile and recompile systemui.apk
i can decompile framework-res.apk but i can't recompile framework-res
this log :
D:\android\APKTool\APKTool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\android\APKTool\APKTool\framework-res\res/dr
awable-ldrtl-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\
APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\fra
mework-res\res, -M, D:\android\APKTool\APKTool\framework-res\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, 17, --target-sdk-version, 17, -F, C:
\Users\user\AppData\Local\Temp\APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S,
D:\android\APKTool\APKTool\framework-res\res, -M, D:\android\APKTool\APKTool\fr
amework-res\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, 17, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\AP
KTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\frame
work-res\res, -M, D:\android\APKTool\APKTool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
i think i wrong edit my framework-res.apk but i try decompile and no edit ,its same cannot recompile framework-res
sorry to my english
friend try this
hi friend i think there is ssomething error in the apktool
i have posted a link below
:cyclops: http://forum.xda-developers.com/showpost.php?p=43353411&postcount=54:cyclops:
download that version
unzip that file to a specific folder ther you open comand prompt by shift+right click
in that first type
step-1
apktool if framework-res.apk (here xxxxxx.apk is your desired apk file)
step-2(decompile)
apktool d xxxxxxx.apk
step-3(recompile)
apktool b -f -d xxxxxxx
you find the recompiled apk in xxxxxx/dist folder open it with winrar or 7zip .now open original apk file with 7zip or winrar and drag and drop
META-INF and resource files there give the compression level as (store) and sign it(important)
step-4(sign)
java -jar signapk.jar testkey.x509.pem testkey.pk8 xxxxxxx.apk xxxxxxx_signed.apk
step-5(zipalign)
zipalign -fv 4 xxxxxxxx.apk xxxxxxxx-new.apk
to zip align you must install android sdk software in that go to tools/ there you search for (draw9patch.bat) and (zipalign.exe)
copy that two files and paste in C:\windows\paste it
hit thanks if i helped

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