[Tool]Advanced ApkTool v4.2.0[Windows][10/02/2016]

What's your opinion about Advanced ApkTool?

  • I love it.

    Votes: 364 72.1%
  • I like it.

    Votes: 98 19.4%
  • I'm not bothered.

    Votes: 23 4.6%
  • I don't like it.

    Votes: 8 1.6%
  • I hate it.

    Votes: 12 2.4%

  • Total voters
    505
Search This thread

Ticklefish

Inactive Recognized Themer
Oct 27, 2011
6,773
8,633
Hampshire, UK
This looks very cool..and very useful. Nice work. :good:

I hate to be 'that guy' though but I'm going to have to ask that you mention Tickle My Android somewhere in your op.

Speaking of TMA, I'd love to include this in the next version. With you properly credited of course. It's up to you though. :cool:
 

BDFreak

Senior Member
Jan 20, 2013
428
2,027
Mymensingh
You Sir, are the Man! :good:
:good:
Simply amazing!. It is easy, fast and simple, you're great!. Thank you.
:good:
@BDFreak - mate...

I know I said that already but really, you made my....not day but weekend :D

Finally I decompiled, MOD and recompiled framework in 15min...

Hat down master ;)

Sent from my C6903 using Tapatalk
:good:
:good:
Well Done Bro.. U r the Pro Master
:good:
This looks very cool..and very useful. Nice work. :good:

I hate to be 'that guy' though but I'm going to have to ask that you mention Tickle My Android somewhere in your op.

Speaking of TMA, I'd love to include this in the next version. With you properly credited of course. It's up to you though. :cool:
I would love too. Check OP...
 
  • Like
Reactions: Ram121 and Naney

SXUsr

Senior Member
Jul 11, 2010
8,161
2,877
Here =)
@BDFreak Finally made some progress with Apktool 2.0.0 Beta 9, it no longer gives the "empty" error so I can now install the SemcGeneric from the Z1C and my rebuilt framework works. I've not used your tool so maybe others could try replacing the apktool.jar with the beta 9 as I've done my fair share of restoring for now.
 
  • Like
Reactions: dulemilosevski

BDFreak

Senior Member
Jan 20, 2013
428
2,027
Mymensingh
Advanced ApkTool v2.0.0 By BDFreak

BDFreak_Advanced_Apk_Tool_v2_0_0_1.png


Advanced ApkTool v2.0.0

Changelog :

v2.0.0 :

  • Added Support For JAR Files
  • Added "Zipalign Files" Option
  • Added "Wipe Folders" Option
  • Fully Support Xperia Z1 Compact's Files

Download :

v2.0.0 :

 
Last edited:

WhiteNeo

Senior Member
Feb 13, 2013
2,448
4,097
I can't seem to get this to work on Windows 8.1...
Both JRE and SDK are installed, but still I get an error about missing Java Environment upon starting your tool.. :(
 

Nikunj Kubadia

Senior Member
Feb 22, 2013
101
102
Mumbai
I can't seem to get this to work on Windows 8.1...
Both JRE and SDK are installed, but still I get an error about missing Java Environment upon starting your tool.. :(


Mate!!

You should install Jre ie Java Runtime Environment 32-Bit although you have 32-bit OS or 64-bit OS :) otherwise Apktool will show error ie "Java Missing blah blah."

Here's the Link:- http://filehippo.com/download_jre_32

Download and install and thn restart your PC and check , i hope it will work!! ;) :)

Please Leave Your Feedback :D
 
Last edited:

WhiteNeo

Senior Member
Feb 13, 2013
2,448
4,097
Mate!!

You should install Jre ie Java Runtime Environment 32-Bit although you have 32-bit OS or 64-bit OS :) otherwise Apktool will show error ie "Java Missing blah blah."

Here's the Link:- http://filehippo.com/download_jre_32

Download and install and thn restart your PC and check , i hope it will work!! ;) :)

Please Leave Your Feedback :D

Thanks man! Works now :)

Sent from my LT25i using xda app-developers app
 

glfsd

Senior Member
Jul 31, 2011
586
1,271
www.androidfanzone.forumfree.it
great work! :good:
the only tool that did not give me error to recompile my LGSettings3_2.apk.

small issue, I noticed that when recompile LGSettings3_2.apk, he changes me arrays.xml

from
Code:
        <item><font size=16 align=middle>Small</font></item>
        <item><font size=18 align=middle>Normal</font></item>
        <item><font size=21 align=middle>Large</font></item>
        <item><font size=24 align=middle>Extra large</font></item>

to
Code:
        <item>&lt;font size=16 align=middle>Small&lt;/font></item>
        <item>&lt;font size=18 align=middle>Normal&lt;/font></item>
        <item>&lt;font size=21 align=middle>Large&lt;/font></item>
        <item>&lt;font size=24 align=middle>Extra large&lt;/font></item>
any solution?
 
Last edited:

karo222

Senior Member
Oct 13, 2011
391
43
33

Attachments

  • framework-res.apk_Tue-18-02-2014_12-13.txt
    6.5 KB · Views: 156
  • framework-res.apk_Tue-18-02-2014_12-14.txt
    851 bytes · Views: 82

NewBieSS

Senior Member
Mar 7, 2013
361
156
Capture.png


i am using apktool, cygwin,.... normally. Windows 8 64bit.

Solved :)
 
Last edited:

Wechy77

Senior Member
Dec 26, 2011
1,544
1,732
Here
@BDFreak

I use your great app. Today I tried to update v1 to v2 and norton antivirus tells me, that decompilefile.exe and recompilefile.exe is infected with "Suspicious.Cloud.5" and norton takes it automatic into quarantine. With v1 I have no problem.
 

BDFreak

Senior Member
Jan 20, 2013
428
2,027
Mymensingh
@BDFreak

I use your great app. Today I tried to update v1 to v2 and norton antivirus tells me, that decompilefile.exe and recompilefile.exe is infected with "Suspicious.Cloud.5" and norton takes it automatic into quarantine. With v1 I have no problem.

I can assure you that it's totally false positive detection. There's is no virus in these files. If you have doubt then just use Shift+Delete+Enter.
 

HackitZ

Senior Member
Jul 19, 2009
946
278
North of the Border
www.hackitz.ca
tool is awesome and needed for xperia modders, thanks for the hard work BDFreak.
I do have an issue though.
I have had no problems editing the average apk file, but as soon as i try to edit a semc apk like SemcPhone.apk i get errors when recompiling.
here's my info and log.

base rom i'm pulling apk's from, xperia z1 compact android 4.3 uk generic.
tried framework from xperia z1 compact 4.3
have tried SemcGenericUxpRes, from z1 compact 4.3, xperia zl SemcGenericUxpRes from 4.2.2
I have tried to just decompile edit nothing and just recopmpile and still get this error, success : no

Log
Code:
 Log For : SemcPhone.apk 

 Log Type : Recompiling 

 Log Recorded At : Sat 15-03-2014 8:55:58.71 

 Log Recorded By : Advanced ApkTool v2.0.0 By BDFreak 

------------------------------------------------------ 

invalid resource directory name: C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res/values-mcc454-mnc1000
invalid resource directory name: C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res/values-mcc454-mnc1000-zh-rCN
invalid resource directory name: C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res/values-mcc454-mnc1000-zh-rHK
invalid resource directory name: C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res/values-mcc454-mnc1000-zh-rTW
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\myname~1\AppData\Local\Temp\brut_util_Jar_3424579942404759717.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 18, --version-name, 4.3-22, -F, C:\Users\myname~1\AppData\Local\Temp\APKTOOL1593545305589120450.tmp, -0, arsc, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\2.apk, -S, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res, -M, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\AndroidManifest.xml]
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)
	at brut.androlib.Androlib.buildResources(Androlib.java:363)
	at brut.androlib.Androlib.build(Androlib.java:286)
	at brut.androlib.Androlib.build(Androlib.java:258)
	at brut.apktool.Main.cmdBuild(Main.java:236)
	at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\myname~1\AppData\Local\Temp\brut_util_Jar_3424579942404759717.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 18, --version-name, 4.3-22, -F, C:\Users\myname~1\AppData\Local\Temp\APKTOOL1593545305589120450.tmp, -0, arsc, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\2.apk, -S, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res, -M, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)
	... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\myname~1\AppData\Local\Temp\brut_util_Jar_3424579942404759717.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 18, --version-name, 4.3-22, -F, C:\Users\myname~1\AppData\Local\Temp\APKTOOL1593545305589120450.tmp, -0, arsc, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\2.apk, -S, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res, -M, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:89)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)
	... 6 more

------------------------------------------------------
 
Last edited:

Ticklefish

Inactive Recognized Themer
Oct 27, 2011
6,773
8,633
Hampshire, UK
tool is awesome and needed for xperia modders, thanks for the hard work BDFreak.
I do have an issue though.
I have had no problems editing the average apk file, but as soon as i try to edit a semc apk like SemcPhone.apk i get errors when recompiling.
here's my info and log.

base rom i'm pulling apk's from, xperia z1 compact android 4.3 uk generic.
tried framework from xperia z1 compact 4.3
have tried SemcGenericUxpRes, from z1 compact 4.3, xperia zl SemcGenericUxpRes from 4.2.2
I have tried to just decompile edit nothing and just recopmpile and still get this error, success : no

Log
Code:
 Log For : SemcPhone.apk 

 Log Type : Recompiling 

 Log Recorded At : Sat 15-03-2014 8:55:58.71 

 Log Recorded By : Advanced ApkTool v2.0.0 By BDFreak 

------------------------------------------------------ 

invalid resource directory name: C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res/values-mcc454-mnc1000
invalid resource directory name: C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res/values-mcc454-mnc1000-zh-rCN
invalid resource directory name: C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res/values-mcc454-mnc1000-zh-rHK
invalid resource directory name: C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res/values-mcc454-mnc1000-zh-rTW
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\myname~1\AppData\Local\Temp\brut_util_Jar_3424579942404759717.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 18, --version-name, 4.3-22, -F, C:\Users\myname~1\AppData\Local\Temp\APKTOOL1593545305589120450.tmp, -0, arsc, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\2.apk, -S, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res, -M, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\AndroidManifest.xml]
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)
	at brut.androlib.Androlib.buildResources(Androlib.java:363)
	at brut.androlib.Androlib.build(Androlib.java:286)
	at brut.androlib.Androlib.build(Androlib.java:258)
	at brut.apktool.Main.cmdBuild(Main.java:236)
	at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\myname~1\AppData\Local\Temp\brut_util_Jar_3424579942404759717.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 18, --version-name, 4.3-22, -F, C:\Users\myname~1\AppData\Local\Temp\APKTOOL1593545305589120450.tmp, -0, arsc, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\2.apk, -S, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res, -M, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)
	... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\myname~1\AppData\Local\Temp\brut_util_Jar_3424579942404759717.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 18, --version-name, 4.3-22, -F, C:\Users\myname~1\AppData\Local\Temp\APKTOOL1593545305589120450.tmp, -0, arsc, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -I, C:\android\AdvancedApkTool\1-BDFreak\Frameworks\2.apk, -S, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\res, -M, C:\android\AdvancedApkTool\3-Out\SemcPhone.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:89)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)
	... 6 more

------------------------------------------------------

Have you tried deleting those folders?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 412
    I made this tool specially for the owners of Sony Xperia devices. As in new frimware of Sony when we edit framework-res.apk we get infinite bootloop. I have made some framework mod for Sony devices. That's why people keep PM'ing me how did I edit framework-res.apk. So, here is the solution for them. This tool can be use for other manufacturers too.

    http%3A%2F%2Fs20.postimg.org%2Fb51utr8vx%2FAdvance_Apk_Tool_Portal.png


    Main Features :


    • User friendly
    • Automated Decompiling APK/JAR
    • Automated Recompiling APK/JAR
    • Automated Sign APK/JAR
    • Automated Zipalign APK/JAR
    • No need to copy META-INF folder after recompiling
    • Sony Xperia owners won't face bootloop after recompiling framework-res.apk



    Changelog :

    v4.2.0 :


    • Based on Apktool 2.0.3 (Android Marshmallow Supported)


    v4.1.0 :


    • Based on Apktool 2.0.0-RC3 (Android Lollipop Supported)


    v4.0.0 :


    • Based on Apktool 2.0.0-RC2
    • Added "Only Recompile" Option
    • Added "Recompile And Then Sign" Option
    • Added "Recompile And Then Zipalign" Option
    • Added "Recompile, Sign And Then Zipalign" Option
    • Wiping "Frameworks" Folder Option Added


    v3.0.0 :


    • Based on Apktool 2.0.0-RC1
    • Added "More Menu" Option
    • Added "Decompile All Files" Option
    • Added "Recompile All Files" Option
    • Added "Sign All Files" Option
    • Added "Zipalign All Files" Option


    v2.0.0 :


    • Based on Apktool 2.0.0-Beta9
    • Added Support For JAR Files
    • Added "Zipalign Files" Option
    • Added "Wipe Folders" Option
    • Fully Support Xperia Z1 Compact's Files


    v1.0.0 :


    • Initial Release



    Bugs :


    • You Should Find And Let Me Know (I DIDN'T FIND ANY)



    Download :

    v4.2.0 :


    Mod edit: above link no longer available.
    File may still be available here: https://xdaforums.com/showpost.php?p=69215130&postcount=682






    How To Use :


    • Extract the downloaded file anywhere in your pc
    • Double click on "Advanced ApkTool.exe" to start the tool
    • Copy your framework files to the "2-In" folder & also the apk files you want to decompile
    • Install Framework first (Install OEM specfic framework also)
    • Decompile apk, the decompiled folder can be found inside "3-Out" folder
    • After editing Recompile it, recompiled file should be found inside "4-Done" folder
    • If needed sign the recompiled file, it will replace the recompiled file inside "4-Done" folder
    • You can also zipalign the recompiled file, it will replace the recompiled file inside "4-Done" folder
    • You can wipe any folder easily by wipe folder option
    • You can find more in more menu option



    Thanks To :




    XDA:DevDB Information
    Advanced ApkTool, Tool/Utility for the Android General

    Contributors
    BDFreak

    Version Information
    Status: Stable
    Current Stable Version: v4.2.0
    Stable Release Date: 2016-02-10

    Created 2014-02-07
    Last Updated 2016-02-10
    114
    Screenshots

    Screenshots :

    v4.2.0 :

    BDFreak_Advanced_Apk_Tool_v4_0_2_1.png


    v4.1.0 :

    BDFreak_Advanced_Apk_Tool_v4_0_1_1.png


    v4.0.0 :

    BDFreak_Advanced_Apk_Tool_v4_0_0_1.png


    BDFreak_Advanced_Apk_Tool_v4_0_0_2.png


    BDFreak_Advanced_Apk_Tool_v4_0_0_3.png


    v3.0.0 :

    BDFreak_Advanced_Apk_Tool_v3_0_0_1.png


    BDFreak_Advanced_Apk_Tool_v3_0_0_2.png


    v2.0.0 :

    BDFreak_Advanced_Apk_Tool_v2_0_0_1.png


    BDFreak_Advanced_Apk_Tool_v2_0_0_2.png


    BDFreak_Advanced_Apk_Tool_v2_0_0_3.png


    v1.0.0 :

    BDFreak_Advanced_Apk_Tool_v1_0_0_1.png


    BDFreak_Advanced_Apk_Tool_v1_0_0_2.png


    BDFreak_Advanced_Apk_Tool_v1_0_0_3.png


    BDFreak_Advanced_Apk_Tool_v1_0_0_4.png


    BDFreak_Advanced_Apk_Tool_v1_0_0_5.png


    BDFreak_Advanced_Apk_Tool_v1_0_0_6.png


    BDFreak_Advanced_Apk_Tool_v1_0_0_7.png
    47
    Updated with latest Apktool version 2.2.1.
    13
    Updated with latest Apktool version 2.2.2 (Nougat support)