diff --git a/app/src/main/java/org/matrix/TEESimulator/config/BootStateManager.kt b/app/src/main/java/org/matrix/TEESimulator/config/BootStateManager.kt index 1efb69b..62ccc11 100644 --- a/app/src/main/java/org/matrix/TEESimulator/config/BootStateManager.kt +++ b/app/src/main/java/org/matrix/TEESimulator/config/BootStateManager.kt @@ -16,6 +16,10 @@ object BootStateManager { fun apply() { for ((name, target) in targets) { val current = SystemProperties.get(name, "") + if (current.isEmpty()) { + SystemLogger.debug("BootStateManager: $name absent on this device, skip") + continue + } if (current == target) { SystemLogger.debug("BootStateManager: $name already $target, skip") continue