yashsingh1/xdaforums huggingface dataset:
[Android Themes] tdunham:
That's always an easter egg hunt finding where the color is stored.

The easy way is to at least search for the color code and search for it in resources.

I take a screenshot and use colorpicker from the play store to find the value:

https://play.google.com/store/apps/details?id=com.nauj27.android.colorpicker&hl=en

The more intelligent way to do it is to install the full android sdk, update it and manually run the monitor.exe in the tools folder which is a really nice way to find what the layout or xml is used for a particular area of the screen.
[Android Themes] Papeekruts:
nice thanks! very informative and simple to understand for noobies like me:) thanks mate!! :good::good::good:
[Android Themes] Papeekruts:
is there any thread you can recommend to guide me on doing it.?
[Android Themes] xenreon:
here
[Android Themes] 1storm976:
i tryed to decompile the LegacyInCallUI.apk but get an error .. i changed the apk tools and still errors. im stumped..

Using Apktool 2.1.0-a64a03-SNAPSHOT on LegacyInCallUI.apk

I: Loading resource table...

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\BLAZE\apktool\framework\1.apk

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010406da

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:65)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:61)

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)

at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)

at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:5￼

at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlItemValue(ResScalarValue.java:50)

at brut.androlib.res.data.value.ResArrayValue.getType(ResArrayValue.java:80)

at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:52)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:502)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:137)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)

at brut.apktool.Main.cmdDecode(Main.java:165)

at brut.apktool.Main.main(Main.java:81)

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

Decompile Not Successful!
[Android Themes] Ticklefish:
This is the error that's stopping your decompiling from happening:

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010406da

Essentially, there's something in the APK (with the reference 0x010406da) that apktool can't define. Did you install all the relevant frameworks? If not, try doing so as they might provide apktool with enough information to decompile the file.
[Android Themes] 1storm976:
how do install frameworks i see it as a folder .. sorry to such a nubie to this i just started tring to do this stuff yesterday. ive decompiled other aps but this error was new to me. thx
[Android Themes] Ticklefish:
No need to apologise for being new, we all were at some point. Heck, when I joined xda I didn't know anything at all. None of this made any sense to me. It just takes time and practise.

Installing frameworks is fairly simple. Essentially, framework files are APK's that contain information that other APK's use and which is needed to decompile successfully. The main one is "framework-res.apk" but lots of OEM's like to add their own. So there's also "twframework-res.apk" for Samsung TouchWiz ROM's, "SemcGenericUxpRes.apk" for Sony ROM's and a few others.

The handy thing is that they all contain the word "res" in their filename and they always live in "system/framework/". TMA lists the most common ones in the Pull Menu.

To install them, just put the install APK's in the "_in" folder and select the "Install Framework On PC" option in the Theming Menu.

Once your frameworks are installed, the resources they contain can be used by apktool when it decompiles. So try decompiling your file again.

Hopefully that should sort out your issue. If not, the problem might lie with the actual APK itself.
[Android Themes] ahmed_ais:
Thanks. I too like Samsung and was going to ditch them for the same exact reason. However, your tool really made me change my mind. Before using TMA, I did not dare to think about decompiling, recompiling, signing, zipaligning, how android APK is organized, how to look for a resource or value defined within the apk, how to install a recompiled apk, and more. Yes we can do all that using the bare tools but the most important thing I got from starting using TickleMyAndroid is to learn as it provides some of the tough bits in ease and gives the user the space to focus on learning other things.

Couple of days ago, I had no idea about anything. Today, I'm able to change any app's icon, name, and track down the faulty APK's that refuse to recompile and fix the issues. For example, Samsung's music app (for S6 flat and the ROM I'm using at least) will never recompile due to missing resources unless a workaround is provided which I was able to fix. I was also able to make changes to SystemUI and change colors of areas that I thought it can only be changed using a theme from the store (first attempt example). I was able to make these changes by utilising Android Device Monitor you hinted about a few posts earlier and tracking down resources. I even started developing for android making small apps then decompile them to track smali changes in order to properly mod some parts of other apps when code is involved. Hey! I just said smali? I never thought I would be doing anything with smali !!!!

In short, the marvellous thing about Tickle My Android isn't just its easy to use functions, all in one place. For me, it was how it inspires me to do and learn more which is invaluable.

[MENTION=4315551]Ticklefish[/MENTION], I really want to thank you big time ...
[Android Themes] 1storm976:
OK that explains a lot I'll give it a try then I get more time. Thank you very much.
[Android Themes] Ticklefish:
Gosh. Getting feedback like that really makes this all worth it. Thank you very much! I'm glad TMA has proven useful.

And you're on your way to becoming a smali Master, eh? I'm still a noob at that so you're already ahead of me!! Lol

Of course, if you wanted to show your support and you wanted to help spread the word, you're always welcome to put one of the banners in the OP into your signature.

People with banners are the Elite and have been scientifically proven to be 113% more awesome than anybody else. Honest!

Anytime. Let me know how it goes.
[Android Themes] ahmed_ais:
No need to thank, you deserved every word. I re-read the OP and found much more to learn so thanks to you. I added the banner to my signature as an appreciation to your work and also because people need to spend some time here .. keep up the good work!
[Android Themes] Bartekreaper:
Hi, i got some errors when unpacking :( i Re-downloaded but still the same thing :/

Edit. Re-downloaded some times and worked :P
[Android Themes] 1storm976:
Okay quick question I got frameworks installed now do I have to decompile that apks or are they already decompiled from installing frameworks
[Android Themes] xenreon:
After installing the frameworks there part is done ! Now go and recompile the apks you wanna mod ;) and also a point to be noted if you don't know is that to mod an apk from a certain rom you'll need the frameworks from that certain rom installed/imported, goodluck !!
[Android Themes] 1storm976:
OK got it thank you
[Android Themes] FunSucker:
Hello, sir. Some people who are read my thread asked me about Huaweii compatibillity, sir. Apktool cant dc/rc every Huaweii devices or just get issues in some variant, sir?
[Android Themes] devadip:
No way to deco/recompile

Huawei apk...

Did someone find something?

inviato telepaticamente dal mio Leary jet
[Android Themes] xenreon:
I don't think anyone have find a way, Huawei has to share their source and methods for building apks, only then a decompiler will decompile Huawei apks without any trouble
[Android Themes] FunSucker:
Nope, sir. Some people want to trying TMA, and asked me "Cant i use TMA to my Huaweii?". So i looking at the answers in here.

Hmm oke. so the point is Huaweii devices cant be modded, sir?
[Android Themes] xenreon:
I don't have any personal experience with them, but I think they can be modded but you'll struggle a huge lot while doing so
[Android Themes] FunSucker:
Oke im understand, sir. Thanks very much.
[Android Themes] devadip:
I always user TMA with samsung and LG devices and everything was ok.... But with my Huawei mate8, nothing to do.... I used apktool version from 1.5.2 to 2.0.3....but nothing can recompile

Huawei's apk

inviato telepaticamente dal mio Leary jet
[Android Themes] zelendel:
This is because of them changing the way it is built. The apktool dev has already stated he will not support every change oem make. This is very common is China based phones.
[Android Themes] xenreon:
Wonder what's the point on taking open source base and making that closed source
[Android Themes] zelendel:
Every OEM does it. Nothing new. Hope this OEM will work with developers and not against them like many other oem
[Android Themes] devadip:
Me too[emoji35] [emoji35] [emoji35]

inviato telepaticamente dal mio Leary jet
[Android Themes] xenreon:
My touchwiz love (yeah I'm like that) is decreasing because of that, yeah let's hope so
[Android Themes] xenreon:
Hey ! NEVER QUOTE THE OP/FIRST POST OF A THREAD !! And looks to me like you haven't installed the frameworks properly
[Android Themes] FunSucker:
Yeah, agree. Open source being closed source now, for some "peoples".

Btw, thanks for all of the answers :)

If you really want to get attention from threadmaker, MENTION feature is very usefully i think :p
[Android Themes] kenzukie:
Wow new version , i agree for the best theming tool . that we used of my team.

Cheers :

Sent from Miui Global Stable 7.1
[Android Themes] alphamale:
cant recmpile system ui

Trying to mod system ui for 3 mint. using vrtoxin mm rom vzw lg g3. I can decompile, but cant recompile without getting errors. I didn't even edit anything yet it just wont recompile. version 12.0.1. Also when I install framework to computer emulator force closes
[Android Themes] alphamale:
Edit. The problem is that I can't install ROMs framework res onto computer for some reason. The emulator force closes. Is there a way to manually installed framework resources.
[Android Themes] tdunham:
Do you have full java sdk suite installed? I think it is a necessary requirement for the tool to work properly.
[Android Themes] Ticklefish:
NEW VERSION COMING SOON!!

​

Version 13 is almost ready for release!

I've done all the code, I just need to do the last few bits of bug-checking and work on some screenshots. Strangely, the screenshots seem to take longer than the actual code itself...:confused:

Keep your eyes open, the countdown has begun!!​
[Android Themes] thereassaad:
My eyes always on this thread even if i didn't write anything but i do my eyes its here & now hope the Apktool sort the issues with tw mm 6.0.1 xxx.apk [emoji16][emoji16]
[Android Themes] devadip:
I hope to use TMA 13.0 with huawei apk [emoji4] [emoji4]

Thanks for your work and for share it with us [emoji106] [emoji106]

inviato telepaticamente dal mio Leary jet
[Android Themes] alphamale:
I honestly don't know what version I have. I've been using this tool for a while this is the first time I've encountered this issue. I will check when I get back home thanks for reply
[Android Themes] JT1510365:
Ticklefish you are such a wonderful and kind person. I love to use your ticklemyandroid tool on my computers and I love that you help everyone out. Always remember that you are an amazing person that sets a good example for others and may god bless your sweet soul and heart. I wish i could pat you on the back and meet you in real life just to say thank you for all your hard work:)

God bless you:)
[Android Themes] Ticklefish:
Version 13 will still be using the same apktool files as before. So any files that can't be decompiled now will continue to have trouble.

For the Samsung APK, try using apktool 2.0.0. You can download it from here: https://bitbucket.org/iBotPeaches/apktool/downloads

Huawei build their APK's in a different way to standard and don't share how it's done. Which means, until they become open-source, their APK's are always going to be difficult to de/recompile.

There's not much that can be done about this right now. Hopefully the next version of apktool will fix the issue.

Aw...thanks for your kind words! It's always nice to get positive feedback!

Don't forget, you can always add one of the TMA banners to your signature if you want to help spread the word about this tool. It's the best way to show support! :D
[Android Themes] Ticklefish:
It has begun.

Check out the OP to download Version 13 of The Greatest Theming Tool Ever Made!

This features the return of the Quick Menu (which made a partial reappearance in the last version) as well as batch de/recompiling. You can tell TMA to decompile all the files, or up to five in succession. The tool will try one after the other and let you know which ones worked and which ones failed.

There have also been a few minor changes to the code which, as usual, you probably won't notice but it makes everything work that bit more smoothly.

TMA still can't deodex Marshmallow. I know how to do it but I need an odexed Marshmallow ROM to test it on. Sony should be releasing a stock ROM for my phone very soon so, once they do, I'll be updating the tool.

In the meantime, if you would like any features added to Tickle My Android, or anything changed, just let me know. This tool is made for you, after all!

Enjoy!

p.s. The screenshots in the OP are out of date. I'll be changing them as soon as I can. They should be correct in the next few days.
[Android Themes] xenreon:
Wow quite a bunch of useful stuff :D
[Android Themes] md1982:
Hi again ppl I'm still having trouble IV since changed my rom still lollipop deodexed debloated and still getting errors and I think it may be the same problem with the XML files and drawables have no idea will attach the logs after IV downloaded the new version thanks for that tickle
[Android Themes] FunSucker:
W.O.W :D Great news, sir :fingers-crossed:

I don't need to download the other packs i think, because they are the same with v12.0.1 right ?
[Android Themes] Ticklefish:
That's right. I haven't updated the icon, fonts or boot animations packs yet.

But I'll be looking at that soon!
[Android Themes] starbucks2010:
Guys,

Using TMA 12.01, I decompiled, modded some colors and recompiled back (keep original signature) successfully the latest whatsapp apk. The problem is that once I replace the original apk with the recompiled apk, my icon from the app drawer is disappearing. Any idea what could be wrong?
[Android Themes] Ticklefish:
Try recompiling with a new signature. That's worked for me in the past.
[Android Themes] zelendel:
The issue could be that like many apps they are becoming non-modable. There are many apps now that when they are decompiled/unzipped then they self corrupt and wont work after that. Now mind you this is only a theory as I am not sure about whats app as everyone I know stopped using it a few years ago.
[Android Themes] tdunham:
I tend to agree...

Some apps will appear to de/recompile fine but they will not run after they have been altered (even if they have not been altered, just gone through the process).

I seem to recall someone saying Whatsapp was one of them but keep trying, I could be wrong on that one. ;)
[Android Themes] zelendel:
Yup handcent and Root explorer are 2 that I know for sure that do it.

I have even heard rumors that some are signing every single file in the apk so not a single thing can be changed.

Like I said I cant really say about FB as I have never used it and everyone I kow stopped using it and moved to other apps that do the same thing.
[Android Themes] seamo123:
Very quick question... I've been trying to use your guide: http://xdaforums.com/showpost.php?p=25621639&postcount=3

I'm trying to deodex my files so I can go some way towards theming my tablet. The tool pulled the files from my tablet no problem, and now I have the app/framework/priv-app folders in the 'deodex' folder of workspace 1.

When I try to go any further, I always get this:

Error! Files Not Found In Folder:

"_WorkArea1\_deodex\priv-app\_OdexFiles"

Press any key to continue . . .

The instructions have confused me a little.. should I be placing ODEX files in the folder the tool is searching in? I don't have any odex files - for example in my 'app' folder I have a bunch of folders for each app with the relevant apk file in each folder - see pic attachment showing a sample path.

Can anyone tell me what I'm doing wrong?
[Android Themes] Ticklefish:
Do you have any .ODEX files at all in your ROM? The screenshot you shared just showed the .APK on its own, which suggests you might not.

If you don't have any .ODEX files in your ROM, your ROM isn't odexed..
[Android Themes] seamo123:
I don't have any odex files at all it seems, Does it follow then that if my ROM isn't odexed it must be deodexed? And does that mean I should be able to theme ok without 'deodexing?' Any theming tool I've used so far has sent me into a soft brick whenever the 'systemUI' apk is touched.
[Android Themes] Ticklefish:
Yup. A ROM is either "odexed" (with .ODEX files) or "deodexed" (without .ODEX files).

You don't need to deodex your ROM because your ROM is already deodexed.

If you haven't been able to mod your SystemUI.apk so far, it's worth looking at your process. The first thing I suggest is decompiling SystemUI.apk and recompiling it without any changes. If your new APK doesn't work in your device, there's something wrong with your method.

Handily, TMA keeps a log of what you're doing. So, if it doesn't work, we can work out why and do what we need to do to get you modding!

Let me know how it goes!
[Android Themes] seamo123:
Cool, thanks! I'll let you know how it goes. Btw, what apk files are relevant for theming with Android 5? I'm thinking systemui.apk and framework-res.apk.. have I missed any?
[Android Themes] Ticklefish:
Well, it depends what you're theming. And who made your ROM as different OEM's have a tendency to use different filenames.

But SystemUI.apk is a good start. Once you've got to grips with that, you can look to see what else you could be modding..
[Android Themes] seamo123:
Well, I decomplied and recompiled framework-res.apk/systemui.apk/settings.apk - replaced them on my tablet, restarted, and everything's working normally. So that's a good sign! :)

Dunno if you can shed any light on this one though, any input would be much appreciated. :)

Basically I want to start by changing the 'settings' menu to a black background with white text but I have no idea where to find the xml file this guy is talking about in the quote below.

(main thread:http://xdaforums.com/android/themes/guide-t2978121)

Might you know what its name is and what folder it's in?

Also, how can I change the colour of the text in the 'settings' apk?
[Android Themes] Thebear j koss:
values folder after decompile. styles.xml will be there. it may also be in a valuesv21, v19, v17 etc folder. depending on where your device pulls from.

Hail ?
[Android Themes] seamo123:
I'll have a gander at it at see what I can do..

*EDIT* Gotta be honest here, I'm really not sure what to change. I could be messing around with it forever and not get anywhere. :confused:

I attached the styles.xml in .txt format if you wouldn't mind giving it a quick look?
[Android Themes] starbucks2010:
Well, it sounds that this is not the case for whatsapp - at least for now. It was just a problem of signature. It has to be recompiled with other signature than the original one.

Thank you for your inputs though.
[Android Themes] Thebear j koss:
find that line from the guide you posted. and just change the theme from whatever it is device.default.light or Material.Light to whatever it needs to be device.default,Theme.Material,or Holo. it is pretty easy.

Hail ?
[Android Themes] seamo123:
I know.. I would've gone that route if the instructions matched up with what I actually had in my decompiled apk, but they don't. For example, the 3rd line for changing 'settings' doesn't even appear in my styles.xml and the other two lines don't quite match up to anything either. This seems to be a real needle in a haystack deal, every device seems to be different. It's a pity too because Ticklefish's tool is the only one I've ever used that decompiled/recompiled (especially recompiled!) without a hitch. *sigh*
[Android Themes] zelendel:
The settings background uses the default background from frameworks-res. Its in the no dpi folder. You can change what image it uses in the settings apk.
[Android Themes] seamo123:
Thanks, I'll take a look at that! Where can I alter the colour of the font though? A black background behind a black font wouldn't work too well.. ;)
[Android Themes] zelendel:
Have a look in the settings apk for the default style. Normally it uses most colors and what no from the frameworks res. The big thing is that if you change the text color is that it covers all the text for the system. So it might take some figuring out. Also be careful as apps also ref these settings you could end up with BOB issues on 3rd party apps. (Black On Black) I have been fighting it for years myself. Unless you are using a rom with CM theme engine it will be a very long fight.
[Android Themes] seamo123:
So I should find a 'no dpi' folder in the decompiled framework-res somewhere? Just been looking and I don't see any sign of it. Where is it usually found? In the 'res' folder?
[Android Themes] zelendel:
Yes it will be in the res folder. This is where you will make most of your changes.
[Android Themes] seamo123:
Darn. Just went through the 'res' folder and there's not any folder called 'no dpi'.. Any alternative names you might be aware of? There is a folder called 'color' however. I dunno, it's all a bit of mess really, isn't it? ;)
[Android Themes] zelendel:
Hmm odd. Search for background in the res folder. It has been awhile since I messed with anything outside of the Theme Chooser.
[Android Themes] seamo123:
There IS a folder called 'drawable-nodpi-v4' in the 'res' folder.. is that what you're talking about?

Here's a screenshot of what's inside it.
[Android Themes] xenreon:
It can be, try to edit things inside it and see, and before that do take another look inside the res folder to see if there's any other drawable-nodpi folder available or not
[Android Themes] zelendel:
After looking at that file I see that you are on an OEM based rom from Asus, which means there is most likely an oem framework that will control things as well. It could be in there.

Bear with me as I have not touched themeing since the mistake that is the material design.

Look in frameworks-res/res/drawable.xml there should be something in there for background. See what that says as well.

This is what alot of use that started themeing back when android first came out call "The great XML hunt"

You will spend most of your time cross refing xmls.

If you upload your frameworks-res, OEM res (I dont know the name but it will be the only other apk in system/frameworks) And I will be able to tell you were to look better.
[Android Themes] seamo123:
Thanks! Here's my decompiled framework-res - there wasn't another apk in the system/framework folder, believe it or not!

"The great XML hunt..." Can't say I like the sound of that! ;)