Add context UID to package-name-based permission query
The code for caching permission queries incorrectly used the UID of the calling process instead of the Context UID when asking PermissionManagerService whether a package (identified by name) has a permission. As a result, permission checks produced incorrect results for certain cross-user scenarios. This CL makes the checking UID part of the package-name-based permission query. Test: atest com.android.car.VmsPublisherSubscriberTest Bug: 150172373 Bug: 150025558 Bug: 150140220 Change-Id: I903a9e79fbbba97ea987120066817eeea9b01d51
Loading
Please register or sign in to comment