[MOD] AOSP style System Mod v1.2.1 with circle battery & bright custom autobrightness

hypophysis

Senior Member
Oct 12, 2009
114
122
0
Neuburg a.d. Donau
[MOD] AOSP style System Mod v1.2.1 with circle battery & bright custom autobrightness

Hi!

Again I took the wonderful Mods from shaftenberg and enhanced them to my likings.

This is what you get with this pack:

Framework:
- Shaftenberg AOSP lockscreen mod 2.1 with upper part of the lockscreen reverted to stock moto (with sound on/off toggle)
- Original green notification LED, because this lets system apps flash green and other apps flash blue
- No more blue gradient backgrounds (by shaftenberg)
- Bright custom autobrightness for good readability under all conditions. I really like the vivid colors of the screen and don't want to sacrifice them for battery savings. My goal was to keep the perceived brightness stable under all inside conditions.
Starts at 33% in darkness and ramps up to 100% at above 1600 Lux (outside, cloudy day) using 15 steps from a plain exponential curve.
100% is reached early, because the screen isn't bright enough for really sunny conditions, so I see no sense in furher regulation when outside.

Status bar:
- Based on shaftenberg mod
- Centered clock (by arman68), slightly larger (but not bold) in holo blue
- Circle / percentage battery in holo blue, turns red under 15% (added with UOT kitchen further restyled by me)
- Signal bar with no pixelation color matched to WIFI signal bar
- All Radio related Icons color matched to the WIFI signal bar blue (so they are all a little darker than the clock and battery)
- Settings and clear notifications icons changed to original AOSP

Settings menu:
- All icons changed to AOSP style
- Misleading menu item "privacy" ("Datenschutz") renamed to "backup & reset" ("Backup und zurücksetzen")

Only flash, when you are on Jelly Bean 4.1.2!
Do a Nandroid backup before flashing (or backup framework-res.apk, SystemUI.apk, Settings.apk and the corresponding .odex files if you are on a odexed rom), just in case you want to revert later.


There are two versions of this pack - one for stock and one for those who want to flash on top of AIOmod. Be careful to flash the right version or you won't be able to access your SD card anymore (until you flash the right version).

Attention brazilian users: I've made a version that works on Brazilian stock ROM. Please don't flash the NeXus Softkey Mod or you will get force closes. If there is demand for a brazilian version for AIO mod (I have no idea if AIO mod itself is compatible with brazilian ROMs anyhow) or for the NeXus softkeys, then tell me.

By popular demand I added a mod for my mod that changes the Softkeys to the blue NeXus style with the coloured X instead of the home symbol. This ZIP only contains SystemUI, so you can flash it on top of both versions. Don't flash on top of the brazilian version!

Tools used for my modding activities:
- Virtuous Ten Studio
- ImageMagick (command line image manipulation)
- win-bash (UNIX Bash Shell for Windows)
- Greenfish Icon Editor Pro
- WinMerge
- Notepad++
- my brain :cool:

Changelog:

v1.1: Bluetooth symbol is now the same (darker) grey like airplane mode symbol, when bluetooth connection is active it turns to the same blue as the other radio related symbols. The annoying red "emergency calls only" symbol is now grey (also same grey as airplane mode symbol).

v1.2: Reworked the circle battery. Now with visible dark inactive circle segments (50% grey, 50% opacity) and restyled darker and flatter plug symbol. New NFC icon (modified cm10.1 icon). "Bluetooth active, not connected" icon is now the same grey as the other icons left of the signal cluster (white, 40% opacity), same for the "silent" icon, which was solid grey, whereas the "vibrate" icon already was that translucent grey. Some other very minor color corrections.

v1.2.1: Reverted the upper part of the lockscreen back to stock moto. It's also plain holo style and I like to have the sound on/off toggle and I like the divider line under the date. You can still flash over the NeXus Softkeys if you want.

v1.2.1a: People reported that the 1.2.1 lockscreen change was not present in version for stock. This is a corrected version.
 

Attachments

Last edited:

hypophysis

Senior Member
Oct 12, 2009
114
122
0
Neuburg a.d. Donau
For those who are interested, here are my sensor and brightness steps from framework-res:

<integer-array name="config_autoBrightnessLevels">
<item>4</item>
<item>6</item>
<item>10</item>
<item>16</item>
<item>25</item>
<item>40</item>
<item>64</item>
<item>100</item>
<item>160</item>
<item>250</item>
<item>400</item>
<item>640</item>
<item>1000</item>
<item>1600</item>
</integer-array>

<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>85</item>
<item>92</item>
<item>99</item>
<item>108</item>
<item>116</item>
<item>126</item>
<item>136</item>
<item>147</item>
<item>159</item>
<item>172</item>
<item>186</item>
<item>202</item>
<item>218</item>
<item>236</item>
<item>255</item>
</integer-array>

<integer-array name="config_autoBrightnessLcdBacklightValuesPowerSave">
<item>10</item>
<item>13</item>
<item>16</item>
<item>20</item>
<item>25</item>
<item>32</item>
<item>40</item>
<item>51</item>
<item>64</item>
<item>80</item>
<item>101</item>
<item>127</item>
<item>161</item>
<item>202</item>
<item>255</item>
</integer-array>

All values of the sensor and the brightness arrays are points on an exponential curve, because brightness perception is logarithmic.
When you put these values on a diagram with logarithmic x and y-axis you get a straight line.

I left the config_displayTempThresholdValues, config_displayTempHysteresisValues and config_displayProtectionCapValues arrays on their stock values, because I couldn't find any documentation what they exactly do.
 

hypophysis

Senior Member
Oct 12, 2009
114
122
0
Neuburg a.d. Donau
Is this safe to flash on Omar's ROM 5/28/13

Sent from my XT890 using xda premium
Should be, but not tested. If it doesn't work like expected just flash over the Omar ROM again. This mod can't do an harm to your phone.

Use stock version if you don't have the SD swap option installed and use AIO version if you have the SD swap installed.
 

dog121

Senior Member
Oct 24, 2011
1,437
599
143
london
Should be, but not tested. If it doesn't work like expected just flash over the Omar ROM again. This mod can't do an harm to your phone.

Use stock version if you don't have the SD swap option installed and use AIO version if you have the SD swap installed.
Thanks tried the stock version no go system ui force closes and I don't have the SD card swap to test the other zip thanks though looked nice

Sent from my XT890 using xda premium
 
Last edited:

hypophysis

Senior Member
Oct 12, 2009
114
122
0
Neuburg a.d. Donau
If tested it on a fresh stock install, and get the forces closes also. On my existing installation it worked like a charm.
Removed the downloads for now and will investigate. Already have an idea what could be wrong...
...seems to be a problem with apk signing process. Building new zips right now and will test...
confirmed to be working on fresh stock installation and on top of AIO Mod.
 
Last edited:

pacobahyba

Senior Member
Dec 8, 2010
119
45
0
Rio de Janeiro
Awesome work! But sadly I am getting bootloop after flashing it. I am flashing it on top of my 982.50.20.xt890.Brasil.en.BR rom (yes, stock). It is unlocked and rooted and I flashed the stock version. Any suggestions? Thanks in advance!!!

Sent from my XT890 using xda app-developers app
 

Daniel 9999

Senior Member
Apr 1, 2007
178
8
0
Hai hypophysis, is it ok for us to have the Battery indicator code for me to add into systemui.apk of stock GB JB with apkmultitools. thanks
 

hypophysis

Senior Member
Oct 12, 2009
114
122
0
Neuburg a.d. Donau
Awesome work! But sadly I am getting bootloop after flashing it. I am flashing it on top of my 982.50.20.xt890.Brasil.en.BR rom (yes, stock). It is unlocked and rooted and I flashed the stock version. Any suggestions? Thanks in advance!!!

Sent from my XT890 using xda app-developers app
Unfortunately I have no idea what is different in the Brazil version and why my mod causes a bootloop on it.
Can someone else confirm that there is a problem with my mod on the Brazil ROM?
 

hypophysis

Senior Member
Oct 12, 2009
114
122
0
Neuburg a.d. Donau
Hai hypophysis, is it ok for us to have the Battery indicator code for me to add into systemui.apk of stock GB JB with apkmultitools. thanks
I added the circle battery with Ultimate Online Theming Kitchen (UOT).
You can upload your SystemUI.apk there, choose a battery and color it to your likings. After a few minutes you can download your modded apk.