Fixes various failing cts
This CL fixed various failing CTS cases by:
1. Adding a new shell command in ShortCutService to verify the shortcut access of a package
2. For managed users, use the HOME role holder of the parent user instead
3. Using RoleManager to set and get the default launcher in utility methods
Bug: 159814579
Bug: 168424506
Bug: 176498610
Bug: 176706886
Bug: 166655637
Test: atest ShortcutManagerTest1 to ShortcutManagerTest11
atest CtsShortcutHostTestCases CtsShortcutManagerTestCases
atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest
atest android.content.pm.cts.PackageManagerTest
atest android.content.pm.cts.LauncherAppsTest
Change-Id: I9b0156c62c47f848400b2cd85548a1b8d246a68c
Merged-In: I9b0156c62c47f848400b2cd85548a1b8d246a68c
6 files changed