• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

TWRP bootloop after LineageOS OTA Update

Search This thread

gnackwatschn

New member
Feb 7, 2018
2
6
Hi everyone,

I came into a TWRP bootloop and don't know how to get out. Here's how it happened:

I wanted to start the OTA Update of LineageOS and clicked on install after it was downloaded. The device restarted and booted into TWRP. Nothing else happened. So I decided to do a reboot from TWRP (without doing anything else).

Instead of booting LineageOS it booted again into TWRP.

Now I am caught in this bootloop. The phone always boots into TWRP instead of LineageOS.

Any idea how to fix this?
 

Mr-Kappa

Member
Jun 3, 2011
22
6
Found a solution by myself:

executing
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
in TWRP terminal solved the issue.

Btw: TWRP recovery from an earlier backup and also clean installing LineageOS did not solve the Problem.

I've encountered too the same problem (my phone version is the h870). Do you have any ideas on why this is happening? I managed to successfully install manually the ota package with twrp (/data/org.lineageos.updater/app_updates) but twrp still keeps looping :confused:
 
  • Like
Reactions: nitkam

dwisatriow

New member
Feb 10, 2018
4
0
I have the same problem. I've tried installing lineage os ota update both via system settings and install manually via twrp but ended up with bootloop. Is there's a way to solve this?
 

thompson9100

New member
Aug 21, 2015
2
0
TWRP Loop

Did you enter twrp via power off - key sequence or via the ota menu?

I am in the same boat, but about to try the fix above.

From what I've read elsewhere, this is a known bug in TWRP, and some useful person berated someone else for not knowing about having the correct bootloader (???), but when you're doing an update, that doesn't seem a logical thing?

In answer to your question Mr Kappa, when the system has downloaded the update, you tap to install, and it just does it's own thing, and hey presto, you're stuck in a twpr boot loop. This happens on all models it seems, from LG, Samsung, Moto, and lord only knows how many others, but the fix (and the only fix unless you leave USB debugging enabled) is this "dd if=" command, which is different for each make and model of phone.

***IF you have USB debugging enabled** - reboot to bootloader from TWRP (it will allow you to do this) then connect to your PC, open a command window (assuming you've got ADB/FASTBOOT installed) and type in "FASTBOOT CONTINUE". Apparently this works, but I've not enabled USB debugging so I can't try it (sensible security feature).
 

Dude214

New member
May 2, 2018
2
0
I am sorry to be asking at the wrong forum, but does anyone know the dd command for LeEco Le 1s? I am stuck with the same problem and am not able to find any solution for my model anywhere :(
I would be grateful if someone was kind enough to help me out here.
 

jdrouill

New member
Jul 23, 2018
1
1
I had the same issue and was able to fix as the OP said but I wanted to add a couple steps that might not be obvious to some newbs like me.

Turn on the phone and let TWRP load. Connect your phone to your computer via USB and open a terminal window on your computer. Type adb shell. Then:

dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc

Worked for me on LG G6 US997.
 
  • Love
Reactions: floor_official

MacGyver17

Senior Member
Jun 5, 2014
181
31
Jakarta
Asus ZenFone 3
Redmi K20 Pro
Found a solution by myself:

executing
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
in TWRP terminal solved the issue.

Btw: TWRP recovery from an earlier backup and also clean installing LineageOS did not solve the Problem.

THANK YOU VERY MUCH !!!!!
YOU HELP ME TO FIXING MY PHONE DUDE (anyway, I came from google search and I'm using LineageOS 15 on my zenfone. Got a bootloop to TWRP and I try to do what you say and surprisingly it works ! :highfive:)
 

N1MP0

Member
Jan 5, 2013
7
0
Madrid
Hey there, I'm having same problem.

I couldnt run the command in windows, but I did on Recovery terminal (OrangeFox), even tho the command runs properly, I still cant get out of Recovery.
Any idea?
 

Truth#1

New member
Feb 3, 2021
2
1
Hi everyone,

I came into a TWRP bootloop and don't know how to get out. Here's how it happened:

I wanted to start the OTA Update of LineageOS and clicked on install after it was downloaded. The device restarted and booted into TWRP. Nothing else happened. So I decided to do a reboot from TWRP (without doing anything else).

Instead of booting LineageOS it booted again into TWRP.

Now I am caught in this bootloop. The phone always boots into TWRP instead of LineageOS.

Any idea how to fix this?
Yes, its the root that caused it. in twrp backup the data to mmc/otg/internal -> copy the lineage os zip file, gapps.. to a mmc or otg, in twrp -> wipe cahe,dalvik, data.. exept internal stor-> select storage, install lineage then gapps , dont install magisk/root zip, restore data, reboot system, install update -> reboot-> install rootzip.
next time unistall root then update.
 
  • Love
Reactions: floor_official

Jonarius

New member
Feb 8, 2021
2
1
Solution found

Found a solution by myself:

executing
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
in TWRP terminal solved the issue.

Btw: TWRP recovery from an earlier backup and also clean installing LineageOS did not solve the Problem.
im sorry i am a newbie here.I have the same problem with a xiaomi redmi 7,i was forced to re-install the whole rom with the newest update because of the bootloop.Where exactly do i execute this command? in my computer? or in fastboot mode?
 
Jul 22, 2021
6
0
I have the same problem but my pc does not detect my phone when Im trying to connect it and use ADB, I tried 2 different cables. Is there anything I can do or my phone turned into expensive brick?

EDIT: I ignored what my pc was telling me (that no device is connected) and simply went to adb and typed the code above. It works, thank you
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Solution found

    Found a solution by myself:

    executing
    dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
    in TWRP terminal solved the issue.

    Btw: TWRP recovery from an earlier backup and also clean installing LineageOS did not solve the Problem.
    1
    Found a solution by myself:

    executing
    dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
    in TWRP terminal solved the issue.

    Btw: TWRP recovery from an earlier backup and also clean installing LineageOS did not solve the Problem.

    I've encountered too the same problem (my phone version is the h870). Do you have any ideas on why this is happening? I managed to successfully install manually the ota package with twrp (/data/org.lineageos.updater/app_updates) but twrp still keeps looping :confused:
    1
    I had the same issue and was able to fix as the OP said but I wanted to add a couple steps that might not be obvious to some newbs like me.

    Turn on the phone and let TWRP load. Connect your phone to your computer via USB and open a terminal window on your computer. Type adb shell. Then:

    dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc

    Worked for me on LG G6 US997.
    1
    Thanks, I use this every time an OTA update breaks boot.

    Code:
    dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
    1
    Hi everyone,

    I came into a TWRP bootloop and don't know how to get out. Here's how it happened:

    I wanted to start the OTA Update of LineageOS and clicked on install after it was downloaded. The device restarted and booted into TWRP. Nothing else happened. So I decided to do a reboot from TWRP (without doing anything else).

    Instead of booting LineageOS it booted again into TWRP.

    Now I am caught in this bootloop. The phone always boots into TWRP instead of LineageOS.

    Any idea how to fix this?
    Yes, its the root that caused it. in twrp backup the data to mmc/otg/internal -> copy the lineage os zip file, gapps.. to a mmc or otg, in twrp -> wipe cahe,dalvik, data.. exept internal stor-> select storage, install lineage then gapps , dont install magisk/root zip, restore data, reboot system, install update -> reboot-> install rootzip.
    next time unistall root then update.