android下调试程序两个好用的命令watchprops和svc
2015-03-12 17:42
288 查看
转自 http://www.yinqisen.cn/blog-210.html
1). watchprosp 动态监视android系统属性的变化,有变化就会输出:
root@android:/ # watchprops 1362449042 persist.sys.autolanguage = 'on' 1362449044 persist.sys.autolanguage = 'off'
2). svc ,控制power, wifi, modem状态。
Available commands: help Show information about the subcommands power Control the power manager data Control mobile data connectivity wifi Control the Wi-Fi manager
svc power
usage: svc power stayon [true|false|usb|ac] Set the 'keep awake while plugged in' setting.//设置屏幕的常亮,true保持常亮,false不保持,usb当插入usb时常亮,ac当插入电源时常亮
svc data
usage: svc data [enable|disable] Turn mobile data on or off.//设置移动网络的数据是否启用 Set mobile as the preferred data network//设置移动网络的数据优先于WIFI
svc wifi
usage: svc wifi [enable|disable] Turn Wi-Fi on or off.//设置WIFI是否启用 Set Wi-Fi as the preferred data network //设置WIFI优先于移动网络的数据,一般应设置成这样,除非你刻意使用移动网络数据传输
相关文章推荐
- android Audio调试程序常用命令
- Android程序调试时出现的两个问题
- android手机adb调试程序命令
- android Audio调试程序常用命令
- Android下如何调试程序
- android中c/c++程序的调试(eclipse)
- android中c/c++程序的调试(eclipse)
- Windbg 教程-调试非托管程序的基本命令下
- Android下如何调试程序
- Android程序调试时生成main.out.xml文件
- android 调试 service程序
- Android程序调试时生成main.out.xml文件
- Android下如何调试程序
- Android 调试桥 ADB命令
- Linux下gdb调试程序的常用命令
- android 调试中 addr2line 命令的使用
- Android基础教程之----SMS简单发送短信程序(两个模拟器之间的通信)!
- Windbg教程-调试非托管程序的基本命令中
- android 调试中 addr2line 命令的使用
- VxWorks的两个调试命令