02蓝牙配置信息
获取蓝牙地址信息
adb shell cd data/misc/bluetooth
cat bt_addr ;
// 打开蓝牙的开关
adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
To open wifi-
adb shell am start -n com.android.settings/.wifi.WifiSettings
To fetch wifi info -
adb shell am start -n com.android.settings/.wifi.WifiInfo
To fetch wifi status -
adb shell am start -n com.android.settings/.wifi.WifiStatusTest
To open language settings -
adb shell am start -n com.android.settings/.LanguageSettings
To open development option -
adb shell am start -n com.android.settings/.DevelopmentSettings
To open dateTime set-up
adb shell am start -n com.android.settings/.DateTimeSettingsSetupWizard
蓝牙中的配置信息
// proc/bluetooth // /etc/bluetooth
// 获取电量的信息
获取串号 adb shell getprop ro.serialno
获取MAC adb shell cat /sys/class/net/wlan0/address
获取Bluetooth地址 adb shell getprop persist.service.bdroid.bdaddr
获取电量信息 adb shell dumpsys battery | grep level
查看蓝牙的地址
adb shell cd data/data/com.android.providers.setting.databases select from secure ; select from secure where name='bluetooth_name' ; // 获取蓝牙的名字 select from secure where name='bluetooth_address' ; // 获取蓝牙地址 select from secure where name ='device_bound' ; 判断蓝牙是否绑定 select * from secure where name ='device_bound_time';获取蓝牙绑定的时间
查看属性
1|location_providers_allowed|gps
2|mock_location|0
3|backup_enabled|0
4|backup_transport|android/com.android.internal.backup.LocalTransport
5|mount_play_not_snd|1
6|mount_ums_autostart|0
7|mount_ums_prompt|1
8|mount_ums_notify_enabled|1
9|accessibility_script_injection|0
10|accessibility_web_content_key_bindings|0x13=0x01000100; 0x14=0x01010100; 0x15=0x02000001; 0x16=0x02010001; 0x200000013=0x02000601; 0x200000014=0x02010601; 0x200000015=0x03020101; 0x200000016=0x03010201; 0x200000023=0x02000301; 0x200000024=0x02010301; 0x200000037=0x03070201; 0x200000038=0x03000701:0x03010701:0x03020701;
11|long_press_timeout|500
12|touch_exploration_enabled|0
13|speak_password|0
14|accessibility_script_injection_url|https://ssl.gstatic.com/accessibility/javascript/android/AndroidVox_v1.js
15|lockscreen.disabled|1
16|screensaver_enabled|1
17|screensaver_activate_on_dock|1
18|screensaver_activate_on_sleep|0
19|screensaver_components|com.google.android.deskclock/com.android.deskclock.Screensaver
20|screensaver_default_component|com.google.android.deskclock/com.android.deskclock.Screensaver
21|accessibility_display_magnification_enabled|0
22|accessibility_display_magnification_scale|2.0
23|accessibility_display_magnification_auto_update|1
24|user_setup_complete|1
25|immersive_mode_confirmations|
26|install_non_market_apps|0
27|wake_gesture_enabled|1
28|lock_screen_show_notifications|1
29|lock_screen_allow_private_notifications|1
30|sleep_timeout|-1
31|android_id|764085c126874dc5
32|enabled_input_methods|
33|lock_screen_owner_info_enabled|0
34|bluetooth_name|Amazfit Sports Watch-05A9
35|bluetooth_address|D8:80:3C:00:05:A9
36|bluetooth_addr_valid|1
37|enabled_notification_listeners|com.huami.watch.launcher/com.huami.watch.streammanager.WearNotificationListenerService
38|trust_agents_initialized|1
39|sport_today_distance|0.0
40|sport_total_distance|0.0
41|device_bound|1
42|device_bound_time|1473291207184
43|__distrub_mode_key|0
71|prop.launcher.at_watchface|0
sqlite>
sqlite> .tables
android_metadata bookmarks secure
bluetooth_devices global system
sqlite> select * from secure ;
1|location_providers_allowed|gps
2|mock_location|0
3|backup_enabled|0
4|backup_transport|android/com.android.internal.backup.LocalTransport
5|mount_play_not_snd|1
6|mount_ums_autostart|0
7|mount_ums_prompt|1
8|mount_ums_notify_enabled|1
9|accessibility_script_injection|0
10|accessibility_web_content_key_bindings|0x13=0x01000100; 0x14=0x01010100; 0x15=0x02000001; 0x16=0x02010001; 0x200000013=0x02000601; 0x200000014=0x02010601; 0x200000015=0x03020101; 0x200000016=0x03010201; 0x200000023=0x02000301; 0x200000024=0x02010301; 0x200000037=0x03070201; 0x200000038=0x03000701:0x03010701:0x03020701;
11|long_press_timeout|500
12|touch_exploration_enabled|0
13|speak_password|0
14|accessibility_script_injection_url|https://ssl.gstatic.com/accessibility/javascript/android/AndroidVox_v1.js
15|lockscreen.disabled|1
16|screensaver_enabled|1
17|screensaver_activate_on_dock|1
18|screensaver_activate_on_sleep|0
19|screensaver_components|com.google.android.deskclock/com.android.deskclock.Screensaver
20|screensaver_default_component|com.google.android.deskclock/com.android.deskclock.Screensaver
21|accessibility_display_magnification_enabled|0
22|accessibility_display_magnification_scale|2.0
23|accessibility_display_magnification_auto_update|1
24|user_setup_complete|1
25|immersive_mode_confirmations|
26|install_non_market_apps|0
27|wake_gesture_enabled|1
28|lock_screen_show_notifications|1
29|lock_screen_allow_private_notifications|1
30|sleep_timeout|-1
31|android_id|764085c126874dc5
32|enabled_input_methods|
33|lock_screen_owner_info_enabled|0
34|bluetooth_name|Amazfit Sports Watch-05A9
35|bluetooth_address|D8:80:3C:00:05:A9
36|bluetooth_addr_valid|1
37|enabled_notification_listeners|com.huami.watch.launcher/com.huami.watch.streammanager.WearNotificationListenerService
38|trust_agents_initialized|1
39|sport_today_distance|0.0
40|sport_total_distance|0.0
41|device_bound|1
42|device_bound_time|1473291207184
43|__distrub_mode_key|0
71|prop.launcher.at_watchface|0