From a82ef6bd35b476b38477983c22e54b2cebb240c4 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Tue, 19 Jun 2018 14:50:05 -0300 Subject: [PATCH] MagiskHide: add ro.boot.vbmeta.device_state=locked --- native/jni/magiskhide/hide_utils.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/native/jni/magiskhide/hide_utils.c b/native/jni/magiskhide/hide_utils.c index eac07cc9b..abb4b09be 100644 --- a/native/jni/magiskhide/hide_utils.c +++ b/native/jni/magiskhide/hide_utils.c @@ -17,11 +17,14 @@ #include "daemon.h" static char *prop_key[] = - { "ro.boot.verifiedbootstate", "ro.boot.flash.locked", "ro.boot.veritymode", "ro.boot.warranty_bit", "ro.warranty_bit", - "ro.debuggable", "ro.secure", "ro.build.type", "ro.build.tags", "ro.build.selinux", NULL }; + { "ro.boot.vbmeta.device_state", "ro.boot.verifiedbootstate", "ro.boot.flash.locked", "ro.boot.veritymode", + "ro.boot.warranty_bit", "ro.warranty_bit", "ro.debuggable", "ro.secure", + "ro.build.type", "ro.build.tags", "ro.build.selinux", NULL }; static char *prop_value[] = - { "green", "1", "enforcing", "0", "0", "0", "1", "user", "release-keys", "0", NULL }; + { "locked", "green", "1", "enforcing", + "0", "0", "0", "1", + "user", "release-keys", "0", NULL }; static int mocked = 0;