Device in Bootloop using encryption I have yu yureka android device which has octa core snapdragon 615 processor, 2GB of ram, 16GB internal storage. 

Recently I migrated to snapshot release of Cyanogen Mod 12.1 (android 5.1) plain without any Google Proprietary Apps.

I thought of using device encryption feature. There is no lock screen password/pattern set. There are no secondary users. There are no so many apps installed. My /storage/emulated/0 doesn't contain any media files (completely free).

So, I entered Settings > Security and selected Encrypt Device . It showed some boot loader icon for a couple of minutes and then Settings > Security showed Device Encrypted.

Is it really encrypted, since it took very little time and not having lock screen password. The device was fine on rebooting.

Then, i created 2nd user and protected it with lock screen pattern. Then rebooted, device was fine.

Then I created lock screen pattern for the 1st user (Owner). It prompted to ask for this pattern at device boot up and I selected Yes. I then rebooted the device. At first, it asked for pattern, I entered the 1st users lock screen pattern. Then the device rebooted and was in boot loop now (continuous boot loader animation) for 45minutes. 


Was it encrypting the storage now or the process of encryption somehow corrupted??
Did I not do the encryption correctly? Is it must to have lock screen pattern before starting encryption?
The device is relatively faster and I guess it should not take so long for encryption. With my device specs how long can encryption be??
I have a 32GB external sdcard formatted with fat32. Is it going to encrypt that as well?
What happens possibly if I pull out the battery, apart from loosing data?


Please help..
After 2 hours of waiting, I long pressed the power button for 15sec which gives battery pull effect. Then I rebooted to recovery. Tried to format /data sparing /data/media which gave the error unable to mount /data. Then tried formatting /data including /data/media and it was formatted.

Then rebooted and first set a lock screen pattern and then tried encryption. This time, it got successfully encrypted in around 10minutes. The device asked for pattern on every boot, and it takes couple of minutes for every reboot. 

So, I think the issue was doing encryption without lock screen password and then adding password later.