yashsingh1/xdaforums huggingface dataset:
[Android Software Development] gu5t3r:
It's ApkTool problem, cannot do anything about that until final version of ApkTool is released...
[Android Software Development] gu5t3r:
Updated to beta 12;

Till beta12 I updated res directory of original apk with res directory of ApkTool Build. That made some apk's like Google Maps unable to install (because ApkTool is still unable to rebuild some XML files correctly). Now I only update new resources.arsc and remove stuff from res that I removed before build. If new way does not work for you you can switch to old way with -Ea option i.e. "goptimize -Ea -e- *.apk" or "goptimize -Ea -e 'hr' *.apk". "a" should stand for alternative packing i.e. old way which I think will not be needed...

Updated TruePNG to 0.4.0.9 which should fix transparency missing on some png's but I didn't encounter any of that...

Updated ApkTool to GitHub-2ef25fe5e2 which is newer than beta7...

Updated smali2 to GitHub-902ba7d72d which is newer than v2 final

v1.27b12 can be used instead v1.26 because of updated tools binaries but keep in mind that cleaning of languages will be beta until ApkTool v2 final

MiniCygwin_GOptimize_v1.27b12.part1.rar (8.00 MB)

MiniCygwin_GOptimize_v1.27b12.part2.rar (6.66 MB)
[Android Software Development] gu5t3r:
Changelog: 2013-10-26 v1.30

Cleaning of unneeded languages works fine as long as ApkTool is able to rebuild apk; only problematic app which gets corrupted is GMail

Known language codes: af am ar be bg bn ca cs da de el en es et fa fi fr gu hi hr hu id in it iw ja kn ko lt lv ml mr ms nb nl pa pl pt ro ru sk sl sr sv ta te th tl tr uk vi zh zu

NEW Feature: -c; Pre-process PNG's with Median Cut Posterizer (posterize -d -Q 100; maximum quality) which makes PNG's more compressible and save 2-3X more kBs with almost none visual difference. However, keep in mind it's lossy optimization.

Updated ApkTool v2 beta 7 to GitHub-2ef25fe5e2 latest version

Updated smali 2.0.1 to GitHub-263083faed latest version

Updated TruePNG to 0.4.0.9

Replaced PNGZopfli with ZopfliPNG which is better tool.

Default GOptimize options are now in bin\.DefaultGO file for easier editing

-zo option is now default instead -zb; you can still use -zb, it does the same as -zo;

PNG Optimization code improvements

Java 1.7 or above required for -b and -e

Archives are RAR5 format and WinRAR5 is needed to extract.
[Android Software Development] Daniel D.:
Can you please offer the new version as .zip or .7z? I won't install WinRAR and can't open them with 7-Zip.
[Android Software Development] gu5t3r:
XDA does not accept files bigger than 8MB, it also does not accept 7z & zip splitted archives.

That means I would need to archive parts again to have correct extension and again double decompress.

It's easier to install WinRAR.
[Android Software Development] Daniel D.:
I think 1.26 is good enough. Thanks!
[Android Software Development] gu5t3r:
DOH, alternative download: http://d-h.st/users/gu5t3r/?fld_id=27163
[Android Software Development] himanshu.khanna:
help!!

does -e option keeps english by default. or i have to write -e en ?? and whats the right syntax for giving -e command? please help
[Android Software Development] ct_moi:
Results sys_apk 1.30

Hi,

Very good new feature (-c), I've just made yesterday a full GOptimization on system apk

and this morning test the new feature on same apk.

Original: 259 Mo

V1.27b12: 171 Mo

V1.30: 154 Mo

So win 17 Mo more on system apk.

The answers to your questions are just above (post 143)
[Android Software Development] gu5t3r:
Default APP language is always English (US) and cannot be removed, but other variations like EN-GB or EN-AU will not be kept...

To keep all english variations use -e en
[Android Software Development] Daniel D.:
I always get "Java not properly configured" if I want to clean up ressources. Aynthing I can do?
[Android Software Development] gu5t3r:
goptimize -he to read extra help how to set-up java or read in OP...
[Android Software Development] gu5t3r:
Just processed Advanced Xperia Launcher 2.0.6 and it's widgets with (-czo is short for -c -zo)

goptimize -e hr -j75 -m4 -czo -d6 -b15 -l6 -k2 -a0 *.apk

(Weather Widget required extra -Ea option for alternative packing of resources to work)

From original 17.9MB -> 10.9MB =)

ClockWidgets 4.70MB -> 2.70MB
MusicWidget 752kB -> 451kB
OnOffToosX 3.00MB -> 1.64MB
PhotoWidget 210kB -> 147kB
RecentCallsWidget 495kB -> 333kB
TopContactsWidget 793kB -> 535kB
WeatherWidget 5.18MB -> 3.59MB
Xperia_Launcher_2 2.82MB -> 1.59MB

XL2 and Widgets require framework-res.apk and SemcGenericUxpRes.apk in "framework" directory
[Android Software Development] Daniel D.:
I don't know how to setup it in another way.

- Folder is in the root of C:\

- framework files are copied

- Java version is up to date

Let's see if I can solve it.
[Android Software Development] Titioz:
Do you make this write in OP ?

Configure Java:
To use -b or -e feature you need to enter java bin path
in bin\.JavaPATH file which is usually
"C:\Program Files\Java\jre[version number]\bin"

Titioz
[Android Software Development] Daniel D.:
Thanks for pointing it out!
[Android Software Development] gingo:
Version for developers?

Do you plan to provide version for app developers? It will be great to have such powerful tool for PNG&JPG optimalization when building APK ;)
[Android Software Development] gu5t3r:
If question is how to optimize png's and jpg's before building apk:

Store your png's and jpg's in a zip file (png_jpg.zip for example) and then use goptimize with desired options on it...

EDIT: Just a notice to you and all others NOT to use -c option multiple times on same APK/PNG... It's lossy optimization and should be used only once per APK/PNG...
[Android Software Development] gingo:
Will be great to allow scanning directly res directory and optimize image resources without zipping and unzipping ...
[Android Software Development] gu5t3r:
Dunno if possible because script uses bash environment and you would still need to copy res directory to "PlaceApksHere".

That takes the same time as zipping without compression and much less coding for me =)
[Android Software Development] gu5t3r:
Changelog:

2013-10-29 v1.31

Added some code to avoid where Median Cut Posterizer could make some small (<8kB) png's bigger than original.

I was GOptimizing JEFIT with -czo and freaked out when PNG Savings went -100kB, so I added some code to avoid that =)

Updated TruePNG binary to v0.4.1.1
[Android Software Development] gu5t3r:
Changelog: 2013-10-30 v1.32

FIXED Bug in Cleaning languages where optimizing multiple apps would cause required languages to accumulate i.e. detected required languages from above apk would not be removed from below/latter apks because I forgot to reset variables (or make them local).

Thanks [MENTION=303041]ct_moi[/MENTION] for detection =)
[Android Software Development] gu5t3r:
What's wrong with 7zip now? DOH =)
[Android Software Development] Daniel D.:
Hmm, I didn't see it. I'm sorry. :(
[Android Software Development] gu5t3r:
Updated to v1.33
[Android Software Development] Dilesh Perera:
[MENTION=4665716]gu5t3r[/MENTION] hi bro did u see this? its similar to your go optimizer...
[Android Software Development] ct_moi:
Not to much, explore 1st post, GOptimize doing much more than optimize png.

Don't understand the interest of your post.
[Android Software Development] gu5t3r:
Nope till now, but GOptimizer does it better...

Cassini optimizes pngs with only pngquant and compresses all files including resources.arsc. Already compressed file formats are stored uncompressed in apks by default (Google) with reason, to avoid decompressing it twice which requires 2x CPU time and 2x Memory.

GOptimize can also compress resources.arsc but it does not by default because Android System then needs to decompress it before accessing resources which requires more memory and more cpu time. When resources.arsc are uncompressed Android System accesses it directly without decompressing. And you never need whole resources, only portions but when it's compressed you need to decompress it whole.

So, basically, Cassini makes apks smaller but slower.

Test on Facebook 3.8 app:

Original apk size 15823kB; original uncompressed size: 29555kB

Apk size when processed with Cassini: 15630kB; uncompressed size 29390kB

Apk size when processed with GOptimize: 12763kB; uncompressed size: 21509kB

(maximum optimization method "goptimize -j75 -pczo -d6 -b15 -l6 -e- -Ei *.apk;" without removing libraries you don't need, -k option)​

As you can see by comparing uncompressed apk size Cassini didn't optimize apk much just compressed all files in apk which is wrong.
[Android Software Development] Dilesh Perera:
thanks for your detailed explanation. much appreciated . i have optimized many system apks using your Go optimizer without any issue and been using them for long time now. have tried Cassini . non of the system apks works after compressed then replaced. :)
[Android Software Development] xing8119:
Great work

Your work is great!!

Maybe you can work together with cassini's author, you two may work out a very very better compresser.
[Android Software Development] gu5t3r:
Minor update to apktool and smali binaries...
[Android Software Development] bgm0:
Hi,

Sorry for the intrusion but i like to share my improved KDE script (https://projects.kde.org/projects/kde/kdesdk/kde-dev-scripts/repository/revisions/master/changes/optimizegraphics )

with extensive tests on varius types of image content, led me to the struct you can use on this script. optipng followed by pngout gives on average 5% improvement. The advcomp LZMA pass usualy gives 1% max costing 20% speed but with updated advancecomp using zopfli adds a few new trade-offs.

Good one! by using TruePNG that resolves most color reductions well.

As stated here https://code.google.com/p/zopfli/issues/detail?id=3 Deflopt and Defluff can improve on the output of zopfli. But beware " nasty bug in DeflOpt. If the size of the optimized deflate stream is more than 2^32 bits (not bytes, 512MiB) the output file is largely truncated."

Median-cut is well know to issues in quality and a not so advanced dithering method, maybe we can discuss alternatives for a slower option.

And finally my last tip for JPEG is to use the advanced imgmin that autmatically finds a better Quality setting for an input image like jpegmini.com. https://github.com/rflynn/imgmin

Thanks for the tool !!!
[Android Software Development] gu5t3r:
TruePNG /o max beats OptiPNG -o99 on every PNG file. And for compressing I use pngout + zopflipng which gives maximum compression...

About DeflOpt, there is no APK with 512MiB let alone PNG file...

Didn't find better and simpler tool than Median Cut Posterizer, it does very well for android pngs... Any suggestions?

Seems imgmin requires a lot of binaries and magick libraries which I think would make GOptimize a lot bigger so I would skip that...
[Android Software Development] Madaditya:
Pngoptimize as default

I tried goptimizing an apk

Having known the Apk is already goptimized by the rom dev,i want to remove Unneeded languages and remove acrhitecture specific libs

so i tried these options

goptimize -e -a0 -b -s -d5 -R+ -l5 *.apk;

as it was already png optimized i didnt use -p

but then it didnt work,it would just show the usage and exit.

can you add an option to use goptimizer w/o necessarily Optimizing pngs?

Or should i use -p ?

Will it cause lossy optimization on Double png optimization?

Edit: Understood that was using wrong -e syntax!
[Android Software Development] skinbark:
Thanks for the awesome tool gu5t3r! This made it possible to put kitkat on the LG Optimus S (LS670).
[Android Software Development] gu5t3r:
Updated smali and apktool...

You can also download and update smali and apktool manually as I compile them from alternate link...

(Just replace smali2.jar, baksmali2.jar and apktool.jar in bin folder)

http://d-h.st/users/gu5t3r/?fld_id=30675

http://d-h.st/users/gu5t3r/?fld_id=30132

In future, as I will be compiling smali and apktool for myself I will upload them to above links...

You can see your current version of tools in ManualGO with:

smali2 -v
baksmali2 -v
apktool -version
[Android Software Development] gu5t3r:
What do you think?
[Android Software Development] cOOk!e:
Does it work for you? I always had problems with Viber, especially if I removed unnecessary languages :(

But otherwise thanks again for a nice tool ;)

A hole lot of space saved :D
[Galaxy S 4 Accessories] xmsnx:
These aluminium buttons were delivered to me yesterday.

The home button rises just a tiny bit higher than the Spigen GLAS.t Slim screen protector.

They are textured, so they feel very nice :) A lot nicer than the jelly buttons that came with the Spigen protector :good:

Not bad at all for $2.69 for a pack of 5, including silver, black, pink, blue and purple.

Bought from this seller on eBay
[Galaxy S 4 Accessories] unciviilized:
How long did it take you to get these? I'm looking to buy some but dont want to pay $10

for spigen's if ill be just using one.
[Galaxy S 4 Accessories] xmsnx:
I think it was between 2 and 3 weeks.
[Galaxy S 4 Accessories] paolopaulpaul:
Wow It is very nice :D
[Galaxy S 4 Accessories] xCovErtWolFx757:
Quick question. I get a free button from the case I ordered, if I put the button on, would I be able to put the spigen protector on without taking the button off?
[Galaxy S 4 Accessories] Stealyourface:
Mime sells singles for $2.50

Yes. Actually makes it easier to apply the screen protector. Imo anyway. I have the iloome.
[Galaxy S 4 Accessories] unciviilized:
[MENTION=654625]Stealyourface[/MENTION]

have you bought any from Mime? courious of how it looks installed.
[Galaxy S 4 Accessories] xmsnx:
Yes, you would have no issue with that :)
[Galaxy S 4 Accessories] Stealyourface:
No. I would if my iloome white jelly button didn't match with my case though.
[Galaxy S 4 Accessories] aznmode:
I had this on my s3 and liked it since the stock button on it was almost flushed and it was hard to sometimes press it. But seems on the s4 the stock button is more raised so this will make the button too thick and you might end up pressing the button too much. Just be careful not to damage the button. It also might now be more susceptible to accidental button press when it's in your pocket waking up the screen and drain your battery faster.
[Galaxy S 4 Accessories] justin4sho:
Icon pack

Hey, i love that icon pack! can you remember what it was called?
[Galaxy S 4 Accessories] Bstin:
It looks like this: https://play.google.com/store/apps/details?id=com.samanthaconner.tinywhite&hl=en
[Galaxy S 4 Accessories] justin4sho:
Thanks man
[Galaxy S 4 Accessories] Android'sFinest:
Wow! Those aluminum home buttons look classy! Definitely a much better deal than the 10 dollar set of 3 from spigen...
[Motorola Atrix 2] demencia89:
Hi guys! I was running MIUI and got used to the 2g/3g Toggle which is great for battery life! Is there a way I can get that on a Stock ICS for AT&T Atrix 2?
[Motorola Atrix 2] Dbstudioz:
http://xdaforums.com/showthread.php?p=29499906

Here you go!!

(Next time try searching before you ask)
[Motorola Atrix 2] demencia89:
I already have that, thank you anyways. Maybe I wasn't clear as english isn't my main language. What I meant was something that lets you pick between Edge or 3g, so when you're running low on battery you use Edge, which is slower but drains less battery. Or when you need speed, you use 3g which is faster but drains more battery.
[Motorola Atrix 2] Super_Commando:
i don't know of any toggle but i use an app called 'network' by 'phillip mangelow'. and changing network between 2g & 3g is quite easy with that..

sent from my A2 running ÑÜMÅ3.0

$ÇÏÊÑÇÈ is the only TRUTH
[Motorola Atrix 2] demencia89:
hey Super_Commando, Thank you for your reply, but I'm on stock ICS, and I think the rom doesnt support it as there's no such option on the Data settings,. I need to know if there's a way to aquire that functionality by flashing a zip to my phone.
[Motorola Atrix 2] Super_Commando:
it works on stock ics too. i am using it since a long time, before i installed numa.

sent from my A2 running ÑÜMÅ3.0

$ÇÏÊÑÇÈ is the only TRUTH
[Motorola Atrix 2] demencia89:
Great! Thank you!
[Sony Xperia ZL] abc150781:
Dear Sony Fan's,

since 2 week I'm proud Xperia ZL user. As I get the XZL update was available to JB 4.2.2 and I do it.

I have extremely problems with WiFi. WiFi is connected and a good signal quality, but when I use a APP which needs Internet you can see the arrows after a couple of seconds the arrows disappear and nothing happens anymore.

I use different WiFi's (home and work) with the same results on both.

Is there any other how has the same issues and maybe know a opportunity to solve this?!

Thanks in advance.

BR

Patrick
[Sony Xperia ZL] kumar abhishek:
The worst case is here :(
[One (M7) Q&A, Help & Troubleshooting] imAmbitious:
Okay... I have looked around, saw a few guides, Think its 90% clear to me how to do this.. HOWEVER just to be certain::

First I unlock through htc website..

Root it, then add a custom recovery (clock work mod tool i think??)

Then flash it somehow?

I would appreciate if someone could direct me to a super noob friendly guide on how to do this?

The plan is to put on a google play edition ROM onto my new normal HTC One.

Thanks!
[One (M7) Q&A, Help & Troubleshooting] redbull123:
http://xdaforums.com/showthread.php?t=2265618
[One (M7) Q&A, Help & Troubleshooting] rjd210:
Thanks redbull123.
[One (M7) Q&A, Help & Troubleshooting] imAmbitious:
Thank you very much! :good:
[LG Optimus 4X HD] dokii22:
Hy did anyone bought this battery from Ebay and has some experiences ?

It's declared 2500 mah and I dont this is generic Chinese battery like Gold batteries,do you thinks it provides real 2500 mah ?

http://www.ebay.com/itm/181138474411?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649

Are there any extended batteries for LG 4X like 2500-2600-2700 mah batteries ?
[LG Optimus 4X HD] Irish GrumPy:
I'd like to know if this battery is any better than the stock one, too.

I like that you don't need a larger back cover with this ebay one.... Anyone any experience with this battery? Also, with the larger batteries that DO require an extended back cover, how is NFC affected?
[LG Optimus 4X HD] domenk:
NFC won't work, because NFC antenna is in the original back cover.
[LG Optimus 4X HD] Flying_Bear:
you actually get nfc antenna included in custom cover, for example see here:

http://www.youtube.com/watch?v=Tg0ZZNk15NM

so nfc should work.
[LG Optimus 4X HD] kingrz:
:confused:
[LG Optimus 4X HD] dokii22:
I googled this batteries,they dont seem low cheap *hit as golden batteries,but just google mpj battery s2 and I just see bad reviews of this battery,they dont provide 50 % of declared mah. :rolleyes:
[LG Optimus 4X HD] baxtex:
Sad, it seemed too good to be true. :/

Edit: This might be something? 2500mah: http://www.ebay.com/itm/2500mAh-Rep...040?pt=LH_DefaultDomain_3&hash=item27d5bb3b98
[LG Optimus 4X HD] UsernameWasTaken:
There are varieties of extra capacity batteries for 4X, up to 4800 mAh @ 3.7V, but most require some custom back cover which usually doesn't include NFC anntena, and the true capacity is in question as is the quality (longevity) of these batts. Mugen's deal is genuine (from various reviews and remarks), the back cover has NFC, but the price is just insane, $90 for the cover and battery! And they're not that great:

mugen-power-batteries.com/mugen-power-4400mah-extended-battery-for-lg-optimus-4x-hd-p880-with-battery-door.html

Just 20% better autonomy from a doubled amount of mAhs is a failure.
[LG Optimus 4X HD] HitTheRoadJack:
Yeah, I'm thinking the $90 for a freaking battery is way overkill on the price tag. Unless that thing had a mini-arc reactor that can power the phone for a whole year without any slowdown, then the price is warranted. I've switched my original battery for the Onite 4800mAH and the performance is just about as impressive as the touted Mugen one for more than half of the Mugen price. Average non-heavy use on a single charge goes up to at least 2 to 2.5 full days to reach zero charge.

I've also played around batteries of varying sized from the gold 2450mAH up to the 4800mAH that I now use and I have noticed that depending on which battery you use, the phone either heats up insanely fast or rarely heats up at all. The gold 2450mAH battery I have has just as much of a pitiful charge as the original battery that came with the phone but for some reason, the recorded temp rarely strays between 77°f to 88°f at it's lightest and heaviest usage. The 4300mAH battery also shows the same readings as the gold battery. The Onite one I have that is 4800mAH is almost as normal as the original battery - in that it's temp rises depending on usage from 77°f up to 110°f (110°f at the worst without any throttling at all, graphite heat sink pad included). I have no idea why that is, but if someone here can explain, please do so.

As for NFC, I barely use it at all, but I do have more than one back cover that includes the NFC antenna for extended batteries if I ever feel the need to use NFC.
[LG Optimus 4X HD] UsernameWasTaken:
You have more than one replacement back covers with NFC built-in? Can you post some pics and where you got them?
[LG Optimus 4X HD] chasepoes:
2500 mAh for that price? .... No Way. This is also to good to be true. And in 99% of all cases where something seems to be to good to be true, it usually is.
[LG Optimus 4X HD] Irish GrumPy:
Can you link the onite battery you mentioned? and any suggestions to a battery that doesn't require larger back cover?
[LG Optimus 4X HD] chasepoes:
A larger capacity battery without larger backcover is impossible. The capacity of a battery is directly related to it's size (using same technology). Without using a physically bigger battery it's not possible to get more capacity, unless they invent a new technology. Maybe they can squize a few more mAh in there, but that's it.

So if you want a significantly larger capacity, you have to have a battery that,s substantialy bigger and therefore require a different back-cover.
[LG Optimus 4X HD] kingrz:
I have a question. I have a leather flip case.

Because the back of the case is made of plastic and is not thin. Is there a similar case for the 4500 mah battery?
[LG Optimus 4X HD] chasepoes:
Not to my knowledge. Try searching the E-Bays
[LG Optimus 4X HD] dokii22:
Did anyone tried this battery,I'm planning to buy this MPJ battery or Aku Polar,MPJ gives 200 mah more juice on paper,but in reality ?

And its cheaper than Aku,what do you think ? I have two 1800 mah golden batteries,one doesnt work and I plan to order stronger battery for daily use and leave stock and gold for backup :)
[LG Optimus 4X HD] PontiacGTX:
I can recommend this battery it gives more time of use

http://www.amazon.com/Onite-4800mAh...&qid=1379867665&sr=8-2&keywords=lg+p880+onite :)
[LG Optimus 4X HD] demoncamber:
I just bought the MPJ 5000mAh Extended Battery for my s2, I'll report back when I get it to see just how accurate this will be. I figured $22 and can be returned, so why not try it.

They actually have their own site, http://www.mpjbattery.com/

Which most no-name batteries from China do not. So who knows!
[LG Optimus 4X HD] TMaLuST:
keep us updated :)
[LG Optimus 4X HD] demoncamber:
Got the battery yesterday, I'm fully charging it as we speak in an external charger. The battery itself is massive and heavy (you would think it was actually 5000mah just by visually inspecting). I will update and post back after I put it in. The back cover fits perfectly and tightly, pleasantly surprised about that.

My last extended bat was on my my touch 4g, so I have experience with them. Let's see how this pans out!
[LG Optimus 4X HD] demoncamber:
UPDATES!@!!!!

So this battery seems to be garbage.... It lasts about as long as my actual Samsung 2100mah battery. So far the two brands I've found to be legit are Anker and EC TECHNOLOGY found on amazon.com. I have 7 batteries in total now. :D

Don't waste your time with this one