OnePlus One smartphones seem to be affected by random and unexpected reboots that lead to indefinite boot loops during the handset's usage, such as swiping through the app drawer or browsing a web page.
Folks at Android Police have ascertained through a one-on-one session with +Ricardo Cerqueira of +Cyanogen Inc. that the problem could be due to the persist partition getting corrupted during the normal reboot, after installing CyanogenMod on the handset.
In order to fix this issue, boot into TWRP recovery and run the following command:
The report adds that a similar fix was posted earlier via XDA Developers forum. However, the new fix is apparently easier, faster and works without the need to download anything.
Though it is still unclear why the issue occurs in the first place, the result of executing this command will restore the device to its working state without any data loss, and you will see the following output:
Creating filesystem with parameters:
Block size: 4096
Blocks per group: 32768
Inodes per group: 2048
Inode size: 256
Journal blocks: 1024
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/2048 inodes and 1166/8192 blocks