Skip to content
Commit 5c9e6031 authored by Nicholas Sauer's avatar Nicholas Sauer
Browse files

Fix clearPackagePreferredActivities to check appid

This fixes the method for secondary users. The callingUid must be
converted to an app id before comparion. Reusing isCallerSameApp
simplifies implementation.

bug: 122833260
Test: Run on primary and secondary user:
run cts-dev -a arm64-v8a -m CtsContentTestCases -t android.content.pm.cts.PackageManagerTest#testClearPackagePreferredActivities

Change-Id: Ia0ee7b97051e0acd4164f067af69574ba3778291
parent 1c2ceb24
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