I have LineageOS running on a GS5 (G900I) and while it runs beautifully, every 1-2 weeks I have a hang that I cannot recover from - Even after reboot the phone hangs immediately - I can swipe across screens in Trebuchet but no widgets will run and the phone will hang if I try to open any app.
The *only* way I have been able to recover is to perform a restore of my /data partition from a TWRP backup. I've tried wiping cache, dalvik-cache and restoring the /system partition, but this does not help. I've upgraded LineageOS a couple of times to the latest. Now I seem to have to make a backup of /data every day or two, as I never know when this problem will strike again.
My /data partition is encrypted. Filesystem is ext4.
So I have really 2 questions:
1. Can anyone suggest the cause? I can't find any mention of this as a common issue.
2. How can I troubleshoot this? I can use "adb" when booted into TWRP recovery but it seems I cannot use this when the phone is booted without enabling USB Debugging in settings first - but when the hang has happened I cannot launch Settings to enable USB Debugging, so there appears to be no way to see any logs.
Any help would be appreciated...!