aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimao Gomes Viana <xdevs23@outlook.com>2017-08-20 12:36:31 +0200
committerdd3boh <dade.garberi@gmail.com>2017-08-21 08:53:03 +0200
commit79ae1670573617a6a5477bd1b862ff84333a9981 (patch)
tree4998b3fecde2ad7c14abc35903b8bd2b27050d13
parent6060aee083c306ab20599c11c1ffe6a535e40c16 (diff)
SafetyNet bypass
This might be useful to bypass the safetynet as default if the device is unrooted and so magisk isn't installed Change-Id: Ie572200699e843cf8e3fd5329943cbdf9d10bc9b Signed-off-by: dd3boh <dade.garberi@gmail.com>
-rw-r--r--BoardConfig.mk10
-rw-r--r--system.prop3
2 files changed, 12 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index dfd4539..afce5a9 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -78,7 +78,14 @@ TARGET_USES_64_BIT_BINDER := true
# Kernel
-BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff
+BOARD_KERNEL_CMDLINE := \
+ androidboot.hardware=qcom \
+ ehci-hcd.park=3 \
+ lpm_levels.sleep_disabled=1 \
+ cma=32M@0-0xffffffff \
+ androidboot.selinux=enforcing \
+ androidboot.verifiedbootstate=green \
+ androidboot.veritymode=enforcing
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_TAGS_OFFSET := 0x00000100
@@ -90,6 +97,7 @@ TARGET_KERNEL_HEADER_ARCH := arm64
TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
TARGET_KERNEL_CONFIG := z2_plus_defconfig
TARGET_KERNEL_SOURCE := kernel/zuk/msm8996
+TARGET_KERNEL_BUILD_VARIANT := user
# QCOM hardware
BOARD_USES_QCOM_HARDWARE := true
diff --git a/system.prop b/system.prop
index 44789ca..2f80a16 100644
--- a/system.prop
+++ b/system.prop
@@ -165,3 +165,6 @@ ro.device.gpu=Qualcomm Adreno 530
ro.device.rear_cam=13 MP, f/2.2
ro.device.front_cam=8 MP, f/2.0
ro.device.screen_res=1080 x 1920, 5.0"
+
+# SafetyNet
+ro.boot.verifiedbootstate=green