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!
Jimmy McGee · Mar 2, 2015 at 06:00 am · no comments

HTC One M9 & Samsung Galaxy S6 Unveiled – XDA TV

The HTC One M9 and the Samsung Galaxy S6 were unveiled at Mobile World Congress! That and much more news is covered by Jordan when he reviews all the important stories from this weekend. Included in this weekend's news is the announcement of the Huawei Watch Android Wear device and be sure to check out the article talking about IKEA selling Qi enabled furniture. That's not all that's covered in today's video! Be sure to check out the other videos...

XDA NEWS
Aamir Siddiqui · Mar 2, 2015 at 03:10 am · 2 comments

Sony Xperia Z4 Tablet, The Thinnest 10″ Tablet, Now Official

While the likes of Samsung and HTC were busy announcing their next big things in the mobile market at their Mobile World Congress events, Sony was turning up the heat in the tablet market with the launch of its latest offering, the Xperia Z4 Tablet. Coming with a 10.1" IPS display offering 2560 x 1600 pixel resolution, the Xperia Z4 tablet is the successor to the successful Z2 tablet released in 2014. As a true successor, the Z4 Tablet offers everything...

XDA NEWS
Emil Kako · Mar 1, 2015 at 04:12 pm · no comments

Samsung Galaxy S6 VS HTC One M9: Which Do You Prefer?

After months of anticipation, both the Samsung Galaxy S6 and HTC One M9 have finally been unveiled. Now that we have all seen both of the devices in all their glory, many of us have some decisions to make. Which of the two beasts do you prefer: the Galaxy S6 or the One M9? Let us know which device you plan on buying and why!

DISCUSS
Share This