• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Boost Mobile] Changing colors

Skinnyjeans21

Android Expert
I'm having a bit of a noob moment... I can't find the line that changes the statusbar clock color. I found the one for the header in SystemUI.apk but I couldn't find anything for the clock. I've searched in both SysUI and Framework-res. I've tried searching all over the internet too, but to no avail. Anyone have any ideas on where that line could be? I'm working on Halo ROM right now. Also, anyone know how I can remove am/pm from the status bar? Again nothing I've found online works...
 
I know, but I think its because of something he must've done to his settings.apk which I'm sure is dependent of his CTsettings.apk. I'm not sure if CTsettings can be modified to work with other roms...
 
couldn't find a statusbaricon.smali in services.jar... but I may find it somewhere else, thanks :)

EDIT: Found it in StatusBarPolicy.smali in SystemUI :)
 
I know, but I think its because of something he must've done to his settings.apk which I'm sure is dependent of his CTsettings.apk. I'm not sure if CTsettings can be modified to work with other roms...

Nah it's not his settings apk.He just added an action or intent in the settings menu which was linked to ct settings apk. You can use the apk independently if you tell it to show up in your app list by modding the manifest file. It's more that sysui is modded to work with ct settings. The sysui in my Rom is his old one modded to work in my Rom. It would still work with his ctsettings. You might have trouble changing the clock color on my Rom because of this. He may have made it dependent in a different way, but you should be able to change the default color through services.

Sorry my Rom is a bonafied Frankenstein. I had to do some crazy chits to get it working the way I did too say the least.
 
Its cool, and I'll figure this out eventually. Guess I'd better start reading up on smali for dummies or something :p

Actually... do they have that??

EDIT: They don't have it, and I'm not sure what to change the values to... I feel like I found a treasure chest but it has LoJack on it :(
 
If you are using sysui from my Rom there may be four options because there are four options to choose from in ctsettings: hide am pm hide clock large am pm small am pm.

Your best bet is to change am pm style normal to match the value of am pm gone if you are trying to get rid of it. Though this may not work if the value is pointing to a dependency in ctsettings apk. Still

I can almost guarantee that this isn't going to look the same in another Rom.

Also in another Rom I think the color value is going to be close to where I mentioned before (could be wrong though).
 
This could all be pointing too additional edits made in services that give sysui the info needed to choose which setting to display from ctsettings options. It's noting four options which of which two have the same values that are probably represented elsewhere (which I think is services).
 
This is pure speculation on my part but it had never served me wrong in eventually deducting the correct solution with minimal information.

Also you could just copy non modified smali files over from stick and then just edit them the less convoluted manner.
 
Oh yeah.. you could hit up tigatron or patf in a pm. I believe they both have altered the colors to their status clocks. They should be able to either give you a clue or an answer on a silver platter.

Don't mean to spam your thread but I want to help you find what you are after and u know my Rom isn't exactly the easiest one to work with this requiring all this convoluted tinkering lol.
 
N00b rom was the most difficult to theme for me, I switched to CTmod because it was so difficult to work with, and thanks for all your input, I'll get this figured out somehow
 
Requirement :
SystemUI.apk
A bit knowledge about decompiling
Patience
tongue.gif


First --->
Decompile your systemUI.apk, go res/layout/tw_status_bar.xml

Then --->
Search for this code
Code:
<com.android.systemui.statusbar.policy.Clock


Then --->
You will see
Code:
android:textColor="#fffefefe
behind it.
Now you may change whatever color you want by changing the code.

hope this helps
 
http://forum.xda-developers.com/showthread.php?t=1498859

??? clock.smali ???

This should work in theory as most of the guides i have used to mod the warp have been derived from the ace mods.

AM PM: http://forum.xda-developers.com/showthread.php?t=1966540

This might work to as the mods for moving lidroid to the bottom of notifications came from a guide for xperia (some minor stuff was different, but it wasn't anything drastic).

I think it would've been smart if I had looked at clock.smali, I was able to change the color! :D
As for the am/pm, I actually had that guide bookmarked from waaay back when I had n00b on my Warp. Didn't work unfortunately, there was no <integer name="config_clock_am_pm_style">0</integer> to change, so I just added <integer name="config_clock_am_pm_style">2</integer> to see what would happen... its in my phone right now, working fine, but no changes. But at least I got the clock the color I wanted it! :D :D :D :D

TimeOfDeath, I think that was for a phone with TouchWiz UI, though I did start my search in the place indicated. Nothing there.

Thanks for the help you guys! :)
 
I think it would've been smart if I had looked at clock.smali, I was able to change the color! :D
As for the am/pm, I actually had that guide bookmarked from waaay back when I had n00b on my Warp. Didn't work unfortunately, there was no <integer name="config_clock_am_pm_style">0</integer> to change, so I just added <integer name="config_clock_am_pm_style">2</integer> to see what would happen... its in my phone right now, working fine, but no changes. But at least I got the clock the color I wanted it! :D :D :D :D

TimeOfDeath, I think that was for a phone with TouchWiz UI, though I did start my search in the place indicated. Nothing there.

Thanks for the help you guys! :)

Let me know if we need some NitroMite ;)or some Dyna-glycerin. ;)
That;s a Dynamite/Nitro Combo!!!:D
Guaranteed to open up anything :smokingsomb:
 
Back
Top Bottom