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

Commit 91d81c76 authored by Eric Biggers's avatar Eric Biggers Committed by mse1969
Browse files

Log to EventLog on prepareUserStorage failure

Bug: 224585613
Change-Id: Id6dfb4f4c48d5cf4e71f54bdb6d0d6eea527caf5
(cherry picked from commit fbb632ea)
Merged-In: Id6dfb4f4c48d5cf4e71f54bdb6d0d6eea527caf5
(cherry picked from commit 2f2e7d84)
Merged-In: Id6dfb4f4c48d5cf4e71f54bdb6d0d6eea527caf5
parent 50fc3213
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ import android.text.TextUtils;
import android.text.format.DateUtils;
import android.util.ArrayMap;
import android.util.AtomicFile;
import android.util.EventLog;
import android.util.Log;
import android.util.Pair;
import android.util.Slog;
@@ -3024,6 +3025,7 @@ class StorageManagerService extends IStorageManager.Stub
            mCryptConnector.execute("cryptfs", "prepare_user_storage", escapeNull(volumeUuid),
                    userId, serialNumber, flags);
        } catch (NativeDaemonConnectorException e) {
            EventLog.writeEvent(0x534e4554, "224585613", -1, "");
            // Very unfortunately, these errors need to be ignored for broken
            // users that already existed on-disk from older Android versions.
            UserManagerInternal umInternal = LocalServices.getService(UserManagerInternal.class);