JB 4.1.2 XXELLC - Custom clockcolor in phonesettings, guidence wanted.

tsw_sweden

Senior Member
Nov 14, 2012
568
276
0
Västervik
Hi all!

Working on my rom (JB XXELLC), and got and idea I just want to have some guidence with. Kinda a new to android (about 1 month), but picked up quite a lot allready, and done some simple smali / xml modding.

So, the idea is, to simply add an option in SecSettings with clockcolor, like the inkeffect setting (easy part).

The line in SystemUI xml files is also under control (like the color is basic xml code, like #blablabla)

Now, the thing I need a little guidence with is. When I have my colorvalue in secsettings, how do I get that value into the clock-color-value in the xml file?

The way I think is that choosen color is stoered in some adress (not known yet), say 0x111111 for now. And in the XML file (or some smali?), insted of a #fffffff color the color will be picked up from 0x1111111 ..

Am I thinking right? I'm not requesting a complete mod, or anything like that, just wanted to hear with you more skilled guys if I'm thinking right. Chose the correct method will cut down my dev time, a lot.. :) Of course It will be tricky, but that's a bit of the charm.

And sorry for bad english.. working on it :silly:
 
Last edited:

garyd9

Inactive Recognized Developer
Sep 13, 2006
2,644
2,730
0
50
Pittsburgh, PA
I realized that you said in your post that you wanted to cut DOWN your dev time, but I'm not going to contribute to that motive at all. Instead, I'm going to give you advice on how to massively increase your "dev time" at the same time as you massively increase your knowledge on how things work. After all, this section isn't about "quick" fixes. ;)

(Knowing the answer is nice. Knowing how to find the answer is much, much better.)

Why not grab cyanogenmod or aokp source, and find examples of what you are trying to do (pull a color from something set in settings) in the actual java source, then compile that firmware, and finally push it back through apktool (or whatever your using to disassemble the apk) and find the corresponding smali?
 
  • Like
Reactions: bradhoschar
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone