aosp_angler: don't verify the vendor partition
Disable dm-verity for the vendor partition in AOSP builds. This
allows the device to boot even though verity metadata is signed
with a different key.
Bug: 30074027
Change-Id: Ib37afb9db2c2baf15b96e61cc3f92ab732a738f5
diff --git a/aosp_angler.mk b/aosp_angler.mk
index a4d5ea2..e59b338 100644
--- a/aosp_angler.mk
+++ b/aosp_angler.mk
@@ -31,6 +31,8 @@
PRODUCT_MANUFACTURER := Huawei
PRODUCT_RESTRICT_VENDOR_FILES := true
+PRODUCT_COPY_FILES += device/huawei/angler/fstab.aosp_angler:root/fstab.angler
+
$(call inherit-product, device/huawei/angler/device.mk)
$(call inherit-product-if-exists, vendor/huawei/angler/device-vendor.mk)
diff --git a/fstab.aosp_angler b/fstab.aosp_angler
new file mode 100644
index 0000000..ab57d3a
--- /dev/null
+++ b/fstab.aosp_angler
@@ -0,0 +1,28 @@
+# Android fstab file.
+#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
+# The filesystem that contains the filesystem checker binary (typically /system) cannot
+# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
+
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/system /system ext4 ro,barrier=1,inode_readahead_blks=8 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor /vendor ext4 ro,barrier=1,inode_readahead_blks=8 wait
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,discard,errors=panic,inode_readahead_blks=8 wait,check,forcefdeorfbe=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/persist /persist ext4 nosuid,nodev,barrier=1,data=ordered,nodelalloc,nomblk_io_submit,errors=panic wait,notrim
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/boot /boot emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/recovery /recovery emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/misc /misc emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/modem /modem emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/sbl1 /sbl1 emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/pmic /pmic emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/hyp /hyp emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/tz /tz emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/rpm /rpm emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/sdi /sdi emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/aboot /aboot emmc defaults defaults
+#/dev/block/platform/soc.0/f9824900.sdhci/by-name/imgdata /imgdata emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/frp /persistent emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/keymaster /keymaster emmc defaults defaults
+/dev/block/platform/soc.0/f9824900.sdhci/by-name/cmnlib /cmnlib emmc defaults defaults
+/devices/*/xhci-hcd.0.auto/usb* auto auto defaults voldmanaged=usb:auto
+/dev/block/zram0 none swap defaults zramsize=533413200,notrim