Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TOOL] APK_OneClick - decompile & disassemble APKs

OP amroush_1800

5th January 2013, 10:52 AM   |  #51  
psychopac's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 8
 
133 posts
Join Date:Joined: Sep 2012
More
Quote:
Originally Posted by amroush_1800

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
The Following User Says Thank You to psychopac For This Useful Post: [ View ]
5th January 2013, 11:23 AM   |  #52  
stumpy352's Avatar
Senior Member
Thanks Meter: 952
 
1,065 posts
Join Date:Joined: Sep 2011
Quote:
Originally Posted by psychopac

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: [ View ]
16th January 2013, 09:46 PM   |  #53  
Logicsupraboy1's Avatar
Member
Thanks Meter: 12
 
49 posts
Join Date:Joined: Jan 2012
More
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??
22nd January 2013, 06:31 AM   |  #54  
Junior Member
Thanks Meter: 1
 
11 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by stumpy352

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: [ View ]
25th January 2013, 01:27 AM   |  #55  
OP Junior Member
Thanks Meter: 167
 
14 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by NCCanesFan

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.
25th January 2013, 02:18 AM   |  #56  
stumpy352's Avatar
Senior Member
Thanks Meter: 952
 
1,065 posts
Join Date:Joined: Sep 2011
Re: [TOOL] APK_OneClick - decompile & disassemble APKs
Quote:
Originally Posted by amroush_1800

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.
26th January 2013, 12:22 PM   |  #57  
OP Junior Member
Thanks Meter: 167
 
14 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by stumpy352

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: [ View ]
27th January 2013, 08:22 PM   |  #58  
OP Junior Member
Thanks Meter: 167
 
14 posts
Join Date:Joined: 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: [ View ]
2nd February 2013, 11:30 PM   |  #59  
OP Junior Member
Thanks Meter: 167
 
14 posts
Join Date:Joined: 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: [ View ]
13th February 2013, 02:07 PM   |  #60  
Senior Member
Thanks Meter: 125
 
903 posts
Join Date:Joined: 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.

Post Reply Subscribe to Thread

Tags
tool
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes