Invoke updateSharedUserPermsLPw for all users when a package is
removed. bug: 140274903 Test: While running under both user 0 and user 10: $ cts-tradefed run cts-dev -m CtsPermissionTestCases --test android.permission.cts.SharedUidPermissionsTest#sharedUidLoosesRuntimePermissionWhenLastAppDeclaringItGetsUninstalled Also: $ adb install out/.../CtsAppWithSharedUidThatRequestsPermissions.apk $ adb install out/.../CtsAppWithSharedUidThatRequestsNoPermissions.apk $ adb shell pm grant android.permission.cts.appthatrequestpermission android.permission.READ_CONTACTS $ adb uninstall android.permission.cts.appthatrequestpermission $ adb shell dumpsys package android.permission.cts.appthatrequestnopermission ... verify that READ_CONTACT permission is removed from appthatrequestnopermission Change-Id: Ibbecc0965ae3fe84e0a51c8fa6b9fcc80b6f9640
Loading
Please register or sign in to comment