Is there a way to look for a device's bluetooth MAC address using adb. I've tried using logcat to find it. It works right now, but logcat will get overwritten eventually. So I was wondering if there is a way where I can access the bluetooth MAC address anytime I want through adb. I've also tried 'netcfg' but I can't see the bluetooth interface there even when bluetooth is on.
I want to do this through adb.
Thanks
cd /data/misc/bluetoothd
ls
BT address would be available
adb shell settings get secure bluetooth_address
or
adb shell service call bluetooth_manager 10
for Android 4.4.4adb shell service call bluetooth_manager 12
for Android 5.0+You could use something like this:
And you will get an output:
The Tag="Address" line has the MAC address for Bluettoth. On my device I used:
As an alternative you could pull the xml file using:
and parse the file locally.
For samsung devices Android 7.0+ or API level 25+ try this: