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

Commit 17c648a3 authored by Annie Meng's avatar Annie Meng Committed by Android (Google) Code Review
Browse files

Merge "[Multi-user] Route USER_ALL calls to USER_SYSTEM for restoreAtInstall"

parents 643e1c2d 9d379505
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -13781,6 +13781,11 @@ public class PackageManagerService extends IPackageManager.Stub
                    ServiceManager.getService(Context.BACKUP_SERVICE));
            if (bm != null) {
                int userId = args.user.getIdentifier();
                // For backwards compatibility as USER_ALL previously routed directly to USER_SYSTEM
                // in the BackupManager. USER_ALL is used in compatibility tests.
                if (userId == UserHandle.USER_ALL) {
                    userId = UserHandle.USER_SYSTEM;
                }
                if (DEBUG_INSTALL) {
                    Log.v(TAG, "token " + token + " to BM for possible restore for user " + userId);
                }