[TOOL] APK_OneClick - decompile & disassemble APKs

Search This thread

caprock

Member
Aug 6, 2012
8
2
SONORA, Calif
Thanks stumpy352,

Used the Apk_OneClick.v3.rar w/o any edits, and installed to c:\ as directed.

Now I do get the Recompile APK from source menu with Right Click.

Also, used the ZipSigner 2 program on the Android APK file to create a signed version. The resulting APK file does load and execute as expected.:cowboy:

It appears that the Decompile & Recompile processes are intact.
 
  • Like
Reactions: C-Dev and stumpy352

WarlockW

Senior Member
Dec 30, 2007
1,249
658
Minnesota
WOW .. Cool .. Nice job!

Very Nice .. Job On this :)

would it be possible to add : Sign APK
To The right click List ?

Or I can add it if I could find the correct command :cool:
To add it to: shellext-add.cmd

Again .. Nice Job :)
 
Last edited:

Josehg

Senior Member
Jul 28, 2012
135
64
When I right click an apk I am not getting any option to decompile apk.

Try this I wrote down on a previous post, it's not what we expect but it works:

Right click over the apk. Open with..., Choose predetermined program.., Browse, navigate till ...tools folder and select "decompile".

That's a literal translation from my Spanish options on W7, could be small differences.

Hope it helps.

Enviado desde mi GT-I9100 usando Forum Runner
 

psychopac

Senior Member
Sep 12, 2012
849
225
New Delhi
Moto G4 Plus
Moto G5 Plus
A tool package to decompile & disassemble APKs (android packages).

New feature in v3: Recompile APK from source.

FEATURES
- Decompiling Java classes & methods to a readable Java source code.
- Disassembly to smali instructions of the Dalvik VM.
- Decoding of resources.
- Output can be edited & then recompiled.
- Portable install.
- Integration into Windows explorer context-menu.

HOW TO INSTALL
* Extract the attached archieve to a folder.
* Open the extracted folder & run shellext-add.cmd
* if some errors occur during install:
- Open Windows Control Panel -> User Account Control Settings
- Set the slider to 'Never notify'
- Reboot Windows
- re-run shellext-add.cmd

HOW TO UNINSTALL
* Run shellext-remove.cmd & you are done.

HOW TO USE
* Right-click apk file in Windows explorer and select 'Decompile APK'.
* A folder containing the output will be created in the same directory as the APK.

HOW TO RECOMPILE APK
* Modify the smali code or resources
* Right-click xxx_decompiled folder and select > Recompile APK from source

TOOLS INCLUDED
* android-apktool 1.3.2 by Brut.alll
* dex2jar-0.0.7.7-SNAPSHOT
* jd-gui-0.3.3.windows

TOOLS UPDATE - AUGUST 2012
* android-apktool 1.4.3 - https://code.google.com/p/android-apktool/downloads/list
* dex2jar-0.0.9.9 - https://code.google.com/p/dex2jar/downloads/list
* Added Recompile from source feature

Enjoy ;)
amroush_1800

installed successfully and rebooted but still not getting the right click options
 
  • Like
Reactions: NCCanesFan

stumpy352

Senior Member
Sep 20, 2011
2,000
1,267
installed successfully and rebooted but still not getting the right click options

Make sure you use the second download. And extract the folder to the root of your C:/ directory & run the .exe as administrator. Only reason it wouldn't work is if you have previously selected a program as default to open files. If so, you can right click, 'open with', select decompile. You can set decompile as default also, so all you have to do is double click the apk & it will decompile automatically.

....memoirs of a flash addict.
 
  • Like
Reactions: carl1961

Logicsupraboy1

Senior Member
Jan 4, 2012
51
12
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x7f0201c1 drawable/status_bar_background, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)

An error has occured while decompiling...
existing..

Press any key to continue . . .







Any help??
 

NCCanesFan

Member
Apr 7, 2011
11
1
Make sure you use the second download. And extract the folder to the root of your C:/ directory & run the .exe as administrator. Only reason it wouldn't work is if you have previously selected a program as default to open files. If so, you can right click, 'open with', select decompile. You can set decompile as default also, so all you have to do is double click the apk & it will decompile automatically.

....memoirs of a flash addict.

By "second download", I believe stumpy352 is referring to the Apk_OneClick.rar. The Apk_OneClick.zip is missing the recompile.cmd and associated registry adds in the shellext-add.cmd.

I used the Apk_OneClick.rar file and now have "Recompile APK from source" shortcut from the Right Click menu.

Thanks amroush_1800 for the great tool.
 
  • Like
Reactions: stumpy352

amroush_1800

Member
Nov 26, 2010
14
186
By "second download", I believe stumpy352 is referring to the Apk_OneClick.rar. The Apk_OneClick.zip is missing the recompile.cmd and associated registry adds in the shellext-add.cmd.

I used the Apk_OneClick.rar file and now have "Recompile APK from source" shortcut from the Right Click menu.

Thanks amroush_1800 for the great tool.

Please use the latest version of the tool Apk_OneClick.v4.zip.
It fixes most of the errors encountered during setup.
 

amroush_1800

Member
Nov 26, 2010
14
186
Does it have updated framework for jelly bean apks?

....memoirs of a flash addict.

apktool 1.5.1 adds Android 4.2 support. yes it supports Jelly Bean
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. To use apktool against such apps, you must pull framework from a device and install/register it to apktool.
If you want to disassemble a jelly bean system apk, please see https://code.google.com/p/android-apktool/wiki/FrameworkFiles for more info.
 

amroush_1800

Member
Nov 26, 2010
14
186
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'
 
  • Like
Reactions: carl1961

amroush_1800

Member
Nov 26, 2010
14
186
PACKAGE UPDATE v4.2 - 2 FEBRUARY 2013

* Updated: android-apktool 1.5.2
* Fixed: the install and uninstall scripts have become more UAC friendly.
 
  • Like
Reactions: carl1961

aamir123

Senior Member
Dec 24, 2010
1,014
142
I keep getting recompile issues no matter what program/method I use. Here is the log when I use this method:

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more

An error has occured.

Existing...
Press any key to continue . . .


anybody know what to do? Btw I'm using the galaxy s3 and I'm trying to change a value in an xml in the browser. Even if I don't change anything I have a problem recompiling.
 

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.