Kurt Dresner c8c2c0d005 Clear caller identity in doesPackageHaveCallingUid helper method so it can work across users.
When this helper method is called on a binder thread it checks the caller's permission instead of just using the system service privileges to make the call, resulting in erroneous SecurityExceptions.

Bug: 182832208
Bug: 198860541
Test: CTS/unit tests
Change-Id: I2c71109f2556a47b8e44150565800528496173f5
2021-09-16 21:00:33 +00:00
…
…
…
…
2021-08-24 11:26:02 -07:00
…
2021-09-09 13:50:17 -07:00
…
…
…
…
…
…
…
…
…
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%