Skip to content
Browse files
[DO NOT MERGE] verity: force a reboot that clears verity red
* This patch should never be used long term. It will cause the kernel
  to just reboot over and over again, but it clears the verity red for
  you, so hold the volume button to boot back into the bootloader after
  letting this reboot itself once, and flash something else to enjoy
  no more red verity message on boot.

Change-Id: Ib1abb1122e6cfb900744ebf24d25cee15b7802f9
  • Loading branch information
invisiblek committed Nov 27, 2017
1 parent 7c61f5c commit e1f62399183b854144301ce85f3a33b53ebfdde7
Showing with 2 additions and 0 deletions.
  1. +2 −0 drivers/md/dm-android-verity.c
@@ -678,6 +678,8 @@ static int android_verity_ctr(struct dm_target *ti, unsigned argc, char **argv)
unsigned long long tmpll;
u64 uninitialized_var(device_size);

kernel_restart("dm-verity enforcing");

if (argc == 1) {
/* Use the default keyid */
if (default_verity_key_id())

0 comments on commit e1f6239

Please sign in to comment.