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

[UTIL][Oct 5 2014] Apktool v2.0.0 RC2 - a tool for reverse engineering apk files

OP iBotPeaches

View First Unread
6th July 2012, 04:12 PM   |  #1  
iBotPeaches's Avatar
OP Senior Member
Flag KCK
Thanks Meter: 2,216
 
722 posts
Join Date:Joined: Apr 2011
Donate to Me
More
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:

v2.0.0 RC2 (Released October 5, 2014)
Quote:

  • Added support for APKs with multiple dex files
  • #601 - Made Stringblock thread safe - aluedeke
  • #238 - Fixed truncated UTF-16 strings
  • #196 - Fixed style crash due to malformed styles
  • #603 - Fixed unknown files that are prefixed with standard file names from being ignored
  • #606 - Fixed unknown files being ignored when -r was used
  • #609 - Fixed renamed manifests with (android, com.htc, miui)
  • #626 - Fixed unknown files breaking with non ascii characters
  • #630 - Fixed renamed manifests with (com.lge)
  • #409 - Fixed arrays.xml items being typed incorrectly
  • #512 - Fixed AndroidManifest.xml having null key & value attributes
  • #677 - Fixed ignoring formatted attributes in arrays.xml
  • #675 - Fixed multiple overlapping catches error - JesusFreke
  • #684 - Fixed issue with multiple ResPackages in one ARSC file
  • #682 - Fixed renamed manifests with (yi)
  • #664 - Fixed issue with apks with large `StringPools` failing to decode

Note - This changelog contains changes since 2.0.0 Beta 9. However, I've never posted a v2.0.0 build here yet. For full changes in 2.0.0 see here

Download: https://bitbucket.org/iBotPeaches/ap...l_2.0.0rc2.jar
(aapt is included in the binary as of 2.0.0)


Thread Guidelines
  1. If you don't know the following terms (aapt, apk, java) - then please don't post in this thread.
  2. If you didn't install frameworks (see FrameworkFiles) - then do that first before asking.
  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, Primokorn, muzicfreako


Previous Versions:
apktool v2.0.0 RC2 - http://forum.xda-developers.com/show...postcount=2425
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
Last edited by iBotPeaches; 16th October 2014 at 01:45 PM. Reason: Updated to Apktool v2.0.0 RC2
The Following 596 Users Say Thank You to iBotPeaches For This Useful Post: [ View ]
6th July 2012, 04:47 PM   |  #2  
fisha21's Avatar
Recognized Contributor / Themer
Thanks Meter: 4,066
 
2,229 posts
Join Date:Joined: Nov 2007
Donate to Me
More
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!
Last edited by fisha21; 6th July 2012 at 09:00 PM.
The Following 12 Users Say Thank You to fisha21 For This Useful Post: [ View ]
6th July 2012, 04:55 PM   |  #3  
rtfpessoa's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 662
 
565 posts
Join Date:Joined: Dec 2010
Donate to Me
More
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.
Last edited by rtfpessoa; 6th July 2012 at 04:59 PM.
The Following User Says Thank You to rtfpessoa For This Useful Post: [ View ]
6th July 2012, 05:01 PM   |  #4  
iBotPeaches's Avatar
OP Senior Member
Flag KCK
Thanks Meter: 2,216
 
722 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Quote:
Originally Posted by rtfpessoa

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: [ View ]
6th July 2012, 05:08 PM   |  #5  
rtfpessoa's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 662
 
565 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Quote:
Originally Posted by iBotPeaches

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
The Following User Says Thank You to rtfpessoa For This Useful Post: [ View ]
6th July 2012, 06:46 PM   |  #6  
rtfpessoa's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 662
 
565 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Quote:
Originally Posted by iBotPeaches

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
Last edited by rtfpessoa; 6th July 2012 at 06:50 PM.
The Following User Says Thank You to rtfpessoa For This Useful Post: [ View ]
6th July 2012, 06:48 PM   |  #7  
iBotPeaches's Avatar
OP Senior Member
Flag KCK
Thanks Meter: 2,216
 
722 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Quote:
Originally Posted by rtfpessoa

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: [ View ]
6th July 2012, 06:50 PM   |  #8  
rtfpessoa's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 662
 
565 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Quote:
Originally Posted by iBotPeaches

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.
The Following User Says Thank You to rtfpessoa For This Useful Post: [ View ]
6th July 2012, 06:52 PM   |  #9  
iBotPeaches's Avatar
OP Senior Member
Flag KCK
Thanks Meter: 2,216
 
722 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Quote:
Originally Posted by rtfpessoa

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: [ View ]
6th July 2012, 06:52 PM   |  #10  
rtfpessoa's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 662
 
565 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Quote:
Originally Posted by iBotPeaches

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?
Last edited by rtfpessoa; 6th July 2012 at 06:57 PM.

The Following User Says Thank You to rtfpessoa For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
apktool, apktools, customise apk, decompile, edit apk, recompile, reverse
Previous Thread Next Thread