[P8 Lite (2017) Discussion] Jr'Z:
Hello,

I've tried the proposed solution.

As one can see below, there are now 2 files in my /vendor/etc, which are :

/vendor/etc/fstab.hi6250 : the updated file with the encryption related part removed.

/vendor/etc/fstab.hi6250.old : the original file that I copied just before I modified it.

After doing this, I boot into the recovery (the stock one), I asked to wipe the data, and after the various confirmation, the device rebooted in order to perform the wipe.

So I had approximately the same screen than when it's updating the ROM, but with a red title stating that I should not hold and press the power button to keep things Ok (I don't remeber exactly), but... it stayed at 0% for about 1 hour when I gave up.

I then had to restore the /vendor partition I had backup-ed before doing the work in order to restore things to normal.

So either there is some trick that is not mentionned, or I screwed up, but in both case I'd suggest you not to perform this action.

Now, if you want my guess : the stock recovery might expect a not encrypted partition according to the fstab, although it is, and therefore is unable to perform the wipe...

I'll give it a try with a special TWRP (if such exists) to perform the wipe (which consists in a specific rm -rf in order to keep Huawei drivers in /data)

If you had better luck, let me know!

HWPRA-H:/ # cat /vendor/etc/fstab.hi6250
# 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/bootdevice/by-name/system /system ext4 ro,barrier=1 wait,avb
/dev/block/bootdevice/by-name/vendor /vendor ext4 ro,barrier=1 wait,avb
/dev/block/bootdevice/by-name/product /product ext4 ro,barrier=1 wait
/dev/block/bootdevice/by-name/version /version ext4 ro,barrier=1 wait
/dev/block/bootdevice/by-name/cust /cust ext4 ro,barrier=1 wait
/dev/block/bootdevice/by-name/odm /odm ext4 ro,barrier=1 wait
/dev/block/bootdevice/by-name/patch /patch_hw ext4 ro wait,verify
/dev/block/bootdevice/by-name/splash2 /splash2 ext4 rw,nosuid,nodev,noatime,data=ordered,context=u:object_r:splash2_data_file:s0 wait,check
/devices/hi_mci.1/mmc_host/mmc1/* auto auto defaults voldmanaged=sdcard:auto,noemulatedsd
/devices/platform/hi_mci.1/mmc_host/mmc1/* auto auto defaults voldmanaged=sdcard:auto,noemulatedsd
/devices/hisi-usb-otg/usb1/* auto auto defaults voldmanaged=usbotg:auto
/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,discard,inline_data,inline_xattr wait,check
/dev/block/bootdevice/by-name/cache /cache ext4 rw,nosuid,nodev,noatime,data=ordered wait,check
/dev/block/bootdevice/by-name/secure_storage /sec_storage ext4 rw,nosuid,nodev,noatime,discard,auto_da_alloc,mblk_io_submit,data=journal,context=u:object_r:teecd_data_file:s0 wait,check
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
HWPRA-H:/ # cat /vendor/etc/fstab.hi6250.old
# 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/bootdevice/by-name/system /system ext4 ro,barrier=1 wait,avb
/dev/block/bootdevice/by-name/vendor /vendor ext4 ro,barrier=1 wait,avb
/dev/block/bootdevice/by-name/product /product ext4 ro,barrier=1 wait
/dev/block/bootdevice/by-name/version /version ext4 ro,barrier=1 wait
/dev/block/bootdevice/by-name/cust /cust ext4 ro,barrier=1 wait
/dev/block/bootdevice/by-name/odm /odm ext4 ro,barrier=1 wait
/dev/block/bootdevice/by-name/patch /patch_hw ext4 ro wait,verify
/dev/block/bootdevice/by-name/splash2 /splash2 ext4 rw,nosuid,nodev,noatime,data=ordered,context=u:object_r:splash2_data_file:s0 wait,check
/devices/hi_mci.1/mmc_host/mmc1/* auto auto defaults voldmanaged=sdcard:auto,noemulatedsd
/devices/platform/hi_mci.1/mmc_host/mmc1/* auto auto defaults voldmanaged=sdcard:auto,noemulatedsd
/devices/hisi-usb-otg/usb1/* auto auto defaults voldmanaged=usbotg:auto
/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,discard,inline_data,inline_xattr wait,check,fileencryption=aes-256-xts:aes-256-cts
/dev/block/bootdevice/by-name/cache /cache ext4 rw,nosuid,nodev,noatime,data=ordered wait,check
/dev/block/bootdevice/by-name/secure_storage /sec_storage ext4 rw,nosuid,nodev,noatime,discard,auto_da_alloc,mblk_io_submit,data=journal,context=u:object_r:teecd_data_file:s0 wait,check
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
HWPRA-H:/ # jr@brouettej: ~/android/essai_adb $>adb shell