[TOOL] APK_OneClick - decompile & disassemble APKs

Search This thread

SmartAnd

Member
Oct 26, 2012
25
2
Long Xuyên
www.mobileworld.vn
Decomplie L Launcher.apk not OK !

Please help me decomplie L Launcher.apk
I'm used apktool or apk_Onelick :(
Log
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:491)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
2)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more

An error has occured.
Who can help me decomplie file. Thank's so much !
 

Attachments

  • L_Launcher.apk
    4.7 MB · Views: 63

SmartAnd

Member
Oct 26, 2012
25
2
Long Xuyên
www.mobileworld.vn

lieuliau

Senior Member
Apr 4, 2009
454
29
I had the problem, that .apk file was associated with winrar and because of that it didn't show me the context menu.

Only do this if you know what you are doing!! I'm not responsible for broken systems!!


Solution for Win8 (might be the same on win7 etc):
Many thanks for this solution. Any chance we can make Winrar as default and have this context menu too?
 

kisstom

Senior Member
Nov 4, 2008
105
10
And how can i convert a moified .java file (in source.zip) to .smali and make an .apk file again? editing the code in .smail is too complicated to me :)
 

doreaamon

Member
Mar 20, 2013
26
2
A tool package to decompile & disassemble APKs (android packages).

FEATURES
- All features are integrated into the right-click menu of Windows.​
- Decompile APK classes to Java source codes.​
- Disassemble APK to smali code and decode its resources.​
- Install APK to phone by right-click.​
- Recompile APK after editing smali code and/or resources.​
During recompile:​
- Optimize png images​
- Sign apks​
- Zipalign​


REQUIREMENTS

Java Runtime Environment (JRE) must be installed.​



3.PNG



1.png



2.png


HOW TO INSTALL THE PACKAGE

* Extract the attached archieve to hard disk.​
* Open the extracted folder.​
* double-click 'shellext-add.cmd'​


HOW TO UNINSTALL THE PACKAGE

* Run shellext-remove.cmd & you are done.​


ITEMS ADDED TO RIGHT-CLICK CONTEXT MENU

APK
Browse Java Code of APK​
Disassemble APK and Decode Resources​
Install APK to Phone​

Folder
Recompile APK from Disassembly​



HOW TO DISASSEMBLE APK

Suppose you want to disassemble yourapp.apk, all you have to do is:​
* right-click 'yourapp.apk' file​
* select -> 'Disassemble APK and Decode Resources'​
A folder named 'yourapp-disasm' will be created in the same folder as​
the apk. It will contain the smali disassembly and decoded resources .​
You can modify the smali code and/or resources inside that folder.​
For instant access to methods and fields and for better understanding​
of the smali disassembly, you can browse the hierarchy of reconstructed​
Java source code in the JD-GUI Java Decompiler. The Java source codes​
will be displayed like a Java project in IDE.​
* right-click 'yourapp.apk' file​
* select -> 'Browse Java Code of APK'​


HOW TO RECOMPILE APK FROM DISASSEMBLY

To assemble, sign and zipalign to a new APK, wether you modified the​
source code and/or resources or not:​
* right click 'yourapp-disasm' folder​
* select -> 'Recompile APK from Disassembly'​


HOW TO INSTALL APK TO PHONE

To install a non-system apk from pc (keeping its data if it was already​
installed on the phone)​
* connect android phone to pc via usb cable​
* right-click an APK in windows explorer​
* select -> 'Install APK to Phone'​


NOTES ABOUT SYSTEM APKS

Manufacturer's framework files:
Standard framework is embedded into apktool, so you don't need to do​
anything for most apk files. But some manufacturers, for example HTC,​
add their own framework files and use them in system apps. Apktool​
needs these framework files to decode and build apks. To use apktool​
against such apps, you must pull framework from a device and​
install/register it to apktool.​
META-INF dir in resulting apk:
This dir contains apk signatures mostly and after modifying apk it is​
no longer has valid signatures. you have to be careful when putting a​
recompiled system apk back on your device. Pushing that new apk to your​
phone will result in Force Closes (FCs).​


TOOLS INCLUDED

* android-apktool 1.3.2 by Brut.all - http://code.google.com/p/android-apktool/downloads/list
* dex2jar-0.0.7.7-SNAPSHOT - http://code.google.com/p/dex2jar/downloads/list


HOW TO UPDATE INCLUDED TOOLS

* Peroidically check for updates to the included tools.​
* Web links are provided also inside the 'tools' folder.​
* When an update is available, download and extract it to the​
corresponding folder inside the 'tools' folder.​


PACKAGE UPDATE v3 - AUGUST 2012

* android-apktool 1.4.3​
* dex2jar-0.0.9.9​
* Added Recompile from source feature​


PACKAGE UPDATE v4 - JANUARY 2013

* android-apktool 1.5.1​
* dex2jar-0.0.9.12-a​
* jd-gui-0.3.5.windows​
* Modified: names of menu items for more clarity​
* Added: optimize png images, sign and zipalign during recompiling.​
* Added: Install APK to Phone​


PACKAGE UPDATE v4.1 - 27 JANUARY 2013

* Fixed: package fails to install properly when APK extension is currently assigned to another app.​
* Fixed: minor fixes when selecting 'Recompile APK from Disassembly'​


PACKAGE UPDATE v4.2 - 2 FEBRUARY 2013

* Updated: android-apktool 1.5.2​
* Fixed: the install and uninstall scripts have become more UAC friendly.​


Enjoy ;)
amroush_1800
hello you
tool support android 10-11-12 ? thanks
 

Top Liked Posts

  • There are no posts matching your filters.
  • 174
    A tool package to decompile & disassemble APKs (android packages).

    FEATURES
    - All features are integrated into the right-click menu of Windows.
    - Decompile APK classes to Java source codes.
    - Disassemble APK to smali code and decode its resources.
    - Install APK to phone by right-click.
    - Recompile APK after editing smali code and/or resources.
    During recompile:
    - Optimize png images
    - Sign apks
    - Zipalign​

    REQUIREMENTS

    Java Runtime Environment (JRE) must be installed.​



    3.PNG



    1.png



    2.png


    HOW TO INSTALL THE PACKAGE

    * Extract the attached archieve to hard disk.
    * Open the extracted folder.
    * double-click 'shellext-add.cmd'​


    HOW TO UNINSTALL THE PACKAGE

    * Run shellext-remove.cmd & you are done.​


    ITEMS ADDED TO RIGHT-CLICK CONTEXT MENU

    APK
    Browse Java Code of APK
    Disassemble APK and Decode Resources
    Install APK to Phone​

    Folder
    Recompile APK from Disassembly​


    HOW TO DISASSEMBLE APK

    Suppose you want to disassemble yourapp.apk, all you have to do is:
    * right-click 'yourapp.apk' file
    * select -> 'Disassemble APK and Decode Resources'

    A folder named 'yourapp-disasm' will be created in the same folder as
    the apk. It will contain the smali disassembly and decoded resources .
    You can modify the smali code and/or resources inside that folder.

    For instant access to methods and fields and for better understanding
    of the smali disassembly, you can browse the hierarchy of reconstructed
    Java source code in the JD-GUI Java Decompiler. The Java source codes
    will be displayed like a Java project in IDE.
    * right-click 'yourapp.apk' file
    * select -> 'Browse Java Code of APK'​


    HOW TO RECOMPILE APK FROM DISASSEMBLY

    To assemble, sign and zipalign to a new APK, wether you modified the
    source code and/or resources or not:
    * right click 'yourapp-disasm' folder
    * select -> 'Recompile APK from Disassembly'​


    HOW TO INSTALL APK TO PHONE

    To install a non-system apk from pc (keeping its data if it was already
    installed on the phone)
    * connect android phone to pc via usb cable
    * right-click an APK in windows explorer
    * select -> 'Install APK to Phone'​


    NOTES ABOUT SYSTEM APKS

    Manufacturer's framework files:
    Standard framework is embedded into apktool, so you don't need to do
    anything for most apk files. But some manufacturers, for example HTC,
    add their own framework files and use them in system apps. Apktool
    needs these framework files to decode and build apks. To use apktool
    against such apps, you must pull framework from a device and
    install/register it to apktool.
    for a solution see, http://code.google.com/p/android-apktool/wiki/FrameworkFiles

    META-INF dir in resulting apk:
    This dir contains apk signatures mostly and after modifying apk it is
    no longer has valid signatures. you have to be careful when putting a
    recompiled system apk back on your device. Pushing that new apk to your
    phone will result in Force Closes (FCs).
    for a solution see, http://code.google.com/p/android-apktool/wiki/FAQ


    TOOLS INCLUDED



    HOW TO UPDATE INCLUDED TOOLS

    * Peroidically check for updates to the included tools.
    * Web links are provided also inside the 'tools' folder.
    * When an update is available, download and extract it to the
    corresponding folder inside the 'tools' folder.​


    PACKAGE UPDATE v3 - AUGUST 2012

    * android-apktool 1.4.3
    * dex2jar-0.0.9.9
    * Added Recompile from source feature​


    PACKAGE UPDATE v4 - JANUARY 2013

    * android-apktool 1.5.1
    * dex2jar-0.0.9.12-a
    * jd-gui-0.3.5.windows
    * Modified: names of menu items for more clarity
    * Added: optimize png images, sign and zipalign during recompiling.
    * Added: Install APK to Phone​


    PACKAGE UPDATE v4.1 - 27 JANUARY 2013

    * Fixed: package fails to install properly when APK extension is currently assigned to another app.
    * Fixed: minor fixes when selecting 'Recompile APK from Disassembly'​


    PACKAGE UPDATE v4.2 - 2 FEBRUARY 2013

    * Updated: android-apktool 1.5.2
    * Fixed: the install and uninstall scripts have become more UAC friendly.​


    Enjoy ;)
    amroush_1800
    7
    Here's my modified version working with the latest apktool v2.0.4rc4:
    PACKAGE UPDATE v4.4-UNOFFICIAL - 30 MARCH 2015 by Kameo/XDA
    * Updated: android-apktool 2.0.0 rc4
    * Modified: buildapk.cmd, decompile.cmd, disassemble.cmd to match the new requirements induced in apktool v2.xx.
    * Added: renameapk-min.cmd which allows to rename boggus apk filename.
    * Modified: shellext-add.cmd and shellext-remove.cmd to include renameapk-min.cmd.

    Credits to their respective owners.

    Edit:
    58 downloads, 2 Thanks, nice ratio :facepalm:
    4
    Apk OneClick v4.3 UNOFFICIAL

    New version out: Apk OneClick v4.3 UNOFFICIAL

    PACKAGE UPDATE v4.3-UNOFFICIAL - 14 DECEMBER 2014
    • dex2jar-0.0.9.15
    • jd-gui-0.3.6.windows

    Download Apk_OneClick.v4.3_UNOFFICIAL.zip from attachment.
    4
    Hi amroush_1800, thanks for sharing this tool ! Thumbs up !

    If you like it, hit the big THANKS button :)
    2
    nice tool.. i just wish it could decompile classes.dex

    classes.dex will be decompiled into smali & java source code.