diff options
author | Davide Garberi <dade.garberi@gmail.com> | 2019-05-09 18:43:52 +0200 |
---|---|---|
committer | Davide Garberi <dade.garberi@gmail.com> | 2019-05-09 19:00:04 +0200 |
commit | 1ec6d6b8ee8d6a3ab7a785f7b9023f0e1c1746f3 (patch) | |
tree | cd2d4a4c8a6a8b630d229c07a62f5520db2d4ea6 /rootdir | |
parent | 09401b595c10cc7eb43d236754a88721b82e25ea (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-x | rootdir/bin/init.qcom.sh | 6 |
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 |