Booting with Unlocked Screen
To always boot with unlocked screen make the following change to frameworks/base/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
diff --git a/phone/com/android/internal/policy/impl/KeyguardViewMediator.java b/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
index c255041..c602c1b 100644
--- a/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
+++ b/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
@@ -553,7 +553,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
}
if (DEBUG) Log.d(TAG, "doKeyguard: showing the lock screen");
- showLocked();
+ //showLocked();
}
}
即是将/phone/com/android/internal/policy/impl/KeyguardViewMediator.java 代码下
if (DEBUG) Log.d(TAG, "doKeyguard: showing the lock screen");
//showLocked(); //注释即可
二。
让 touchscreen的home键一直有效
Unlock home screen without touchscreen
To unlock the home screen from the console prompt, enter the following on the console/adb shell:
input keyevent 82