1). watchprosp 动态监视 android 系统属性的变化,有变化就会输出:
255|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 优先于移动网络的数据,一般应设置成这样,除非你刻意使用移动网络数据传输
root@android:/data # svc power stayon usb |
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于