yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] causes:
Okay I've tried this and it doesn't work :( I've tried both cm and twrp and still stuck in recovery loop
[G4 Android Development] kessaras:
try more. cm recovery works to just boot. try once that flash cm and rom and reboot while you are on cm to see what happens. at least if there is a small chance to go the easy way.

else.... lgup.... lgup isn't hard it just takes a lot of time. in that thread for lgup you will find anything you need to restore it.
[G4 Android Development] chandler_vt:
The first post needs to be updated. The font in red says you have to be on 20o but required firmware at the bottom says 20A. Which is it? I am on 20i - so I guess it won't work. Problem is LG Bridge is unable to check software version on my device. Do I need to unroot/lock bootloader? If so how. Going to search forum for that but if someone has a link - will appreciate it
[G4 Android Development] sejmand:
I'm really confused:

I read the thread thoroughly.

factory reset, twrp, flashed 12/10 version, gapps, did an update12/11: downloaded with cm updater flashed in twrp, not from build in updater, reboot fine

AND NOW:

simple reboot triggerd by powertoggle an I cant start again!

phone stucks at black lockscreen with a back button (no home-, no appoverview-button)

adb reboot recovery: then reflash 12/11 no effect!

What to do?

flash cmrecovery?

and then again twrp? (how does this work in cmrecovery?)

how to enter fastboot? adb reboot fastboot?

or reflash twrp?

confused.... (wa my second attempt to cm14.1 and the same unhappy ending)
[G4 Android Development] sejmand:
Here a screenshot
[G4 Android Development] papsr6:
I had the problem with loop twrp and I solve it with this:

Close phone (shut off)

Put it in download mode (hold volume up and hold it and put the connector sub to pic) when open the screen will be on download mode.

After open LGUP and flash last kdz.

Then do everything from start. Like first step to flash roms except unlock bootloader.
[G4 Android Development] kessaras:
No. That's something totally different, maybe someone here has seen it again.

See? Lgup isn't hard, it just needs time. Nice gj :)
[G4 Android Development] sejmand:
Problem: don't have a win-computer

UPDATE: i have V20D

---------- Post added at 06:31 PM ---------- Previous post was at 06:29 PM ----------

I reflashed twrp, no effekt
[G4 Android Development] brossovitch:
Its 2 devices. Both don't have the same stuff. H811 has 20i,20o, 20p, & 20q . Other variants have different models..

You need to go into download mode for Lg Bridge. Power off the device, hold Volume up and plug into your pc. It should work then.. i just did it a few days ago myself. But I also restored the stock recovery from a Nandroid i made before flashing TWRP. You don't need to re-lock the bootloader.
[G4 Android Development] kessaras:
Before I do anything,

I was also on v20D and everything worked great.... Weird. Something you did wrong but I can't know what.
[G4 Android Development] sejmand:
I really don't understand the problem with my phone... because cm13 runs very! stable.

Very disapointing. because I followed this thread from the beginning and I'm not able to solve my problem...

means: "See? Lgup isn't hard, it just needs time. Nice gj " from #1844, hthat I have to update my firmware with lgup, even when the first post says: kdz V20D i ok?

---------- Post added at 06:41 PM ---------- Previous post was at 06:40 PM ----------

could it be, that the reboot with powertoggles produced the mistake? the asked for root ...
[G4 Android Development] kessaras:
V20D is the minimum requirement. Not a "must have"
[G4 Android Development] sejmand:
so I do again afactory reset and flash again with gapps, the I try again a rebbot and if it fails, I hade to go bacj to cm13
[G4 Android Development] brossovitch:
I've been there, just boot twrp, format data, reboot twrp, flash, reboot. You should be good. But backup your internal storage if you don't wipe it every other day like me. ?
[G4 Android Development] sejmand:
data? will this kill my internal pics and "data" or only the build?

---------- Post added at 06:49 PM ---------- Previous post was at 06:49 PM ----------

thats a factory reset!

---------- Post added at 06:52 PM ---------- Previous post was at 06:49 PM ----------

But this would say: I only can use the phone without rebooting... I don't understand what exactly goes wrong
[G4 Android Development] kessaras:
"factory reset" only deletes the /data/data and some other folders and files that only contain the cache and data the apps use.

"format data" deletes everything in /data partition and since sdcard (internal) is mounted in /data too, it gets deleted too. so format data deletes everything in /data tree

just wipe them all out and do a full clean install again and see if that works. backup important things first.
[G4 Android Development] sejmand:
I did a wipe data in twrp, how can I Format "data"?
[G4 Android Development] :
"Wipe data" in TWRP wipes /data, except for /data/media, which contains the "internal storage" directory(/data/media/0). I've never had to wipe internal storage when updating this rom, but I almost always run into trouble if I don't wipe data.

---------- Post added at 01:45 PM ---------- Previous post was at 01:40 PM ----------

I flashed 12/11 from cmupdater this morning and got stuck in the recovery loop. Two commands in adb shell (thankfully available in TWRP) fixed me right up:

dd if=/dev/zero of=/dev/block/platform/f9824900.sdhci/by-name/fota
dd if=/dev/zero of=/dev/block/platform/f9824900.sdhci/by-name/misc

EDIT: STOP! DO NOT USE THESE COMMANDS.

Causes nasty side effects.
[G4 Android Development] sejmand:
I did not have experiences with the adb and the commands you poster.

Is this for formating the data partition...?

Shall I do/try this in my case?
[G4 Android Development] :
Those two commands are for people who can't get their G4 out of recovery mode. Formatting data can be done via the wipe button in TWRP.
[G4 Android Development] sejmand:
So I go ahead and risk a restart to see of it works...

I use adb for rebooting the recovery. From there I make a full backup and then turn of f the device and try again a restart...
[G4 Android Development] brossovitch:
Factory reset in TWRP doesn't wipe internal storage, it wipes data & both cache partitions.

Worst case scenario, flash KDZ to stock and start fresh.

---------- Post added at 08:34 PM ---------- Previous post was at 08:32 PM ----------

Are all of you with this odd recovery issue all using H815?
[G4 Android Development] sejmand:
Yes I'm h815 and if it doesn't works now, I switch back to cm13 looking for a windows machine and give it a last try....
[G4 Android Development] kessaras:
Why so many questions? Google and then xda here are your best friends.

Google twrp format data and see a pic.

Yes you are risking since the beginning since you first entered xda. So why not risk now? If the phone is fine and it doesn't have any hardware issue, the worst that can happen is to flash kdz and fix it.

To cause a hardware problem by flashing something that comes from xda is not possible otherwise half planet phones would be dead. So risk and have fun fixing it, you will also gain knowledge and knowledge is power.
[G4 Android Development] sejmand:
You're right, but I had use the phone as dayly reliable runner

if there are some bugs, I don't have a problem to use the phone, fix the problem, wait if there is a solution, read threads... and so on

but after this "lockscreen-freeze" the phone couldn't be used at all and when I'm not at home, don't have the time, it's not practicabel for me.

PS: I have a felling, that the reason of my problem was still unclear...
[G4 Android Development] papsr6:
The last nightly 12/11 is very stable and fast.

The problems is the camera slow charge and the file manager for me.

The file manager not want to see my sdcard and I don't know why.

Give it root permission but nothing.

Another problem is ...I download the last update tap on download and do nothing.

I flash it by twrp.

This is no OTA update.
[G4 Android Development] kessaras:
Good. Its for the best. And everything will be fixed in time. 7.1.1 is new.
[G4 Android Development] sejmand:
very good rom, fast and nice.

after shut down the device with on/off key on the back, the result was a softbrick:
[G4 Android Development] chandler_vt:
OK. I pretty much downgraded to stock 5.1 10N with stock recovery . Then started applying OTA updates. I am now on 20o and sound is Back!

I may need to flash TWRP again and root it again. But quite relieved. Once I get a stable version, I create a back up on SD card before delving in to custom rom. I actually did have a back up from May (20i) but unless 20o is installed, sound is pretty much gone.

Onward and upward!
[G4 Android Development] secutor666:
Hello folks. I am a desperate and before you judge.: I've googled, I've looked through the thread and I could not really find anything helpful. I've upgraded through the CM14.1 OTA to the latest CM14.1 release to have the latest android security level. Because I had the same bug that many other here experienced a few days ago (bootloop into TWRP) I went with the CM Recovery. After the updating process my phone went into a bootloop. If i am trying to enter the CM recovery, the stock LG factory reset msg shows up. "Exit" brings me back to the bootlopp and "yes" is doing the CM factory reset, but the recovery does not show up and I am stuck in the bootloop again.

Okay, here comes the iffy part: I can't enter fastboot. Maybe I am just stupid. So starting in fastboot mode works by pressing the power on key and the volume up button at the same time? Because i've also read that just holding the volume up button should bring me into fastboot. Plugging in the USB cable after a few seconds also did not work. I could easily fix the phone with ADB, but that does not help me at all if I can't enter fastboot. Thing is, I've never used LGUP to go back to stock roms before. So when it comes to that I am a bit lost. But maybe I am just stupid and it's way easier to fix with your help.

For the record: H815 latest bootloader and modem.
[G4 Android Development] papsr6:
I don't know the best choice to do but it think the problem is the OTA update.

So I put my phone to download mode flash stock rom with LGUP and meek all from the start without problem.

The updates flash Ed with twrp with full rom and I not have any problem.
[G4 Android Development] secutor666:
Okay that sounds great. But how exactly do I enter the download mode? What buttons do I need to press and hold?
[G4 Android Development] obvious:
You tried taking battery out, replacing it then holding volume up and plugging in to usb power? Exactly this?
[G4 Android Development] secutor666:
I've removed the battery many times. Was the only way to stop the bootloop. Do I need to get the timing right? How long do I have to wait until I plug the usb power in? It always starts into the bootloop after a while. Holding the volume up button brings me to fastboot or download mode? Or is it the same for the G4?
[G4 Android Development] obvious:
Not going to pollute thread further but it should 'just work'

If LGUP doesn't work try LG Flash Tool. If that doesn't work try LG pc suite. Only other thing I can think of is http://xdaforums.com/g4/general/guide-how-to-enter-fastboot-mode-t3239537 but not going to read back to see if this may apply to you or not. Good luck. Post in Q&A if problem persists
[G4 Android Development] papsr6:
Sorry explain....

You have bootloop on twrp or bootloop normal.

You can't turn off you phone?

If you loop on twrp go to reboot button and choose shut off.after hold volume up and plug in the sub to pic..

Leave volume up when on phone screen see download mode.
[G4 Android Development] secutor666:
Normal Bootloop. I don't have TWRP anymore. I was forced to move to CM Recovery because an OTA update through TWRP caused a bootloop into twrp. But i can't even access the CM recovery anymore. The G4 asks me if i want to do a factory reset. No = back to bootloop. Yes = back to bootloop .

The download mode works now. I figured it out. But now adb can't find the device. I've installed the drivers and my phone is somehow connected. It shows up in LG UP, but i can't go further because it's an "unknown device" and I have no access to the root folder to modify the device id.

Edit: LG Flash Tool 2014 does not work with any MM KDZs and stops at 14% with Lollipop KDZs.
[G4 Android Development] :
[MENTION=4836508]bensono82[/MENTION] did you ever get that wifi thing figured out?

I have the h811 and I took the cmupdater update from 11/25 to 12/11. I managed to get out of the recovery loop, but once I got in the rom, wifi didn't work. I used the kdz to get back to stock h811o and wifi worked great there, but now I still can't get wifi working on the known good cm build.

Edit: I found a wifi error in logcat.

WifiQualifiedNetworkSelector:: <ssid>:<mac> is in blacklist.

Edit 2: SOLVED...kind of

I previously wiped /data/misc/ trying to get out of the recovery bootloop. That reset /data/misc/wifi/config which contains the mac address of the phone. After the wipe it was set to 00:00:00:00:00:00, which is not a surprise to find blacklisted! I found my real mac address in my router logs and put that in the file. Wifi worked right away, but it doesn't persist after a reboot.
[G4 Android Development] XeniX_Force:
Ok so its a good thing that u figured out download mode.

Now you need the latest drivers. Its lg universal drivers here http://www.lgusbdriver.com/windows/lg-usb-driver-v4-1-1-0

Then im pretty sure your device will be recognized. Now flash the latest kdz using lgup. dont use lg flash tool. AND FOR GODS SAKE DONT FLASH LOLLIPOP KDZ THE ANTI ROLL BACK WILL BRICK YOUR PHONE.

---------- Post added at 06:07 AM ---------- Previous post was at 06:05 AM ----------

It probably was the power toggles. You should use the built in reboot options. As for now. You should go to stock with lgup and then come to cm and DONT USE THE INTERNAL UPDATER.
[G4 Android Development] sejmand:
I didn't use the internal updater and last time I didn't install power toggle at all. I did the restart with hardwarekey...
[G4 Android Development] XeniX_Force:
And still the same even with hardware key?

Do the hardware keys work correctly on stock?
[G4 Android Development] sejmand:
Yes they did. At moment I'm back to cm13, everything is good and stable....
[G4 Android Development] raptorddd:
if you update thru OTA or lg bridge you get problems.. when people got the OTA from 20i to 20o no sound and camera bugs. you need to download KDZ if you on 20i use 20i.. NOTICE that we have antirollback 10n and 20i its V2, so 20o and 20p are V3 and i assume that new 20q its the same.. not sure.. so you must use LGUP and use KDZ file and do a refurbished flash using LGUP and your problems should be fixed.

---------- Post added 12-12-2016 at 12:03 AM ---------- Previous post was 12-11-2016 at 11:56 PM ----------

do not downgraade lower than 20o. or youll hard brick phone.

heres KDZ for latest 20q. download the one that says KDZ restore..

http://xdaforums.com/tmobile-g4/development/rom-lg-g4-h811-20q-stock-rooted-rom-20q-t3513679

you need LGUP . and flash it. thats the best way to get updates.

http://xdaforums.com/g4/help/lgup-install-kdz-mm-lp-t3249803
[G4 Android Development] juntulis:
Hows the latest version? lots of problems how it seems from last posts?
[G4 Android Development] tachiquan3:
Does this ROM already have Vulkan support?
[G4 Android Development] secutor666:
I already have the latest drivers running and my device gets recognized. That still does not help me though. In order to make LGUP recognize my phone I need access to the root folder. Right now the device is just unknown and I need to edit the device ID on the device somehow. Maybe someone has figured out a workaround for that, but I doubt that. I have the feeling that my G4 is irreparable bricked.
[G4 Android Development] xrad:
H815 V20i here, no issues except video recording not working with Snap.
[G4 Android Development] juntulis:
This doesnt sound like "no issues" :D
[G4 Android Development] xrad:
No need for snide comments. In case you didn't notice I also used the word "except". Also it is just one issue which can be worked around. What I was trying to say it is no way near as unstable as recent posts suggest. These are either serious screwups during install or repair, or mayby H811 sepcific issues.
[G4 Android Development] XeniX_Force:
Well the vid recording issue is with the camera app not the rom. So there are no issues tbh.

---------- Post added at 04:13 PM ---------- Previous post was at 04:12 PM ----------

Well i never faced ur issue and believe me i bricked my phone many times.

And ive never heard of an irreparable brick. Dont loose hope.
[G4 Android Development] matshias:
LiveDisplay is still not working as well. Not sure if it is a device issue or in all CM14.1 ROMs
[G4 Android Development] secutor666:
Thanks for the kind words, but I lost hope. I mean sure... there must be a way, but I can't really figure it out. I've tried almost everything for over 8 hours and I still have zero progress. Download mode works and Win10 recognizes the G4. But that's it. All external software solutions don't work and I don't have access to the internal memory so I can't use LGUP.
[G4 Android Development] XeniX_Force:
I dont understand what u mean by "I don't have access to the internal memory so I can't use LGUP"

U dont need access. Lgup does everything
[G4 Android Development] secutor666:
If you take a look into the LGUP thread you see that you need to do a workaround if your device shows up as an "unknown device" in LGUP. You need to edit the device information on the cust partition.

/cust/OPEN_COM/cust_OPEN_EU.prop

ro.lge.swversion=some info
ro.lge.swversion_short=some info

So how exactly can I do that if I don't have access to the partitions?
[G4 Android Development] XeniX_Force:
Ouch.

Does adb connect to ur device? If yes then pull the file from ur device edit it and push it back.
[G4 Android Development] Charles Collins:
Are you able to use ADB/fastboot? Sorry if you have already discussed that
[G4 Android Development] secutor666:
No, ADB does not work. I've installed the drivers but ADB can't find the device for some reason.
[G4 Android Development] XeniX_Force:
Maybe adb will recognize if u try connect not during the bootloop but during the screen where it asks to erase or not as u mentioned
[G4 Android Development] secutor666:
My PC can only find the device in download mode. In the "not-working-recovery"-mode nothing happens. I've used the ports.bat to verify a proper connection.

HKEY_LOCAL_MACHINE\hardware\devicemap\SERIALCOMM
\Device\Serial0 REG_SZ COM1
\Device\LGANDNETMDM0 REG_SZ COM5
\Device\LGANDNETDIAG1 REG_SZ COM6

So it is connected and Windows finds it, but ADB does not. Same with fastboot.exe.
[G4 Android Development] XeniX_Force:
Damn im all out of ideas. You should try posting a thread on g4 help forum.
[G4 Android Development] KonterBiER:
ADB is, as the name suggests, the android debug bridge.

In the download mode, the phone is still executing bootloader programcode. Android is not booted then, so ADB can not work.

If anything, try fastboot.

But I had the same problem, and the only way to get the TWRP recovery back was to flash a KDZ (stock rom) with LG UP, boot it one time to enable USB Debugging and reboot into fastboot mode via ADB (adb reboot bootloader).

Only this way I was able to flash the recovery again (fastboot flash recovery your_recovery_image.img).

Unfortunately it seems like there is no other way to bring the phone into the fastboot mode. :(
[G4 Android Development] XeniX_Force:
[MENTION=6169612]secutor666[/MENTION] this might work.
[G4 Android Development] chandler_vt:
I guess I must have dodged a bullet there because I went back to 10n and then installed all OTA updates. I am on 20q and no issues. I flashed TWRP but haven't rooted again. Need to flash SU. I did use LGUP and a 10n KDZ file for flashing. It had problems initially but as soon as I installed the 20o update - everything was fixed.
[G4 Android Development] Charles Collins:
I had a similar issue where adb wouldn't recognize my device. In the end I uninstalled anything to do with LG (even used Wugfresh's Nexus Root Toolkit and went through the driver installation part as I knew it would show me the LG things I needed to remove - only way I knew how to do it). Then i installed all the drivers. Rebooted the laptop and installed LGUP again and it worked. Hope you have success.
[G4 Android Development] bensono82:
Hi!

Thanks for the feedback! So Im not the only one who has this- and it sounds like you came there the same way as i did - trying to stop a bootloop by messing around with files you do not know well enough :)

Your fix sounds good and if you script it its a good workaround, but I would love to see a fix for this! And I see it as a buggy behaviour, because the factory rom is functioning normally! CM is reading the MAC from a different place than the original firmware - thats not nice at least...

br, Martin

---------- Post added at 07:27 PM ---------- Previous post was at 07:25 PM ----------

@theprogramguy [/QUOTE]

Hi!

Thanks for the feedback! So Im not the only one who has this- and it sounds like you came there the same way as i did - trying to stop a bootloop by messing around with files you do not know well enough :)

Your fix sounds good and if you script it its a good workaround, but I would love to see a fix for this! And I see it as a buggy behaviour, because the factory rom is functioning normally! CM is reading the MAC from a different place than the original firmware - thats not nice at least...

br, Martin
[G4 Android Development] TheMagicianThing:
Is there a way to fix the systemUI not responding fully without starting over? (I can't even pull a log as that part of the ui along with the notification not being able to get pulled down all the way and recent apps not responding when you press the button) (was forced to factory wipe, forgot to backup before updating :( stupid of me)
[G4 Android Development] secutor666:
I can see the logic behind it, but LGUP does not recognize the G4 as an official G4. Is there any other way to flash the KDZ stock rom (not using LG Flash Tool 2014 nor LGUP)? Or is there any way to force LGUP to flash an unknown device? Fastboot can't find my device either.

C:\adb>fastboot device
< waiting for device >
[G4 Android Development] :
Did you install LG Bridge to get the drivers? Once you have those, open LGUP, then turn the phone completely off (pull out the battery if you need to), then with the battery in, hold down the volume up button while you plug the G4 into your computer. Don't let go of volume up until you see download mode. LGUP should see it now.
[G4 Android Development] secutor666:
As I've mentioned earlier. LGUP detects my device, but only as an "unknown" model. I can't click the "select" button.

[IMG="unknown model"]https://puu.sh/sNaEW/deadf9cce8.png[/IMG]

[IMG="select known model"]https://puu.sh/sNaSj/28c027845e.png[/IMG]

In order to make LGUP recognize my model I need to access the cust partition. But I can't access any partition at the moment.
[G4 Android Development] welder73:
Look at this man,maybe it will be helpful :)

http://xdaforums.com/g4/general/tip-problems-lgup-lgflashtool-1-8-2014-t3510904/post69882475
[G4 Android Development] papsr6:
I test the new Google camera app and works very good.

The quality is better than snap I think and the video works fine.

No manual controls but is very stable and fast good focus.

I found it here...

http://www.apktrunk.com/get/new/757/
[G4 Android Development] secutor666:
Okay guys... I made progress. Somehow I was able to flash the stock firmware with LG Bridge. The G4 is booting now. Was stuck in another bootloop for a while (which looked like the typical hardware failure that so many G4 owners experienced) but after another factory reset through the recovery it booted up. What is weird though: The unlocked bootloader msg at startup is gone. Is that even possible? Usb debugging is active now, just in case.

nevermind: bootloader is still unlocked