Skip to content
Commit a68e9791 authored by John Wu's avatar John Wu
Browse files

Preserve permissions when system apps leaving shared UID are uninstalled

This is a follow up of ag/15936308.

When a system app update is uninstalled, the permission states are
preserved. However, in the case of system apps leaving shared UID
through an update, due to the fact that the appId has changed, the
permission states will be lost, causing issues specifically with certain
permission flags.

In this CL, we add a new method in PermissionManagerService to handle
this specific case. The permissions are either cloned to the previous
appId, or merged into the UidPermissionState of the shared UID group.

Test: tracking with b/202993696
Bug: 179284822
Change-Id: I02894671f1b8357fbb347c8daf7c1167ae051ac6
parent 3f265b79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment