Schematize vold system properties

Properties accessed across partitions are now schematized and will
become APIs to make explicit interfaces among partitions.

Bug: 117924132
Test: m -j
Change-Id: Id2a696c621015d46015d5de0e7aef987e9e01b54
Merged-In: Id2a696c621015d46015d5de0e7aef987e9e01b54
This commit is contained in:
Inseob Kim
2018-11-08 12:44:47 +09:00
parent 8f516adef7
commit e6baedd917
2 changed files with 7 additions and 7 deletions

View File

@@ -39,6 +39,7 @@ import android.os.UserHandle;
import android.os.UserManager;
import android.provider.Settings;
import androidx.annotation.VisibleForTesting;
import android.sysprop.VoldProperties;
import android.telephony.euicc.EuiccManager;
import android.text.TextUtils;
import android.util.Log;
@@ -404,7 +405,7 @@ public class MasterClear extends InstrumentedFragment implements OnGlobalLayoutL
}
private boolean isExtStorageEncrypted() {
String state = SystemProperties.get("vold.decrypt");
String state = VoldProperties.decrypt().orElse("");
return !"".equals(state);
}