summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothProfile.java
diff options
context:
space:
mode:
authorAlice Kuo <aliceypkuo@google.com>2021-06-02 10:34:56 +0800
committerAlice Kuo <aliceypkuo@google.com>2021-06-03 00:06:11 +0000
commit0a67fabedbf8f985ba2c7b85591213a3f053590a (patch)
treef7363dacc49d4518381b4cc9fe19b8e00514c7c5 /framework/java/android/bluetooth/BluetoothProfile.java
parentf5cb1b0e7225e6d7e4d54d733a38f8a6197574cd (diff)
Use finally block for Binder.restoreCallingIdentity
1. Use final for Binder.clearCallingIdentity() to protect not being overwritten. 2. Protect it in the finally block of the try statement to avoid missing restore the CallingIdentity as exception. Bug: 189819183 Test: Manual test Change-Id: I2dd4cfc1aacecb0b77fa4c82b48b24b284271779 Merged-In: I2dd4cfc1aacecb0b77fa4c82b48b24b284271779
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothProfile.java')
0 files changed, 0 insertions, 0 deletions