Merge "Pass correct argument to handleIncomingUser." into tm-dev am: fd5b2cea21

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17573205

Change-Id: Ib782ac28a30c6f6283d8c0cce19a5372ac5421c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Nishant Singh
2022-04-06 06:07:55 +00:00
committed by Automerger Merge Worker

View File

@@ -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.