[UPDATE!] read below
At recovery boo I get the usual: "Enter Password for User ".
I hit "CANCEL" , then wipe Dalvik, Cache, System, Data and Internal storage:
Attempting to decrypt user 0 Failed to decrypt with default password. You may need to perform a Format Data. Updating partition details ... .... done. Full SELinux support is present. Wiping Cache and Dalvik... -- Dalvik Cache Directories Wipe Complete! Formatting Cache using mke2fs... Done. Wiping data without wiping /data/media ... Done. Wiping internal storage -- /data/media... Error opening: '/data/media' (No such file or directory) Updating partition details... ... done
If I reboot to recovery I get again the usual: "Enter Password for User ".
So I give the password I knew but it fails.
So, I am pretty sure I need to format Data.
I hit "Cancel", "Wipe" and "Format Data". And "yes". I get this:
Attempting to decrypt user 0... Failed to decrypt user 0 Unable to decrypt with default password. You may need to perform a Format Data. Updating partition details ... .... done. Attempting to decrypt FBE for user 0... Failed to decrypt user 0 Full SELinux support is present. Wiping Cache and Dalvik... -- Dalvik Cache Directories Wipe Complete! Formatting Cache using mke2fs... mke2fs -t ext4 -b 4096 /dev/block/sda16 60301043 process ended with ERROR: 1 Unable to wipe Data. Unable to format to remove encryption. Updating partition details... Failed to mount '/data' (Device or resource busy) ... done
If I go on adb shell and run the same mke2fs command I get this:
RMX1931CN:/ # mke2fs -t ext4 -b 4096 /dev/block/sda16 mke2fs 1.43.3 (04-Sep-2016) /dev/block/sda16 is apparently in use by the system; will not make a filesystem here!
And here I keep staying stuck... :-(
From adb shell I saw that /data is mounted from /dev/block/dm-0 not from /dev/block/sda16.
So I did umount /data and then run that mke2fs command over /dev/block/dm-0.
Then rebooted to recovery once more.
Now my phone doesn't require any password to decrypt any partition.
Back on the saddle now.
I have pushed a LOS and a NickGapps zips and I finally have been able to install and reboot!
Not finished yet. The phone is now encrypted, but I don't know the password!!!
This is a nightmare!
Reinstall everything and setup your PIN at the very first boot/setup.