aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2017-11-30 11:14:00 +0300
committerdoc HD <doc.divxm@gmail.com>2017-11-30 11:14:45 +0300
commitcf57f4a5e348a2f9fbcb95ced3ce1a7215c91051 (patch)
treecb98b90efb86e7d7c91f9514b899a2b6487fd6e8
parentf5a4ad3b5e4e7333ca6adc0172b835f50b80c8b3 (diff)
Pixel: disable dm-verityo8.0
Due to the limitations on how the pixel system is setup we can no longer disable verity on the system partition in the device tree. Also removing the verity configs in the device tree causes the device to fail to boot Notes: this disables dmverity on the system partition but only after first boot. example: flash rom, gapps, twrp. device boots without gapps verity hit us. now if you reboot into recovery and flash gapps again profit verity bypassed!! this isnt ideal and is still a WIP credits: DeesTroy from TWRP @BeansTown106 please leave my name here i wanna track this to see what others come up with Change-Id: Ieb1dc0d49dd8a840373df926c48acf294a201a08
-rw-r--r--drivers/md/dm-android-verity.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm-android-verity.c b/drivers/md/dm-android-verity.c
index ec35338bf52..76fe3e34cfa 100644
--- a/drivers/md/dm-android-verity.c
+++ b/drivers/md/dm-android-verity.c
@@ -375,6 +375,8 @@ static int verify_header(struct android_metadata_header *header)
{
int retval = -EINVAL;
+ return VERITY_STATE_DISABLE; // permanently disable verity
+
if (is_userdebug() && le32_to_cpu(header->magic_number) ==
VERITY_METADATA_MAGIC_DISABLE)
return VERITY_STATE_DISABLE;