tsnm
02/12/14, 12:51:58
Empiezo diciendo que este tuto no es mio, y como no tengo ni idea de como hacerlo lo pongo aquí a ver si alguien se anima y saca algún zip flasheable. Toda la información es un copy&paste de aquí: http://forum.xda-developers.com/nexus-4/themes-apps/how-to-add-ambient-display-settings-t2956690
Bueno ya he encontrado el ZIP y le he flasheado correctamente y funcionando!! El ZIP viene de aquí: http://forum.frandroid.com/topic/207...y-for-nexus-4/ (http://forum.frandroid.com/topic/207990-zipstock-lrx21t-ambient-display-for-nexus-4/)
Pero aquí tenéis el enlace directo: https://mega.co.nz/#!CAVlTbTL!ipndLM...33leAmRpwjpSPQ (https://mega.co.nz/#%21CAVlTbTL%21ipndLMxkMtfybM9BGJW1917nmR2gS33leAm RpwjpSPQ) Solo hay que flashearlo y listo ^_^
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
First decompile Systemui.apk with this comand
apktool d systemui.apkNavigate to systemui/res/values/bools and open it with Notepad++ and change this line:
from
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool> to
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool> Save and ricompile systemui with this comand:
apktool b systemuiNow start to mod framework-res.apk
Decompile framework-res.apk with apktool with this comand:
apktool d framework-res.apkNavigate to framework-res/res/values/string and open it with notepad++ and change this line:
from
<string name="config_dozeComponent"></string> to
<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
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool> to
<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
<integer name="config_screenBrightnessDoze">1</integer> to
<integer name="config_screenBrightnessDoze">17</integer> Now recompile with this comand:
apktool b framework-res.apkEnjoy Ambient Display
http://forum.xda-developers.com/attachment.php?attachmentid=3039185&d=1417250130
Bueno ya he encontrado el ZIP y le he flasheado correctamente y funcionando!! El ZIP viene de aquí: http://forum.frandroid.com/topic/207...y-for-nexus-4/ (http://forum.frandroid.com/topic/207990-zipstock-lrx21t-ambient-display-for-nexus-4/)
Pero aquí tenéis el enlace directo: https://mega.co.nz/#!CAVlTbTL!ipndLM...33leAmRpwjpSPQ (https://mega.co.nz/#%21CAVlTbTL%21ipndLMxkMtfybM9BGJW1917nmR2gS33leAm RpwjpSPQ) Solo hay que flashearlo y listo ^_^
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
First decompile Systemui.apk with this comand
apktool d systemui.apkNavigate to systemui/res/values/bools and open it with Notepad++ and change this line:
from
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool> to
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool> Save and ricompile systemui with this comand:
apktool b systemuiNow start to mod framework-res.apk
Decompile framework-res.apk with apktool with this comand:
apktool d framework-res.apkNavigate to framework-res/res/values/string and open it with notepad++ and change this line:
from
<string name="config_dozeComponent"></string> to
<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
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool> to
<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
<integer name="config_screenBrightnessDoze">1</integer> to
<integer name="config_screenBrightnessDoze">17</integer> Now recompile with this comand:
apktool b framework-res.apkEnjoy Ambient Display
http://forum.xda-developers.com/attachment.php?attachmentid=3039185&d=1417250130