Revert "Revert "Use PM#isSameApp instead of getPackageUidAsUser.""
This reverts commit adc7c25e. Includes the following change on top of the original commit 9a96e9ec - Creates a new overload of `PM#isSameApp` that accepts flags, and provides MATCH_ANY_USER to this call. This now allows that call to succeed when looking up the uid of an app installed in the work profile and *not* installed in the main non-work user profile when passing the UserHandle of the non-work user as done by accessibility. Bug: 257047268 Bug: 279686368 Test: atest AccessibilitySecurityPolicyTest Test: atest MixedManagedProfileOwnerTest#testPermissionPolicy Test: Install SdkSandboxClient test app in work profile, explore by touch using TalkBack Test: Repeat the above after deleting the test app from the non-work profile so that the app is only present in the work profile. Change-Id: Ie09108685112b27ee5ee6d9ce6029cef84e8078c
Loading
Please register or sign in to comment