yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] steadfasterX:
Nougat bootloader (v29) will not allow fastboot

boot

anymore. This is known and can be found in dozens posts.

you said that you cannot set oem unlock in android settings but this and unlocking afterwards is required.

you have to unlock the device otherwise nothing will work. I cant help you with that and this is the wrong thread for this.

once unlocked u can use fastboot

flash

to install TWRP but ensure that you NOT boot into android afterwards but instead open TWRP with the key combo ! If you fail you have to do the flash again as TWRP gets overwritten by Android (ensure that that flash command ends successful otherwise you would actuall DO a fac reset).

sfX
[G4 Android Development] magiQx:
yes, the oem unlock (from the developer options) remains an issue. I'll have to see into that. I checked with the adb command and it says it is status unlocked. I'll have to see why i cant set the oem unlock. Instructions on how to flash are plently but known issues and problems and how to solve them not so many. Thanks again, know i know at least where to dig deeper. I think i'll try to lock and unlock the phone again.
[G4 Android Development] karanti:
Hi,

I have a problem with my G4.

As I restart it after installing Lineage ROM through TWRP, the phone cannot reboot and goes back to the TWRP.

Can anyone help me?
[G4 Android Development] steadfasterX:
Which exact lineage version? Provide the link where you downloaded it. What ROM was installed before installing lineage? Do you updated your bootloader stack?

The above questions are important and then you need to do this:

Boot normal and wait until it bootloops into TWRP (this step exactly this way is crucial important)

Then go through the FAQ #4 B)

https://xdaforums.com/g4/development/recovery-twrp-3-touch-recovery-t3442424/post68249027

You will find a step with optional regarding last_kmesg. This one is important to do as well.. besides all others mentioned there ;)
[G4 Android Development] marcinx89:
I root my LG G4. I have access to Super Su. The thing I can't install TWRP properly. I've been trying to flash TWRP through Flashify and ADB as a result screen appeared (screenshot).

I guess my Bootloader is locked ?? I've tried to unlock with no result.

Device says:
[G4 Android Development] steadfasterX:
root is not unlock.

unlock is not required for root (on LP).

unlock is required to install TWRP.

unlock first! you need the unlock file from LG and your model has to be supported for this.

there are guides for this.

I wrote it even on the official TWRP site for the LG g4 tells you how to unlock!

.
[G4 Android Development] marcinx89:
could you point me out the guide to do that ? im confused
[G4 Android Development] steadfasterX:
https://twrp.me/devices/lgg4.html

topic "Unlock your device"
[G4 Android Development] Rmegaxx:
help needed to enter TWRP

I installed this rom: (https://xdaforums.com/g4/...stock-t3659860) the correct way through TWRP and having an unlocked bootloader and then the rom worked well, but then i thought i still had the TWRP as a recovery so i tried to enter the recovery mode by pressing power button+lower volume button. afterwards i clicked twice yes. so the phone rebooted and the rom didn't work anymore. So tried to find a solution by searching XDA forums and the internet. Since my previous version was MM i found LGUP which could restore the phone to its previous ROM. however i am now having issues with LG UP. i tried several methods:

the 1st one was: from https://xdaforums.com/g4/...mm-lp-t3249803 with the H81520D_00_0115.kdz file and the DLL files which came with the software itself. This always led me to 25% after which LG UP would crash and give a "error code = 0x2000 invalid command response at system". then i tried a different DLL from: https://xdaforums.com/g4/...-file-t3586220 #6 which led me to have the error at 11%.

the 2nd one was: from https://xdaforums.com/g4/...-h815-t3673777 #6-#11 so tried this method with these DLL files and by reinstalling LG UP and the driver, also by using the H81520p_00_0314.kdz file. but now i have the issue that LGUP gets stuck at 4% "USB connection established" and will automatically close the program and windows will show me that "LGUP has stopped working".

the 3rd one was: using LG bridge and hoping it will reset the phone. but nothing it just says that the phone has no software issues and that i have the latest software which is H81529a.

Lastly i tried to get flash twrp-3.1.1-1-g4.img through fastboot and was able to flash the recovery by using "fastboot flash recovery twrp-3.1.1-1-g4.img", however i was not able to get into the recovery because when i typed "fastboot boot twrp-3.1.1-1-g4.img" i would get an error (can be seen in the picture). so i tried to enter the recovery manually by pressing power button+lower volume button, and releasing the power button for 1 second and the pressing the powerbutton again, afterwards i clicked twice yes in the white screen, but this got me to download mode and not into TWRP (can be seen here: https://www.youtube.com/watch?v=xai6_8T8BgI)

I am now stuck and don't know what to do, and was hoping you guys could help me? I am using a PC with WIN 10 and i can boot into Fastboot mode and Download mode
[G4 Android Development] thewild:
It's not "fastboot boot ..." anymore, it's "adb reboot recovery".
[G4 Android Development] Rmegaxx:
But how can i use "adb reboot recovery" If i am only able to enter the download and fastboot mode
[G4 Android Development] thewild:
Mmmmh... I'm pretty sure I used this command in fastboot mode without any problem.

Give it a try please.
[G4 Android Development] tulen_kobi:
Flash recovery to the boot partition to boot instantly to recovery by this way. You need to flash kernel from recovery afterwards.

Or flash it normally to recovery partition and use hardware combo to get to recovery.
[G4 Android Development] kessaras:
None of these will work.

A kdz flash was left half way, i already adviced him to look and use LGLaf , or the new kdz tool of steadfasterX (i dont know if he published it yet), or find the proper dll.

Next time first ask before you act when you lack the knowledge :)

anyway its not something that can't be fixed, its just that it needs LGLaf or a better kdz tool.
[G4 Android Development] thewild:
OK, I missed that information..
[G4 Android Development] tulen_kobi:
Missed that part about half flashing, anyway LG UP with the latest dll will do the job. But it is necessary from v29 to use v20p kdz, previous fail to flash even with the latest dll.
[G4 Android Development] steadfasterX:
Fastboot has changed in nougat so fastboot boot will not work anymore there.

Yes. I do that often when testing TWRP images ;)

and it should work for you [MENTION=5760307]Rmegaxx[/MENTION] as well.

Just fastboot flash boot twrp.img and boot without any key combo.

You will see twrp. Flash here within TWRP twrp again (when asked choose recovery partition)!

Then the next step is crucial important: after you flashed TWRP choose reboot --> recovery!!

If you skip this or boot into system TWRP gets overwritten!

Let us know how not goes..
[G4 Android Development] sirsomething:
Nice! I was having problems reflashing the twrp but this solved my problems. I managed to flash it the normal way tho. Fastboot flash recovery twrp.img after a few tries
[G4 Android Development] AluminumHaste:
I have a bit of a dumb question, I installed Oreo Beta 2 on my Galaxy S8 (Exynos), but of course when I go into TWRP it can't mount /data or most other thinks.

I'm assuming this means that TWRP has to be updated to use the new mount points in Oreo before those things will work?
[G4 Android Development] steadfasterX:
Wrong forum. This thread is for LG G4. Please write in the correct forum.
[G4 Android Development] AluminumHaste:
My apologies, didn't notice that, thank you!
[G4 Android Development] White.R@bbit:
Hello!

Unsure why, but using twrp-3.1.1-BETA_g4_sfx-14 does not allow me to decrypt my H811 running CRDroid 3.8.3. I had one of these previous builds of TWRP installed (do not remember which one, which worked great at decryption!) but after deciding to update it as well as do a clean install w/ the latest crDroid, it says my password is incorrect (also just tried changing the password to 1111, which still gives me the same error). Now, I've been using Flashify to attempt to incrementally go back version for version to see which one worked before.

Does anyone have any recommendations as to what to do/why the latest version does not decrypt for me?

Thank you for your help!
[G4 Android Development] tmihai20:
CrDroid is based on LineageOS. Official LOS builds are stopped because of this issue. If you encrypt a G4 running LOS 14.1, you will lose the ability to back it up in TWRP. I just read about it in the Official LOS thread.
[G4 Android Development] steadfasterX:
yes. Nougat decryption has changed completely! Before there was FDE (full disk encryption) and starting from Nougat its FBE (File based encryption).

That is not a little change and so requires much work on my site to make use of it.

I'm already working on that from time to time but atm I have rare spare time so don't expect anything soon.

I have updated the "Known issues" topic in the OP with this.

as u can see in the thread title there is no "N" in there. The reason is I can officially fully support only up to MM (due to exactly that fact about encryption - but the rest is working great even on N)

Cheers
[G4 Android Development] White.R@bbit:
Gotcha! Goodness, did not know that at all. Either way, thank you for your hard work, very much appreciated! And take your time ^_^
[G4 Android Development] popy2006:
I have issues waking the device from sleep during backup with 3.1.1.1. Is this Normal?

Nor power button or DT2W works.

Thx pOpY

Gesendet von meinem LG-H815 mit Tapatalk
[G4 Android Development] steadfasterX:
The search has the answer ;)

https://xdaforums.com/search/thread/3442424?query=Turn on

Edit:

..and I updated the OP as well now.
[G4 Android Development] chirag_mrc:
Hello,

Dear XDA,

Can you tell me if i can install twrp of LG G4 on my LG G4 STYLUS H540 which is running marshmallow 6.0.I recently upgraded my phone from lollipop 5.0.2 to marshmallow 6.0. Will it work on my phone.

Thanks
[G4 Android Development] popy2006:
Thx, had a look before in the OPs Known issues, but didn't found something [emoji3]

Thx for adding.

Could I'll help you to find this issue?

On my device it's always unresponsive during backup.

pOpY

Gesendet von meinem LG-H815 mit Tapatalk
[G4 Android Development] steadfasterX:
No. The h540 is completely different and btw can't be unlocked or am I wrong?

Well ofc ;)

First of all: do you have a nougat based rom and bootloader?

Which ROM and version is installed?

Which TWRP version is installed?

Then test if there is a difference between with or without *compression*

if you don't have the latest TWRP beta release installed try that one as well and also here both: with and without compression

After EVERY test take the recovery log and take a dmesg like described in FAQ #4 then reboot into TWRP to start clean&fresh for the next test!!!

Upload everything like described in the above mentioned FAQ or if too big compress and upload to a file hoster like filedropper.com or similar.

Thx!
[G4 Android Development] steadfasterX:
If someone would provide me his copy of:

twrp-3.1.1-BETA-21_g4_stock.img

I would really appreciate this. My build server had overwritten it accidentally due to my move to another build server..
[G4 Android Development] tmihai20:
[MENTION=5545101]steadfasterX[/MENTION]: there you go, I keep a copy on Google Drive for my convenience https://drive.google.com/open?id=1suKYCVkW9c8X6QyW4Y8vrvzyygm8o4yC
[G4 Android Development] steadfasterX:
highly appreciated thx! :)

uploaded to my server again..
[G4 Android Development] tmihai20:
I have the other 2 variants too. Glad I could help [emoji56]

Edit: I removed the share now, since you were able to download it.
[G4 Android Development] jeremie57:
Hi,

Since a few days, I fight against my H815 and for the moment, he wins every time ... :eek:

I made a mistake: :D

All started when I realized that the microphone was no longer working. I heard people on calls but they couldn't hear me. On the other hand, in bluetooth or in free hand, it worked very well. I used the ROM H-Rom V30 2.1. So I flashed the bootloader N.

I thought that it could possibly come from the ROM so I decided to flash a backup via TWRP (official 3.1.1-0) of my previous ROM (LOS 14.1 official).

The problem remained the same so I wanted to restore the phone to factory via LGUP but I got the error "0x2000 USB port is not opened" at 25% when writing to the system partition.

I tried several different dll with several different kdz ...

Seeing that I can enter in download mode, factory reset mode or fastboot mode, I tried to flash twrp on the boot partition but at reboot, the phone goes directly into download mode ...:rolleyes:

I'm about to give up because I spend a lot of time trying to resurrect it and my wife is getting sick of it ... :D

So, let me ask for help to know if anyone has an idea that could revive my G4 ...:confused:

EDIT :

Thank you so much !

It works, I've used the DLL 0.0.4.0 with the V20P kdz and it works ! :good::good::good:
[G4 Android Development] steadfasterX:
TWRP v3.2.0 - OFFICIAL + UNOFFICIAL/PREVIEW builds released

What does that mean for you?

Should you download the latest official or the unofficial preview ones?

Should you prefer BETA or PREVIEW or what?

The unofficial / PREVIEW ones are most of the times more current then the OFFICIAL one and may contain a lot of fixes not merged to upstream/official yet so guess what my recommendation is?!

For details check the changelog (PREVIEW vs. OFFICIAL changelog)! It differs a LOT atm..

PREVIEW also means that those builds are made automatically by my build server and so most likely completely untested.

Previously I named the unofficial / PREVIEW builds "BETA" which has just changed to reflect the idea behind (means: the code from the PREVIEW ones will be merged upstream when ready)

Read the changelog

as usual here: CHANGELOG POST

don't miss it ;)

If you find any issue create a valid report (see FAQ #4 A) in this thread!)

Have fun,

steadfasterX
[G4 Android Development] fi5z.x9:
Hi guys... A newbie here.

Please I need help with restoring my twrp backups. Whenever I initiate backup restore, nothing happens... Even after bout an hour. I'm using the latest twrp 3.2.

*all I see is a code line (mtp is enabled) and the blue animation that goes back and forth.

Would appreciate any insight. Thanks.
[G4 Android Development] steadfasterX:
Read one post above yours.
[G4 Android Development] steadfasterX:
Important change in behavior!

All builds starting from PREVIEW-74 (custom-n) and PREVIEW-75 (custom-mm) will contain one major change:

Using real /misc blockdevice again (but using the wipe_data ignore flag ofc)

plus:

no further STOCK builds needed anymore

! Just choose if you have MM or N from now on.

This means first (not fixable by ROM):

When doing a factory reset with the hardware key combo = TWRP will boot. nothing will be wiped ( you need to do the factory reset

manually

in TWRP ).

When doing a fastboot erase userdata (wth? why should u do that?) = TWRP will boot. nothing will be formated ( you need to do the format

manually

in TWRP ).

When doing a factory reset within Android = TWRP will boot. nothing will be wiped ( you need to do the factory reset

manually

in TWRP ).

and second (fixable by ROM):

When doing an OTA update within Android* = TWRP will boot. nothing else.

When doing a mod flash which requires a reboot into recovery from within Android* = TWRP will boot. nothing else.

These second ones can be fixed by the ROM builder with a simple change:

https://github.com/Suicide-Squirrel/android_device_lge_g4-common/commit/951705e468267f

All ROMs based on our suicide github repo (unofficials: AOSCP, LOS 13 and 14.1, RR, ...) will get the above mentioned change automatically on next build:
[G4 Android Development] bedencic:
i get this message when installing wakeblock. tried all twrp versions, 3.2.0 from offical twrp page, and stock 3.2.0,

and your latest 3.2.1 Custom N preview75,

i think i didnt try preview 74, will try a bit later,

https://ufile.io/c97g4
[G4 Android Development] steadfasterX:
read one post above yours.

this is now a ROM limitation and need to be "fixed" there.
[G4 Android Development] bedencic:
so i should post to kesseras to fix this on aoscp?
[G4 Android Development] DarrenNewsgroup:
With the new preview builds specifically for MM or N how will dual booting stock MM (primary ROM) and N (secondary ROM)?

This is my current setup (but my N ROM uses the MM bootloader and modem).

I would guess (dangerous!) I would need the MM version but would like a definitive answer.

Thanks

Darren
[G4 Android Development] stratonz:
Hi, a strange thing's happened... I've done a backup of my RR nougat using latest twrp-custom-n-preview75 etc , selecting everything but cache: at the end, in the twrp backup folder, I see only a series of data.ext4.win00x files. I can't attach recovery.log cause it's too big.

Thanks for your work!
[G4 Android Development] steadfasterX:
read my post again. Last sentence.

both will work but I recommend you the N one.

tbh you just need to take care of which version to choose when you use decryption in TWRP from now on.

huh? I dont understand your question. those files are the way TWRP saves partitions. Its not like Titanium backup.

.
[G4 Android Development] stratonz:
Excuse me [MENTION=5545101]steadfasterX[/MENTION], I mean that I can't see the files about the others partitions (sboot.emmc.win, system.ext4.win, efs1.emmc.win and so on...) as usual... it seems like backup has saved ONLY the data partition files. In preview43 I have backed up all partitions and I've all the relative backup files in the backup folder. :)
[G4 Android Development] steadfasterX:
i need the log then.

compress it and upload it somewhere (e.g. filedropper.com or google drive or whatever)
[G4 Android Development] stratonz:
Ok. Recovery.log compressed. I give you the gdrive link

https://drive.google.com/open?id=1mlls1nr1290JWlokBiAc8kwwHpMrtaKB
[G4 Android Development] steadfasterX:
thx. fixed in the next release (finished in about 30min - status)

.
[G4 Android Development] White.R@bbit:
Hello!

Again, thank you so much for still updating/developing this!

Not sure if this is where I should post this (or if it should be in the ROM's thread) but happily found that twrp-3.2.1-PREVIEW-78_g4_custom-mm decrypted my phone fine, so went ahead and did a backup. Then, I updated crDroid 3.8.3 to crDroid 3.8.4, but after reboot and inputting my password to decrypt after boot, I got an error message along the lines of "demigod crash handler kernel crash". I sort of panicked after I attempted to reboot it three times and it still gave me the error. So went back into TWRP, restored my phone from the backup, and it works fine now as before.

In my haste (and panick) didn't really note down the complete error message. Would you like me to replicate it and give back the error? (it needed, and it should be fine in doing w/ the backup right?)
[G4 Android Development] steadfasterX:
Thx for your kind words.

Well I would say reproduce it and make a photo of the crash. Post this and the above to the ROM thread. It's very unlikely an issue with TWRP.
[G4 Android Development] kessaras:
i wonder where that should be reported too.....

official support is finished. All roms, besides mine and whoever builds from our Suicide org repos, are outdated.

normally it should be reported in crDroid thread. But there wont be any fix EVER coming. kernel used there and in ALL official roms is outdated by at least one year and half, with zero support.

The fact that twrp successfully decrypted it , yes that report goes here :)

*Wrong.

Los official updated just a little bit , recently. But i dont know if the other official roms will merge it
[G4 Android Development] hackslash:
So I'm unable to flash this recovery on N. The flash is successful but when I reboot to recovery, I'm brought back to the stock recovery. Done this couple of times, no success.

EDIT: Got it figured out. It seems that the stock ROM was replacing the recovery at every boot.
[G4 Android Development] RogerBoy123:
According to you, the latest OFFICIAL version of TWRP for the H815 is 3.2.0. This is not the case when I look at the official site, because the newest version there is 3.1.1. Why is that?
[G4 Android Development] steadfasterX:
They have removed it but I was not aware of this yet.

I will check that.

Keep in mind that even the 3.2.x version had not included many of my important changes yet. See the changelog in this thread for details.
[G4 Android Development] RogerBoy123:
OK, I will get one of your latest previews, but which one is the best? I'm asking this because I don't think I got the v29a bootloader or something, so which folder on the downloads tree should I choose from on this site?:

http://droid.binbash.it:8008/TWRP/
[G4 Android Development] steadfasterX:
Just use the

N

folder regardless of what ROM you have.

The others matters for decrypt only.

.
[G4 Android Development] RogerBoy123:
Thanks, got the latest N preview. Do I have to rename it to something before flashing the update though?
[G4 Android Development] steadfasterX:
Pls read the installation topic in the OP..
[G4 Android Development] steadfasterX:
the reason why they have removed version 3.2.0 was this release had made many troubles with several devices and the reason why the version 3.2.1 was not released is due to a compilation error which needs to be fixed first
[G4 Android Development] zeduck:
So, to have decryption working, we have to use experimental version?
[G4 Android Development] steadfasterX:
Decrypt is possible only for MM (custom ROMs) atm.

To decrypt MM you need the latest preview build for MM.

Once I have finished to unofficial unlock I will make it working for N and O.
[G4 Android Development] Bleuzen:
Preview versions: Backups take long time sometimes

Hey, there seems to be a bug with the current Backup function. I'm using TWRP 3.2.1-PREVIEW-92 N.

Sometimes backups take very long.

I made multiple backups now. It is completely random. Some are fast (take about 5 minutes) and some take for example 15 minutes or, the longest one took about 35 minutes. I haven't changed much on the System (not installed big apps, etc.) between the backups, so usually they should take about the same time.

I sent you 2 log files on Telegram. One is from a fast backup and one is from a very slow backup.
[G4 Android Development] steadfasterX:
Should have been fixed in the latest preview
[G4 Android Development] tokschi:
I formated my sdcard as internal. That works but TWRP mounts it different than Lineage. Thus I cannot access the TWRP backups from Android and on the other hand my media from TWRP.

Can I mount media manually in TWRP? I have read that it has somthing to do with different users but I use the standard one, only.
[G4 Android Development] steadfasterX:
No logs no cookies.
[G4 Android Development] tambukey:
Do you think these builds will make it to the Official app anytime soon? I've been using 3.2.0 for a bit now on Kessaras's AOSCP rom and everything seems good. I am about to upgrade to the 3.2.1 using the Nougat preview, but it would be nice to see it available in the app for ease of updating. The app is basically useless currently, besides the network statistics. Not looking for any ETA, more just curious as to why for h811/815 that 3.2.x isn't on the app.

Thanks
[G4 Android Development] steadfasterX:
Sure it works. But in the meanwhile there are dozens of fixes happened :

https://github.com/steadfasterX/and...f97ab85e86e1516f593b72ad3182154...android-7.1

Ofc these will go official but I wanna provide quality and so it takes time