Reputation: 269
I am trying to live-capture the bluetooth traffic sent from my Samsung A51 on Android 10:
>adb bugreport
>adb devices
List of devices attached
R58N427J7TD device
>androiddump --extcap-interfaces
extcap {version=1.1.0}{help=file:///C:/Program%20Files/Wireshark/extcap/androiddump.html}
interface {value=android-logcat-text-main-R58N427J7TD}{display=Android Logcat Main SM_A515F R58N427J7TD}
interface {value=android-logcat-text-system-R58N427J7TD}{display=Android Logcat System SM_A515F R58N427J7TD}
interface {value=android-logcat-text-radio-R58N427J7TD}{display=Android Logcat Radio SM_A515F R58N427J7TD}
interface {value=android-logcat-text-events-R58N427J7TD}{display=Android Logcat Events SM_A515F R58N427J7TD}
interface {value=android-logcat-text-crash-R58N427J7TD}{display=Android Logcat Crash SM_A515F R58N427J7TD}
The official docs on https://www.wireshark.org/docs/man-pages/androiddump.html weren't helpful, but they did make me wonder if perhaps the bluetooth server port needs to be configured?
Any other ideas why no bluetooth interface is showing up? Also in the Wireshark App UI I can only find the above listed interfaces.
Upvotes: 7
Views: 6300
Reputation: 308
Based on the description, I assume that you are using a stock Android production build on your Samsung device.
Unfortunately, the wireshark/tshark extcap > androiddump > android-bluetooth-btsnoop-net is just the live output from data/misc/bluetooth/logs/btsnoop_hci.log onto tcp port 8872 when Developer Option Bluetooth HCI snoop log is enabled which is in a root directory. If your device is rooted then you can access it, if not then you cannot. android source reference
The reason you are able to see the btsnoop_hci file from bugreport is because bug reports do not require root privileges.
Upvotes: 6
Reputation: 1303
You must enable Bluetooth HCI snoop log first.
Upvotes: 2