diff --git a/BoardConfig.mk b/BoardConfig.mk index aba792f..c8ca451 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -44,6 +44,7 @@ TARGET_RECOVERY_UI_MARGIN_HEIGHT := 105 # Partitions (listed in the file) to be wiped under recovery. TARGET_RECOVERY_WIPE := device/google/taimen/recovery.wipe +TARGET_RECOVERY_FSTAB := device/google/taimen/fstab.hardware TARGET_RECOVERY_UI_LIB := \ librecovery_ui_taimen \ diff --git a/device.mk b/device.mk index a546815..bb28862 100644 --- a/device.mk +++ b/device.mk @@ -64,6 +64,11 @@ PRODUCT_COPY_FILES += \ device/google/taimen/thermal_info_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ device/google/taimen/thermal_info_config_evt.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_evt.json +# Fstab Hardware +PRODUCT_COPY_FILES += \ + device/google/taimen/fstab.hardware:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.$(PRODUCT_HARDWARE) \ + device/google/taimen/fstab.hardware:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.$(PRODUCT_HARDWARE) + # Shims PRODUCT_PACKAGES += \ libgui_shim diff --git a/fstab.hardware b/fstab.hardware new file mode 100644 index 0000000..60279fb --- /dev/null +++ b/fstab.hardware @@ -0,0 +1,14 @@ +# Android fstab file. + +# +/dev/block/by-name/system /system ext4 ro,barrier=1 wait,slotselect,avb,first_stage_mount +/dev/block/by-name/vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb,first_stage_mount +/dev/block/by-name/product /product ext4 ro,barrier=1 wait,slotselect,avb,first_stage_mount +/dev/block/by-name/system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb,first_stage_mount +/dev/block/by-name/persist /persist ext4 nosuid,nodev,noatime,barrier=1 wait +/dev/block/platform/soc/1da4000.ufshc/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,sync wait,formattable +/dev/block/platform/soc/1da4000.ufshc/by-name/userdata /data ext4 errors=panic,noatime,nosuid,nodev,barrier=1,noauto_da_alloc latemount,wait,check,formattable,fileencryption=ice:aes-256-heh,eraseblk=16777216,logicalblk=4096,quota,reservedsize=128M,checkpoint=block +/dev/block/platform/soc/1da4000.ufshc/by-name/misc /misc emmc defaults defaults +/dev/block/platform/soc/1da4000.ufshc/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect +/devices/soc/a800000.ssusb/a800000.dwc3* auto vfat defaults voldmanaged=usb:auto +/dev/block/zram0 none swap defaults zramsize=2147483648,max_comp_streams=8 \ No newline at end of file