yashsingh1/xdaforums huggingface dataset:
[Android Themes] tdunham:
Ok, I see what you mean. Ticklefish will have to help with this I think but first you need to find the file in res/layout/drawable that has battery drawables in it and tell him the name of the file. It will have something like this in it probably (this is stock xml, yours may be different but you can see where it calls drawable images):

<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_15" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_28" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_43" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_57" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_71" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_85" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
</level-list>
[Android Themes] Ticklefish:
Apologies to everyone for me taking so long to reply. With Christmas getting so close, things at work are getting more and more manic and my xda time is getting smaller and smaller...but I will always try to get back to you all! ;)

This is the error:

c:\TickleMyAndroid\_WorkArea1\_working\LGSystemUI.apk\res\layout\status_bar.xml:21: error: Error parsing XML: not well-formed (invalid token)

There's a problem with line 21 of status_bar.xml. Have a look at the code to see what's going on.

I'm going to reply to this post by replying to the next post as well. You'll see why when you read it...

KitKat (which is what CM11 is based on) and Lollipop don't use image files for the battery icon. Instead the battery icon is rendered by code.

To change the icon, you first need to change how the icon itself works. The easiest way is to use this mod by my friend [MENTION=4485836]Erhany[/MENTION]: http://xdaforums.com/showpost.php?p=56300485&postcount=1

This mod puts a battery icon that uses image files back onto your ROM. Once you've done that, you can use TMA to change those image files. It's a bit more work, sure, but it's simple enough. And I'm always happy to help if you have any trouble. :good:

I'm just quoting this again because it always makes me happy to get some feedback. :)
[Android Themes] vPro97:
Wow fantastic feedback mate! I'll check out the code and make sure it's properly written then try again! Thank you!!!
[Android Themes] SidEwigk:
Thank you1 Ill try it :D
[Android Themes] vPro97:
[MENTION=4315551]Ticklefish[/MENTION]

I managed to write the proper code in line 21, but now I get another error which I cannot decipher - I hope you can help!

Thanks a lot for this fantastic tool!
[Android Themes] dom2684:
I realize Lollipop support is new and there are problems to be expected, but I am a first time user of TMA and I can't even get past the decompiling of framework-res.apk

Error! "framework-res.apk" Framework File Not Installed

Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:678)

Is there some thing I'm doing wrong? or Is it that cataclysm rom isnt compatible? any suggestions? Thank you in advance
[Android Themes] Ticklefish:
Thank you for your thanks! :highfive:

That's the same error as before.

c:\TickleMyAndroid\_WorkArea1\_working\LGSystemUI.apk\res\layout\status_bar.xml:21: error: Error parsing XML: not well-formed (invalid token)

Something isn't right with your XML.
[Android Themes] vPro97:
Thank you for taking your time to read through my post.

I'm completely clueless. Is there any chance I can send you my status_bar.xml for you to check?
[Android Themes] Ticklefish:
You're more than welcome to. I have a thread dedicated to XML modding. Can you post it there please?
[Android Themes] vPro97:
I did that. Thanks in advance!

http://xdaforums.com/general/xda-university/xml-101-xml-modding-easy-t2929816/page5
[Android Themes] glfsd:
hello Ticklefish, just a curiosity

why with the new apktool, folders are renamed?

for example, from drawable-xxhdpi to drawable-xxhdpi-v4?

(kk 4.4.2)
[Android Themes] tdunham:
I know the xxhdpi-v4 is Lollipop but haven't had time to modify anything in ours yet. We've only had it for a few days now.
[Android Themes] alphamale:
Help

I want to edit Seccontacts.apk for tw Samsung I am able to decompile but cant recompile without any editing
[Android Themes] vPro97:
Sorry for disturbing again [MENTION=4315551]Ticklefish[/MENTION]! But I tried making the same mod for another ROM, and I'm having an issue.

With apktool 1.5.2 I cannot install framework-res.apk on my computer. Therefore I cannot progress.

With Apktool 2.0.0RC3 I can install framework-res.apk on my computer, I can decompile the apk but I cannot recompile it (and it's not an error in the line, it was already stated that apktool 2.0.0 gives errors when recompiling).

How do I get on?
[Android Themes] Ticklefish:
According to your error log, your apk is missing a layout. You need to either supply that layout or edit the file that refers to it and remove that reference.

So you can't recompile your apk with any version of apktool at all?
[Android Themes] vPro97:
Unfortunately not :/ And I made sure that the XML files are correct this time.

3minit doesn't support apktool 2.0.0 and when I use apktool 1.5.2 I cannot install framework-res.apk
[Android Themes] Ticklefish:
So apktool 1.5.2. can decompile and recompile your apk, but you need apktool 2.0.0 to install your framework-res.apk?
[Android Themes] vPro97:
Nope bro! Unfortunately apktool 1.5.2 can neither decompile nor recompile because the framework-res.apk can only be installed with apktool 2.0.0.
[Android Themes] Ticklefish:
Yes...so what happens when you install framework-res.apk with apktool 2.0.0 then change to apktool 1.5.2 to decompile the apk?
[Android Themes] vPro97:
It gives an error when trying to decompile. I'll tinker with it tomorrow but I feel like I tried all possible combinations.
[Android Themes] tdunham:
Post it and let some of us take a crack at it.

What version of Android btw?
[Android Themes] vPro97:
I will once I receive the files from a pre-deodexed ROM. Thanks a lot to you and Ticklefish for your support.

It's 4.4.2 Kitkat
[Android Themes] vPro97:
Here's my history.txt. This should show why apktool1.5.2 cannot install framwork-res.apk

Here's my log for recompiling: First one (1128) is with apktool 2.0.0rc3 and the second log (1129) is for apktool1.5.2

It seems like there is an issue with smali?
[Android Themes] Ticklefish:
I'm a little confused. Are you using one version of apktool to decompile and a different version to recompile it? That wouldn't work, apktool 1 can't recompile smali files that were made by apktool 2. And vice versa.

Try decompiling your apk with 1.5.2., adding your smali files, then recompiling with 1.5.2. Any further problems let me know and I can take a look at the smali files you're trying to add.

If you look in the FAQ, there's a few lines there about smali files that work on apktool 1 but not on apktool 2..
[Android Themes] tdunham:
To add to Ticklefish's comment about mixing apktool versions...

If you want to de/recompile with apktool 2.0.x, you must remove the .parameter and .context lines in MinitBattery$1.smali or the file will not recompile.
[Android Themes] vPro97:
Hello Ticklefish. Sorry for the confusion.

I'll try to write it in a way that's easily understandable although it's truly confusing.

Frameworks

Framework-res.apk cannot be installed with apktool 1.5.2 it gives an error.

Framework-res.apk can be installed with apktool 2.0.0 without problems

Decompile

Apktool 1.5.2 cannot decompile LGSystemUI.apk (most likely because the framework is missing).

Apktool 2.0.0 CAN decompile LGSystemui.apk

Recompile

Neither Apktool 2.0.0 nor apktool 1.5.2

So I've been trying things and crossing methods without luck. I think that the issue lies within not being able to install the frameworks with apktool 1.5.2

Aha! I'll try that and report back! Thank you both!

Edit: didn't work :(. Thanks a lot to you both for your help! I hope we'll find a solution.
[Android Themes] tdunham:
Or was that problem with 1.5.2?

I forget. ;)

No matter what, that is the errors your log is showing.
[Android Themes] Ticklefish:
LGSystemUI.apk certainly won't recompile with 1.5.2 if it can't be decompiled with 1.5.2...

To fix this, you need to be adding smali files that are compatible with apktool 2. That's the only way this mod will work.

It's worth posting on the mod's thread that you need more recent smali files.

Or...if you've been able to put these smali files into another apk without any issues, decompile that apk with apktool 2 and use those smali files instead of the ones in the thread.
[Android Themes] vPro97:
Fantastic piece of advice mate. I'll try that right away and report back!

[MENTION=4315551]Ticklefish[/MENTION] YOU ARE A GENIUS! Thanks so much bro, that worked! I used the same 3minit smali files from my previous work and IT recompiled! At last!

[MENTION=1042140]tdunham[/MENTION] thanks a lot for your help too! I'll add you to the credits list :)
[Android Themes] Ticklefish:
I know, I know...;)
[Android Themes] bloof:
[MENTION=4315551]Ticklefish[/MENTION]

f**k me, I might have made it work.

Edit: i edtied the post in xda app and it deleted the code!! Crap

All i have left is my flash file with compiled statusbar.xml

Can't decompile it now, sorry

please let me know what you think of this... I am sure there is something that would not work (when certain notifications or status icons or something come up it will overlap or crap up or soemthing)...

I don't remember all the changes I made but I think I highlighted all of them... but they might not be all.

THANKS AGAIN! :D

[COLOR="Red"] [/COLOR]

[COLOR="Red"][/COLOR]
[Android Themes] pmsrefugee:
problem compiling to add new png file

I can pull in and decompile InCallUI.apk and go into working dir and swap out one png with another png with the same name picture_unknown.png.

When I try to compile the apk with the new png image it errors out. But I can compile the original png and it works fine. Can you look at the end of the history.txt and see why it's not working? I know the original png was 1215x1215 in size and the new one is not the same size. I had to delete some older text from the history.txt file to reduce the size.
[Android Themes] tdunham:
According to the log, its not a real png image and the compiler knows this. Its probably a renamed jpg or another file format. You should try to convert it or use a different existing png file just to test.
[Android Themes] Ticklefish:
Well, I'm very glad you got it working. Even if you did delete the code from your post... ;)

I have a thread devoted to XML modding, which you can find here: tinyurl.com/xmlmadeeasy

Feel free to have a look through that next time you're doing some modding. Hopefully it'll help. :highfive:

That is a lot of errors!

However, we can ignore most of them. When you're faced with a long list of compiling errors, you always want to look at the first ones. Fix those and the rest may go away (hopefully).

The errors at the top are:

libpng error: Not a PNG file
ERROR: Failure processing PNG image c:\TickleMyAndroid\_WorkArea1\_working\InCallUI.apk\res\drawable-sw360dp-xxhdpi\picture_unknown.png
c:\TickleMyAndroid\_WorkArea1\_working\InCallUI.apk\res\values\public.xml:504: error: Public entry identifier 0x7f0200ec entry index is larger than available symbols (index 236, total symbols 234).

c:\TickleMyAndroid\_WorkArea1\_working\InCallUI.apk\res\values\public.xml:504: error: Public symbol drawable/APKTOOL_DUMMY_00ec declared here is not defined.

This tells me two things. First, you shouldn't have any files in a decompiled public.xml with APKTOOL_DUMMY in the filename. These come about because apktool isn't able to decode the resource information and has to use a dummy filename instead.

This won't always stop an apk from recompiling but it can certainly have an impact when you try to run it.

Looking through your history, you don't seem to have installed framework-res.apk. I know you edited the file to bring its size down so I could be wrong. But this error normally comes about because the appropriate resource file wasn't installed before the apk was decompiled.

The second thing these errors tell me is that the image you're trying to use as your new picture_unknown.png is no good. It's not recognised as a PNG file. If your new image is a PNG, it may be worth editing it with an image editor program and saving it as a PNG with a different filename. Just in case the formatting wasn't quite right or something similar.

Let me know how it goes!
[Android Themes] Ticklefish:
Looks like I was four minutes too slow with my reply. Must type faster!!
[Android Themes] larryg4438:
About PNG9's

I don't post often but I felt I needed to put this out their.

First off thanks for all the hard work Ticklefish awesome..

As for PNG9's if this has been covered my bad, been away for a while,I went and got a copy of CS5 photo shop Via Vuze, i then followed this tutorial and was able to tweak single and batch PNG9's, and reconpile with no errors. I'm putting a picture of the systemsettings.APK UI from my att s5 active, so you can see its no bs. Made icons green, it was my first try.

hear is the YouTube link

Tutorial - How To Batch Edit .9 & Regular PNG Fil…

http://youtu.be/bXJrMO5t0I0

picture of SystemSettings APK UI

Good luck..
[Android Themes] pmsrefugee:
Thanks to tdunham and ticklefish! I used a different image file and using paint.net did a save as to a png. I swapped that out in the InCallUI.apk in my working directory and ran compile. It worked with no errors. Then I created a zip of the apk and flashed it in my phone. It worked! For my first time using TMA it was pretty easy. I just made sure I pulled in all the res files and it was good to go. Great program and thanks again for the quick responses. :good:
[Android Themes] Ticklefish:
Great to hear you've got it working! :highfive:
[Android Themes] The Prince1:
Thank you mate, this is a great tool.

Unfortunately, it is not easy to use comparing with the "UOT Kitchen", all I need to do is to choose then upload the relevant files and that's it, I dont need to know what's happening behind the wall.

One of the hard points that i faced here for example: when select to change the battery icon it is showing only names without pictures of the icons, which make it very hard to decide which one you are looking for.

Another thing: Can I use a framework-res.apk & SystemUI.apk out of my PC directly without the need to pull anything out of the android device?

Normally, I have an unzipped rom in my pc which make it very easy to change the files before zipping and flashing the rom. So the rom will be completed upon the installation.

Thank you again for your hard work.
[Android Themes] ted77usa:
[MENTION=4315551]Ticklefish[/MENTION]

Check this tool out http://xdaforums.com/showthread.php?p=57363588 ... to deodex Lollipop files or u might already knew about it[emoji1]
[Android Themes] KkdGab:
[MENTION=4315551]Ticklefish[/MENTION] For the batch file, I have to add C:\TickleMyAndroid to the start of tool_files\***. Is this normal I have to do this?
[Android Themes] Ticklefish:
Unfortunately I'm not in a position to check your code over right now. Best thing to do, and the fastest, is just to try it out. If it works, then it's all good. :D

Thanks for your kind words. :good:

UOT is pretty much dead now, sadly. I tried it a few times before I created TMA and I agree, it is very handy being able to see the actual icons you're choosing.

I can't do that with this scripting language, not without opening an image browser in a second window which would get really annoying. But you can find previews for every icon in the '_previews' folders, inside the 'ICONS' folders.

Eventually I'll have enough free time to study Java and I'll do a tool with a proper GUI, but that'll be far off in the future..

And yes, you can certainly use files without having to pull them. All you need to do is copy the files you want to use into the relevant '_in' folder. So if you're using _WorkArea1, copy the files into '_WorkArea1\_in'.

Ah yes, the oat converter. I have spotted this before but I do appreciate you letting me know about it. Deodexing Lollipop still seems to be a bit vague right now. I'll be updating TMA as soon as I know precisely what's involved. Watch this space!

No...you shouldn't need to touch the batch file at all. Can you give me a little more detail what you're doing please?
[Android Themes] tdunham:
Lollipop Theming

I'm working on a Lollipop compatible Vrtheme flasher.

With each app having their own individual folder, it created a really big challenge and since I couldn't find how to make it truly universal, I did the next best thing and added support for a handful of the most themed areas. If you know of anything else I should add, let me know.

I will be creating a new Vrtheme Lollipop thread soon for this as well.

If anyone wants a test build, please send me a Private Message.

Vrtheme Features (so far):

- fixed zipalign and removed CHMOD processes, previous versions of vrtheme TOTALLY wipes out the Android L system apps, rendering the phone inoperable

- still retains the original vrtheme structure for backwards compatibility

Currently Supported Lollipop apps:

- system/app/ClockPackage

- system/app/LegacyInCallUI

- system/app/MultiWindowTrayService

- system/priv-app/SecContacts

- system/priv-app/SecContacts_Phone_FLAGSHIP_USA

- system/priv-app/SecMms_Candy

- system/priv-app/SecSettings

- system/priv-app/SystemUI

- system/priv-app/TeleService

Note:

Framework is already supported without any additional modifications.

Framework-res.apk theming already tested and working.
[Android Themes] KkdGab:
I unzipped it to C:/. I think it might be a PATH error because it works on my other one no prob.

Sent from my HUAWEI Y210-0100
[Android Themes] Ticklefish:
Hmm...could be. TMA is designed to be in the root of your C:\ drive.
[Android Themes] Ticklefish:
DEODEXING LOLLIPOP...WHAT'S GOING ON?

​

I'm sure you've all noticed the Portal post about deodexing Lollipop apps.

And I'm sure you've all wondering "Why doesn't the GREATEST THEMING TOOL IN THE WORLD offer this? C'mon Ticklefish...code faster!!".

Well, the simple answer is that Tickle My Android doesn't have that functionality because...it doesn't work. At least, not fully.

The tools mentioned in the post will deodex some Lollipop files..but not all of them. For that, we're waiting for an updated 'baksmali.jar'. That's the actual program that does the deodexing and it's not fully compatible with Android 5.0. yet.

It will be soon though, so watch this space.

If you want to know more about this situation, have a look at this thread here: http://xdaforums.com/galaxy-s5/devs-only/discussion-deodexing-android-5-0-gonna-t2961967/. You might even spot a few people from here... ;)
[Android Themes] mikep2323:
question

I have a quick question for you ticklefish,Im themeing apps and when i recompile it works fine with no errors but when i look in the history text theres some items that say things with this on the end of it.

so and so has no default translation

Does that mean that stuff im themeing isnt themed,Im still learning whats what and i just theme a ton of things so im not sure if theres something i themed that looks normal after recompiling.Thanks
[Android Themes] Ticklefish:
Those are recompiling warnings.

You can generally ignore those, they won't stop your apk from working.

This translation warning happens a lot, it just means that there's a piece of text in your app that isn't available in a certain language. If you don't use that language, then you don't need to worry about it. :good:
[Android Themes] JT1510365:
Hey ticklefish you do amazing work quick question what role does the color folders inside framework-res.apk play in android. I would like to change the reboot menu touchwiz text color to green instead of black
[Android Themes] Dzepar:
It defines colors but most of them are refereferring to value/color.xml. So you'll have to change that. Check xml's in color folder if they have some hex value just to be shore.

Good Luck.

Sent from my D2303
[Android Themes] bloof:
I successfully run TMA from C:\someotherfolder

but only for decompiling/recompiling (changes work folder without problem also), I have not tried adding icons in that setting.
[Android Themes] Rio Rapha:
[IMG="thanks"]http://s625.photobucket.com/user/aoi92/media/Avatar%20Kaskus/mewek.gif.html?sort=3&o=22[/IMG]

works sir your tool , Finally
[Android Themes] Rio Rapha:
Love your Tool :fingers-crossed: thanks AWESOME ,

20X bootloops then now I can re/de successfully wit this Tickle
[Android Themes] Ticklefish:
TMA is designed to work from c:\ but it can work anywhere. All you need to do is edit the shortcut in the main menu. You don't need to touch the batch file. :)

That's fantastic news! I'm glad it worked for you!

Here's hoping you'll use TMA to do a lot of modding in the future!

Always glad to help. :highfive:

Just remember..if you have any problems, just post them here. I'll reply with a solution soon.
[Android Themes] JT1510365:
Help please!

hey ticklefish well for the past hour I have been trying to mod some code and I have kept bootlooping my device. I have successfully decompiled keyguard.apk from tab 3 Samsung Touchwiz Kitkat 4.4.2 rom.

Please look at the following xml files I attached.

I have changed the android text color codes to a new green color in the two xml files from the keygaurd.apk

I also can recompile keyguard.apk but I get systemui force closing errors when I copied the recompiled keygaurd.apk after reboot. This keygaurd.apk is supposed to work because i have not modded it in any way shape or form. It would not recompile in the first place until I put the resource.arsc file in the ticklemyandroid working1 folder

Now since that didn't work I have tried a new method........................

I have modded the code in the two xml files as such....................................

Is there anything wrong with them?..................................................................

Then I used vrtheme (villian rom theme flasher) to flash or theme the xml files to the apk instead..............................................

It didn't work even then I got systemui fc again so I am still in a deep hole.............................................................

All I want is to change the swipe to unlock text color to green, I want to change the am and pm clock color to green, also the alarm text as well to green.

Any tips or suggestions?

here is a screenshot of my lockscreen. the arrows and circles show you what I want to be green:

View attachment 3059820

Thanks, Jon Wesley Tranchida:)

Xml files are below:

View attachment 3059810
[Android Themes] AkiraProject:
Thank you. Now its finally working fine for me
[Android Themes] Ticklefish:
I'm not in the best place right now to check over XML thoroughly but it certainly looks okay.

Changing text colour is a very simple mod. If it's not working for you, the fault may lie with something else. In this case, I'm concerned that the apk won't recompile without any mods. Can you provide your history.txt please? If it's particularly long, please reset the tool, try this mod again and share

that

history.txt instead.

Could you also go into a bit detail about having to put resources.arsc into the _working folder?

Excellent!

----------------------

Sent With Tapatalk

--------------------