使用ADB查找连接的蓝牙设备名称? [英] Find connected bluetooth device name using adb?
本文介绍了使用ADB查找连接的蓝牙设备名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么方法可以使用adb shell查找连接的 BT设备名称?
Is there any way to find the connected BT device name using adb shell?
我的手机已植根,然后我正在建立一个Tasker配置文件,该配置文件在连接时会闪烁BT设备名称。
My phone is rooted and I'm building a tasker profile which flashes the BT device name when connected.
推荐答案
您想知道自己的蓝牙配置文件名称或连接/配对的设备蓝牙名称?
You want to know your Bluetooth profile name or connected/paired device bluetooth name?
两个名称都可以通过以下命令获得:
Both names you can get by below command:
adb shell dumpsys bluetooth_manager
上面的命令将给出如下输出:
The above command will give the output like this:
Bluetooth Status
enabled: true
state: STATE_ON
address: A4:70:D6:80:56:3E
name: Moto G (4) (This is your device name)
time since enabled: 00:03:29.979
Bonded devices:
C0:EE:FB:DA:70:6E [BR/EDR] Oneplus3 (This is connected device name)
...................................
...................................
这篇关于使用ADB查找连接的蓝牙设备名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文