5,594,564 Members 33,119 Now Online
XDA Developers Android and Mobile Development Forum

[TOOL] APK_OneClick - decompile & disassemble APKs

Tip us?
 
psychopac
Old
#51  
Senior Member
Thanks Meter 6
Posts: 114
Join Date: Sep 2012
Location: New Delhi
Quote:
Originally Posted by amroush_1800 View Post
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-ap...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
its better to say "I'll try again" than to say "I failed"
The Following User Says Thank You to psychopac For This Useful Post: [ Click to Expand ]
 
stumpy352
Old
#52  
stumpy352's Avatar
Senior Member
Thanks Meter 940
Posts: 996
Join Date: Sep 2011
Quote:
Originally Posted by psychopac View Post
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.
The Following User Says Thank You to stumpy352 For This Useful Post: [ Click to Expand ]
 
Logicsupraboy1
Old
#53  
Logicsupraboy1's Avatar
Member
Thanks Meter 12
Posts: 49
Join Date: Jan 2012
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(ResCo nfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResCo nfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(AR SCDecoder.java:196)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(A RSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARS CDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage( ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(AR SCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCD ecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackages FromApk(AndrolibRes
ources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(An drolibResources.jav
a:50)
at brut.androlib.res.AndrolibResources.getResTable(An drolibResources.jav
a:43)
at brut.androlib.Androlib.getResTable(Androlib.java:4 4)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.ja va: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
Old
#54  
Junior Member
Thanks Meter 1
Posts: 11
Join Date: Apr 2011
Quote:
Originally Posted by stumpy352 View Post
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.
The Following User Says Thank You to NCCanesFan For This Useful Post: [ Click to Expand ]
 
amroush_1800
Old
#55  
Junior Member - OP
Thanks Meter 140
Posts: 14
Join Date: Nov 2010
Quote:
Originally Posted by NCCanesFan View Post
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.
 
stumpy352
Old
#56  
stumpy352's Avatar
Senior Member
Thanks Meter 940
Posts: 996
Join Date: Sep 2011
Default Re: [TOOL] APK_OneClick - decompile & disassemble APKs

Quote:
Originally Posted by amroush_1800 View Post
Please use the latest version of the tool Apk_OneClick.v4.zip.
It fixes most of the errors encountered during setup.
Does it have updated framework for jelly bean apks?

....memoirs of a flash addict.
 
amroush_1800
Old
#57  
Junior Member - OP
Thanks Meter 140
Posts: 14
Join Date: Nov 2010
Quote:
Originally Posted by stumpy352 View Post
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-ap...FrameworkFiles for more info.
The Following 2 Users Say Thank You to amroush_1800 For This Useful Post: [ Click to Expand ]
 
amroush_1800
Old
#58  
Junior Member - OP
Thanks Meter 140
Posts: 14
Join Date: Nov 2010
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'
The Following User Says Thank You to amroush_1800 For This Useful Post: [ Click to Expand ]
 
amroush_1800
Old
#59  
Junior Member - OP
Thanks Meter 140
Posts: 14
Join Date: Nov 2010
PACKAGE UPDATE v4.2 - 2 FEBRUARY 2013

* Updated: android-apktool 1.5.2
* Fixed: the install and uninstall scripts have become more UAC friendly.
The Following User Says Thank You to amroush_1800 For This Useful Post: [ Click to Expand ]
 
aamir123
Old
#60  
Senior Member
Thanks Meter 116
Posts: 846
Join Date: Dec 2010
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(Abst ractDirectory.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.

Tags
tool
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes