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.
Mario Tomás Serrafero · Aug 4, 2015 at 02:17 pm · no comments

Sony’s Emergence in The Middle: Is The Price Right?

Sony’s Electronics Division is not in its best days, and its smartphone products are seemingly an important cause of this. The Japanese giant’s Xperia line has been on the decline in terms of sales, and these past few months have been particularly damaging to the company due to the Xperia Z4’s market performance. Sony’s Q1 results were also not favorable, as its mobile division lost $184 million and sales slumped 16% year-on-year.   Not too long ago we featured a...

XDA NEWS
Eric Hulse · Aug 4, 2015 at 03:42 am · 1 comment

HTC Delivering Ads Straight to Sense Home

HTC's 2015 has been a year marked by a desperate search for revenue. The HTC One M9 launched with its own launcher complete with a Smart Folder in the Sense Home Widget. This automatic pseudo-folder would populate with "suggestions" that were nothing more than thinly-veiled ads.   Just over a month ago, HTC began placing advertisements (that can thankfully be disabled) in Blinkfeed. These Blinkfeed ads appeared after Yelp advertisements began appearing on HTC's Lock screen. Users, expectedly, voiced dissatisfaction all...

XDA NEWS
Brian Young · Aug 2, 2015 at 09:05 pm · 2 comments

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by €100, making the current retail price of these phones €599 and €699, respectively. Though no new prices have been announced stateside, a cut is expected soon. (more…)

XDA NEWS