本帖最后由 wyk86485481 于 2016-09-26 13:36 編輯
1). watchprosp 動態(tài)監(jiān)視android系統(tǒng)屬性的變化,有變化就會輸出: - 255|root@android:/ # watchprops
- 1362449042 persist.sys.autolanguage = 'on'
- 1362449044 persist.sys.autolanguage = 'off'
復制代碼
2). svc ,控制power, wifi, modem狀態(tài)。 - 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.//設置移動網(wǎng)絡的數(shù)據(jù)是否啟用
- Set mobile as the preferred data network//設置移動網(wǎng)絡的數(shù)據(jù)優(yōu)先于WIFI
-
- # svc wifi
- usage: svc wifi [enable|disable]
- Turn Wi-Fi on or off.//設置WIFI是否啟用
- Set Wi-Fi as the preferred data network //設置WIFI優(yōu)先于移動網(wǎng)絡的數(shù)據(jù),一般應設置成這樣,除非你刻意使用移動網(wǎng)絡數(shù)據(jù)傳輸
-
- root@android:/data # svc power stayon usb
復制代碼
|