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

Commit 9139a78d authored by Paul Crowley's avatar Paul Crowley
Browse files

Signal init when user 0 CE storage is unlocked

Bug: 37554629
Bug: 37553996
Test: Added init.hardware.rc stanza to act on the signal.
Change-Id: Ibe2514cdd01c480bab4e76dbfd26c91bbff74872
parent edfb7279
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2955,6 +2955,11 @@ class StorageManagerService extends IStorageManager.Stub
        synchronized (mLock) {
            mLocalUnlockedUsers = ArrayUtils.appendInt(mLocalUnlockedUsers, userId);
        }
        if (userId == UserHandle.USER_SYSTEM) {
            String propertyName = "sys.user." + userId + ".ce_available";
            Slog.d(TAG, "Setting property: " + propertyName + "=true");
            SystemProperties.set(propertyName, "true");
        }
    }

    @Override