The detector checks if the clearCallingIdentity() token declaration is
immediately followed by a try-finally statement. Any calls/operations
between the declaration and try risk throwing an exception without a
safe restore of the identity.
Modified several incident messages to explain more details about the
warning. Modified testMethod names to describe their differences instead
of calling them testMethod1/2 etc.
To compile a lint report, pick a service (e.g services.accessibility),
run the test command and view it as lint-report.html. The lint report
won't be generated if you just build the module (i.e m
services.accessibility won't produce the lint report).
Lint report can be found in out/soong/.intermediates/frameworks/base/services/accessibility/services.accessibility/android_common/lint
Bug: 157626959
Test: m out/soong/.intermediates/frameworks/base/services/accessibility/services.accessibility/android_common/lint/lint-report.html
Change-Id: I76712c057a8fa248c5b33970a568120d0b56930b