'Android app's access to TxAdd and PDU Type in the received BLE advertising packets

I am writing an app that performs BLE scanning to collect advertising packets nearby. I wonder if Android Bluetooth libraries allow us to extract the TxAdd and PDU Type fields in an observed packet. Currently, I find no public methods in ScanResult for this, and ScanRecord seems to only show AD Structures.

Any workarounds to get TxAdd and PDU Type without using Android Bluetooth libraries would be nice as well.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source