summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothCodecConfig.java
diff options
context:
space:
mode:
authormarkchien <markchien@google.com>2019-08-16 15:33:28 +0800
committerMark Chien <markchien@google.com>2019-08-29 08:53:01 +0000
commit7968c27cd011a3ef0b6be3b6954e22662ddd72f5 (patch)
tree7f3ff2994f35e5c7cf839e3d11efc8d2a99a48e4 /framework/java/android/bluetooth/BluetoothCodecConfig.java
parent22d54f6777f64a8f2256aabea420d1e3e9bfff61 (diff)
Passing caller package name to setBluetoothTethering
This is necessary to examine caller's permission. If caller's uid is not same as passing package name, SecurityException would be throwed. This change also clear the identity before calling BluetoothPan#setBluetoothTethering() in Tethering#setBluetoothTethering. This is fine because caller already pass permission check before in ConnectivityService. See the flow below: ConnectivityManager#startTethering -> ConnectivityService#startTethering -> Tethering#startTethering -> Tethering#setBluetoothTethering -> BluetoothPan#setBluetoothTethering Bug: 134649258 Test: -build, flash, boot -atest FrameworkNetTests -manual test with bluetooth OFF/ON Change-Id: I2140398ad3bbc8076f729c843f0515c654553aaf Merged-In: I2140398ad3bbc8076f729c843f0515c654553aaf
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothCodecConfig.java')
0 files changed, 0 insertions, 0 deletions