diff --git a/build/readme.md b/build/readme.md index 647b77b..937119b 100644 --- a/build/readme.md +++ b/build/readme.md @@ -459,4 +459,44 @@ E:Unhandled flag: 'nodev' E:Unhandled flag: 'noauto_da_alloc' E:Unhandled flag: 'errors=panic' ` -Same is applicable for 4 vendor subpartitions. \ No newline at end of file +Same is applicable for 4 vendor subpartitions. + + + + +**BUILD 7.2** +use recovery7.1.fstab +* Remove mnt_flags in */system /vendor /data /cache* and 4 vendor subpartitions. +* Fix a flag of the /bootloader2 subpartition of /bootloader. Previous it was mistakenly kept as in twrp `subpartitionof=/lk` while the /lk was modified to /bootloader in accordance with stock: +`subpartitionof=/lk` to `subpartitionof=/bootloader` + +RESULT +All the fs_mgr_flags were parsed smoothly: +` +=> Processing /etc/recovery.fstab +I:Reading /etc/recovery.fstab +I:Processing '/system' +I:Processing '/vendor' +I:Created '/vendor' folder. +I:Processing '/data' +I:Processing '/cache' +I:Processing '/vendor/protect_f' +I:Created '/vendor/protect_f' folder. +I:Processing '/vendor/protect_s' +I:Created '/vendor/protect_s' folder. +I:Processing '/vendor/nvdata' +I:Created '/vendor/nvdata' folder. +I:Processing '/vendor/nvcfg' +I:Created '/vendor/nvcfg' folder. +` + +/vendor emerged in the backup tab. Restoration is preliminarily disabled as /vendor is regarded the same as /system due to safetynet check. So by default system and vendor are mounted read only even when system and vendor partitions are ticked in mount tab. The tick for mount system partition read only at the bottom in the mount tab must be disabled to restore /system and /vendor and also to modify files in /system and /vendor directories via twrp file manager. + +Backup and restore to and from usb otg is working perfectly. + +` +/external_sd | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB + Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage + Primary_Block_Device: /dev/block/mmcblk1p1 + Alternate_Block_Device: /dev/block/mmcblk1 +` \ No newline at end of file diff --git a/final/ramdisk/etc/recovery.fstab b/final/ramdisk/etc/recovery.fstab index 05d6bc9..e714b16 100755 --- a/final/ramdisk/etc/recovery.fstab +++ b/final/ramdisk/etc/recovery.fstab @@ -5,24 +5,24 @@ # 1 "" 2 # 1 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" # 107 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" -/system ext4 /dev/block/platform/bootdevice/by-name/system flags=display="system";ro;wait;verify +/system ext4 /dev/block/platform/bootdevice/by-name/system flags=display="system";wait;verify -/vendor ext4 /dev/block/platform/bootdevice/by-name/vendor flags=display="vendor";backup=1;ro;wait;verify +/vendor ext4 /dev/block/platform/bootdevice/by-name/vendor flags=display="vendor";backup=1;wait;verify -/data ext4 /dev/block/platform/bootdevice/by-name/userdata flags=display="data";noatime;nosuid;nodev;noauto_da_alloc;errors=panic;wait;check;formattable;resize;encryptable=/dev/block/platform/bootdevice/by-name/metadata +/data ext4 /dev/block/platform/bootdevice/by-name/userdata flags=display="data";wait;check;formattable;resize;encryptable=/dev/block/platform/bootdevice/by-name/metadata -/cache ext4 /dev/block/platform/bootdevice/by-name/cache flags=display="cache";noatime;nosuid;nodev;noauto_da_alloc;discard;wait;check +/cache ext4 /dev/block/platform/bootdevice/by-name/cache flags=display="cache";wait;check -/vendor/protect_f ext4 /dev/block/platform/bootdevice/by-name/protect1 flags=display="protect_f";backup=0;noatime;nosuid;nodev;noauto_da_alloc;commit=1;nodelalloc;wait;check;formattable -/vendor/protect_s ext4 /dev/block/platform/bootdevice/by-name/protect2 flags=display="protect_s";backup=0;noatime;nosuid;nodev;noauto_da_alloc;commit=1;nodelalloc;wait;check;formattable -/vendor/nvdata ext4 /dev/block/platform/bootdevice/by-name/nvdata flags=display="nvdata";backup=0;noatime;nosuid;nodev;noauto_da_alloc;discard;wait;check;formattable -/vendor/nvcfg ext4 /dev/block/platform/bootdevice/by-name/nvcfg flags=display="nvcfg";backup=0;noatime;nosuid;nodev;noauto_da_alloc;commit=1;nodelalloc;wait;check;formattable +/vendor/protect_f ext4 /dev/block/platform/bootdevice/by-name/protect1 flags=display="protect_f";backup=0;wait;check;formattable +/vendor/protect_s ext4 /dev/block/platform/bootdevice/by-name/protect2 flags=display="protect_s";backup=0;wait;check;formattable +/vendor/nvdata ext4 /dev/block/platform/bootdevice/by-name/nvdata flags=display="nvdata";backup=0;wait;check;formattable +/vendor/nvcfg ext4 /dev/block/platform/bootdevice/by-name/nvcfg flags=display="nvcfg";backup=0;wait;check;formattable @@ -37,7 +37,7 @@ auto vfat /devices/platform/mt_usb* defaults voldmanaged=usbotg:aut /nvram emmc /dev/block/platform/bootdevice/by-name/nvram flags=display="nvram";backup=1;flashimg=0 /proinfo emmc /dev/block/platform/bootdevice/by-name/proinfo flags=display="proinfo";backup=1 /bootloader emmc /dev/block/platform/bootdevice/by-name/lk flags=display="bootloader";flashimg=0;backup=0 -/bootloader2 emmc /dev/block/platform/bootdevice/by-name/lk2 flags=backup=0;subpartitionof=/lk +/bootloader2 emmc /dev/block/platform/bootdevice/by-name/lk2 flags=backup=0;subpartitionof=/bootloader /misc emmc /dev/block/platform/bootdevice/by-name/para flags=display="misc";backup=0 /boot emmc /dev/block/platform/bootdevice/by-name/boot flags=display="boot";backup=1 /recovery emmc /dev/block/platform/bootdevice/by-name/recovery flags=display="recovery";flashimg=1 diff --git a/work/ramdisk/etc/recovery7.2.fstab b/work/ramdisk/etc/recovery7.2.fstab new file mode 100755 index 0000000..e714b16 --- /dev/null +++ b/work/ramdisk/etc/recovery7.2.fstab @@ -0,0 +1,79 @@ +# 1 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" +# 107 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" +/system ext4 /dev/block/platform/bootdevice/by-name/system flags=display="system";wait;verify + +/vendor ext4 /dev/block/platform/bootdevice/by-name/vendor flags=display="vendor";backup=1;wait;verify + + + + + +/data ext4 /dev/block/platform/bootdevice/by-name/userdata flags=display="data";wait;check;formattable;resize;encryptable=/dev/block/platform/bootdevice/by-name/metadata + + +/cache ext4 /dev/block/platform/bootdevice/by-name/cache flags=display="cache";wait;check + + +/vendor/protect_f ext4 /dev/block/platform/bootdevice/by-name/protect1 flags=display="protect_f";backup=0;wait;check;formattable +/vendor/protect_s ext4 /dev/block/platform/bootdevice/by-name/protect2 flags=display="protect_s";backup=0;wait;check;formattable +/vendor/nvdata ext4 /dev/block/platform/bootdevice/by-name/nvdata flags=display="nvdata";backup=0;wait;check;formattable +/vendor/nvcfg ext4 /dev/block/platform/bootdevice/by-name/nvcfg flags=display="nvcfg";backup=0;wait;check;formattable + + + + + +auto vfat /devices/bootdevice* defaults voldmanaged=sdcard0:auto +auto auto /devices/platform/externdevice* defaults voldmanaged=sdcard1:auto;encryptable=userdata +auto vfat /devices/platform/mt_usb* defaults voldmanaged=usbotg:auto + +/persistent emmc /dev/block/platform/bootdevice/by-name/frp flags=display="persistent";backup=0 + +/nvram emmc /dev/block/platform/bootdevice/by-name/nvram flags=display="nvram";backup=1;flashimg=0 +/proinfo emmc /dev/block/platform/bootdevice/by-name/proinfo flags=display="proinfo";backup=1 +/bootloader emmc /dev/block/platform/bootdevice/by-name/lk flags=display="bootloader";flashimg=0;backup=0 +/bootloader2 emmc /dev/block/platform/bootdevice/by-name/lk2 flags=backup=0;subpartitionof=/bootloader +/misc emmc /dev/block/platform/bootdevice/by-name/para flags=display="misc";backup=0 +/boot emmc /dev/block/platform/bootdevice/by-name/boot flags=display="boot";backup=1 +/recovery emmc /dev/block/platform/bootdevice/by-name/recovery flags=display="recovery";flashimg=1 +/logo emmc /dev/block/platform/bootdevice/by-name/logo flags=display="logo";flashimg=0;backup=0 +/expdb emmc /dev/block/platform/bootdevice/by-name/expdb +/seccfg emmc /dev/block/platform/bootdevice/by-name/seccfg + +/tee1 emmc /dev/block/platform/bootdevice/by-name/tee1 flags=display="tee";backup=0;flashimg=0 +/tee2 emmc /dev/block/platform/bootdevice/by-name/tee2 flags=backup=0;subpartitionof=/tee1 +# 161 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" +/md1img emmc /dev/block/platform/bootdevice/by-name/md1img flags=display="md1img";flashimg=0;backup=0 +/md1dsp emmc /dev/block/platform/bootdevice/by-name/md1dsp flags=display="md1dsp";flashimg=0;backup=0 +/md1arm7 emmc /dev/block/platform/bootdevice/by-name/md1arm7 flags=display="md1arm7";flashimg=0;backup=0 +/md3img emmc /dev/block/platform/bootdevice/by-name/md3img flags=display="md3img";flashimg=0;backup=0 + + + + + +/gz1 emmc /dev/block/platform/bootdevice/by-name/gz1 +/gz2 emmc /dev/block/platform/bootdevice/by-name/gz2 + +/spmfw emmc /dev/block/platform/bootdevice/by-name/spmfw + + +/mcupmfw emmc /dev/block/platform/bootdevice/by-name/mcupmfw + +/boot_para emmc /dev/block/platform/bootdevice/by-name/boot_para flags=display="boot_para";backup=0 + +/odmdtbo emmc /dev/block/platform/bootdevice/by-name/odmdtbo + + + + +/loader_ext1 emmc /dev/block/platform/bootdevice/by-name/loader_ext1 +/loader_ext2 emmc /dev/block/platform/bootdevice/by-name/loader_ext2 + +/external_sd auto /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="External SDcard";storage;wipeingui;removable;backup=0 +/usbotg auto /dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;removable;backup=0