Mike Szczys · May 5, 2013 at 10:00 pm

Decompile, Recompile, and Sign APKs by Example

Last month, we saw a new tool that made it painless to edit the contents of Classes.dex. If you were drawn in by that prospect but couldn’t quite get the pieces to work, I think you’ll appreciate following the example that XDA Recognized Themer/Contributor Rizal Lovins put together. He takes one step back to look at the bigger picture, giving a start-to-finish walkthrough for decompiling, editing, recompiling, and signing an APK file. The necessary tools are pretty much the same (Windows, Java, Android SDK, Apktool, and a text editor) so that you may pick up where you left off with your smali and Baksmali editing experiments.

To use Apktool to decompile an APK, you need to also have the support packages it uses (ie: framework-res.apk). After issuing a few commands, Apktool will spit out the files hidden within and it’s time to start editing. Rizal then goes on to show how to package everything back up and resign the edited app. Check out the original thread for full details.

The biggest benefit of publishing guides like this one is that the community can learn and improve upon them. XDA Recognized Themer Ibanez7 did just that. His thread, which mentions Rizal’s work as a reference, demonstrates how to use the same techniques to change the font color and edit the activity title bar of an app.

 

 


_________
Want something on the XDA Portal? Send us a tip!

Mike Szczys

szczys is an editor on XDA-Developers, the largest community for Android users. Mike Szczys is a professional musician but spends all his free time working with hobby electronics. As Contributing Editor for Hackaday.com he became interested in Android as some of the early hardware hacks started popping up on the Internet. What followed was a gradually rising addiction to all things Android.
Jimmy McGee · Mar 27, 2015 at 07:00 am · 3 comments

Droid Turbo Rooted, Bezel-less Oppo R7 Seen – XDA TV

Oppo has demoed the bezel-less smartphone called the "R7!" That and much more news is covered by Jordan when he reviews all the important stories from this week. Included in this week's news is the announcement of Google's internal code building tool is being having its source opened and be sure to check out the article talking about Android 5.1 factory images for the Nexus 5 and 6! That's not all that's covered in today's video! Jordan talks about the...

XDA NEWS
Mathew Brack · Mar 26, 2015 at 10:09 pm · 16 comments

LG G4 Note Leaks

T-Mobile employee and XDA user s3rv1cet3ch has leaked images that he claims are of the upcoming LG G4 Note, LG's answer to the Samsung Note series and 'big brother' to the G4.  LG CEO Cho has been quoted as saying at a press meeting that the company would unveil the next flagship smartphone, G4, in the second quarter, and another high-end product in the second half. With the second quarter now just days away we could finally have a few hints of...

XDA NEWS
Mathew Brack · Mar 26, 2015 at 06:07 pm · 3 comments

HTC M9 Roundup: Availability and Prices

The HTC One M9, Available in both 'Gold on Silver' and 'Metal Gray' colors will be available for sale in stores across the US on April 10th, however most carriers are starting preorders tomorrow on March 27th. No matter which network you order yours from you will be covered by HTC's new Uh-Oh service. Throughout the day today we have seen just as many announcements from carriers regarding pre-order information and prices for Samsung's new flagships the Galaxy S6 and S6 Edge. If...

XDA NEWS
Share This