Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,898 Members 50,855 Now Online
XDA Developers Android and Mobile Development Forum

[UTIL][Feb 02 2013] Apktool v1.5.2 - a tool for reverse engineering apk files

Tip us?
 
iBotPeaches
Old
(Last edited by iBotPeaches; 8th February 2014 at 06:13 PM.) Reason: Updated to Apktool v1.5.2
#1  
iBotPeaches's Avatar
Senior Member - OP
Thanks Meter 2,095
Posts: 701
Join Date: Apr 2011
Location: KCK

 
DONATE TO ME
Default [UTIL][Feb 02 2013] Apktool v1.5.2 - a tool for reverse engineering apk files

Quote:
Originally Posted by Brut.all, Updated by iBotPeaches
It is a tool for reengineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with app easier because of project-like files structure and automation of some repetitive tasks like building apk, etc.

It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes. Just try to be fair with authors of an app, that you use and probably like.

Features:
  • decoding resources to nearly original form
  • smali debugging: SmaliDebugging
  • helping with some repetitive tasks

Links:

v1.5.2 (Released February 2 - 2013) Codename: Bug Fixes
  • Fixed ( issue #299 ) - output smali filename errors to screen during rebuild instead of filestream
  • Only show the --aapt / -a info in verbose mode.
  • Fixed ( issue #392 ) - Don't crash out if .git folder isn't present. Use SNAPSHOT-DEV instead.
  • Fixed ( issue #67 ) - Only store compressed resources.arsc if original was compressed, otherwise STORE.
  • Moved build.gradle files to each sub-project, more organization
  • Fixed ( issue #394 ) - Prevented duplicated files in final jar which saved around 1.2mb.
  • Added Proguard to drop final jar size from 6.2mb to 2.6mb.
  • Fixed ( issue #395 ) - Added check for "aapt" in unit-tests.
  • Added ability to use "--frame-path" on [if|install-framework]
  • Fixed renaming of ".r.9.png" images -> ".9.png".
  • Added ability to use --version to print out Apktool version

Downloads:

Jar : http://android-apktool.googlecode.co...l1.5.2.tar.bz2 (v1.5.2) 105c137b352aa3270b85819f863a6fa1
aapt: http://code.google.com/p/android-apktool/downloads/list



Thread Rules
  1. If you don't know the following terms (apk signing, aapt, apk, java) - then please don't post in this thread.
  2. If you didn't install frameworks (see FrameworkFiles) - then don't post here.
  3. If you want to engage in developer discussions - then post here.
  4. If you want to thank someone or express gratitude - sure why not post here.
  5. If your building from source - do not post those snapshot builds in this thread as we mix builds and makes users confused.
  6. If you believe you've found a bug, I'd prefer you post here: Bug List - but I won't be mad if you post it in this thread.
  7. If you send me a PM about Apktool support, I will ignore it.
  8. If you post any stacktraces, error logs or console output. Use Ubuntu Paste or Pastebin. Don't clutter our thread with 200 line posts.
  9. If you need support. Search this thread. If no luck, post your problem, but please include either an apk / output / log.




Donations:
fisha1, djdarkknight96, Gerard, rquiett, myn, nick1313, robm1911, Accidd, allyourbase, NCandiano, Noxious Ninja, Darkman_RS, XperienceD


Previous Versions:
apktool v1.5.2 - http://forum.xda-developers.com/show...postcount=1391
apktool v1.5.1 - http://forum.xda-developers.com/show...postcount=1180
apktool v1.5.1 PR3 - http://forum.xda-developers.com/show...postcount=1123
apktool v1.5.1 PR2 - http://forum.xda-developers.com/show...postcount=1084
apktool v1.5.1 PR1 - http://forum.xda-developers.com/show...&postcount=828
apktool v1.5.0 - http://forum.xda-developers.com/show...&postcount=382
apktool v1.4.10 - http://forum.xda-developers.com/show...&postcount=321
apktool v1.4.9 - http://forum.xda-developers.com/show...&postcount=131
apktool v1.4.8 - http://forum.xda-developers.com/show...5&postcount=28
The Following 572 Users Say Thank You to iBotPeaches For This Useful Post: [ Click to Expand ]
 
fisha21
Old
(Last edited by fisha21; 6th July 2012 at 08:00 PM.)
#2  
fisha21's Avatar
Recognized Contributor / Themer
Thanks Meter 3,972
Posts: 2,202
Join Date: Nov 2007

 
DONATE TO ME
Thanks for posting this, great to see someone carrying on brut.all's awesome work!

Sadly, still won't play nicely with some HTC One apks, but I know that's HTC's fault not yours

Look forward to seeing what you've got coming up...

EDIT: Donation sent!
The Following 12 Users Say Thank You to fisha21 For This Useful Post: [ Click to Expand ]
 
rtfpessoa
Old
(Last edited by rtfpessoa; 6th July 2012 at 03:59 PM.)
#3  
rtfpessoa's Avatar
Senior Member
Thanks Meter 662
Posts: 565
Join Date: Dec 2010
Location: Lisbon

 
DONATE TO ME
Good work!!!
I started testing and i still have problems with framework-miui-res, any tip?
I think the errors are those about change ex: <id to <item type="id"
Isn't that fixed in this version?

NOTE: If you don't what this kind of questions here, just say it np.
Phones:
  • Google Nexus 5
  • Xiaomi Mione Plus
Tablet:
  • Google Nexus 7 (2013)
The Following User Says Thank You to rtfpessoa For This Useful Post: [ Click to Expand ]
 
iBotPeaches
Old
#4  
iBotPeaches's Avatar
Senior Member - OP
Thanks Meter 2,095
Posts: 701
Join Date: Apr 2011
Location: KCK

 
DONATE TO ME
Quote:
Originally Posted by rtfpessoa View Post
Good work!!!
I started testing and i still have problems with framework-miui-res, any tip?
I think the errors are those about change ex: <id to <item type="id"
Isn't that fixed in this version?

NOTE: If you don't what this kind of questions here, just say it np.

Yeah that should be fixed. The only times it seemed to fail is when the value of that item was @null or null. Which I hardcoded a fix in for. Send me that APK.
The Following 12 Users Say Thank You to iBotPeaches For This Useful Post: [ Click to Expand ]
 
rtfpessoa
Old
#5  
rtfpessoa's Avatar
Senior Member
Thanks Meter 662
Posts: 565
Join Date: Dec 2010
Location: Lisbon

 
DONATE TO ME
Quote:
Originally Posted by iBotPeaches View Post
Yeah that should be fixed. The only times it seemed to fail is when the value of that item was @null or null. Which I hardcoded a fix in for. Send me that APK.
Here is the zip with both framework-res and framework-miui-res
To compile framework-res i just need to fix that stuff about %d %d to %1$d %2$d right?
But in framework-miui-res it is saying that item stuff problem.

https://www.dropbox.com/s/djqwcacb5uyqsgc/frame.zip
Phones:
  • Google Nexus 5
  • Xiaomi Mione Plus
Tablet:
  • Google Nexus 7 (2013)
The Following User Says Thank You to rtfpessoa For This Useful Post: [ Click to Expand ]
 
rtfpessoa
Old
(Last edited by rtfpessoa; 6th July 2012 at 05:50 PM.)
#6  
rtfpessoa's Avatar
Senior Member
Thanks Meter 662
Posts: 565
Join Date: Dec 2010
Location: Lisbon

 
DONATE TO ME
Quote:
Originally Posted by iBotPeaches View Post
Yeah that should be fixed. The only times it seemed to fail is when the value of that item was @null or null. Which I hardcoded a fix in for. Send me that APK.
BTW, i cannot decompile miui.com roms with smali1.3.3 it give errors when deodexing apks. (http://pastebin.com/Q653Thdr)
I'm using the one from MiCode repos
Phones:
  • Google Nexus 5
  • Xiaomi Mione Plus
Tablet:
  • Google Nexus 7 (2013)
The Following User Says Thank You to rtfpessoa For This Useful Post: [ Click to Expand ]
 
iBotPeaches
Old
#7  
iBotPeaches's Avatar
Senior Member - OP
Thanks Meter 2,095
Posts: 701
Join Date: Apr 2011
Location: KCK

 
DONATE TO ME
Quote:
Originally Posted by rtfpessoa View Post
BTW, i cannot decompile miui.com roms with smali1.3.3 it give errors when deodexing apks.
I'm using the one from MiCode repos
Try these: http://miui.connortumbleson.com/other/jf/

Take the smali/baksmali that end in dev-jar-with-dependencies-small.jar

It will be w/ dependencies, but then proguard removes the bloat.
The Following 2 Users Say Thank You to iBotPeaches For This Useful Post: [ Click to Expand ]
 
rtfpessoa
Old
#8  
rtfpessoa's Avatar
Senior Member
Thanks Meter 662
Posts: 565
Join Date: Dec 2010
Location: Lisbon

 
DONATE TO ME
Quote:
Originally Posted by iBotPeaches View Post
Try these: http://miui.connortumbleson.com/other/jf/

Take the smali/baksmali that end in dev-jar-with-dependencies-small.jar

It will be w/ dependencies, but then proguard removes the bloat.
I tried the not small version and got the same. Will try that now.
Phones:
  • Google Nexus 5
  • Xiaomi Mione Plus
Tablet:
  • Google Nexus 7 (2013)
The Following User Says Thank You to rtfpessoa For This Useful Post: [ Click to Expand ]
 
iBotPeaches
Old
#9  
iBotPeaches's Avatar
Senior Member - OP
Thanks Meter 2,095
Posts: 701
Join Date: Apr 2011
Location: KCK

 
DONATE TO ME
Quote:
Originally Posted by rtfpessoa View Post
I tried the not small version and got the same. Will try that now.
There is some new smali/baksmali in dev that will be ready soon. Are the errors about magic values? Or opCodes? or regCount?
The Following 3 Users Say Thank You to iBotPeaches For This Useful Post: [ Click to Expand ]
 
rtfpessoa
Old
(Last edited by rtfpessoa; 6th July 2012 at 05:57 PM.)
#10  
rtfpessoa's Avatar
Senior Member
Thanks Meter 662
Posts: 565
Join Date: Dec 2010
Location: Lisbon

 
DONATE TO ME
Quote:
Originally Posted by iBotPeaches View Post
There is some new smali/baksmali in dev that will be ready soon. Are the errors about magic values? Or opCodes? or regCount?
http://pastebin.com/Q653Thdr

I had the same problem with that smali too.
Any tip?
Phones:
  • Google Nexus 5
  • Xiaomi Mione Plus
Tablet:
  • Google Nexus 7 (2013)

The Following User Says Thank You to rtfpessoa For This Useful Post: [ Click to Expand ]
Tags
apktool, apktools, customise apk, decompile, edit apk, recompile, reverse
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes