Android下のロック画面に関する修正

1236 ワード

一. 
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のホームキーをずっと有効にします
 
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