yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Jcr_:
If you try to reset it like that again, there is possibility to lose TWRP and factory reset phone to working condition, then:

> reboot into bootloader with adb

> flash twrp

> unplug USB cable

> remove battery

> plug battery

> boot into recovery (volume down + power method)

> select yes, yes

> swipe that thingy to the right in TWRP

> flash super su

> reboot into system
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] eakintunde:
I finally fixed it.:D I had to reflash TWRP, format both userdata and cache with fastboot commands. With that I was able to boot into TWRP. From there, I selected format data in "Wipe" then, I selected reboot into TWRP, installed the "no-verify script" and supersu and I'm back in business!:laugh: Thanks for your help. I really appreciate it!:D
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] khaledtaleb:
am i the only one who is not able to root without formatting /data in twrp first? when i flash supersu.zip without formatting /data, nothing happens and system boots normally but no root. I would REALLY love to have both root and encryption
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
You have to flash no verity Dm zip
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] KickerTom:
Not true. I am using SuperSU with encryption since I bought the phone.

Try using systemless version of SuperSU (you need some config file created before flashing, don't remember the details). This works for MM, not sure about N, heard there are some problems.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] khaledtaleb:
Yes forgot to mention that i am on Nougat 20a.

But [MENTION=6186744]obol2[/MENTION] did you mean no dm verity encrypt ? or decrypt ? it would be very nice if you would paste a link here
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] onestyle007:
[MENTION=5672995]jcadduono[/MENTION]

Hello,not sure if it's possible on G5, but could you add a delay on boot like 2 seconds with a led notification (example in red or blue light) to enter in twrp? Used to have it on on old Xperia z1. If you need testers, I'm volunteering :fingers-crossed:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
https://build.nethunter.com/android-tools/no-verity-opt-encrypt
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] khaledtaleb:
yes thank you, tried that with no luck :/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
why dont you install fulmics rom for example. It has build in root.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] khaledtaleb:
it has encryption too? that is probably a good idea
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Why do you need encryption? It slows r/w and TWRP can't access the internal storage.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jhaedee:
How do I get around the issue I'm having where the data partition is enormous? Like it's reporting as pretty much the full size of the phones available storage (approx 24gb)

Is there any way around this? Obviously it will be difficult to deal with regular backups when they're nearly 30gb each. Never had this issue on any other handset though :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Do you have root?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jhaedee:
I do indeed :)

I'm wondering if flashing the encryption disabler would help?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
So you want clean up data or what exactly?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jhaedee:
All I want to be able to do is make a backup that isn't huge. Out of the ~24gb of usable space on the phone only about 7gb is actually in use but TWRP insists that if I want to complete a backup then Data is showing as the full available size , ~24gb.

On all other phones i've ever used/made a twrp backup of the data section has always reflected the amount of data in use on the phones storage. I can't work out why it isn't the same on this phone?

I can attach a screenshot to help explain if that would help.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Dunky13:
I have the same problem, but was not (yet) able to identify where the space goes to.

I have:

H850

Twrp 3.0.2-1

SuperSU

Ressurection Remix Rom (02/12 stable version)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] 666misanthrop666:
Have you tried twrp 3.0.2-1?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Dunky13:
I meant 3.0.2-1
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Abort Retry Fail?:
There may be a solution in TWRP. If you boot into TWRP, you'll find yourself at the main menu. Select "Wipe," then "Advanced Wipe." At the bottom of the "Advanced Wipe" Screen is a button that reads "Repair or Change File System." Select the data partition on the screen, then click the "Repair or Change" button. The screen will display information about your data partition with three buttons at the bottom. The one that reads "Resize File System" should then give you the ability to correctly size your data partition. (I actually did this a long time ago on a different phone where I experienced a similar problem.)

---------- Post added at 12:18 AM ---------- Previous post was at 12:10 AM ----------

See post #470 in which I offered a suggestion to Dunky13, who reported the same problem.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Dunky13:
Hmm now my system partition is 35gb. Must have mistaken with data. Sorry for the confusion.

But don't understand why Android says 35gb usage of system.

---------- Post added at 12:43 AM ---------- Previous post was at 12:22 AM ----------

Ok I did some more diggin. And *facepalm & :confused:* So it was not data that was showing wrong info but System.(Hence the *facepalm*)

When going to settings I see that there is 59Gb of storage accessible of which 45Gb used. Detailed info showed 35Gb is used by system.

Then I checked what phone I ordered, as I thought it was the 64Gb edition, but it turns out to be the 32Gb version. (Hence the :confused:)

As for some reason my systems thinks there is 64Gb of storage instead of 32 :| There is still about 16Gb free, but 16Gb of 64Gb seems much less (just 25%) compared to 16 our of 32 (50%)

:|
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Abort Retry Fail?:
It's a mystery to me. I've got an H850, and TWRP shows that my data partition is 24 GB of which 3.4 GB is used, while the system partition is 4.3 GB of which 2.0 GB is used.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Can you download disk usage and scan storage?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] veekay:
Is there a trick to getting the right date? Not a huge deal, but my phone thinks it is 1-11-2016
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
In settings
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Not in TWRP, no ... that has been an issue with this phone from day one :crying:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ggelo10:
In headline of post version of Twrp img is 3.0.3.0, i can't find it, please edit headline
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] 666misanthrop666:
https://xdaforums.com/showthread.php?p=70717744
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] BahnStormer:
After you've rooted, loaded the recovery (TWRP) and SuperSU, I found that my phone date had been reset to soemthing from a few months ago - it was like this until the phone rebooted fully and then it just picked up the new time+date from Vodafone (UK) and it was fine.

I guess if you're not setup to take your time+date from the carrier, then you'd need to set that manually in settings.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
I wish it was that easy :laugh:

I've had mine on automatic time + timezone setting from day one. The time/date is correct in N (and was in M), but TWRP fails to get it right. A lot of people have had that problem with this device and so far there isn't any solution.

The S4 had the same problem at the beginning, then it received an update to TWRP and all was good ... I'm still hoping that this will happen here too :fingers-crossed:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
**NEW TWRP UPDATE**

twrp-3.1.0-0-h850.img

https://dl.twrp.me/h850/twrp-3.1.0-0-h850.img

twrp-3.1.0-0-h830.img

https://dl.twrp.me/h830/twrp-3.1.0-0-h830.img

Flash it in TWRP (install zip) or use the official TWRP App to flash this boot.img.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
I was hoping that the date/time issue was finally fixed, but no such luck :crying:

Thanks anyway ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] sjcali566:
Having problems with my H830 variant. After installing new img file I get a weird menu not the TWRP recovery menu. I've tried flashing it with the TWRP app and through fastboot with the same result.

Update: Don't try to download file from phone it doesn't download all of it, at least for me. I had to download it from my computer and then put the file on my phone.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wacko37:
Few problems with tarp 3.1.0-0 h850.

1 - reboot recovery (within twrp) does not work, reboots system everytime.

2 - take a close look at system size...... How is this even possible.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
I dont have any issues
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
No issues here either :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wacko37:
Dam! what am i doing wrong? Bit of a noob question but if i wanted to start from scratch/new, meaning wipe all partitions/everything, do i just do an advanced wipe in twrp and install stock rom?

The reason i ask is because i feel like its not a clean install or dirty flash every time.

Thanks
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
No idea about stock rom, I've never even considered going back so I haven't read up on it. I'm using a custom rom (Resurrection Remix) and haven't been on stock since sometime last summer. But generally yes, wiping everything before flashing a rom should give you a fresh start.

I have seen the issue of the system size mentioned before on XDA, but I don't recall if there was a solution and what it might've been. :eek:

Sorry I couldn't be more help, I hope you get it sorted soon :fingers-crossed:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Yes, wipe everthing could fix that bug OR install stock rom, install twrp img again and hope that the bug is fixed :fingers-crossed:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Abort Retry Fail?:
A few pages back on this thread a user noted that TWRP was showing a wacky reading for the size of his data partition. I offered a suggestion here: https://xdaforums.com/showpost.php?p=71119200&postcount=470 If you just substitute system partition for data, the advice would be the same.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] :
When the new TWRP Ver. is released will you build for G5 (H850 myself). Looking forward to backup over ADB.

By the way just noticed OP is the one who ported Kali Nethunter. I'm running it over RR N BETA. Working perfectly so far. Thanks

Edit: Bluetooth broken.. Will you fix?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
What do you mean, release it? It's been out for 2 weeks, https://dl.twrp.me/h850/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Khalid Ghouri:
how I update my twrp old version into new version without changing any thing
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Chiko-HH:
Download and install ...

Sent from my LG-H850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] 666misanthrop666:
You can also use twrp manager from playstore.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] orclex:
Hi,

I've installed TWRP 3.1.0 on my h850 but afterwards it does not boot anymore. It keeps showing the loading screen but never reaches the login. I've also tried TWRP 3.0.2-1 with the same result.

I can go back to stock ROM and everything is working. After unlocking bootloader and flashing TWRP, again it only keeps showing the loading screen and never reaches the login. Flashing LinageOS (lineage-14.1-20170321) including no-verity-opt-encrypt-5.1 and/or UPDATE-SuperSU-v2.79-20161211114519 leads to the same result - it keeps showing the lineage loading line.

Any help would be very appreciated!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Stransky:
I had the same problem and I overcame it by installing TWRP and then SuperSU. (Did not install the no-verity).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
What dies not boot and what loading screen? Model? And which bootloader and modem? What was your last stock rom?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] orclex:
My last stock rom was H85020a_00_OPEN_EU_OP_1030.kdz. I've not touched the bootloader. The loading screen was the LG logo or running lineageOS the animated line before loading the OS login.

Anyway, now it is working! I'm a little bit confused. The only thing I did different was formating without TWRP. So after flashing TWRP and no-verity-opt-encrypt I rebooted into bootloader and formated using fastboot:

fastboot format userdata
fastboot format cache
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lywyn:
So correct version for nougat.

Booted, flashed, rebooted manually into recovery = TWRP

Reboot to system, all ok

Reboot to recovery via the buttons = WIPED

3 x times now.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] smohanv:
Received my device H850. Unlocked bootloader and also flashed TWRP version twrp-3.1.0-0-h850.img

I could not boot in to recovery with by command line or combo press vol down + power. I can boot in to system normally. But it looks like I could not boot on to my recovery.. help needed...

Here is the error I am getting..

downloading 'boot.img'...

OKAY [ 0.477s]

booting...

FAILED (remote: unknown command)

finished. total time: 0.516s

TWRP flashing was successful but could not boot in to recovery (TWRP).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
A lot of people are having issues rebooting to recovery with the button combo since it's not explained properly in the OP. Here is what worked for me - forgive me if you already did it exactly like that, I'm just trying to help :)

Hold [Volume Down] + [Power]

When you see the LG logo let go of the power button and immediately press it again

Then you should get to the screen that asks you to wipe all data, select yes (twice)

That's it, you've done it :highfive:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] smohanv:
Thanks for your help. I still could not achieve combo keys option to get in to recovery. But I found alternate ways.

1. Using adb command when the phone is running, adb reboot recovery

2. Via an installed app known as "Recovery Reboot" which is available on play store

The second option helps when I am not near PC. I am using the second method most of the time.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] vignesh_may28:
I learnt this myself after lot of times.

Hold (volume down & power) together

When you see LG logo press power button once , release it immediately & press it again (while holding volume down).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] resutatto:
Hey.

I've got G5 yesterday and I'm experiencing some problems. In TWRP i can't flash any file, it says "zip file corrupt", regardles of what file it is and they are not corrupted. MTP in recovery isn't working either, while it's fine under windows.

I'd appreciate some help, I want at least to root my device.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] :
Firstly TWRP Doesn't Support MTP as far as im aware thats what ADB is for.

Secondly where did you download TWRP from and what file types are you trying to flash ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] resutatto:
TWRP supports MTP afaik, you have that button to disable/enable MTP.

Anyway, that's not the issue anymore. I had mess with the drivers. Only strange thing is when I upload files to my device when it's on, TWRP says those zips are corrupted, but when I upload files via MTP while recovery is on, everything is fine.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aneesh99:
Errrr I can't find 3.0.3-0 on here or on twrp.me?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
The title is outdated. Just download the latest version.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Lorenzopapi99:
If i want to update the twrp i have only to flash the new file?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] viktor92:
Yes
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Yes in Recovery or install the TWRP official app in play store
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] MazdaGTI:
I have problem that custom rom get stuck in splash screen, waited 20 min. Can this be problem and I need reinstall twrp? But installed over twrp again same version oem rom from that topic: https://xdaforums.com/lg-g5/development/stock-h850-20a-eu-rom-flashable-zips-t3506514 and get back also installed apk what I installed after unlocking bootloader from that topic: https://xdaforums.com/lg-g5/development/official-european-lg-g5-h850-bootloader-t3363040 Also was try under Advanced Wipe: dalvik cache, system, data and cache but was failed, so can´t do clean install. Also did´nt set any password to phone but default_password don´t work in Mount Decrypt Data. Can this be problem why Advanced Wipe don´t work?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Looks like you missed a step. Backup any data you have on phone storage (internal storage) and boot into TWRP. When in TWRP go to wipe then format data. You must format data to be able to mount data or wipe data (also must have formatted data if you plan on using custom ROMs). Also make sure after formatting data you flash the dm verity zip.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] MazdaGTI:
Do I need install dm verity and superSu both?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
If you're planning on using rooted stock rom, flash dm verity and SuperSU. If you're doing RR rom, just flash dm verity after formatting data and then install RR and gapps (RR had magisk for superuser built in).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] MazdaGTI:
As I need install with stock .zip what can install from TWRP also superSu, how I can remove SuperSu? With just overwrite twrp on some other methods?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
If you're doing custom ROM (I.e. RR, or any other custom ROM with superuser built in) all you need to do is wipe, advanced wipe and wipe cache, davlik, system, and data then install ROM and gapps. You do NOT need to format data every time you install a different ROM. This only needs to be done once to get rid of encryption, once that's done you're good. Even if flashing stock rom in TWRP, it won't restore encryption. Also to answer your question from RR thread first boot can take up to 10 minutes or so.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] metalgod666:
Lg-h840-twrp-version

Hi!

Is twrp already compiled for the h840 version of the G5?

Because u can already unlock the bootloader (done with success).

Thanks
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
No. You will have to wait for someone to build TWRP for that device. You might be able to get [MENTION=5672995]jcadduono[/MENTION] to build a version of TWRP for this device as he built the one for the h850, h830 and rs988. Otherwise someone that knows how to will have to do so.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] t-chi:
Fantastic work. I have root on my LG G5 H830 and could not be happier. Donation coming your way!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] anish89:
Could you please make TWRP available for H840?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Bert98:
Any news about TWRP for H840?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] metalgod666:
It's requested, u have to be patient. I'm also waiting to get the freedom ^^
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] megafan:
Me too, waiting for H840.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Bert98:
I know, I was just asking because we haven't heard anything in days :confused:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Wire1122:
I'm waiting for twrp on lg h840. THX in advance
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Lukijs:
you can keep waiting
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] synescu:
jacadduno I m trying to compile TWRP for h840

Any way that I can get the hex number for partitions size out from this file?

Or what file ned to adb shell cat/ ?

Never mind
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Bert98:
Sooo what can we do with this?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aaswar:
I just bought G5, it came pre-installed with nougat, is it safe to follow same steps or have to switch back to mm?

Can I flash LOS 14.1 after installing TWRP and wipe data, or need to wipe everything and flash + the lineage su add-on?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Stransky:
Hi

I have nougat on my F5 and rooted, no need to switch back to MM.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Hello,

I have a question about the instructions on the first page. I'm getting a LG G5 H850 later today, and want to install TWRP and lineageos on it, using the lineageos root rather than supersu, or Magisk.

Step 5 says this.

I want to enable system modifications and internal data for TWRP, so I should follow step 6.

So, I have to flash dm-verity. Fine. However, at the end of step 6, I am told to reboot to recovery, and not told to flash dm-verity until step 8. Yet in step 5, I am told that if I don't follow step 8 I won't be able to reboot. Consequently, I am a bit confused about the appropriate order of events.

If I've installed TWRP allowing system changes, and formatted data, will I be able to reboot to recovery so that I can flash dm-verity?

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
After you format data go back to main screen then select mount and check system, then back to main screen click advanced, file manager, go-to system folder and delete recovery from boot.p file (if it's there) then you can reboot into TWRP without issues. This ensures TWRP won't be overwrote by stock recovery.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Cheers! and

best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Thanks again, jeffsga88. A false start, then all was good. I'm a bit rusty starting from scratch with a new phone, as this is only my second "smart" phone, and the other, a Samsung Note II, was converted to CM when I first got it.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aaswar:
Do you really need to flash dm-verify?

What if I wipe /data, /system /cache&dalvik, and flash lineage?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
If you flash SuperSU, then no as SuperSU installs dm-verity by default. Otherwise, it's probably a good idea to flash it although not 100% sure it's necessary anymore (it used to be mandatory to flash it, just not sure anymore), but doesn't hurt to do it either. Also, if you don't FORMAT data (not just wipe) and you were on stock and running encrypted, your phone will not boot, you have to remove encryption by formatting data partition first and before doing so make sure you back up everything on internal storage first.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aaswar:
Thanks that was quick ;), but AFAIK wipe or format is the same, unless I'm mistaken.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Nope it's not. Wipe doesn't delete internal SD nor does it remove encryption if you have encryption on data partition (like normal stock has). Format on other hand erases everything on internal SD -full erase of phones data partition (why I say backup everything not on ext SD) and removes encryption.