一。

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

更多相关文章

  1. Android利用tcpdump抓包
  2. Android多媒体开发(3)————使用Android(安卓)NKD编译havlenapet
  3. Android(安卓)长按显示上下文菜单代码
  4. android中获取SHA1的代码
  5. android中textview设置为多行文本时,如何让文字从最顶开始显示
  6. android 网络
  7. android 应用程序不出现在最近打开程序列表里
  8. Gradle DSL method not found: 'android()
  9. Android拍照、录像、录音代码范例

随机推荐

  1. 如何修改JTextField (Swing)以显示在用户
  2. Java_io体系之BufferedWriter、BufferedR
  3. 黑马程序员——java高新技术(下)
  4. (Java)出现/消失JPanel中的JLabel仅在调整
  5. 在Java中,使用DefaultSelenium对象在selen
  6. Eclipse Java开发环境的搭建
  7. java通过映射取得方法对一个类的变量进行
  8. JavaScript基础——变量、作用域和内存问
  9. 如何让我的基本SWT应用程序在Mac OS X 10
  10. 老农过河问题