From c13cd03ccf360755bcebaa0df94427a3ac81217e Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Tue, 17 Oct 2023 09:31:59 -0700 Subject: [PATCH] fstab: allow unlocked devices to boot with AVB test key Set `avb_keys=/avb` for dynamic kernel partitions to allow booting unlocked devices with a custom kernel that is signed using a test key. This allows a few things: 1) Dogfooders can flash a custom kernel without wiping their device. This can help developers track down hard-to-reproduce bugs without rolling out a patch to the whole dogfooder population. 2) Developers can uprev their device's kernel without wiping their device or packaging the kernel with an Android platform build. Test: flash production userdebug build, then flash custom kernel. Bug: 274825778 Change-Id: I11edf6e50411a05c6723f7523f3672a9a8116d7a --- conf/fstab.gs201.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/fstab.gs201.in b/conf/fstab.gs201.in index e1af3e8b..88a17127 100644 --- a/conf/fstab.gs201.in +++ b/conf/fstab.gs201.in @@ -5,11 +5,11 @@ # # system /system ext4 noatime,ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 -system_dlkm /system_dlkm ext4 noatime,ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 +system_dlkm /system_dlkm ext4 noatime,ro wait,slotselect,avb=vbmeta_system,avb_keys=/avb,logical,first_stage_mount,readahead_size_kb=128 system_ext /system_ext ext4 noatime,ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 product /product ext4 noatime,ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 vendor /vendor ext4 noatime,ro wait,slotselect,avb=vbmeta_vendor,logical,first_stage_mount,readahead_size_kb=128 -vendor_dlkm /vendor_dlkm ext4 noatime,ro wait,slotselect,avb=vbmeta,logical,first_stage_mount +vendor_dlkm /vendor_dlkm ext4 noatime,ro wait,slotselect,avb=vbmeta,avb_keys=/avb,logical,first_stage_mount /dev/block/platform/14700000.ufs/by-name/boot /boot emmc defaults slotselect,avb=boot,first_stage_mount /dev/block/platform/14700000.ufs/by-name/init_boot /init_boot emmc defaults slotselect,avb=init_boot,first_stage_mount /dev/block/platform/14700000.ufs/by-name/misc /misc emmc defaults wait