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

Commit ebe8ad61 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Create the target application context for the calling user." into main

parents 3462506f 72b0a5fa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3527,7 +3527,8 @@ class StorageManagerService extends IStorageManager.Stub
        // of the calling App
        final long token = Binder.clearCallingIdentity();
        try {
            Context targetAppContext = mContext.createPackageContext(packageName, 0);
            Context targetAppContext = mContext.createPackageContextAsUser(packageName,
                    /* flags= */ 0, UserHandle.of(UserHandle.getUserId(originalUid)));
            Intent intent = new Intent(Intent.ACTION_DEFAULT);
            intent.setClassName(packageName,
                    appInfo.manageSpaceActivityName);