Fix incorrect user id when applying default preferred activity
Bug: 187342358 Test: atest PackageManagerTest Test: atest CtsDevicePolicyTestCases Change-Id: I79bc03fccc09ccbee58334c55fdada833bafeac9
This commit is contained in:
@@ -3288,7 +3288,7 @@ public final class Settings implements Watchable, Snappable {
|
||||
IntentFilter.AuthorityEntry auth, PatternMatcher path, int userId) {
|
||||
final List<ResolveInfo> ri =
|
||||
pmInternal.queryIntentActivities(
|
||||
intent, intent.getType(), flags, Binder.getCallingUid(), 0);
|
||||
intent, intent.getType(), flags, Binder.getCallingUid(), userId);
|
||||
if (PackageManagerService.DEBUG_PREFERRED) {
|
||||
Log.d(TAG, "Queried " + intent + " results: " + ri);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user