Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50734b70 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

am 43606641: Merge "Correct check of is user running" into lmp-mr1-dev

* commit '43606641':
  Correct check of is user running
parents 695b5d25 43606641
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -9293,9 +9293,9 @@ public final class ActivityManagerService extends ActivityManagerNative
                            "Attempt to launch content provider before system ready");
                            "Attempt to launch content provider before system ready");
                }
                }
                // Make sure that the user who owns this provider is started.  If not,
                // Make sure that the user who owns this provider is running.  If not,
                // we don't want to allow it to run.
                // we don't want to allow it to run.
                if (mStartedUsers.get(userId) == null) {
                if (!isUserRunningLocked(userId, false)) {
                    Slog.w(TAG, "Unable to launch app "
                    Slog.w(TAG, "Unable to launch app "
                            + cpi.applicationInfo.packageName + "/"
                            + cpi.applicationInfo.packageName + "/"
                            + cpi.applicationInfo.uid + " for provider "
                            + cpi.applicationInfo.uid + " for provider "
@@ -15660,10 +15660,10 @@ public final class ActivityManagerService extends ActivityManagerNative
        userId = handleIncomingUser(callingPid, callingUid, userId,
        userId = handleIncomingUser(callingPid, callingUid, userId,
                true, ALLOW_NON_FULL, "broadcast", callerPackage);
                true, ALLOW_NON_FULL, "broadcast", callerPackage);
        // Make sure that the user who is receiving this broadcast is started.
        // Make sure that the user who is receiving this broadcast is running.
        // If not, we will just skip it.
        // If not, we will just skip it.
        if (userId != UserHandle.USER_ALL && mStartedUsers.get(userId) == null) {
        if (userId != UserHandle.USER_ALL && !isUserRunningLocked(userId, false)) {
            if (callingUid != Process.SYSTEM_UID || (intent.getFlags()
            if (callingUid != Process.SYSTEM_UID || (intent.getFlags()
                    & Intent.FLAG_RECEIVER_BOOT_UPGRADE) == 0) {
                    & Intent.FLAG_RECEIVER_BOOT_UPGRADE) == 0) {
                Slog.w(TAG, "Skipping broadcast of " + intent
                Slog.w(TAG, "Skipping broadcast of " + intent