简体   繁体   中英

How to using adb command to test bluetooth on Android 7?

We are using Android 7 on development, but our board did't have display output. Did android 7 provide commands for enable/disable bluetooth, scanning the devices, I can pair my board with other bluetooth device from command line. Thanks.

For enable disable bluetooth can use

to enbale

adb shell service call bluetooth_manager 6

to disable

adb shell service call bluetooth_manager 8

to view paired BT device

adb shell dumpsys bluetooth_manager

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM