Hey guys! Today I'll be showing you how to add the Ambient Dislpay in Settings:
Ok now we can start
First decompile Systemui.apk with this comand
Navigate to systemui/res/values/bools and open it with Notepad++ and change this line:
from
to
Save and ricompile systemui with this comand:
Now start to mod framework-res.apk
Decompile framework-res.apk with apktool with this comand:
Navigate to framework-res/res/values/string and open it with notepad++ and change this line:
from
to
Save and close.....
Now in the same folder open bool.xml and with notepad++ and mod this line:
from
to
Save it and close....
Now in the same folder open Interger.xml with notepad++ andmod this line:
from
to
Now recompile with this comand:
That's it!!! Enjoy with your new mod
NB... Remember to insert original Signature after recompile APK,you can find in original folder on apktool

You will need
framework-res.apk from the rom you are modding
SystemUI.apk from your Rom
Notepad++ or another text editor of your choice
apktool
Ok now we can start
First decompile Systemui.apk with this comand
Code:
apktool d systemui.apk
Navigate to systemui/res/values/bools and open it with Notepad++ and change this line:
from
PHP:
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool>
to
PHP:
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool>
Save and ricompile systemui with this comand:
Code:
apktool b systemui
Now start to mod framework-res.apk
Decompile framework-res.apk with apktool with this comand:
Code:
apktool d framework-res.apk
Navigate to framework-res/res/values/string and open it with notepad++ and change this line:
from
PHP:
<string name="config_dozeComponent"></string>
to
PHP:
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
Save and close.....
Now in the same folder open bool.xml and with notepad++ and mod this line:
from
PHP:
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
to
PHP:
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
Save it and close....
Now in the same folder open Interger.xml with notepad++ andmod this line:
from
PHP:
<integer name="config_screenBrightnessDoze">1</integer>
to
PHP:
<integer name="config_screenBrightnessDoze">17</integer>
Now recompile with this comand:
Code:
apktool b framework-res.apk
That's it!!! Enjoy with your new mod
NB... Remember to insert original Signature after recompile APK,you can find in original folder on apktool
In attachment file there is my apktool if you need
thanks to david279 for update guide
Attachments
Last edited: