yashsingh1/xdaforums huggingface dataset:
[Android Themes] tdunham:
I can state a fact that I converted the images in a 25mb secsettings stock file and when it was done it was around 75mb in size. This is triple and a significant difference.

The tool I provided a link to is the best solution I know of and you aren't displaying the patience to get the job done so I don't know what to tell you because your attitude is starting to wear on mine :rolleyes:. The tool is not going to do it all for you and if your UI doesn't work when you're done with it, you need to also develop some troubleshooting steps to find out why and if it is only on recompile, this tool keeps a history log which is invaluable in troubleshooting that phase of development. :good:

I know the tool does not convert .9.png images properly that is going to be the biggest issue but the rest seem to work fine. It takes a while to swap out the qmg files for png and the .9's have to be sorted out as well... either repaired if you want to keep them or the converted ones removed and leave the .9.qmg files to do what they do if you're not comfortable patching .9 images.
[Android Themes] Ticklefish:
If you have a recompile error, the error will tell you what's gone wrong. Most of the time there's enough information in the error for you to work out how to fix it.

It's easy to get frustrated and I do sympathise. When I joined xda, it was after three months of trying and failing to change my battery icon. By the end, I felt like snapping my phone in two and going back to my old dumbphone.

But it's important to keep a level head and, if things go wrong, stay calm and try to work out why. Getting mad achieves nothing except get you annoyed and annoy those who are trying to help.

I had no idea that qmg files were so much smaller than png's. I honestly thought Samsung went with them just to keep it exclusive. I've learnt something new!

Do all the qmg files in an APK need converting to png or can somebody get away with just converting the ones they want to change?
[Android Themes] tdunham:
Firstly, the app that I linked to will convert ALL the qmg and some other types of files right on the phone and save it to SD, you just have to pick the apk you want to dump/convert.

Then its a matter of taking a DECOMPILED build of the apk and swapping out whatever qmg images you want in the res/drawables. (directly replace qmg images with converted png images, meaning removing the original qmg and replacing with it's png counterpart)

So, yes you can pick and choose and when you recompile the apk, it will automatically fix the resources to recognize the new images.

Again, the .9's are the tricky part because the tool converts them too but it doesn't do it right (which is number one cause for failure to recompile conversion).

I don't need em for anything so I leave the stock .9.qmg's in. ;)
[Android Themes] Ticklefish:
You might be able to replace the 9 patch images by replacing them in the APK with a normal qmg given the same name, without the .9 part.

Then you could decompile the app and replace it with a png as normal.

I've no idea how you'd make a new .9.qmg though.
[Android Themes] Gayos24:
i don't used the framework and the apps from the same firmware that's because i have error but now it's working fine
[Android Themes] Ticklefish:
The framework you're installing and the apps you're decompiling are from different firmwares?
[Android Themes] Er. Aditya:
Just wanted to say this again sir...your work is heavenly amazing
[Android Themes] Ticklefish:
Thanks! Always happy to be of service!
[Android Themes] starbucks2010:
New version of apktool 2.1.1 just came out.

PS. I just installed TMA v13.3 and sow that you have included already this version of apktool. :)
[Android Themes] Ticklefish:
I move fast sometimes..lol
[Android Themes] macoX13:
Hello Ticklefish. Please help me with recompiling framework-res.apk. Tried installing framework to pc and different apktool version but still no luck. Please advice. Thanks
[Android Themes] tdunham:
You file shows twframework-res.apk.

Sorry, even the latest release of apktool cannot recompile this I think for MM version of android.
[Android Themes] macoX13:
Sorry. Can you see the file again. I uninstall all framework on pc and install framework-res.apk. Recompile framework-res.apk and attached here the history.txt.
[Android Themes] tdunham:
Ahhh, now I see your error correctly.

I have this too. For framework-res.apk, search through each res/drawables folder and delete all ic_knox_badge.PNG you can find.

I think that is how I fixed mine.
[Android Themes] macoX13:
I deleted 4 ic_knox_badge.PNG still got error. attached history please advice. Thanks
[Android Themes] tdunham:
I have 5 or 6 in mine.

Now I cant remember if I delete all or all but 2. They occur in about 3 different folders I think for me and now my stock one recompiles fine with new apktool so I have trouble duplicating this now too.

---------- Post added at 12:38 PM ---------- Previous post was at 12:36 PM ----------

Maybe try global search through framework-res.apk to make sure you didn't miss any and if still having problem, try removing the lines calling for any of those in public.xml also.
[Android Themes] macoX13:
Recompiling successful. Here is what I done. I restored all deleted ic knox file. Notice capitalized .PNG. Replaced it with lower case letter .png. On my files I got 2 .PNG.

Thanks mate! Lets call it a day. I have to rest for now,
[Android Themes] Ticklefish:
This is the relevant part of your error message:

W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\public.xml:11116: error: Public symbol drawable/ic_knox_badge declared here is not defined.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\public.xml:11117: error: Public symbol drawable/ic_knox_badge2 declared here is not defined.

Essentially apktool can't recompile your file because those two image files are missing, but they're still mentioned in public.xml.

Try deleting line 11116 and line 11117 from public.xml. That should get rid of this error.
[Android Themes] macoX13:
thanks a lot for helping...
[Android Themes] dr.harsh:
Hello Sir,I am a fan of your TMA software but I am facing problem in recompiling framework-res.apk file.I am attaching the file and attaching the animations file which I tried to include in framework file.If you can check it,that will be so kind of you!

Framework-res.apk file

https://www.mediafire.com/?85f67t734elsed9
[Android Themes] dr.harsh:
From where can I take history.txt sir?
[Android Themes] Er. Aditya:
TMA > user files > Logs
[Android Themes] dr.harsh:
Thanks Aditya.

Here is attached history.txt sir.
[Android Themes] Er. Aditya:
what changes you made to your framework bro ?

W: C:\Users\Har****\Desktop\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\anim\dock_bottom_enter.xml:4: error: Error: No resource found that matches the given name (at 'duration' with value '@integer/dock_enter_exit_duration').
W:
W: C:\Users\Har****\Desktop\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\anim\dock_bottom_exit.xml:4: error: Error: No resource found that matches the given name (at 'duration' with value '@integer/dock_enter_exit_duration').
W:
W: C:\Users\Har****\Desktop\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\anim\dock_top_enter.xml:4: error: Error: No resource found that matches the given name (at 'duration' with value '@integer/dock_enter_exit_duration').
W:
W: C:\Users\Har****\Desktop\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\anim\dock_top_exit.xml:4: error: Error: No resource found that matches the given name (at 'duration' with value '@integer/dock_enter_exit_duration').
[Android Themes] dr.harsh:
Actually brother you can also check out.I tried to copy and replace files of anim, animator and anim-land .xml animation files of S7 animation to framework-res.apk in corresponding folders then I tried to recompile apk which shows error message
[Android Themes] Er. Aditya:
the edits have some resources missing , please check in s7 files for these particular sources and place them too...this is not TMA issue bro :)
[Android Themes] dr.harsh:
I know bro because I recompiled other apks before it and it went successfully and I am facing problem here only that's y I came to ticklefish for help if he can provide in this matter.Thanks bro for your help.I'll try to find out the error
[Android Themes] Thebear j koss:
Animations usually require libraries and may need edits in other files to work correctly. If the xml's don't match with the other files, you would get errors. They are not as easy as just copying and replacing a few xml's in framework.

Thebe?r'$ NeXu$
[Android Themes] dr.harsh:
Thank You so much for info.I will look into it!
[Android Themes] micky387:
Hy.

No need to delete everything ;)

Just rename ic_knox_badge(2).PNG to ic_knox_badge(2).png ;)
[Android Themes] macoX13:
Help please...

I tried to decompile framework.jar to edit smali files but theres no smali files on framework.jar folder. There is only original and unknown folder. Did I make any sense? Im trying to change background text color on notification. Im referring to this http://xdaforums.com/showpost.php?p=62296264&postcount=2741
[Android Themes] Ticklefish:
If there are no smali files inside a JAR or APK file, it normally suggests that the file is odexed.

In which case, you'll need to deodex it.
[Android Themes] macoX13:
i noticed a smali folder containing smali files on decompiled SystemUI.apk. is it possible that samsung move the smali files from framework.jar to SystemUI.apk?
[Android Themes] Ticklefish:
No, that wouldn't work.

Do you have a file called "boot.oat" in your "system/framework/arm" folder? If you do, that'll contain the smali files you need, as well as smali files for a few other JAR files. You'll need to deodex that and put the smali files in all the relevant JAR files, not just framework.jar. Then, finally, you'll be able to do your mod.
[Android Themes] macoX13:
Yes I got boot.oat on the said location. Sorry Im too noob to do that now. I know how to edit .xml. Just want to have white text on my notification cause I change it with dark background color. Hope theres an easy way to do that. Anyway, thanks for helping me... :)
[Android Themes] Ticklefish:
That mod would have been a lot simpler in the days of Gingerbread and ICS, but you're definitely going to need to do a smali edit now..
[Android Themes] macoX13:
Things are getting complicated nowadays. But I'll give it a try.
[Android Themes] Ticklefish:
Just remember to make a backup first! :good:
[Android Themes] bunnys7679:
delete
[Android Themes] Thebear j koss:
Just follow that guide posted by [MENTION=1042140]tdunham[/MENTION]. All the work is already done, just need to find those lines in that smali after deodexing.

Thebe?r'$ NeXu$
[Android Themes] macoX13:
Thanks!

---------- Post added at 10:04 PM ---------- Previous post was at 10:00 PM ----------

Can help me deodex to make the that smali file appear on framework.jar after decompiling using TMA? Im a complete noob on deodexing...
[Android Themes] Kdio:
Hi Ticklefish

First, thank you for the inspirational work you do here. Congrats. :good:

I would like just to drop you a note that I'm getting some random weird issues raised by ApkTool from whom updated to Java 1.8.

It may be justified from [MENTION=3924617]iBotPeaches[/MENTION] 's restrictions stated at the build instruction requirements and accordingly enforced by the builder script at lines 36~40

allprojects {
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
}

Nice regards.

.
[Android Themes] Ticklefish:
Have you tried following the instructions in the 3rd post? I've tried to make it as easy to follow as possible, but do let me know if there's anything that's not clear.

Hmm. What sort of issues are you getting?
[Android Themes] iBotPeaches:
I build official releases using java - 1.8.0_72, those lines just tell the script to ensure the source code isn't using any Java8 features and always build a binary that is compatible with Java7. Apktool requires at least Java7, so I like to ensure that the final binary will be compatible on 7. You can build with either a 7 or 8 JDK, so any issues you are encountering are probably not related to that.
[Android Themes] Kdio:
Hi Ticklefish

A user reported some errors issued by ApkTool + Java 1.8 that were not present when he downgraded to 1.7. While he didn't provided further details, I went on investigating the report and found those ApkTools build parameters that, apparently, I've misinterpreted.

Seems I have to get deeper into gradle's sourceCompatibility/targetCompatibility meaning.

I do apologize for the misguiding and, if necessary, I may edit my previous post to clean up your thread. Just let me know.

Nice regards.
[Android Themes] Ticklefish:
Nah, that's fine. What's important is that you found the answers you were looking for. That's what xda is for. :cool:
[Android Themes] Ticklefish:
I'm in the middle of getting some ideas for the next version of TMA.

I've got a few ideas, including trying some other formats, but I need to know a few things first. Mainly, how many people use the ZIP file maker? I use it all the time, but I might be the only one...lol
[Android Themes] Er. Aditya:
lol if you need some info i can test atm , between can u make a small change sir

when we select workspace it rolls back to work space , it should roll back to main menu .... not necessary just a feeling :D
[Android Themes] Ticklefish:
Oh, I know what you mean. That's done deliberately, in case you changed to the wrong workspace.

I can certainly change it so you go back to the main menu if that's what people want..?
[Android Themes] macoX13:
hello! can anyone help me with smali edit. 1.i prepare the workspace/3 extract smali files from odex file 5.0./1 extract smali files from from file in framework folder/

then im not sure what to select next to get the file below

framework.jar smali edits:

\smali_classes2\android\app\Notification$BigTextSt yle.smali

update:

tried 10. framework-classes2.dex. Now i see the Notification$BigTextStyle.smali. am i on the right track?

update: i got an error when adding smali files to decompile folder. error file not found.
[Android Themes] Ticklefish:
So you have "framework.dex" and "framework-classes2.dex"? Hmm... Those two DEX files are actually from the same JAR file. You'll need to extract smali files from both and add the smali files to the decompiled JAR.

Right now, TMA will only let you add the first collection of files. I'll start work on the code in a moment but, before then, you'll need to manually copy the files from "_deodex\framework\_DeodexedFiles".

Sorry about that, I'll get to work on sorting it out.
[Android Themes] Gayos24:
yes,

but now i use it from the same firmware
[Android Themes] Ticklefish:
I've added an extra bit of code to the tool. It'll now let you add a "-classes2.dex" to a decompiled APK or JAR. Download and let me know how it goes! :good:
[Android Themes] tdunham:
What about classes3? ;)
[Android Themes] Dzepar:
Your not :) and please leve it as it is :)

Thanks.

Sent from my XPERIA M2
[Android Themes] Ticklefish:
Yup. That too! Lol

I stopped there. If there's an APK with so many classes that there needs to be a classes4, I suspect somebody needs to go back to programming school..

(Or I'll just update the code to allow for it..)
[Android Themes] Ticklefish:
Oh, I'm not getting rid of it. I have plans to make it better. But you'll have to wait to find out what those plans are!
[Android Themes] starbucks2010:
Facebook messenger has classes5 also.
[Android Themes] Ticklefish:
Damn, really?

Sigh..okay, I'll update the code. I need to anyway, the SQSH handling isn't working out quite the way it should.
[Android Themes] macoX13:
Hello! I download the new tma. Prepare the workspace for deodex. I think im stuck on pulling system/framework/ folder. File size being pulled is 240mb and is not proggressing after that, tma window still pulling system/framework/ folder. I think I waited 30 minutes. Please advice.
[Android Themes] Ticklefish:
Give this a try.
[Android Themes] Jamieb88:
Ahh okay great! You gonna add toggles to the new build? Or is that just device dependant and can't be universal?

PS.

I'm getting a device not found on my Samsung infuse 4.1.1 cypher

Aokp
[Android Themes] Outlaw13:
It worked ...:good:

did u do anything more than what u said it the TUT??
[Android Themes] Jamieb88:
I think my problem is on the Rom.side cause kies and android commander doesn't see it when i go into 4.1.1 roms
[Android Themes] Sean_Seany:
Is it possible to edit the navigation bar with this tool , like change its colour or make it semi transparent? Specs below above sig ( wjish to do this on my tablet)

Thanks for a great tool !:victory:
[Android Themes] emir11553:
please

could you please add this Wifi,signal bar and battery icons ???
[Android Themes] Outlaw13:
Successful !!!

Finally did it myself !!!:victory::good::D

the "push" thing was the problem...

I made a flashable zip and it worked!!!

but when i pushed the same file 2 my phone, the result was bootloop...

anyway, Thank u for ur very great tool...!!:good::D

one more thing : Do u have any idea about transparent status bar???
[Android Themes] Ticklefish:
Toggles are one of the things I'm looking into. I need to check what sort of variety of names and sizes they are in. Will icons from a lidroid mod work on touchwiz? Does Sense use anything? Etc..

I'm making the changes to the code first before I look at icons. I already have a few new battery ones though..
[Android Themes] Ticklefish:
Nope. :)

The trick was installing all the resource files before decompiling anything. Once that was done, everything was simple.
[Android Themes] Ticklefish:
Might be, actually. If your device doesn't have official jelly-bean, then the latest drivers available for it might only work for ICS at most..
[Android Themes] Ticklefish:
Well, thank you for thanking me! :)

I had a transparent statusbar option in the early versions. The problem was that the mod became harder from Android 2.3.6 onwards and more needed to be done by the tool than it could actually do.

I can put the code back in again but there would have to be a disclaimer to say that it might not work.
[Android Themes] Ticklefish:
Sure, good idea! :)

Where did you find them?
[Android Themes] Felimenta97:
Tickle, what does the option: Prepare File for Flashing does? I mean, it is a apktool command after all?
[Android Themes] Ticklefish:
No, it's exclusive to Tickle My Android. When you recompile a system app, it may need to be signed the same way as the original and it could need resources.arsc to be a different rate of compression than apktool uses. This is what the prepare option does.
[Android Themes] Felimenta97:
I see... Because I used your program to prepare Settings.apk, but the file got over 10 Mb. It usually get at 4 or 5 Mb.
[Android Themes] Ticklefish:
This sounds like a permissions issue.

I need to rethink the prepare file code. More typing...joy..
[Android Themes] emir11553:
I extract them from a cm7 theme i extract the wifi and the signal bar icons from mixer and the battery icon from epicblue theme i want to put everything together but i have no idea how it do it :(
[Android Themes] AmmarGitham:
Can we request for features?...

It would be great if we could rename a pulled file before it goes into the _in folder. Im on v4.0, checked change log for the latest versions but couldn't find if this feature was introduced.
[Android Themes] Ticklefish:
This isn't something I've introduced but I could build it into v5. Possibly.. A big part of v5 is making things simpler for people and I'm worried that this could lead to confusion. Why do you need to rename the file?
[Android Themes] Ticklefish:
New version out now!

Well, work on v5 is progressing slowly but steadily. I only really have the spare time to do it at work and my boss has recently acquired this strange attitude where he insists I do stuff I'm actually paid for...weird..

Anyway...in the meantime, here is version 4.3! This fixes a very little bug which no-one seems to have noticed but mainly it now benefits from apktool 1.5.0!

This gives Tickle My Android the very best in decompiling and recompiling power, which makes it compatible with the majority of devices and roms that are around.

Enjoy!
[Android Themes] Dzepar:
Well it actually have 6 :D (Fb_msn 69.0.0) and it's not the latest version
[Android Themes] Thebear j koss:
why are you pulling the whole folder? just pull the files needed. probably would be quicker doing it file by file or if you have a rom zip that you flashed, extract the folder from the rom zip on your computer.
[Android Themes] macoX13:
Im not really sure what i am doing. My aim is to edit framework.jar smali:

\smali_classes2\android\app\Notification$BigTextSt yle.smali to do Custom Notification Background TEXT Color. I decompile framework.jar using tma but there no smali file inside so Im instructed to do deodexing framework.jar to be able to get the Notification$BigTextStyle.smali. Im on android lollipop 5.1.1.

Maybe you can help me do this Notification$BigTextStyle.smali edit in a simple way...
[Android Themes] Thebear j koss:
What samsung device are you on? And what build? Is there no deodexed Rom available for your device? There really isn't a huge difference in odex and deodexed roms these days... If you are going to customize and change things, I highly suggest a deodex custom rom.

Thebe?r'$ NeXu$
[Android Themes] macoX13:
Im on Samsung Galaxy Note 4 SM-N910G 5.1.1. I want to customize my stock rom.
[Android Themes] Ticklefish:
TMA pulls the entire framework, app and priv-app folders so that people can deodex any file. That's why it takes a while. I haven't had any issues pulling the folders so far..

I'm considering removing the deodexing menu, in all honesty. It was introduced when most people were using GB. Deodexing Gingerbread is a piece of cake. Now it's getting more and more complicated and becoming more and more of a headache to keep on top of it.. :crying:

I'll update the code to allow for 10 extra classes then. That should be fine for a while. :good: Is your Facebook Messenger deodexed and in your system partition?
[Android Themes] Dzepar:
Thanks

It's from Play Store and it's normal installation :)
[Android Themes] Ticklefish:
I'll update the code anyway. No harm in being prepared! ;)
[Android Themes] Thebear j koss:
It will be far easier for you to find a deodexed stock ROM to modify than to manually deodex your ROM and mod and then odex the files again. There should be a deodex stock ROM for the note 4 5.1.1 by now I'm sure. The only difference between your stock ROM and the deodex version would be it is deodexed.

Thebe?r'$ NeXu$

---------- Post added at 01:15 PM ---------- Previous post was at 01:13 PM ----------

Yeah I know, but depending on cables, phone, pc, etc pulling entire folders can be tedious and long. I usually have a copy of my rom zip I can pull files out of, or I use a root browser to grab files and then transfer them over.

Thebe?r'$ NeXu$
[Android Themes] starbucks2010:
Actually, there is no problem even on this version of TMA. Everything is decompiled/ recompiled correctly for FB or FB messenger.
[Android Themes] Ticklefish:
I'll second this. If there's a deodexed rom available, it'll save so much hassle.

I've been using the infamous ES Explorer to copy my system folder across the last few days. ADB just doesnt work on the PC I use most.

Copying the files over is a lot faster, it has to be said.

Yes, but it's the deodexing of Sony's Marshmallow roms that's giving me trouble right now. Sony have started using SQSH files which are proving awkward to get past.

I think I've got it sorted now but I'll have to wait until the Eurovision is over to try it again.

(It's a family tradition. Lots of wine is consumed. And beer. And gin. And rum. And...well, you get the idea!)
[Android Themes] Er. Aditya:
bro can you add qmg/pio > png conversion too ??
[Android Themes] macoX13:
I just want to edit my framework.jar... Can anyone please help me deodex my framework.jar to edit the smali files inside...