aboutsummaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2019-05-09 18:43:52 +0200
committerDavide Garberi <dade.garberi@gmail.com>2019-05-09 19:00:04 +0200
commit1ec6d6b8ee8d6a3ab7a785f7b9023f0e1c1746f3 (patch)
treecd2d4a4c8a6a8b630d229c07a62f5520db2d4ea6 /rootdir
parent09401b595c10cc7eb43d236754a88721b82e25ea (diff)
msm8996-common: Conditionally remove the OEM unlocking option
* It would get disabled anyway when bootloader is unlocked, but this way makes safetynet pass even when unlocked Change-Id: I2dfe641bf60e0409f290b7b31492df00568c9916
Diffstat (limited to 'rootdir')
-rwxr-xr-xrootdir/bin/init.qcom.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/bin/init.qcom.sh b/rootdir/bin/init.qcom.sh
index 12615aa..93439bb 100755
--- a/rootdir/bin/init.qcom.sh
+++ b/rootdir/bin/init.qcom.sh
@@ -65,3 +65,9 @@ if [ ! -f /vendor/firmware_mnt/verinfo/ver_info.txt -o "$prev_version_info" != "
fi
chmod g-w /data/vendor/modem_config
setprop ro.vendor.ril.mbn_copy_completed 1
+
+if [[ -z $(grep "androidboot.lock=unlocked" /proc/cmdline) ]]; then
+ setprop ro.oem_unlock_supported 1
+else
+ setprop ro.oem_unlock_supported 0
+fi