From: http://hi.baidu.com/nignt_yoco/item/b6f173700c3df328d7a89cc3
The procedure is as follows:
1. Change the value of def_screen_off_timeout in the ults. xml file under the/frameworks/base/packages/settingsprovider/RES/values directory to-1, that is
1 |
<Integer name = "Def_screen_off_timeout" >- 1 </Integer> |
The screen will never sleep. (But at last, I burned it onto the board. I didn't know whether it was because I set the display or something at the beginning. I found that the screen would sleep and become dark...)
2. About 191st lines in the keyguardviewmediator. Java file under the/frameworks/base/policy/src/COM/Android/Internal/policy/impl directory are modified as follows:
12345 |
/** * external apps (like the phone app) can tell us to disable the keygaurd. */ private Boolean mexternallyenabled = false ; |
RecompileProgram.
Later I found that the system file was burned and written, as if the kernel was not dormant ~~~ (This is what I need)