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

Root [Boost Mobile] Changing colors

17215544-dynamite-mobile-phone-time-bomb-on-a-white-background.jpg
 
I thought I had blown the top off this when I made edits in smali to make the value after AM_PM_STYLE the same as AM_PM_STYLE_GONE in both clock.smali and statusbarpolicy.smali, but after building and pushing to my phone there was no change. I even tried matching the values to AM_PM_STYLE_SMALL in both but no change after a reboot. I just went through the Prevail threads (one of the members was trying to remove am/pm) and the only way they could do it was by adding in CTsettings from Bloodawn's rom.
 
I thought I had blown the top off this when I made edits in smali to make the value after AM_PM_STYLE the same as AM_PM_STYLE_GONE in both clock.smali and statusbarpolicy.smali, but after building and pushing to my phone there was no change. I even tried matching the values to AM_PM_STYLE_SMALL in both but no change after a reboot. I just went through the Prevail threads (one of the members was trying to remove am/pm) and the only way they could do it was by adding in CTsettings from Bloodawn's rom.

I wonder if it's hard-coded into the smali?
 
Well after looking at the original values in your screen shot I realised that there were already two similar values as noted in an above post and they point to somewhere else. The thing it's you can use ctsettings to change it but if you remove it it will just revert back when you flash the new Rom to default settings. So it would have to be added as a permanent feature. I think ctsettings is just something to facilitate the change else where as the clock still remains regardless of ctsettings bring installed our not. So it is absolutely possible to mod it without his apk.

Either we can figure it out or you can hit him up on xda and ask him if it's ok to use, but you would need to use the old one from 3.75 or else to make everything else included in the current version you would have to pretty much replicate his whole system.
 
Yes it's coded in smali for sure. And like I said I think it's in services because when I was fooling around with certain components of his Rom ctsettings would not work without his services.jar.
 
Well after looking at the original values in your screen shot I realised that there were already two similar values as noted in an above post and they point to somewhere else. The thing it's you can use ctsettings to change it but if you remove it it will just revert back when you flash the new Rom to default settings. So it would have to be added as a permanent feature. I think ctsettings is just something to facilitate the change else where as the clock still remains regardless of ctsettings bring installed our not. So it is absolutely possible to mod it without his apk.

Either we can figure it out or you can hit him up on xda and ask him if it's ok to use, but you would need to use the old one from 3.75 or else to make everything else included in the current version you would have to pretty much replicate his whole system.

Yes it's coded in smali for sure. And like I said I think it's in services because when I was fooling around with certain components of his Rom ctsettings would not work without his services.jar.

I'll try and do it without CTSettings, I wanna learn a bit of smali coding :p


I wonder if it's hard-coded into the smali?
Its definitely in smali, I haven't seen anything in any xmls that I've looked at, so I know it has to be in one of the three smali files that I mentioned earlier
 
If possible the clock should have the same options as CTMod, Ability to change colors, remove am-pm or reove clock alltogether. The clock up their in the status takes up to much real estate.
 
Yes it's coded in smali for sure. ...

... Its definitely in smali, I haven't seen anything in any xmls that I've looked at, so I know it has to be in one of the three smali files that I mentioned earlier

I meant not only in smali (that's a given) but coded directly in the code, as opposed to having been assigned a variable name.

Code-wise, it would be something like

.field private static final DO_SET_SERVICE_INFO:I = 0xa

versus

const/16 v1, 0xa

which both use the same value, but it's just represented differently.
 
Are we talking about in alliance Rom or my Rom? either way o can try to track him down and ask him if it's ok.

I meant in Alliance ROM, and I think I saw him somewhere on XDA a few days back...



I meant not only in smali (that's a given) but coded directly in the code, as opposed to having been assigned a variable name.

Code-wise, it would be something like

.field private static final DO_SET_SERVICE_INFO:I = 0xa

versus

const/16 v1, 0xa

which both use the same value, but it's just represented differently.

I highly doubt that its hard coded, in Mr. Bobo's ROM I remember he had a small am/pm, so I know he had made a change SOMEWHERE in the code, just gotta find where it is...
 
I DID IT!! Its in clock.smali, both color and am/pm...

I found out that the am/pm style is right after const-string v1, "clock_am_pm_style"
the line after, the one that says const/4 v2, 0x0 is what controls the am/pm style. changing 0x0 to 0x2 removes the am/pm as defined in the # static fields at the beginning of clock.smali. You can change the value in const/4 v2, 0xwhatever to any of the values here. Just replace 0x0 with the style you want thats defined at the beginning. Then, remove /4 so it looks like this:

const v2, 0xwhatever

then for color, look for const-string v1, "clock_color" the line after, it says const/4 v2, -0xwhateveryourcoloris

you have to take the hex value of the color you want and convert it using a chart I found on xda... I'll post a link to it. When you get the hex value converted throw it after -0x and remove /4 just like for am/pm.


took me forever to figure this out, and I had to read the java source to figure out am/pm. Figured I'd share for those who wanted to try this out or didn't know.
 
Back
Top Bottom