網路城邦
上一篇 回創作列表 下一篇   字體:
android debug cmd - settings
2021/09/30 10:41:55瀏覽293|回應0|推薦0
settings put global bluetooth_on 0
settings put global bluetooth_on 1
settings get global bluetooth_on

adb shell settings list system
Android Settings provider (system namespace)

adb shell settings get system volume_system
Get current system volume level in Android.

adb shell settings get system notification_sound
Get current system notification sound in Android.

adb shell settings list secure
Android Settings provider (secure namespace)

adb shell settings get secure android_id
Find Android Device Identifier(Device Id)

adb shell settings get secure bluetooth_address
Find Bluetooth MAC address in android.

adb shell settings list global
Android Settings provider (global namespace)

adb shell settings get global mobile_data
Get current mobile data status in Android.

adb shell settings get global wifi_on
Get current WiFi status in Android.

=========== =========== =========== ===========
可以設定或取得的資訊有
http://developer.android.com/reference/android/provider/Settings.System.html

範例:

.取得目前 screen_off_timeout
settings get system screen_off_timeout
604800000

.設定 screen_off_timeout
settings put system screen_off_timeout 4800000

.取消 screen_brightness_mode , 設定背光 screen_brightness
settings put system screen_brightness_mode 0
settings put system screen_brightness 50
( 不分類不分類 )
回應 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=greatcat&aid=168712501