Issue #567
closedreflashing directions don't work for encrypted devices
0%
Description
my phone is and was encrypted, and so i ran into some troubles in the reflashing process.
when i tried to flash from images on the "internal sd card", i got an error. (I believe it was the same as the ones below.)
I tried to do a factory reset, but got errors that some of the partitions couldn't be formatted. i know that included /emmc and /sdcard, and probably /data too. i believe /emmc corresponds to the /sdcard mount point in a normally-booted replicant install. i don't have an external sd card. i even tried re-formatting each partition manually, but got errors on those partitions.
i don't remember the exact errors in the log, but it was something about an "invalid argument" and listed the /dev/mmcblk0p11 name, or whatever.
i tried many things, but what i believe did the trick was to re-flash the boot.img with heimdall, then in the phone settings to reset the internal sd card, and to do a factory reset, or some other menu option.
then after re-copying the files onto the sd card and re-attempting to flash, it worked.
if you think it is appropriate, i could recommend in the heimdall instructions that users with encrypted devices should reset their phone and/or clear their internal sd card storage before attempting to flash a new kernel and system fs. thanks!