commit | 013cb91a69b0da5f1b0f8c66ddbdc972b3436447 | [log] [tgz] |
---|---|---|
author | Alice Kuo <aliceypkuo@google.com> | Wed Jun 02 10:34:56 2021 +0800 |
committer | Alice Kuo <aliceypkuo@google.com> | Thu Jun 03 00:06:11 2021 +0000 |
tree | a9acdfad441924e22ccfc5a7a9e3764ed4fa61e4 | |
parent | 65db2bd3b38fefb4154c252e893bf616c31091ab [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