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. View szczys's posts and articles here.
Jimmy McGee · May 6, 2015 at 06:00 am · 4 comments

Vinsic 20,000mAh Ultra Slim Power Bank Giveaway

We have covered a lot of Android Accessories here on XDA TV. Mostly because we realize that there are not many phones out there designed specifically with us in mind. So we get powerful phones that don’t have the best speakers or batteries. To resolve this issue we can grab an accessory to fill the gap. In this episode of XDA TV, Producer Jordan reviews the Vinsic 20,000mAh Ultra Slim Power Bank. This device provides a great big helping of...

XDA NEWS
Mathew Brack · May 5, 2015 at 04:02 pm · 3 comments

T-Mobile Steps Up The War Against Verizon

T-Mobile has today launched a new attack on Verizon under the tagline of “Never Settle For Verizon” complete with eight new adverts and risk free trials for their customers. This is in retaliation to the new campaign from Verizon sharing the same name as One Plus's "Never Settle".     Following the latest “Never Settle” advert campaign from Verizon, T-mobile has surprisingly agreed, you shouldn't settle … For Verizon and to reinforce this point they have launched no less than eight...

XDA NEWS
Faiz Malkani · May 5, 2015 at 01:01 pm · 4 comments

Google #StepInsideAdWords Event Livestream

Ahead of the annual I/O conference scheduled to take place later this month, the Google AdWords team is set to unveil a host of new products aimed at better mobile experiences, improved event-tracking, scalability and more. Yesterday, a video highlighting the upcoming features was launched on the AdWords blog, and the event itself is scheduled to take place today at 9:30 AM PST / 12:30 PM EST. You can watch the live stream right here on this page, and while it doesn't require registration....

XDA NEWS
Share This