一 关闭开机锁屏
frameworks/base/
packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
@@ -192,7 +192,7 @@ public class KeyguardViewMediator {
/**
* External apps (like the phone app) can tell us to disable the keygaurd.
*/
- private boolean mExternallyEnabled = true;
+ private boolean mExternallyEnabled = false;
PS : mmm frameworks/base/packages/Keyguard/ -> Keyguard.apk
/**
* External apps (like the phone app) can tell us to disable the keygaurd.
*/
- private boolean mExternallyEnabled = true;
+ private boolean mExternallyEnabled = false;
PS : mmm frameworks/base/packages/Keyguard/ -> Keyguard.apk
eng模式下,生成apk push到对应的目录下。
--- a/packages/SettingsProvider/res/values/defaults.xml
+++ b/packages/SettingsProvider/res/values/defaults.xml
@@ -17,8 +17,8 @@
*/
-->
<resources>
- <bool name="def_dim_screen">true</bool>
- <integer name="def_screen_off_timeout">60000</integer>
+ <bool name="def_dim_screen">false</bool>
+ <integer name="def_screen_off_timeout">1800000</integer> /* 修改默认是显示30分钟后灭屏 */
<bool name="def_airplane_mode_on">false</bool>
<!-- Comma-separated list of bluetooth, wifi, and cell. -->
<string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,wifi,nfc,wimax</string>
(END)
+++ b/packages/SettingsProvider/res/values/defaults.xml
@@ -17,8 +17,8 @@
*/
-->
<resources>
- <bool name="def_dim_screen">true</bool>
- <integer name="def_screen_off_timeout">60000</integer>
+ <bool name="def_dim_screen">false</bool>
+ <integer name="def_screen_off_timeout">1800000</integer> /* 修改默认是显示30分钟后灭屏 */
<bool name="def_airplane_mode_on">false</bool>
<!-- Comma-separated list of bluetooth, wifi, and cell. -->
<string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,wifi,nfc,wimax</string>
(END)
PS : mmm
frameworks/base/packages/SettingsProvider/
eng模式下,生成apk push到对应的目录下。
二:一键boss启动camera
adb shell am start -n com.android.camera2/com.android.camera.CameraActivity
PS: 找到相对应的源码,
packages/apps/Camera2/
查看
AndroidManifest.xml文件,里面的
package和
<activity开头的就对应上面的
c
om.android.camera2/com.android.camera.CameraActivity
其他:
adb shell am start -n com.android.settings/.Settings 打开setting
adb shell am start -n com.android.settings/.DisplaySettings
网上的几条命令
Camera(照相机)的启动方法为:
# am start -n com.android.camera/com.android.camera.Camera
Browser(浏览器)的启动方法为:
# am start -n com.android.browser/com.android.browser.BrowserActivity
启动浏览器 :
am start -a android.intent.action.VIEW -d
拨打电话 :
am start -a android.intent.action.CALL -d tel:10086
启动 google map 直接定位到北京 :
am start -a android.intent.action.VIEW geo:0,0?q=beijing
三 :擦除data数据命令
adb shell wipe data
编译: 到某个 目录mm -B
本文将深入探讨Android系统中的高级操作方法,包括如何关闭开机锁屏、一键启动camera应用、擦除data数据以及关键命令使用。同时提供详细的步骤和注意事项,帮助开发者和用户实现更高效的操作体验。
2万+

被折叠的 条评论
为什么被折叠?



