yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] odysseus84:
I flashed it yesterday first time (your version) and replaced it today with the "offical" offical version.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
I have tried SuperSu as carried out by [MENTION=5007281]murok9042[/MENTION] and that worked, although I was expecting it to be in my app drawer, but it was not so I installed from play store and have root! Is Magisk better though. Is it easy to re-root with Magisk later? I can boot into TWRP via Titanium Backup (much easier then the button method). I get an option to Decrypt Data, but just cancel it. Is that okay? I read posts about Data Decrypt, but did not really understand. My internal memory is still 0MB, should I therefore go to wipe, then select format data? (presumably I will need to install apps again?).

I thought you indicated that if flash SuperSU the internal memory would be correct, is that not that case? TWRP settings do not stick/save or reboot back into TWRP

---------- Post added at 03:06 PM ---------- Previous post was at 02:56 PM ----------

[/COLOR]

And for me this was my first time today, unlock bootloader and flash this OP of TWRP, then used this root https://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133 as magisk did not work. Perhaps I had the 'wrong' version. I had v13 flashed to a custom 7.1 ROM on my LG G3, do you think this would be okay instead of version 12?

Yesterday I re-rooted my LG G3 as had similar issue with Magisk and in the end I downloaded it from the app and flashed that and it worked, (before it would try to update from store like with this LG G6 earlier).
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] J0SH1X:
if you have problems with decryption pls tr version at end of op post
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
When you say 'trouble' do you just mean that there is a message that pops up every time you start TWRP? if so I have this problem, but its not really a problem, because I just cancel it and continue as normal. I take it this is just a different TWRP version (still 3.1.1?) that you just flash in TWRP as though you were upgrading to a newer version (or indeed an earlier version)?

Any cache/dalvik wipes necessary?

EDIT: I have formatted data so it wiped everything off and root as well (that fixed the internal memory OMB error as you said). I then tried to flash the Magisk v12 (this was from a direct download from the app I installed) and it failed with error 1. I also tried Magisk v13 and it was the same.

Straight away after I flashed SuperSu and that worked. I prefer Magisk though due to the hide function. I have at least one app that won't work because it detects root. Any idea what I could do please [MENTION=5646556]J0SH1X[/MENTION] I think I need to flash a boot image, but why and where from?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
Same with me, except I have not bothered changing the time. Do your settings changes stick in TWRP? They don't with me. Also, just done a TWRP backup and noticed the date is 27 March 2017 when the backup was named. Message at the end of backup was Failed to mount ‘/system’ (Device or resource busy)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Mine backs up fine but date is out too, yeah settings do stick with me
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] murok9042:
I get the same message after flashing a zip file.

I did upgrade from rashed twrp to the official one made by j0shix. But other than that installing a zip file works even with the message above.

Sent from my LG G6 (H870)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
I can flash SuperSU fine with that error, but if I try Magisk there is error 1 which I believe is related to the other error. Suppose that is better than no root.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mrbeem:
Try this:

1. Fastboot Flash unofficial TWRP by Rashed97. Rashed97's TWRP has auto internal storage encryption built in. Do the vol down + PWR button reboot to make the recovery stick.

2. Install Supersu zip file through Rashed TWRP. REBOOT back to system. If prompted for install official TWRP App, tap YES and let it install as system app.

3. When your phone reboots back to your system, download and flash the official TWRP .img file through the App. You will get "installed succesfully" dialog in TWRP App at the end.

IMPORTANT: When downloading via TWRP app, make sure you choose external SD as your download location

4. Reboot to recovery via terminal emulator (su, reboot recovery) to verify that all your partitions mount. To do that tap MOUNT and tick system to see if it mounts, browse through your internal and external sd to see if files are visible.

That's what i did and the offisial TWRP works on my H870 :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
I have done this and choose nima0003 as this seems to be the one. when I flashed Super SU there was a load of errors, but did not understand, the flash worked, and still everything seems to the same. TWRP settings have stuck, but they time is slow by several hours.

I would still prefer Magisk so I can use some apps that would normally detect root, last time I tried that though it would not flash due to error 1
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ledvedder:
Is this for the T-Mobile variant?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] strikerdj2011:
nope as yours is h872 this is for h870 :cool:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] piggarello:
ok...to make clear i've done all from beginning:

relock bootloader

flashed 10h (the one for poland)

factory restore

unlocked bootloader

flashed recovery (the one official on TWRP site)

rebooted to recovery (vol down+power....left and repressed power)

errors from data (normal with encryption)

formatted data (yes+swipe)

powered off

rebooted to recovery

installed magisk 12

rebooted

restored titanium backup

all OK

SO...

recovery WORKS!

LG-H870 EUROPE
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] shakathesaint:
Hi everybody, first of all thanks to J0SH1X for his brilliant work and thanks to the whole community, very helpful.

I just want to report my experience:

starting from stock recovery, I unlocked the bootloader following the official instructions here; then flashed the official TWRP from this thread in fastboot and wiped all data (no modifications made to data decryption).

After a button-combo reboot I then installed Magisk 12.0 and root seems to work perfectly at the moment.

UPDATE: I spoke too soon, after a couple of reboots Magisk isn't working anymore, with the following message in Magisk Manager: "Rooted but no permission, functionality greatly limited". Any suggestion please?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TheChuckIII:
Please please make an official TWRP build for the H872 model. We have a nice large money pool already built and would so very much appreciate TWRP. You do great work and I'm asking if you'd help us out and get compensated nicely for it
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Try unistalling and re installing, then make sure"bind busybox" is not ticked.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
Sounds good. I might do that except with V10f (UK). I have not been able to get Magisk flashed, only SuperSU works presumably due to Failed to mount ‘/system’ (Device or resource busy) error. Does Magisk still work for you. Does TWRP display the correct time for your region?

I guess locking the bootloader also removes root? What program did you sue to flash the kdz? LGUP and Uppercut?

When you did factory restore was that within the phone itself?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TomParis01:
To all for whom Magisk does not work: You have to install Magisk v13 beta for Magisk to work on the G6. This works for me (root and hide), even with encrypted data partition.

[MENTION=5646556]J0SH1X[/MENTION] what does this mean:

5.yes this is needed because of the encryption to work because on rasheds twrp there is a bug with decryption which causes mine to not work correctly

I am currently on rasheds build and would like to switch to yours without wiping or decrypting my data partition. Will there be trouble?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Rapoooo:
All I did was unlock the bootloader and upload the twrp but when I want to enter the twrp shows a dead android with the words no commands :(
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] piggarello:
i used uppercut to flash firmware...

and magisk 12 to root...

i think it's important the order of making things (the one i wrote) and that you reboot to recovery between the steps...in order to correctly recognize partitions..
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] J0SH1X:
may users have problems when switching build you can try it but i did decryption different then him because his wasnt working probably so i asked g4 maintainer(a friend of me) and he gave me some tipps on decrytipon
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] shakathesaint:
I can confirm it seems to be working fine with Magisk Beta v13 and official TWRP.:good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
I realise this is not the correct place to post, but in Titanium backup the System ROM size says 5.59 GB (371 MB free) and I cannot do any further backups prior to carrying out the steps in post #94. How can I fix this?

Not the end of the world I suppose. The backups I currently have are a few days old and I can work with that. I did not want to delete my backups and then try again as it still might fail. The backup location is SD card and there is 21Gb free and on the internal memory there is almost the same amount free.

System ROM is the Android OS right? what happens if someone trys to install a ROM that is larger then the memory?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] BigM69:
Sorry for posting this but, im thinking about buying the us997 g6. I see there is root and bootloader unlock for the us unlocked variant. I doesn't see any kernels or roms for us997.

I wish my S8+ was rooted?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Rapoooo:
Ok i unlocked the bootloader and i loaded twrp but i can not get to twrp
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Which steps did you take to get into TWRP
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Rapoooo:
[MENTION=6576153]jimbomodder[/MENTION] Button up and power or button down and power and shows up the reset window gives 2 sentences to yes but in twrp does not enter
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
So you selected yes for both and got stock?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Rapoooo:
[MENTION=6576153]jimbomodder[/MENTION] I downloaded v10h for polish unlocked bootloader and I downloaded twrp but when i want to enter in twrp the boot image is shown
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Are you doing the button combo quickly and correct
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
Are you sure you locked the bootloader first [MENTION=737936]piggarello[/MENTION]

I followed this and when I re-locked the bootloader, (fastboot oem lock) the phone got unto a terrible boot loop like this https://support.google.com/nexus/an...6998610260092-2464022932&p=verified_boot&rd=1

I crapped myself. I finally managed to get into download mode and flashed the kdz. I should have re-read this post FAQ (https://xdaforums.com/lg-g6/how-to/official-lg-g6-bootloader-unlock-t3614719), I know why this happened, but it seemed I could not get into download properly, the phone was supposed to turn off, but it never did. I still don't know how I managed to get into download mode, has anyone been in this situation with that support google link?

After a few other issues, I flashed version 13 of Magisk and it installed, but I still got loads of Failed to mount ‘/system’ (Device of resource busy) errors during the flash - why does this happen?

The OEM toggle was changable to begin with but after a reboot or 2, it can no longer be toggled (like when I first unlocked the bootloader)

Despite Magisk v13 getting flashed and my phone having root the SafetyNet check fails in both cases. I have selected core mode. I thought v13 was supposed to pass SafetyNet.

I still cannot back up apps in Titanium due to insufficient free storage space. The only way it will work is If I select the internal memory for the backup because the SD card new folder I created is not writable or something - FIXED THAT NOW BY CHANGING THE LOCATION AND CREATING A NEW FOLDER ON SD CARD.

I am unhappy now as the purpose of all this trouble was to enable hide so I could use some apps that don't work with root. At least the pHone works. It does seem a bit slow/laggy or maybe that it my imagination. If I do another restore in the phone I'll loose root won't I?

If I wish to uninstall Magisk v13 and go to Magisk v12 how do I do that? there is an option to uninstall within the app, and also there is a separate zip you can flash in TWRP, but I have read that some users have got into a boot loop when flashing the uninstall zip.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Rapoooo:
[MENTION=6576153]jimbomodder[/MENTION] How to do exactly and what to press :confused:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
Deleted
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Once you flashed twrp in fastboot mode,

You need to.....

1) unplug cable,

2) hold volume down and power button,

3) once it reboots and you see the LG logo you quickly release power button and re press and hold, once done it should boot to recovery,

4) you will see stock options but select options to factory reset and it should reboot but into twrp
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Rapoooo:
[MENTION=6576153]jimbomodder[/MENTION] I entered Factory data reset but when it gives 2 times YES it does not come in twrp just startup settings
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Try flashing twrp again

sent by the power of Nexus 6 on Resurrection Remix 7.1.2
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
Yeah, flash again becuase what happened when you did not boot into TWRP was TWRP was removed as it did not stick.

When you're in fastboot mode and you flash TWRP and the fastboot text is on the phone, you need to power off by holding power and vol down, then when the LG log appears let go of power for a second, then press power button again, then go through the restore, but it should boot into TWRP and not restore
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Rapoooo:
Thank you for all the help I already know and working with me twrp :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] piggarello:
i was unlocked..so sure..i first relocked.. automatically wipe data and internal..
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
That's odd, did you not get the error I got about corrupt phone? According to the FAQ that I linked the bootloader should not be locked if the ROM is modified in any way. I guess there was something wrong with it on my phone. Maybe having a custom recovery also modifies it. I take it you never had a TWRP image on your phone at the start?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] piggarello:
when you relock it wipes data and storage.

do not reboot phone, put usb pc cable, switch off phone (vol down + power), in realty it doesn't switch off and remain off it wil sudden reboot...press suddenly vol up and you enter download mode.

Flash 10f or 10h rom.

in that way you have all wiped

then unlock-flash recovery and so on.....

excuse me for my english this things are hard to explain..:)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
[MENTION=737936]piggarello[/MENTION]

Thank you. I followed your guide again and this time I flashed the .kdz in LGUP before I locked the bootloader, no errors then. I did get a TWRP error 150 at one point though, then later I flashed the same .kdz again and carried on as normal. Magisk v13 works properly now including Magisk hide. I still am getting the system mount error in TWRP though. I made one mistake though and booted into the phoen after data wipe in TWRP so then I lost TWRP, so then flashed TWRP again and data wipe, then powered off straight after. Now just installing apps and will restore the app data with Titanium

PANTS. Magisk SafetyNet fails now after a reboot!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] piggarello:
Glade to read that...strange the system mount error...

---------- Post added at 21:07 ---------- Previous post was at 21:07 ----------

Yours it's an h870?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
Yes H870 32Gb (the UK/Euro version)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] piggarello:
For system mount problem you can try download autoprime's flashable 10f...wipe all from twrp then flash the zip...only remember to delete the stock recovery file in system...( see instructions in autoprime's post)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
I flashed the kdz using LGUP rather then using the zip prior to you posting this message. I also got a TWRP error 150 as well, never seen that before (I think it's gone now though). Would flashing the zip have the same effect with regards to any errors, in other words why would they still not be there?

I do not understand "only remember to delete the stock recovery file in system". When this zip is flashed as [MENTION=2684188]autoprime[/MENTION] states TWRP will be lost, therefore phone will revert to stock. How do I delete stock recovery? should I just flash Magisk to retain custom recovery, therefore stock recovery is 'deleted'? or do you mean delete the "recovery-from-boot.p" file. The instructions A. Stock ROOTED. on how to mount system are not clear to me (never used mount before, no idea what is does really). If I do delete the file, should this be done after flashing the zip ROM and after flashing the Magisk zip (I need this instead of SuperSu), then just reboot system in TWRP as normal?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] akulp:
Is it already possible to do this inside TWRP?

"Then while still in TWRP go delete /data/system/locksettings.db

This should let you swipe to unlock your phone. Your fingerprints will still be saved and can be used once you set up a secure lock screen."
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] piggarello:
From Autoprimes post:

F YOU FLASH THE COMPLETE ZIP YOU WILL LOSE TWRP UNLESS YOU FLASH A ZIP THAT REPACKS THE BOOT.IMG OR YOU DELETE THE "recovery-from-boot.p" FILE IN /SYSTEM.

ZIPS THAT REPACK THE BOOT.IMG INCLUDE SUPERSU OR MAGISK.

to mount system go to mount and flag system..

that's all
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] beaubin:
Hey guys,

First of all, thanks for the great work on making the official TWRP for our G6, everything works great (unlocking, flashing TWRP, flashing SU).

Now, I just checked the OTA, there's a new update (v10l) for my phone (Europe), downloding it now, but upon applying the OTA, would I lost everything I've done so far, I mean would the bootloader be relocked by the update? Would TWRP be reverted to stock recovery? Would SU be lost?

Just making sure before doing something silly...

Thanks and have a nice day.

EDIT : Should've known better, been there before - can't flash the OTA since we have a custom recovery, OTA needs stock recovery :(

Guess if I really want the OTA, I should either find the flashable zip (doubt it'll be out there anytime soon), or flash stock recovery, then flash the OTA, then flash TWRP again...

Btw, where can I find the stock recovery file to flash? Also how to flash it? Just as we do with flashing TWRP using ADB?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
https://www.androidfilehost.com/?fid=745425885120746417
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] beaubin:
Thanks ! I'm gonna flash it now, then OTA, then reflash TWRP, hope all would go well...

Will report back once done :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] piggarello:
Tried...not working..it find root and says you can't...:(
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Kipp162:
Can anyone post a quick video guide on how to flash twrp, SuperSU and root from stock?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] akulp:
Can anyone confirm possibility to change /delete system files for this mod?

Thank you.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] beaubin:
So, we can't get the OTA. Steps used below (bootloader unlocked) :

1. Flashing OTA as it, the phone rebooted into TWRP = nothing would happen under there

2. Flashed stock recovery, the OTA flashing went to the boot logo, stayed there for a moment, then rebooted back to system, then alert me the update has failed (the OTA file has also been deleted)

3. Downloading the OTA file via LG Bridge = some issues with the server, couldn't download it

4. Factory reset the phone (stock recovery remained, SuperSu gone), redownload the OTA file, it went through the boot logo, then a white page with update status, said step 1 of 2, false joy, a few seconds later, the update failed.

We'll just have to wait for a flashable zip or dowload the entire 2.88GB .kdz file https://lg-firmwares.com/lg-h870-firmwares/#more-4490
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
A video is not necessary, there are some good guides here, have you sorted it, is the bootloader unlocked, what model and region is your G6?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] shakathesaint:
Well, thanks for your report! I'm interested in OTA updates too and I was going to do the same procedure of you.

So, it seems the only viable thing (aside from waiting for TWRP-compatible updates) is to flash the whole stock ROM.. am I right?

This implies full wipe, but also means you've to unlock bootloader again and do all the procedure from beginning? Doesn't it?

Thanks :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] beaubin:
Mostly likely yes.

Unless someone can make us a TWRP V10L flashable zip like [MENTION=2684188]autoprime[/MENTION] has done with the V10F update here
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Aid777:
I don't think you need to do anything with the bootloader, it will still be unlocked as far as I know. If you're are desperate for the OTA, just flash the new kdz and reroot, might be best to data format in TWRP beforehand though, then use LGUP and Uppercut. Suggest you backup apps/data in Titanium Backup as well.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] J0SH1X:
Hey Folks Got G6 H870 today currently working on some stuff like moving pixel launcher to system etc
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mark332:
thanks
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kimitza:
Nice. Why not focusing on stock launcher? I remember on my g2 days some dev made it really cool,adding some neat features : autorotate,custom grid on drawer and screen and some other tweaks that made useless any other launcher..

Trimis de pe al meu LG-H870 folosind Tapatalk
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Kipp162:
So if I'm on the latest firmware will this not work? What's the best post in this thread for a guide to follow?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Should be no different no matter what firmware version you on
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Dgleich:
Great work, as always, thanks!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Kipp162:
Just found this thread: https://xdaforums.com/android/apps-games/one-click-root-tool-android-2-x-5-0-t3107461

Says it's compatible with LG g6. What's the difference?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Compatible with G6? Where?

Didn't find it on their list: https://xdaforums.com/android/general/support-list-kingroot-lg-t3112336
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Kipp162:
Third from the top on that page.