yashsingh1/xdaforums huggingface dataset:
[Android Themes] Ticklefish:
That apk is causing a problem at the moment. You're not the only one who's trying to decompile it without any luck. It seems that Google have done something....odd...to it. Unfortunately nobody's been able to come up with a fix yet but I'll keep an eye on it and let you know if anybody does.

Sorry to be the bearer of bad news. :(

So your SystemUI.apk didn't have any battery icons in it? That's unusual..although it's certainly possible.

Two quick questions for you: have you tried decompiling your modded framework-res.apk to see if you still have your original battery icons in it? And what messages do you get when you flash the zip?

It seems like Android Debug Bridge is having real trouble connecting to your phone. That's the program TMA uses to interface with Android devices...but it's not all bad news. As Madaditya was suggesting, you can copy your original files to your sdcard and copy them into the '_in' folder from there. It takes a few seconds longer but it works.

If this is a common mistake, I can introduce a bit of code which checks that there are files in the zip before it lets you make it..

Well, you're certainly welcome to! lol

The reason why there are two types of zips available is because not every recovery is compatible with the advanced zip. It's the better option but that doesn't mean anything if you can't flash it!

TMA has an option to use your own update-binary. I introduced it a few versions ago. Simply put your update-binary in the user_files\UPDATEBINARY folder and select option 5 from the settings menu.

So zips with different names are made but with an error message? Odd.. But I'll have that fixed for the next version. As long as the zips are made, that's the important thing!
[Android Themes] Ticklefish:
I've found out what's causing this. It depends whether or not you have a '\' character or not at the end of your zip file destination. So if your destination is 'c:' and you make a zip with your own filename this bug will happen. If the destination is 'c:\' it won't.

This has now been fixed for the next version.

The important thing right now is that the zips are still made.

Sorry about that, guys. :crying:
[Android Themes] limyuyang:
Ops...I made a mistake, actually my systemui.apk & framework-res.apk also have to change the battery icon. So I think because I didn't flash system.ui, so my battery icon doesn't change.

Yes, I decompiled the modded framework-res.apk & systemui.apk and check, and the original battery icon are gone, it left the full circle battery icon only. ( screenshot below )

I'll try to flash again and see whether it changes the battery icon or not.

EDIT: I FLASH THE SYSTEMUI.APK & FRAMEWORK-RES.APK ( MODDED ), BUT THEN NOTHING CHANGES ALSO, STILL THE BATTERY ICON DIDN'T CHANGE. I TRIED MANY TIMES, STILL DOESN'T WORK. THATS WEIRD.
[Android Themes] smegg:
Hi there, love your work mate, just wanting to let you know that battery mods working perfectly on touchwiz 4.1.2 for my galaxy note but am unable to change the soft buttons or toggles in framework or twframework files. I think that the new icons names need to be changed to begin with "tw" at the beginning of the .png. ie. Buttonpressed.png becomes tw_buttonpressed.png. can anyone think of a way to batch convert file names to follow this rule? I would love to get some serious theming done with this amazing program. Thanks again!
[Android Themes] usf1996:
Do you have any other mod installed? Because if you do you should remove it because it may cause error or in your case not showing the new battery mod. I had the same issue, after reverting the systemui.apk and framework-res.apk to stock, i flahed the modded systemui.apk and framework-res.apk and voila!!!
[Android Themes] limyuyang:
Hmmm.....I'll take a look at my mod, I'll check whether what mod I installed.

Oh, does crossbreeder affect it ?
[Android Themes] Ticklefish:
Awesome username..

Making a batch file to change multiple filenames is pretty straightforward. In fact, there's already two in the tool_files folder that I use for the toggles.

If your rom has different filenames to what are already in the tool, I could really do with updating TMA with them. Could you share your files please?

It shouldn't.. Have you got a theme running on your phone?
[Android Themes] limyuyang:
Ermmm....nope. That's really weird. Well, I guess I'll provide you the systemui.apk & framework-res.apk zip file ( modded ) and u help me check what happen to it. ( I'll provide you later as I'm not in home now )
[Android Themes] Ticklefish:
Sure, I can take a look. It'll also help if you can tell me exactly what your recovery says when you flash the zip.
[Android Themes] Madaditya:
One request

In flashable zip menu,can you also add an option to push all apps to zip project?

Like

_out folder

1.systemui.apk

2.framework-res.apk

-->>3.Push all apps in out folder<<---

That'll make stuff easy if i were to make a flashable of all apps so i dont have to select the apps one by one :D
[Android Themes] soundwave23:
Tickle My Android 7.1

awesone theming tool!
[Android Themes] usf1996:
Quick question, if i want to add custom signal icons i made myself, what xml file should i edit?

And should i make more than stat_sys_signal_0/1/2/3/4/5.png?
[Android Themes] Ticklefish:
Quick answer..no xml file at all. :)

To use your own icons, just make a folder for them in the user_files\icons\signal\ folder. Then run TMA. It will automatically incorporate those icons into the program and you'll be able to select them.

How many icons you need to make just depend on how many your rom uses.

I'm always looking for new icons to include in the tool so if you want to have yours in the next version, just let me know!

And don't forget to show us what your new icons look like! :)
[Android Themes] Ticklefish:
Hmm.,interesting idea. The trouble is it would have to work on every apk and jar in every version of Android and in every rom.

There's nothing about those files that say where they go so I'd have to maintain a large list of filenames and locations and keep that up to date every day. That's a bit beyond me right now.

It is a good idea and I'll have a think about Hmm to implement it but I'm not sure I'll be able to.
[Android Themes] Madaditya:
Every Rom?

I didn't get you Mate?

lets say the window is

'Add "System/app" File to Project Menu
1.Systemui.apk
2.Test.apk
3.Test2.apk

a.Push all these apps to Project

Normally i have to choose 1

then come back,hit 2

come back hit 3

i Just ask for one more option 'a'

can't it be something like this?

If [ $ch== 'a' ]
cp *.apk /project/

We'll if its complicated,Ignore the request,not a big deal ;)

the tool is already Awesome :good:
[Android Themes] Ticklefish:
Oh! I thought you meant you wanted an option to add all files from the main zip menu. I was trying to think how I could ensure that the system/app files went into system/app, the system/framework files in system/framework, etc.

I understand you better now. That should be pretty simple to implement.

You're just trying to make me do more typing, aren't you? :P lol
[Android Themes] MrSmallweed:
and again i have a problem.

im trying to recompile framework-res.apk but it just says error...

but log says ok?

very confused about this. and when im doing flashable zip it sure does it but phone is aborting my every try. basically i dont know what is going on.

i tried to follow instructions on page 1, battery image changing guide

and, when im trying to make just zip, TMA says that there is an another process going on.
[Android Themes] Ticklefish:
Right, let's try and break this down..

What's the error you get?

You say your phone is aborting your every try. Can you explain what you mean by that please? If you are getting an error message, is it possible you could tell me what it is?

I'm a little bit confused by this. You said you do make flashable zips..but you're also unable to do so because there's another process going on?

Could you share a screenshot of what happens please?
[Android Themes] jayandare:
Ubuntu
[Android Themes] Ticklefish:
Okay...lol
[Android Themes] jayandare:
I hit the wrong button. I can't run it thru wine on Ubuntu. Any other options?
[Android Themes] smegg:
can windows be run on a virtual machine inside ubuntu?

try this

https://help.ubuntu.com/community/VMware
[Android Themes] jayandare:
There's a program called wine that will allow you to run Windows programs. It says it can't run all of them but it can run some I tried that and it said there was an error but I didn't get any description

---------- Post added at 10:14 AM ---------- Previous post was at 09:35 AM ----------

46959070]can windows be run on a virtual machine inside ubuntu?

try this

https://help.ubuntu.com/community/VMware

That's similar to what I have i think but I'll read up on it some more after work. thank
[Android Themes] usf1996:
ok, so I made the folder and put the icons inside it and i followed all the other steps to add the icons to systemui.apk and framework-res.apk but I still can't get the new icons to work.

P.S:

I don't have any mod installed.

Any suggestions?
[Android Themes] :
Can anyone upload v7.1 elsewhere...
[Android Themes] Ticklefish:
That's similar to what I have i think but I'll read up on it some more after work. thank[/QUOTE]

TMA is basically a MS-DOS batch file so I guess you'll need an emulator that can deal with those. Possibly.

What do you mean by you can't get them to work? Are they not being added?

Possibly. Have you having problems with Mediafire?
[Android Themes] Ticklefish:
Well, I think your problem with the zip may be caused by where you're putting your framework-res.apk. It doesn't go in system/app, it goes in system/framework. That's probably what's causing the error.

If you're not preparing a file and you're getting that error, you've probably interrupted the program while it was preparing something and it thinks it still is. This is actually very easy to fix. All you need to do is delete one file. I'll let you know what that file is when I get home.

That long list of compiling errors aren't errors. They're warnings. They're saying that some strings in the apk aren't translated into some of the languages that are available. In all honesty, I wouldn't worry about it.

Try recompiling your apk then preparing it separately, instead of recompiling and preparing in one go. Of the two errors you mention at the start of your post, the preparing error isn't anything to do with the compiling process and I have no idea at what stage you're getting the error about a file not being found.

If I know the precise process you do, I can more easily work out what the problem is.
[Android Themes] :
Yeah, I had problems but i't's fine now, thanks for the reply anyway :highfive:
[Android Themes] Ticklefish:
Oh, that's good news. I'm glad you got there eventually.
[Android Themes] usf1996:
Sorry for not beeing clear enough, i meant that i can't get them to show up on the statusbar. I still get the stock signal icon after flashing the moded zip
[Android Themes] Ticklefish:
Can you share your original and modded apk's please? Oh, and the zip you made as well?
[Android Themes] smegg:
I have been trying to figure out how to get anything other than battery to mod on my galaxy note 10.1 with TW4.1.2 with no success. I am a cheerful copy paster not a dev dammit! lol. anyways, just thought you should know that TW on this device at least, defies all theming! ;)
[Android Themes] limyuyang:
Sorry for the delay.

I'll give you my original apk & modded apk as well as the standard zip file & advance zip file

Links:

Standard zip file ( include both zips ): https://www.dropbox.com/s/1jcfbctpy16p3tr/StandardZip.rar

Framework-res ( include modded and original ):https://www.dropbox.com/s/49oomcurhvu017j/framework-res.rar

Systemui ( include modded and original ): https://www.dropbox.com/s/k4add6c6x5eqkid/systemui.rar

P/S: For your information, to identify which is modded and which is apk, the file name with the "1" is original. Example: Systemui.apk ( modded ) and Systemui1.apk ( original )

Well, I'll tell you how I change my battery icon.

I followed all your steps from 1 to 8. And for the 9th steps, I choose standard zip files while not advance zip file. As you can see my SS below, the battery icon is only added to systemui.apk & framework-res.apk only. After that, I add it, and it shows the battery icon is added. After that, I created 2 standard zip files, one for framework-res.apk while one for systemui.apk. After that, I flashed it in my phone, and when I wanted to press "reboot to system", the CWM shows this ( looks photo below ), and I don't know which to choose, so I chose "no".

I've think about it, I think maybe there's 2 factors that I can't change my battery icon.

1) I created standard zip files but not advance zip files. ( maybe only advance zip files can change battery icon ? )

2) I chose wrong option in CWM, I mean the message shown by CWM.

Thanks in advising and teaching, Thank you.
[Android Themes] usf1996:
Requested files:

- Zip file

- Modded SystemUI.apk

- Modded framework-re.apk

- SystemUI.apk

- framework-res.apk

Hope this helps
[Android Themes] Ticklefish:
Thanks, I'll have a look at your files as soon as I can.

Using a standard zip instead of an advanced one won't make any difference to whether your icons are changed or not. I have a few ideas about what may be happening but I'll know more once I've gone through your files.

Thanks!
[Android Themes] Ticklefish:
I replied to your last post about this. Can you share your files please?
[Android Themes] smegg:
I saw your reply and had a play around, but scripting is black magic to me atm. I am so new to this stuff you can still see the label. I will try theming again and share you the files soon. Thankyou for being so helpful tickle. I look forward to learning :D
[Android Themes] smegg:
http://d-h.st/oNh

Here are the themed files. Any suggestions greatly appreciated :)
[Android Themes] limyuyang:
Thanks for replying + helping me. Really appreciate it, thanks. :good:
[Android Themes] xmanberserker:
Hello guys:

Im new in this, i already used TMA replacing battery icons in some roms but in my current rom i have an issue, thanks in advanced.
[Android Themes] Ticklefish:
Well, I can tell I'm not going to get much PC time tonight so I'm going to see what I can sort out from my phone.

This could be interesting. As much as I love Android, when you need to be moving files around I still think you need a desktop with a mouse.

Anyway...

I had a look at this issue first. The modded SystemUI.apk does have new battery icons in it, which is good, but that's not the SystemUI.apk that's in the zip file.

The apk in the zip is the original, which does explain why the icons aren't changing.

I suggest resetting the tool and trying again. Don't worry about decompiling framework-res.apk, just install it so you can decompile SystemUI.apk.

If the zip still doesn't work, please post your history and the zip. But hopefully it should work!
[Android Themes] Ticklefish:
So your new icons have the running man behind them? If so, you have GOT to let me add those to the next version of TMA!! If not, what rom is this? Because there are some icons in it that need to be shared with the world!

Although the important thing right now is why your icons aren't changing. I have a theory about that..can you share a screenshot of your phone after flashing that zip please? I think I may know what's going on..
[Android Themes] Ticklefish:
Now downloading. It's very, very, very slow..
[Android Themes] Ticklefish:
Can you fill in the form from the op and attach your log files please? Then I'll have enough information to be able to help you.
[Android Themes] limyuyang:
Now I face a new problem. I can't create zip file at all.

It says error, zip file not created. ( look screenshot below )

And I realized that the modded apk has a "lock" on the apk icon. It doesn't have the lock earlier, but it appears today. That's weird.

I'll provide the history.txt
[Android Themes] xmanberserker:
What phone/tablet are you using?: s4 t-mobile sgh-m919

What version of Android are you running?: 4.2.2

What version of Tickle My Android are you running?: 7.1

What sort of rom are you on? (I need to know about OEM roms as well. That's things like Sense, Touchwiz, etc) touchwiz, rooted

What are you trying to decompile/recompile? systemui,apk

What resources apps have you installed? framework-res.apk, twframework-res.apk

Are the files you're using odexed or deodexed? deodexed

What mod are you trying to do? change battery icons

Do your files work if you decompile, recompile and prepare them without changing anything? No

What problems are you having? (Give me some detail here, don't just say "It doesn't work.") TMA fails recompile systemui.apk while changing battery icons and even when ghanging nothing.
[Android Themes] Ticklefish:
Well, it looks like you have the standard filenames in here. Hmm...can you share a screenshot of your device please? I have an idea..
[Android Themes] Ticklefish:
Odd. Try setting the destination of your zip file to 'c:\' and see if that sorts it out.

Is this a stock rom? It looks like the apk hasn't quite been constructed correctly. There are a lot of translation warnings. Those won't stop the app from working but it's not a good sign.

The thing that's stopping your apk from compiling is that series of errors about missing styles. The apk wants to use styles that aren't defined anywhere in your SystemUI.apk or your framework-res.apk.

There are two things you can try here. First of all, reset the tool and try again but WITHOUT installing any resource files. If that doesn't work, try installing framework-res.apk AND twframework-res.apk before you decompile SystemUI.apk. With luck, the styles might be defined within twframework-res.apk.

Give it a go and let me know what happens!
[Android Themes] usf1996:
Yes these are my icons, I really appreciate the fact that you like them, especially coming from an RT like you. Thank you very much. And sure i will send you a preview of all the icons when i get them working on my device.

As for the screenshot, see the attachment below.
[Android Themes] smegg:
Here you go mate. Please note I have tried the zips without any xposed frameworks installed. And themed from completeley stock files as well. Only the battery would change tho...
[Android Themes] xmanberserker:
Thank you for your reply Ticklefish

The rom im using is a custom tw, is not the stock one (http://xdaforums.com/showthread.php?t=2322367)

I just try to decompile systemui.apk without installing framework-res and without twframework-res and if fails, this are my logs, thank you.
[Android Themes] xmanberserker:
It fails also if installing framework, twframework, then decompile systemui.apk successfully but while trying to recompile it fails.
[Android Themes] Ticklefish:
Thanks, if you're able to share those icons that would be great.

The problem you're having isn't to do with the icons you've made...it's to do with the icon name.

Your icons are called stat_sys_signal_0.png, stat_sys_signal_1.png, etc. Which is fine, that's the standard Android way and that's what Tickle My Android uses. But, from the looks of that screenshot and looking at your apks, I reckon your icons need to be named stat_sys_5_signal_0.png, stat_sys_5_signal_1.png, etc.

Now, if you change your icon names to that, TMA might not be able to automatically change them. Sadly I'm not at home right now so I can't check.

If it doesn't change the icons, you can do it manually. I'll update the code so the next version will be able to deal with these sort of icons.

Try changing the filenames and see what happens.
[Android Themes] limyuyang:
Bro, what battery icon are you using ? It looks great !
[Android Themes] usf1996:
Thanks bro, I really appreciate it (I was inspired by the game Portal by Valve, I'm a big fan), it took me forever to make them but totally worth it, I'll send the battery and signal icons to Ticklefish so he can add them in his next version.
[Android Themes] xmanberserker:
I found something that maybe can be useful but i do not understand at all, what i mean: how to do this steps but using TMA? (where says second problem)

http://xdaforums.com/showthread.php?t=2478761
[Android Themes] limyuyang:
Ok. TQ. It really look nice.
[Android Themes] Ticklefish:
That'd be really cool. The next version is now in beta. I'm at the stage where I'm looking for new icons so that's perfect timing!

Basically, you just need to open the xml files mentioned in your error with a text editor. I'd suggest Notepad++ as it's very good for editing code.

You'll have some code that starts '@style' and then the name of the style mentioned in the error. Change that to '@+style' for each missing style.

Then recompile.

Personally I wouldn't worry about the translation warnings. That won't stop the apk from working.
[Android Themes] usf1996:
You were right, the issue was from the name of the icons, I renamed them and changed them manually in drawable-hdpi and drawable-xhdpi, and just like that the icons showed up in my statusbar. I'll PM you the icons so u can add them in to the next version of TMA.
[Android Themes] Ticklefish:
Just sent you a pm...but I'm on the xda app and I'm not completely convinced it sent..
[Android Themes] Ticklefish:
Excellent! That is good news, I'm glad it worked.

I've updated the next version of TMA so it will change those icons automatically. Thanks for that, it's very useful to know about these things. :)

And the icons are great. You've got some talent there! Any more would be very welcome!
[Android Themes] usf1996:
Thanks It's a real honor to have my icons in a theming tool like TMA. I will notify you when i make new icons so you can check them out.
[Android Themes] xmanberserker:
Thank you for your help, i found the solution for my issue and i hope it helps somebody else: http://xdaforums.com/showthread.php?t=2292799
[Android Themes] Ticklefish:
Nice. Thank you!
[Android Themes] Ticklefish:
Looks like you have pretty much the same problem as my friend usf1996. In your case Samsung have ever kindly decided to name their icons differently to the usual standard. I'll update the next version of TMA to take this into account but for now it looks like you'll have to change the icons manually.

Good old Samsung..always causing trouble!
[Android Themes] smegg:
Lol, they are mischievous lil buggers... and thx heaps for the help!
[Android Themes] ..::WD40::..:
API level

Is it possible that with your tool set to do something for an application that runs on GB but will not work on Jellybean be modified to work on Jellybean?

API level change?

I do not know maybe too much to ask. :angel:
[Android Themes] usf1996:
Quick question:

What line should i edit in status_bar.xml to change the padding between the battery and signal icon?
[Android Themes] trabeast:
hey guys. any of you know how to remove this divider in my expanded notif bar?

the image is attached in this post
[Android Themes] Ticklefish:
Wait..did you say you're using a theme?

I don't know, to be honest. I've never tried. You could try changing the Manifest, just make sure you do a backup first!

Quick answer: dunno.

Lol

If you can share your xml, I can take a look.
[Android Themes] smegg:
No. I tested with stock. Thx tho!
[Android Themes] Madaditya:
App for Gb should work on jb??!

Status-bar.xml or values/styles.xml

find the line which describes you looking for and reduce the dpi length

Dunno,should help

All trial and error

Replacing divider with transparent image or in styles.xml or respective xml making it 0 dpi

Have seen few themers use this trick
[Android Themes] trabeast:
cant seem to find the divider. even its image. been scanning systemui.apk for the image and also in the styles.xml but still no luck. But thanks for the reply anyway :laugh:
[Android Themes] William_couch:
Not sure if i'm the only one having this problem but I thought Id ask. Everytime I download TMA I've tried multiple sources I download the files and install them at first is was default to desktop and then I tried installing it to /C but everytime I try to open it It gives me file cannot be located and It's just a shortcut to an empty folder no matter how I try to open it.

Any help?