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
Loading
Please register or sign in to comment