TrustInterface: Fix default root access value

* On clean installs persist.sys.root_access is empty

Change-Id: I99fe87ebcfe53915c663244023486cf3698af24c
This commit is contained in:
Luca Stefani
2018-06-10 15:44:17 +02:00
parent 498ea963e1
commit aa8e55456d

View File

@@ -225,7 +225,7 @@ public class TrustInterfaceService extends LineageSystemService {
}
private int getRootStatus() {
String status = SystemProperties.get("persist.sys.root_access");
String status = SystemProperties.get("persist.sys.root_access", "0");
switch (status) {
case "0":
return TrustInterface.TRUST_FEATURE_LEVEL_GOOD;