Manually disabling dm verity in the boot img
While it is often the case that dm-verity can be disabled via an Android Kitchen, such as SuperRs, occasionally this process can fail if the filenames / formats are not what is expected. In such cases we have to perform this operation manually.
In this post I will describe now to manually disable dm-verity using SuperRs kitchen to unpack the boot.img. Note that other unpacking options are available, such as bootimg-master.
Unpack the boot.img
In the Kitchen:
7) Boot/Recovery Tools
1) Unpack boot.img
Option 4 is usually used to disable dm-verity, but if this does not work then we have to perform the change manually.
Locate the fstab files
1. Inside the project folder, navigate to bootimg/ramdisk
2. There should be at least one file whose name starts with fstab
3. Change the permissions of these files in a Terminal
sudo chmod 777 <filename>
4. Open the file(s) up in gedit and find lines which resemble the following:
/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait, verify
/dev/block/bootdevice/by-name/vendor /vendor ext4 ro,barrier=1 wait, verify
/dev/block/bootdevice/by-name/product /product ext4 ro,barrier=1 wait, verify
5. Replace wait, verify with wait - i.e. just delete the verify option.
6. Save the file(s)
Repack the bootimg in SuperRs kitchen
1) Pack boot.img
download file now
alternative link download