Will Verduzco · Sep 28, 2013 at 04:00 pm

Quickly Optimize APK and Classes.dex with GOptimize

If you’re trying to minimize your load times by lowering I/O time, optimizing your applications’ resources may be worth looking into. Naturally, loading smaller APKs leads to less time spent reading the application data. With any form of compressed data, there eventually becomes a tradeoff in compute versus read time in higher levels of compression, but for the most part application loads and general device performance seems to be limited by I/O rather than compute performance.

For this reason, XDA Senior Member gu5t3r created a simple BASH script to help you quickly optimize your applications. It mainly works by compressing your PNGs more efficiently. However, it skips the pesky NinePatch files in order to prevent potential force closes. For PNG compression, the tool uses a combination of TruePNG, pngout, and DeflOpt, and gu5t3r claims that it will result in a net halving of storage space compared to the more standard OptiPNG compression.

The script comes in the form of a Cygwin-based BASH script, and it comes with all of the executables you need to get started easily. Users in the thread have reported significant decreases in file size with no loss in functionality. Will it make any actual noticeable difference in performance? That depends on a number of variable such as your device’s I/O speed, CPU power, and application size. That said, it can’t hurt to try.

Make your way over to the utility thread to get in on the action.

[Thanks to Senior Member ct_moi for the tip!]


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

Will Verduzco

willverduzco is an editor on XDA-Developers, the largest community for Android users. Will Verduzco is the Portal Administrator for the XDA-Developers Portal. He has been addicted to mobile technology since the HTC Wizard. But starting with the Nexus One, his gadget love affair shifted to Google's little green robot. He is also a Johns Hopkins University graduate in neuroscience and is now currently studying to become a physician. View willverduzco's posts and articles here.
Mathew Brack · Jul 3, 2015 at 12:00 pm · 2 comments

The Atlas of XDA

A few weeks ago, we asked you "How Does Your Location Affect Your Life As A Power User?". In the days that followed, members from all over the world shared their stories and experiences of life across the globe. Allow me to introduce the true story of what it means to be a power user on this pale blue dot.   Index Africa & Oceania: Australia, Indonesia, Libya, Madagascar, New Zealand, Nigeria, South Africa, Americas: Brazil, Chile, Columbia, Costa Rica, Guatemala, Martinique, United...

XDA NEWS
Mario Tomás Serrafero · Jul 3, 2015 at 11:10 am · 3 comments

New Snapdragons: Some Context & Contrast

It hasn’t been a good year for Qualcomm so far. Every device featuring the Snapdragon 810 has had a less-than-stellar fate, be it because of overheating complaints or actual decreased sales. HTC is in a particularly worrisome situation, and Sony’s Z4 is slipping down Japanese charts just over a week after its release. The G Flex 2, Mi Note Pro and Z3+ all saw complaints as well. Even MediaTek is seemingly getting an advantage over this.   But a particularly...

XDA NEWS
Aamir Siddiqui · Jul 3, 2015 at 10:12 am · 1 comment

Google To Launch Next Gen Android One On July 14

The first gen of Android One devices to be launched in India in September 2014 were decent starter smartphones, featuring budget specs and a promise of fast updates. However, the phones did not pick up as big a response as Google hoped. Now, as per a report by The Economic Times, it appears that Google is rethinking their strategy towards Android One in India. The first gen Android One devices focused on first time smartphone users, but were flawed in...

XDA NEWS
Share This