Merge "Revert "Revert "Schematize vold system properties"""
This commit is contained in:
@@ -48,6 +48,7 @@ import android.os.SystemProperties;
|
||||
import android.os.Trace;
|
||||
import android.os.UserHandle;
|
||||
import android.os.storage.IStorageManager;
|
||||
import android.sysprop.VoldProperties;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.EventLog;
|
||||
import android.util.Slog;
|
||||
@@ -625,7 +626,7 @@ public final class SystemServer {
|
||||
traceEnd();
|
||||
|
||||
// Only run "core" apps if we're encrypting the device.
|
||||
String cryptState = SystemProperties.get("vold.decrypt");
|
||||
String cryptState = VoldProperties.decrypt().orElse("");
|
||||
if (ENCRYPTING_STATE.equals(cryptState)) {
|
||||
Slog.w(TAG, "Detected encryption in progress - only parsing core apps");
|
||||
mOnlyCore = true;
|
||||
|
||||
Reference in New Issue
Block a user