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

Commit 65beb351 authored by Nishant Kumar Singh's avatar Nishant Kumar Singh
Browse files

Pass correct argument to handleIncomingUser.

Bug: 227143522
Test: atest CtsLocaleManagerTestCases
Test: atest CtsLocaleManagerHostTestCases
Test: atest CtsBackupTestCases:AppLocalesBackupTest
Test: atest LocaleManagerServiceTest
Test: atest LocaleManagerBackupRestoreTest
Test: atest SystemAppUpdateTrackerTest
Test: Manually
Change-Id: Id481747de8e5931c391272491811aeb9082bab75
parent ed7a6169
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ public class LocaleManagerService extends SystemService {
            userId = mActivityManagerInternal.handleIncomingUser(
                    Binder.getCallingPid(), Binder.getCallingUid(), userId,
                    false /* allowAll */, ActivityManagerInternal.ALLOW_NON_FULL,
                    "setApplicationLocales", appPackageName);
                    "setApplicationLocales", /* callerPackage= */ null);

            // This function handles two types of set operations:
            // 1.) A normal, non-privileged app setting its own locale.
@@ -355,7 +355,7 @@ public class LocaleManagerService extends SystemService {
        userId = mActivityManagerInternal.handleIncomingUser(
                Binder.getCallingPid(), Binder.getCallingUid(), userId,
                false /* allowAll */, ActivityManagerInternal.ALLOW_NON_FULL,
                "getApplicationLocales", appPackageName);
                "getApplicationLocales", /* callerPackage= */ null);

        // This function handles three types of query operations:
        // 1.) A normal, non-privileged app querying its own locale.