summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-10-03 22:18:58 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2022-10-27 20:45:22 +0000
commite513b7ffe35460072038548a9c12ea98a618e67f (patch)
tree4c09dc58ecc8d999ebb0b21c53be85180a381f06 /libs/androidfw/StringPool.cpp
parent7a762763d8560af77cfd95c6df4207681547936d (diff)
Add hidden API to query the bluetooth address of an InputDevice
Since revealing the bluetooth address of an input device can reveal whether bluetooth is enabled, we require the BLUETOOTH permission for this API. This also means we cannot send the bluetooth address to apps using the InputDevice class. We add an IInputManager method to query the address instead that performs the permission check. Since we are not using the Java InputDevice class to store the address, we must cache the vector of last-reported InputDeviceInfos in NativeInputManager. DD: go/inputdevice-battery-notifications Bug: 243005009 Test: manual Change-Id: I560cb170ab7008314821e5150caf4868efb5d8d5
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions