google / mobly-bundled-snippets

Snippets to allow Mobly tests to control Android devices by exposing a simplified Android API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BluetoothAdapter.getAddress() broken since Android M

aglogger opened this issue · comments

Since Android M the behavior of BluetoothAdapter.getAddress() is broken and will always return 00:02:00:00:00 as Bluetooth adapter hardware address.

@Rpc(description = "Returns the hardware address of the local Bluetooth adapter.")
public String btGetAddress() {
return mBluetoothAdapter.getAddress();
}