Lineage stuck on boot loop on startup

lightningglasses

Senior Member
Jul 27, 2016
75
2
8
Hi,

I have LineageOS 14.1 installed on my Moto G4 Plus. All of a sudden it rebooted and was stuck on the booting screen. I can get to TWRP. Things I tried that didn't help

  1. wait 30 minutes
  2. plug in phone to charger
  3. clear cache
  4. fully power off then on

If it comes down to it, I could flash a new ROM, but would like to save/backup the text messages/whatsapp messages.
 

lightningglasses

Senior Member
Jul 27, 2016
75
2
8
wiping "Data" deletes everything, dirty flashing does not not.
Just wipe delvik-Art and cache (*not data*), Then install ROM (plus gapps and root if you need), reboot, it will take around 10 minutes to re-generate delvik data, then it should boot..
hmm didn't work, any other ideas?
 

____Mdd

Senior Member
Jul 26, 2016
721
330
63
24
hmm didn't work, any other ideas?
I forgot to mention in previous post, did you wipe system? Try with that and install rom.

Reinstalling ROM heals damage made to /system partition and to boot, but not to /data.
so if still doesn't boot, that means damage happened to /data and you need to clean it, result in lost of data of apps (whatsapp and message you mentioned in your post.)

Still if you know what apps you installed last, delete it from /data/app/xyz-app (boot TWRP > advance > file manager)
 

lightningglasses

Senior Member
Jul 27, 2016
75
2
8
I forgot to mention in previous post, did you wipe system? Try with that and install rom.

Reinstalling ROM heals damage made to /system partition and to boot, but not to /data.
so if still doesn't boot, that means damage happened to /data and you need to clean it, result in lost of data of apps (whatsapp and message you mentioned in your post.)

Still if you know what apps you installed last, delete it from /data/app/xyz-app (boot TWRP > advance > file manager)
It is still stuck in a boot loop after I
  1. cleared cache, dalvic/art and system
  2. used twrp's file manager to delete all recently installed apps from /data/app
  3. flashed newest lineageos rom
  4. clear davilink again
  5. waited 15 minutes with phone plugged in

When should I wipe cache/dalvik/system? Before or after flashing rom?
 
Last edited:

____Mdd

Senior Member
Jul 26, 2016
721
330
63
24
It is still stuck in a boot loop after I
  1. cleared cache, dalvic/art and system
  2. used twrp's file manager to delete all recently installed apps from /data/app
  3. flashed newest lineageos rom
  4. clear davilink again
  5. waited 15 minutes with phone plugged in

When should I wipe cache/dalvik/system? Before or after flashing rom?
There is no other way to get your device back without losing data.
I have never used Titanium backup app but i know there is feature to restore data from TWRP backup, you can take backup of /data and restore backup of whatsapp.
I am still not sure about that feature, if you have time then i can test that feature, otherwise there is no way to keep data.

Edit: whatsapp makes chat backup every night at 2AM, if you haven't had any important chats after that, you can go for wipe.
 
Last edited:

Ayan Uchiha Choudhury

Senior Member
Dec 30, 2013
1,155
1,731
153
Barrackpore
If you can pay for titanium backup there might just be a way. I am not 100% sure but take a backup of the "data" partition(you can backup everything but data is most important) in twrp in internal storage only. Then clean flash everything. Then install titanium backup and buy the pro key. Then restore from twrp. If you find an option to restore only data then that's a better option. Downloading the app and restoring the data is better than restoring app and data. I'm not sure if it will work. But if nothing is working and your data is 100% vital you may wanna try this.


Another tip, don't restore blindly everything cuz bootloop may occur again
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone