[SOLVED] LG G5 h850 stuck in recovery bootloop (twrp) - LG G5 Questions & Answers

[EDIT] : i solved it by reflashing twrp with fastboot (still not working at this step) and then adb sideload a newer lineage version
Hi,
I successfully installed LineageOs 17 on my G5 h850 following lineageos installation guidelines (from stock OS).
It worked well for a week, then i tried to update automatically but the phone rebooted to twrp (3.3.1-0) doing nothing more...
so i manually installed the update using twrp install button (without wiping cache/dalvik i think)
it worked well
then this morning i got a notification : new update available
so i did the same, download it click install then phone reboots itself to twrp, and then i manually installed lineage update (without wiping cache/dalvik i think) and then reboot
but this time after reboot lineage animation was displayed for few minutes and it rebooted to twrp
since then i'm stuck in recovery bootloop
so i tried to reinstall lineage update many times wiping cache/dalvik
i also tried this command line using twrp terminal :
Code:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
with this output :
Code:
1+0 records in
1+0 records out
256 bytes (256B) copied, 0.021481 seconds, 11.6 KB/s
but after hit enter i went back to reboot>system and get stuck again...
Someone please help me !
Thanks

Related

Bootloop into twrp

Hi everyone,
i have the problem that i tried to install custom rom over twrp recovery ( root installed also ).
Installation starts and finishes.
On Reboot i always get back into recovery....
No chance anymore to install any custom rom.
What can be done to solve this ?
FranzB said:
Hi everyone,
i have the problem that i tried to install custom rom over twrp recovery ( root installed also ).
Installation starts and finishes.
On Reboot i always get back into recovery....
No chance anymore to install any custom rom.
What can be done to solve this ?
Click to expand...
Click to collapse
Just LGUP kdz bro
Sent from my LGE LG-H830 using XDA Labs
Hi
thks for answer But i get error message "no handset .... " when starting lgup
FranzB said:
Hi
thks for answer But i get error message "no handset .... " when starting lgup
Click to expand...
Click to collapse
Search for dd commands in the CM 14.1 thread on one of the last few pages. I've used these on my g3, g4 and G5 and its worked to reboot to system.
FranzB said:
Hi
thks for answer But i get error message "no handset .... " when starting lgup
Click to expand...
Click to collapse
You try flashing Twrp update? I did and started getting bootloops
Sent from my LGE LG-H830 using XDA Labs
It's been confirmed if you bootloop twrp
Connect usb then on computer run adb shell
And the 2 commands at bottom of op posts bout rooting: http://forum.xda-developers.com/tmobile-lg-g5/development/root-h830-t3384526
They're the 2 commands beginning with dd one at a time and hit enter. Also, skip running su command. No need in recovery it's already good to go just copy/paste each one in to a command prompt with adb shell and should fix just bought phone today and saw this myself.
RealPariah said:
It's been confirmed if you bootloop twrp
Connect usb then on computer run adb shell
And the 2 commands at bottom of op posts bout rooting: http://forum.xda-developers.com/tmobile-lg-g5/development/root-h830-t3384526
They're the 2 commands beginning with dd one at a time and hit enter. Also, skip running su command. No need in recovery it's already good to go just copy/paste each one in to a command prompt with adb shell and should fix just bought phone today and saw this myself.
Click to expand...
Click to collapse
Thank you very much bro. These two dd commands did it for me. But my directory was different .../platform/soc/624000.ufshc
I also have this problem after I tried to flesh H850 20A OPEN EU.
You can maybe explain to me how you overcame it ??
yossiyemin said:
I also have this problem after I tried to flesh H850 20A OPEN EU.
You can maybe explain to me how you overcame it ??
Click to expand...
Click to collapse
I installed H850 20 A too. But i always got into twrp after reboot.
I connected my lg with pc ( usb ). In TWRP "Advanced" - "Terminal" i wrote these two dd statements.
First i got error - directory was wrong !
I did these two statements one after another:
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/misc
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/fota
and afterwards
reboot
Without entering twrp my phone installed H850 20A OPEN EU
Btw: My phone was locked again after this procedure and i had to unlock again, install twrp and supersu
RealPariah said:
It's been confirmed if you bootloop twrp
Connect usb then on computer run adb shell
And the 2 commands at bottom of op posts bout rooting: http://forum.xda-developers.com/tmobile-lg-g5/development/root-h830-t3384526
They're the 2 commands beginning with dd one at a time and hit enter. Also, skip running su command. No need in recovery it's already good to go just copy/paste each one in to a command prompt with adb shell and should fix just bought phone today and saw this myself.
Click to expand...
Click to collapse
Absolutely awesome advice/info - THANKS Pariah! :good:
I did the exact command on a h850 with linage and twrp and now I get a phone is corrupt and will not boot message. I hate this phone so much.
FranzB said:
Hi
thks for answer But i get error message "no handset .... " when starting lgup
Click to expand...
Click to collapse
Use UpperCut for flashing by LGUP
FranzB said:
I installed H850 20 A too. But i always got into twrp after reboot.
I connected my lg with pc ( usb ). In TWRP "Advanced" - "Terminal" i wrote these two dd statements.
First i got error - directory was wrong !
I did these two statements one after another:
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/misc
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/fota
and afterwards
reboot
Without entering twrp my phone installed H850 20A OPEN EU
Btw: My phone was locked again after this procedure and i had to unlock again, install twrp and supersu
Click to expand...
Click to collapse
Be careful, I completely bricked my phone attempting this.... only boot option was to go into the "Software Updating" screen. There was no working OS / Recovery / Fastboot at all.
Previously I've used LG Bridge to do full restore to LG stock image, then start again with OEM unlock, TWRP and then Lineage, but LG Bridge couldn't recover it (or detect it!) and although LGUP would detect it, it took me down a pretty long and messy path of having to download a lot of utilities to convert the stock image to something that LGUP would use and that kept failing 5-10% in to the update... so I ended up sending the phone off to be restored by somebody else (and cost myself £80).
FranzB said:
I installed H850 20 A too. But i always got into twrp after reboot.
I connected my lg with pc ( usb ). In TWRP "Advanced" - "Terminal" i wrote these two dd statements.
First i got error - directory was wrong !
I did these two statements one after another:
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/misc
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/fota
and afterwards
reboot
Without entering twrp my phone installed H850 20A OPEN EU
Btw: My phone was locked again after this procedure and i had to unlock again, install twrp and supersu
Click to expand...
Click to collapse
Hey,
i also ran into a revocery bootloop and just tried out you two commands. Both replied something like "no space left...". After rebooting the phone now i am stuck with a even worse bootloop saying
[750]
[800]
[850] Boot verfifaction fail
[900] - cause MISMATCH_SIG_LEN
[950]
[1000]
I am not even able to boot into Recovery any more.....Is it now trash?!
I was able to recover it after hours of google and several tools and combinations of it when i finally found a solution that worked. Hopefully nothing is broken in the back that will "fall on my feet" someday...
!!! Solution !!!
Hi,
Today I faced the same problem and after google-ing and reading trough the forums I found the right command that has to be used in this case scenario, which I tried and all worked like a charm!
So if anybody faces twrp bootloop enter this inside terminal window in twrp:
Code:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
Using the first commands staded above wipes your misc partition and then you end up with a Mac address that changes in every reboot!!! So don't use the first two commands stated above and use this one I posted here. Credits goes to jeffsga88 !!!
Thanks !
Yesterday I encountered the same bootloop after trying to perform an update from LineageOS 14.1 Nightly 20171024 to 20171031 through the system settings menu.
I had tried to wipe all partitions through TWRP and reinstalling the stock ROM, following a forum post (I don't find the link any more, sorry). This did not help.
I hesitated to use dd due to the reports that some phones were bricked after them. Then I found a description on teamsuperluminal dot org (the forum prevents me from posting the exact link) about the same issue occuring on a Xiaomi device; the commands proposed there only owerwrite the first 32 bytes of the two block devices, instead of 512 bytes / respectively everything. I tried to adapt it to the H850 case, as this was the least invasive option I found by a quick search.
Code:
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/misc bs=32 count=1
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/fota bs=32 count=1
This worked.
My setup:
- LG G5 (H850) EU
- TWRP 3.1.1-0
As this seems to be some kind of delicate issue, I would be curious about what I was actually doing with this. So I overwrote the first 32 bytes of the aforementioned two block devices with zeroes. What are these devices suppposed to contain? Where during the boot process are they read? What might be especially important not to owerwrite? I believe this can get into details quite quickly... but is there maybe any "high level" explanation how this works?
- wemi
recovery bootloop after LOS14.1 manual update (to 14.1-20171226-NIGHTLY-h850 via OTA) on G5-H850 EU with newest TWRP.
used only the first command from wemi, post #17 (on .../misc partition, with bs=32) in TWRP terminal, tried reboot and the problem seems to be solved. no idea why so no guarantee, of course.
Hi, I also got the recovery bootloop after using the dm-verity patch to decrypt the data partition. Can thus confirm that the first commands (overwriting "everything") lead to a corrupt phone and wemi's command let me restore it.
[deleted the rest, because I am obviously an idiot. If the problem proves to not be solved by being less of an idiot, I will edit the post once more and give more details]

Stuck in TWRP recovery.

Hi
I have a rooted LG g5 h830
I was on 20c with NSS kernel
There was new notification of update available (20d i guess)
I pressed install and it rebooted the phone to twrp
No files were installed in twrp so I guess it didnt update
From Twrp , i chose to reboot to system but every time it reboots to TWRP
Please help
Edit:
found the fix
run these commands in the TWRP terminal (Advanced > Terminal)
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/misc
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/fota
reboot
arjunking said:
Hi
I have a rooted LG g5 h830
I was on 20c with NSS kernel
There was new notification of update available (20d i guess)
I pressed install and it rebooted the phone to twrp
No files were installed in twrp so I guess it didnt update
From Twrp , i chose to reboot to system but every time it reboots to TWRP
Please help
Edit:
found the fix
run these commands in the TWRP terminal (Advanced > Terminal)
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/misc
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/fota
reboot
Click to expand...
Click to collapse
Just so you know the above commands are actually not recommended to get out of TWRP boot loop anymore as those commands wipe the whole misc partition including your WiFi Mac address (as discussed by me and autoprime in my thread to fix the always changing Mac address issues).
To anyone stuck in TWRP, run the following command from TWRP to get out of TWRP boot loop:
Code:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
This will get you out of TWRP boot loop and not wipe your while misc partition. If you already ran the previous commands and now your WiFi Mac address changes on every boot, visit my fix here:
https://forum.xda-developers.com/lg-g5/how-to/guide-fix-wifi-mac-address-changing-t3533841
...With a twist...
I'm in a similar situation with my h830. After trying to install a CM14.1 update, I kept having it boot into TWRP. Wiping system, or wiping everything, before trying multiple versions of CM14.1, didn't help (of course, now that I know this).
If I still had TWRP I'd be OK. The problem is that I next tried flashing the stock 20a ROM using LGUP, since I knew that if I had 20a running I could get root and re-install, and someone somewhere that the fix to the recovery loop is to reflash a ROM. However, now what happens is it keeps looping into the stock recovery instead of the custom recovery, and now I'm really stuck.
Right now, what I can do is get into fastboot mode, or get into LGUP download mode, or get into the stock recovery (which just keeps erasing things). The device is 'fastboot oem unlock'd already. If I try booting into the system, it shows the T-Mobile logo for about ten seconds and then boots back into recovery. I can flash the stock 20a ROM to heart's content but nothing changes.
Is there any way to wipe the misc partition without having TWRP? Or are there any other suggestions on how to proceed? I have the Android platform-tools, LGUP, and LG Flashtool installed.
jeffsga88 said:
Just so you know the above commands are actually not recommended to get out of TWRP boot loop anymore as those commands wipe the whole misc partition including your WiFi Mac address (as discussed by me and autoprime in my thread to fix the always changing Mac address issues).
To anyone stuck in TWRP, run the following command from TWRP to get out of TWRP boot loop:
Code:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
This will get you out of TWRP boot loop and not wipe your while misc partition. If you already ran the previous commands and now your WiFi Mac address changes on every boot, visit my fix here:
https://forum.xda-developers.com/lg-g5/how-to/guide-fix-wifi-mac-address-changing-t3533841
Click to expand...
Click to collapse
I did this os Los 1.5.1 h830 but once it reboots google play services error come up and I cant resolve them even my reflashing with gapps???? any ideas???
Methinks, I've messed up my phone bad. Is there a fix for wiping the misc partition?
running root stock 21d and did a Factory Reset subsequently going into a boot loop
came across this thread and didn't READ it through and applied the incorrect fix
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/misc
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/fota
it wouldn't boot after that at all. display said Your device is corrupt etc and boot loader was locked
after a while:
boot loader -> flash the RS98810h_01_0303.kdz
unlock bootloader
installed twrp and flashed RS988_21d-Stock_Flashable-COMPLETE.zip
now its stuck in a boot loop. starts up normally, android upgrading till all apps complete. Then a few seconds after the boot is complete (setup process) it reboots and is stuck in the same a boot loop
I think it might have something to do with wiping the misc partition
Anyone know how to recover from that or have a backup of the misc partition to send? Or perhaps I'm off here, but that's the best I can think of
ps: I have the original MAC
If you look at the bottom of the 2nd post in this thread (https://forum.xda-developers.com/showpost.php?p=71797169&postcount=2) it has a link to info on fixing it.
tblade2 said:
Methinks, I've messed up my phone bad. Is there a fix for wiping the misc partition?
running root stock 21d and did a Factory Reset subsequently going into a boot loop
came across this thread and didn't READ it through and applied the incorrect fix
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/misc
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/fota
it wouldn't boot after that at all. display said Your device is corrupt etc and boot loader was locked
after a while:
boot loader -> flash the RS98810h_01_0303.kdz
unlock bootloader
installed twrp and flashed RS988_21d-Stock_Flashable-COMPLETE.zip
now its stuck in a boot loop. starts up normally, android upgrading till all apps complete. Then a few seconds after the boot is complete (setup process) it reboots and is stuck in the same a boot loop
I think it might have something to do with wiping the misc partition
Anyone know how to recover from that or have a backup of the misc partition to send? Or perhaps I'm off here, but that's the best I can think of
ps: I have the original MAC
Click to expand...
Click to collapse
jeffsga88 said:
Just so you know the above commands are actually not recommended to get out of TWRP boot loop anymore as those commands wipe the whole misc partition including your WiFi Mac address (as discussed by me and autoprime in my thread to fix the always changing Mac address issues).
To anyone stuck in TWRP, run the following command from TWRP to get out of TWRP boot loop:
Code:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
This will get you out of TWRP boot loop and not wipe your while misc partition. If you already ran the previous commands and now your WiFi Mac address changes on every boot, visit my fix here:
https://forum.xda-developers.com/lg-g5/how-to/guide-fix-wifi-mac-address-changing-t3533841
Click to expand...
Click to collapse
guys, Lenovo Tab 4 10 here, I've tried using Jeff's command in TWRP terminal, but I'm getting "dd: conv option disabled". What should I do now?

Stuck in TWRP after trying to OTA update

Hi
I have a rooted LG g5 h830
I was on 20c with NSS kernel
There was new notification of update available (20d i guess)
I pressed install and it rebooted the phone to twrp
No files were installed in twrp so I guess it didnt update
From Twrp , i chose to reboot to system but every time it reboots to TWRP
Please help
Edit:
found the fix
run these commands in the TWRP terminal (Advanced > Terminal)
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/misc
dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/fota
reboot

Booting into TWRP after 21a update [RS988]

So I've decided to go back to stock the other night, I flashed the 21a zip floating around here. After I did that I cannot get into TWRP. I have reflashed TWRP in fastboot but when I hold volume down and power and go through the menu like normal, it goes to LGs stock erasing data then reboots me. I'm completely lost, any help would be great.
Edit: A little workaround I've found so far is to fastboot flash recovery then pull battery after disconnecting cable. Then going through vol down + power works to enter recovery mode. Going to try flashing a ROM and see what happens.
Edit 2: So...I kept getting unsuccessful encryption after flashing 21a then deleting recovery-from-boot.p from system, even after Magisk was installed. So I flashed the no-verity-opt-encrypt.zip after 21a and booted and now I'm stuck in TWRP loop. Fun.
Edit 3: What a morning! So I ended up formatting everything even internal storage. Then I reflashed 21a, deleted recovery-from-boot.p from system, flashed Magisk, rebooted but it just went to TWRP. So then I went to terminal and typed in "dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc" and it seems to be working just fine right now.

LG V521 wont boot past recovery.

I originally followed this thread LG V521 Root Guide and successfully rooted and installed Nougat on my LG V521.
I had to uninstall a module (Smalipatcher) from magisk recently because it wouldn't allow the phone to boot up. After uninstalling the phone wouldn't boot past recovery so i did a system format and now every time it boots it goes to recovery.
I tried flashing a stock LG Rom on it via sideloading...it says it worked successfully but still wouldn't boot up. I then ran these commands through terminal:
Code:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/fota
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc
as found in another thread.
The phone successfully boots up but then tells me the encryption was unsuccessful and the tablet needs to be reset...which just brings me back to booting up to TWRP. I've been trying different things for two days and none have worked. Can anyone give me an idea of what else to try?

Categories

Resources