commit | e870d0220f6195f5dc4eb0c08dd1f5375b69ee15 | [log] [tgz] |
---|---|---|
author | Anton Hansson <hansson@google.com> | Tue Mar 26 14:35:58 2019 +0000 |
committer | Anton Hansson <hansson@google.com> | Tue Mar 26 19:49:05 2019 +0000 |
tree | 07a0cb37b53b06f5ab3daa487d5f507533e41fa1 | |
parent | 2384444f7523ca1e5f6e238cee624b966c7d28da [diff] |
Revoke all relevant shared permission on uninstall The for-loop over the uninstalled app's permissions would previously return immediately after successfully revoking a shared permission, preventing the loop to run to the end. Instead, always loop through all the permission and return the "widest" matching user id. Bug: 36899497 Test: manual, using provided test apks Test: atest CtsPermissionTestCases:SharedUidPermissionsTest Change-Id: I1f8fad77123c8affa2d825bce1edc2bcd8f60f12