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

Commit 214bea1b authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Ignore user serial numbers in core-only mode.

When booting in core-only mode, our data partition is a tmpfs which
doesn't support xattrs, so we can't set/enforce user serial numbers.

Bug: 28254840
Change-Id: Id83c551c7c603a4cd5043e06f7161441b2dfaa8b
parent fed6c65f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -18679,11 +18679,11 @@ Slog.v(TAG, ":: stepped forward, applying functor at tag " + parser.getName());
        try {
            storage.prepareUserStorage(volumeUuid, userId, userSerial, flags);
            if ((flags & StorageManager.FLAG_STORAGE_DE) != 0) {
            if ((flags & StorageManager.FLAG_STORAGE_DE) != 0 && !mOnlyCore) {
                UserManagerService.enforceSerialNumber(
                        Environment.getDataUserDeDirectory(volumeUuid, userId), userSerial);
            }
            if ((flags & StorageManager.FLAG_STORAGE_CE) != 0) {
            if ((flags & StorageManager.FLAG_STORAGE_CE) != 0 && !mOnlyCore) {
                UserManagerService.enforceSerialNumber(
                        Environment.getDataUserCeDirectory(volumeUuid, userId), userSerial);
            }
@@ -18771,7 +18771,7 @@ Slog.v(TAG, ":: stepped forward, applying functor at tag " + parser.getName());
                logCriticalInfo(Log.WARN, "Destroying user directory " + file
                        + " because no matching user was found");
                destroyUser = true;
            } else {
            } else if (!mOnlyCore) {
                try {
                    UserManagerService.enforceSerialNumber(file, info.serialNumber);
                } catch (IOException e) {