OSDN Git Service

Expose LE advertiser address for easier PTS tests (2/6)
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 19 Apr 2017 14:00:52 +0000 (07:00 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 27 Apr 2017 19:57:16 +0000 (12:57 -0700)
commit00129680f9863701255425567f408e66ec84caf1
tree1fbbcf1bfb41ef314c84d5c7e81850d82ba9b4d5
parentf2b309cfa9c602760e88f3dca60f813438a9726b
Expose LE advertiser address for easier PTS tests (2/6)

This patchset adds a hidden method getOwnAddress, that lets app with
BLUETOOTH_PRIVILEGED permission to lear their own addreess. This is done
exclusively for PTS tests.

Bug: 35147497
Test: manual
Change-Id: I8da0128c1dac2995e488f1e0c48aa7d5fd399b4c
(cherry picked from commit f10e5516ed308be0493173fcd7982fb4f0a8cd0e)
jni/com_android_bluetooth_gatt.cpp
src/com/android/bluetooth/gatt/AdvertiseManager.java
src/com/android/bluetooth/gatt/GattService.java