commit | 4eac11658fb7da2562325d7a8e2c6bd88e52bc05 | [log] [tgz] |
---|---|---|
author | Alice Kuo <aliceypkuo@google.com> | Wed Jun 02 10:34:56 2021 +0800 |
committer | Alice Kuo <aliceypkuo@google.com> | Wed Jun 02 08:29:16 2021 +0000 |
tree | b577e8414176ef11ea3a209daef9ef4b6d85b4e6 | |
parent | 0cc9fe2cb3763a0f76e3d6078724edc73c3a9a40 [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 Ignore-AOSP-First: prevent merge conflict Change-Id: I2dd4cfc1aacecb0b77fa4c82b48b24b284271779