Loading services/core/java/com/android/server/am/ActivityManagerService.java +4 −7 Original line number Diff line number Diff line Loading @@ -14645,13 +14645,10 @@ public final class ActivityManagerService extends ActivityManagerNative } } else if ("system".equals(componentProcessName)) { result = true; } else if (UserHandle.isSameApp(aInfo.uid, Process.PHONE_UID) && (flags & ServiceInfo.FLAG_SINGLE_USER) != 0) { // Phone app is allowed to export singleuser providers. result = true; } else { // App with pre-defined UID, check if it's a persistent app result = (aInfo.flags & ApplicationInfo.FLAG_PERSISTENT) != 0; } else if ((flags & ServiceInfo.FLAG_SINGLE_USER) != 0) { // Phone app and persistent apps are allowed to export singleuser providers. result = UserHandle.isSameApp(aInfo.uid, Process.PHONE_UID) || (aInfo.flags & ApplicationInfo.FLAG_PERSISTENT) != 0; } if (DEBUG_MU) { Slog.v(TAG, "isSingleton(" + componentProcessName + ", " + aInfo Loading
services/core/java/com/android/server/am/ActivityManagerService.java +4 −7 Original line number Diff line number Diff line Loading @@ -14645,13 +14645,10 @@ public final class ActivityManagerService extends ActivityManagerNative } } else if ("system".equals(componentProcessName)) { result = true; } else if (UserHandle.isSameApp(aInfo.uid, Process.PHONE_UID) && (flags & ServiceInfo.FLAG_SINGLE_USER) != 0) { // Phone app is allowed to export singleuser providers. result = true; } else { // App with pre-defined UID, check if it's a persistent app result = (aInfo.flags & ApplicationInfo.FLAG_PERSISTENT) != 0; } else if ((flags & ServiceInfo.FLAG_SINGLE_USER) != 0) { // Phone app and persistent apps are allowed to export singleuser providers. result = UserHandle.isSameApp(aInfo.uid, Process.PHONE_UID) || (aInfo.flags & ApplicationInfo.FLAG_PERSISTENT) != 0; } if (DEBUG_MU) { Slog.v(TAG, "isSingleton(" + componentProcessName + ", " + aInfo