[APP] Qmg2Png Tool

xperiacle

Inactive Recognized Developer
Nov 12, 2012
337
5,859
0
Qmg2Png Tool is a simple app I made to easily convert QMG resources to PNG format for easy theming. This is just a simple wrapper tool that uses the Touchwiz Roms builtin image loader to load qmg resources and then saving them back as png images. So it means that it will only work on Touchwiz 4.4.4 and above like the Note 4.

I came up with the tool when I was porting the Sprint Note 3 4.4.4 update on my N9005 and I needed to test some ported apps from Note 4. I thought if the ROM can read qmg resources, perhaps it can save them also to a different format to ease the theming process.

So just download the app, install, and pick an apk from sdcard and the app will extract the qmg resources and convert them to png format and saving them in the QMg2Png folder in the sdcard. The output folder retains the folder structure of the extracted apk.



Note: Use at your own risk and no guarantees that it will function as intended on your device.
 

Attachments

kevinrocksman

Senior Member
Oct 18, 2009
3,804
4,456
0
Qmg2Png Tool is a simple app I made to easily convert QMG resources to PNG format for easy theming. This is just a simple wrapper tool that uses the Touchwiz Roms builtin image loader to load qmg resources and then saving them back as png images. So it means that it will only work on Touchwiz 4.4.4 and above like the Note 4.

I came up with the tool when I was porting the Sprint Note 3 4.4.4 update on my N9005 and I needed to test some ported apps from Note 4. I thought if the ROM can read qmg resources, perhaps it can save them also to a different format to ease the theming process.

So just download the app, install, and pick an apk from sdcard and the app will extract the qmg resources and convert them to png format and saving them in the QMg2Png folder in the sdcard. The output folder retains the folder structure of the extracted apk.



Note: Use at your own risk and no guarantees that it will function as intended on your device.
omg this is amazing. thank you
 

cerj

Recognized Themer
Nov 1, 2012
6,253
12,068
263
NOLA
What can I say, we have some of the best minds here at XDA., Thank you, this will really help our themers.,
 
Last edited:
  • Like
Reactions: xperiacle

tonyph33r

Senior Member
Jan 2, 2011
140
8
0
After I convert and change all icon I want. Do I have to convert back qmg? How can I load my icon back systemui?

Sent from my SM-N910T using Tapatalk
 

kashortiexda

Senior Member
Jan 12, 2011
1,365
873
143
decompile your apk delete the qmg you have converted to png and paste the png
And recompile

Sent from my N-910F
............ and don't forget to re-sign the file, else it won't work

I use ZipSigner on my phone (easy), but there is also Apk Mutltitool and obviously you can sign with the sdk itself
 

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
0
TampaBay
............ and don't forget to re-sign the file, else it won't work

I use ZipSigner on my phone (easy), but there is also Apk Mutltitool and obviously you can sign with the sdk itself
Resigning an apk may create problems since the random signature will not match the signatures in the rom itself.
There are a couple ways around this:
- I use apktool manually from a commandline so I copy stock androidmanifest.xml and meta-inf folder back into the recompiled file. This gives the file the same exact signature as the rest of the rom. It may be an old-school method but it's never failed me yet. ;)

- Use a tool that pulls and reinserts these items for you automatically on recompile. (I think Multi-tool utility you quoted above is one that does this too)
 
Last edited: