通过adb 获取 蓝牙 mac address

匿名 (未验证) 提交于 2019-12-02 23:42:01

adb shell settings get secure bluetooth_address

或者

 // for Android 4.4.4 adb shell service call bluetooth_manager 10  // for Android 5.0+ adb shell service call bluetooth_manager 12 

编程获取bluetooth mac address :

 String macAddress = android.provider.Settings.Secure.getString(context.getContentResolver(), "bluetooth_address");
文章来源: https://blog.csdn.net/coldicecn/article/details/91892163
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!