summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorJohn Wu <topjohnwu@google.com>2021-12-21 11:48:19 -0800
committerJohn Wu <topjohnwu@google.com>2021-12-21 11:48:19 -0800
commita68e97916ad40bb055698fcdc2bf48a550c3e767 (patch)
tree5ec284590fba76315ca3b9aca5f24a0d560a80bf /core/java/android/inputmethodservice/InputMethodService.java
parent3f265b798e2072111ac4922982afdf6ff188df30 (diff)
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
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions