commit | 5c9e6031a6a8f0ea3673dd68a808818ce4ed2082 | [log] [tgz] |
---|---|---|
author | Nicholas Sauer <nicksauer@google.com> | Mon Jan 14 10:56:02 2019 -0800 |
committer | Nicholas Sauer <nicksauer@google.com> | Mon Jan 14 22:53:32 2019 +0000 |
tree | c09288fec83d564b55f9ec7c40bb042c50233ffc | |
parent | 1c2ceb24ed5cbcf1843fba78c357ac3fa01bdb6a [diff] |
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