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

Commit dd24b424 authored by Daniel Jacob Chittoor's avatar Daniel Jacob Chittoor Committed by Daniel Jacob Chittoor
Browse files

UserManagerService: Ignore prepare user storage errors for emulator builds



Ignore failures to prepareUserStorageInternal for emulator builds because
the emulator image's user records seems to report that they are a new
user despite having an on-disk user. The very feature was implemented to
prevent early errant per-user directory creation conditions during OEM OTA
updates which is inapplicable for the current development testing suite.

Test: build and boot to setup
Signed-off-by: default avatarDaniel Jacob Chittoor <djchittoor@murena.io>
parent c4d4ca3c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3190,6 +3190,11 @@ public class UserManagerService extends IUserManager.Stub {
            }
        }

        // Ignore errors from mVold.prepareUserStorage for emulator builds
        if (Build.IS_EMULATOR) {
            ignorePrepareStorageErrors = true;
        }

        // Create the UserInfo object that gets passed around
        UserInfo userInfo = new UserInfo(id, name, iconPath, flags, userType);
        userInfo.serialNumber = serialNumber;