在 framework/base/services/java/com/android/server/PowerManagerService.java:
private class SettingsObserver implements Observer {
........
public void update(Observable o, Object arg) {
synchronized (mLocks) {
......
// SCREEN_OFF_TIMEOUT, default to 15 seconds
mScreenOffTimeoutSetting = -1;//getInt(SCREEN_OFF_TIMEOUT, DEFAULT_SCREEN_OFF_TIMEOUT);
mScreenOffTimeoutSetting = -1;就可以disable 掉這個 function。
沒有留言:
張貼留言