yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I read some about verity before I started, but the relationships between the bootloader, encryption, signing, etc., are complicated, so I thought it best just to follow the recipe.

It was all very straightforward: unlock bootloader, flash TWRP, format, then, in one queue, flash dm-verity, lineageos, lineageos-su, and gapps-pico. The only hick-up I had was in getting TWRP to stick the first time, and then jeffsga88's suggestion helped.

I didn't flash supersu. I also forgot to nand backup any of the original system. (Probably a good thing it went so smoothly, then.)

The orange screen of corruption was a bit of a surprise!

Funny, once I got TWRP going, I felt a whole lot better. With a decent recovery in place, the (electronic device) world is a happier place.

The G5 is quite a bit nippier than the Note 2, although the Note has been a workhorse. It has lasted, no doubt, because of getting a new battery every 18 months.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Wire1122:
how can force uncrypt my rom with twrp?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
only stock rom supports encryption, if you are on stock you have to wipe /data (it will delete ALL your internal storage)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Wire1122:
Installed fresh os with lgup. Installed twrp. Format data and installed no verity opt encrypt. But when i boot in os the system say encrypt failed. Password is right but the files are corrupted.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Wire1122:
Wrong clock and date in twrp. Help me please...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] viktor92:
Old and known bug...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
I'm still hoping that if enough people report it it'll finally get fixed ... :( :rolleyes:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Wire1122:
With twrp encryption h840 the date and clock are right

Sorry not working
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] kanehun:
I have a problem with nand backup. I tried to backup all partitions. I have a 128 GB micro sd card with 52 gb free space. The data to be backed up is 13 Gb. At system image backup the backup failed. I tried 3 times , three failed backups. Any suggestion? See the result is in the picture.

Thanks for any help.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Don't back up system image. Really is no need for it anyways. Back up system, data, efs, boot, recovery partitions and it will succeed :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] viktor92:
Try doing the backup in compressed mode on the internal memory
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] kanehun:
I tried backing up without system image, it worked. If I try to backup system image alone, it does not work. Is it something special, that it cannot be backed up?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Just a little FYI, in case you didn't know: You can take screenshots in Recovery too, with the standard 2-button combo (vol down + power). It then creates a folder Pictures with a Screenshot folder inside - on the ext. SD card in my case, which isn't at all where I was looking for it :laugh:

I didn't know until a few months ago either, so I thought I'd share :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nadeem A.M:
Cheers man. [Screenshot]
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Firass:
IOT_H850_Marketing

Hi, I'm getting this message on LG developers site

Your device (IOT_H850_Marketing) does not support unlocking the bootloader. Please check your model. Your account will be locked if you enter the wrong information more than 7 times.

what dose it mean ? can i unlock the bootloader of my device or not ?

Best regards,
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Which device do you have ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Firass:
LG G5 H850 (EUA version) with android 7.0
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jonny_blagwind:
PS C:\adb> adb reboot bootloader

PS C:\adb> fastboot flash recovery twrp-3.1.1-0-h850.img

target reported max download size of 536870912 bytes

sending 'recovery' (19076 KB)...

OKAY [ 0.431s]

writing 'recovery'...

OKAY [ 0.195s]

finished. total time: 0.627s

PS C:\adb> fastboot boot twrp-3.1.1-0-h850.img

downloading 'boot.img'...

OKAY [ 0.431s]

booting...

FAILED (remote: unknown command)

finished. total time: 0.450s

anyone know what i'm doing wrong here cannot get twrp to boot?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
After flashing tarp unplug USB cable, then pull battery. Put battery back in then do following:

1) Press and hold volume down and power button at the same time.

2) When you see the LG logo show up, release only the power button (your must continue to hold volume down whole time) for a second and then press and hold power button again along with the volume down until it reaches the factory reset screen.

3) Select yes twice and it will boot into TWRP if you installed it correctly.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jonny_blagwind:
legend cheers pal
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Icetea:
i have made two backups from my phone with twrp but unfortunately the data partition is not included in my backup!

What is the reason for it? In TWRP the data (without data/media) partition is shown with size "0"!!! Why

If i start to backup the data partition only, i see red messages like:

failed to encrypt data

unable to decrypt with default password. You may need to perform a format data!

äh yes, until this moment, i never used a file like: -> no-verify-opt-encrypt.zip!:D Was this file necessary? I’m not familiar enough with this stuff

Please help to solve my problem!:crying:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
TWRP can't decrypt the data partition, you missy go to wipe --> format data before TWRP will be able to read data partition. (Formatting data erases everything on internal storage, backup your personal data first). After formatting data, flash the no verity zip before rebooting into Android (or it will try to re encrypt data again).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Icetea:
ok, after new installation,( following this description ) i am back again WITH data access. Problem solved! A big thanks goes to [MENTION=7188028]jeffsga88[/MENTION]:good::cool:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] minifig:
Oh boy,

The problem in short version: I can't boot my week old LG G5 anymore, nothing happens when I start it up.

The long version :

- I let the phone install all the ota updates up untill the last one. I was on nougat. Yeah!

- unlocked the bootloader

- installed twrp wich took a few tries

- installed the zips

- formatted data and cache

- the phone booted fine but was not rooted

- installed supersu again

- phone was rooted then with stock rom

- all was fine when I left it sitting on the Always on display for the night

- in the morning, the G5 was dead, can't get it to boot.

I've tried :

- putting it in the charger, but nothing happens ; not even the notification light lights up

- replaced the battery with a charged replacement battery (1 of the 'friends' I received for free)

- long pressing power button

I can't get it to do anything, not even the LG logo pops up.

Any ideas are very welcome at this stage.

Roger

Verstuurd vanaf mijn SM-T710 met Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] giebeka:
I've got problem with Backup. I cant backup. It stop at backup system (or system image if I uncheck system). It show "Backup Failed. Cleaning Backup Folder".

*Latest twrp but same on 3.0.1

* I've enabled compression as well, same.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Can you try with md5 disabled?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] WeishauptK70:
running INTO STOCK RECOVERY instead of twrp :/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
You have to pull battery out after flashen TWRP in adb. Then make the button combinations and it should boot into TWRP.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
You have to follow the instructions in the 1st post to a T then it works fine :) :cool:

Edit: Ninja'd :laugh: :angel:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] WeishauptK70:
Well; i've tried this with the all 4 version .. but still booting

(when cmd complete the task .. i press the button to eject the battery then i separate it from the cable .. then i run the recovery with the buttons combination .. but it just ask me if i want wipe my data) :/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Yes that should come. Is there a screen with wipe data where you have to press yes or no ? Press yes two times amd it should boot into recovery
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] WeishauptK70:
Hey .. I'm not sure if i understand what are you saying shall i press yes two time in the same screen quickly wich mean that i should press the power button 2 times after choosing yes with the volume key and will this wipe my data

(Sorry for my stupidity)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] WeishauptK70:
Well .. i've tried this (Yes for the question and other for the confirmation) but it's just erase my data .. That's really disappointing
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Normally it should not wipe. I installed my TWRP with that instruction. I'm sorry for your lost data. I have no idea what's not working but at least you can try this [youtube]pgrQbx_laBM[/youtube] .
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Thomas41587:
Can someone please help me? I unlocked my bootloader and afterwards flashed TWRP recovery. But I am not able to boot into recovery.

I removed the battery and USB cable, put the battery in again and then pressed power + volume down. as soon as the LG logo appears I realease power for a moment (and keep pressing volume down) and press power again. Then this stupid bootloader warning appears. Afterwards the LG logo appears again and the phone boots up. I also tried to release the power button only on the second time when the LG logo appears but no luck...

Edit: Damn! I finally managed to reboot into TWRP. The problem was that I was just too fast for the phone. If you release the power button for a too short time it will not work :eek: But nevermind. It works now.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] oleg77:
[MENTION=8429009]WeishauptK70[/MENTION] : That's probably why it erased your data : you didn't reboot to recovery at once after flashing twrp, it rebooted (even briefly) to the OS. If that's the case, you loose your data if you follow the process and click OK twice. If it happens (if you don't reboot to TWRP just after flashing it), you should reflash TWRP once more, and then retry to boot to recovery, and only then, if you succeeded, you can go on without losing data.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] MustafaKamranKurd:
Sprint Variant lgls992

Does it work with my LgLs992 sprint variant ??
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Müllabfuhr:
I can't boot into twrp.

I have unlocked the bootloader and flashed twrp with adb, I pulled out the battery and put it back in, after that I'm trying to boot into recovery with holding volume-down and the power button. I keep holding volume down and release the power button for one second but the corruption message shows up to fast... there's no factory reset screen and android wants to boot normaly
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] LittlePlumb:
Spam Powerbutton...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SherZzzz:
1 second is probably 2 fast imho. Try 2 or 3 seconds you should get there. Also after flashing twrp make sure you format data by typing yes then reboot bk to recovery before flashing super su. All the Best
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] LBensley:
I just tried it with my Samsung Evo Plus SD card and that worked however im not sure if it was exFAT as i just put it straight in my phone when i got it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jcadduono:
you can go to wipe -> advanced wipe -> [x] micro sdcard -> repair or change file system and it should tell you the current file system of your sdcard.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ieatacid:
Did you install busybox? (Does it still require that?)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Schrotty35:
Yes i have install busybox.

Gesendet von meinem LG-H850 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jcadduono:
Posted link to jenkins build on first page, please let me know if there are any issues besides unable to decrypt.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Schrotty35:
For what i need no-verity-opt-encrypt? jenkins build? Is this now the latest version twrp-3.0.2-0-b3-h850 ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Lycidias:
I think this is already included in super su zip, needed for modifying system Partition or something like that
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Schrotty35:
I have test b3 but internal storage not work.

Gesendet von meinem LG-H850 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DJBhardwaj:
In order to disable forced encryption and decrypt the complete userdata partition.

[MENTION=5672995]jcadduono[/MENTION] Do we also need to format /userdata partition after flashing the no-verity-opt-encrypt.zip?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Schrotty35:
I have install this zip file but dont see any difference. How can i back to Stock Recovery after flashing twrp? There is no images for the H850.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] RealLordK1:
TWRP installed flawless. But when i try to restore with Titanium Backup, it says it can't obtain root permissions. It's still listed in supersu...

Oh, and now, my phone is stuck with the message "Encryption in progress", and the option to reinit. But nothing happens. And clicking on reinit launch twrp, where I dunno what to do in order to get my phone working back :D

I didn't notice, but there's a warning just before the encryption in progress :

Warning : Current version is not avaiable for user. Can't find matched cust for NT-code mcc/mnc[FFFFFF],subset[11]
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jcadduono:
Only if you want your data partition to work in TWRP. Otherwise you don't need to format it.

If you install SuperSU it already does everything that the no-verity-opt-encrypt.zip does.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DJBhardwaj:
So, SuperSU will disable dm-verity checks in the kernel?

---------- Post added at 10:16 PM ---------- Previous post was at 10:13 PM ----------

Which zip file? To install TWRP, you need to flash the corresponding image file through fastboot.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jcadduono:
Right. Assuming you install SuperSU in systemless mode, which is the default in M anyways. (requires modifying the boot image, so it can very easily be disabled through the fstab hopefully)

no-verity-opt-encrypt.zip *should* work to make encryption optional and disable dm-verity on EVERY device. Feel free to add it to any guides you have. :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DJBhardwaj:
Cool! Thanks ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Schrotty35:
I hope a full working build coming soon. Twrp without backup is not good.

Gesendet von meinem LG-H850 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jcadduono:
no, it's not coming soon, you'll just have to live with it. back up your data with titanium or something to a microSD card, then format your data partition and flash the opt-encrypt zip and you will have working data in TWRP but you will not have encrypted data. you can then restore most of your things using titanium.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] RealLordK1:
So, I reflashed unlock.bin and twrp, and still stuck with the encryption warning. Any help dudes ?

Like the original recovery to flash ? Even if I don't know if it could help :(

Please, tell me my phone is not bricked.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Schrotty35:
How can i back too original recovery?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Pinu'u:
Awesome, full TWRP after formating data. Thanks a lot for your work.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] viktor92:
This is the most difficult phone I had to enter in recovery mode with the buttons
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SherZzzz:
I hear that lol. Once you do get rooted though, you can install the quick reboot app off google play to boot into recovery with 1 click.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] viktor92:
Yeah, I have a lot of software options now, but when you have a bootloop, it's a pain in the ass to enter in recovery mode pressing keys !!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] metronews:
Is there any way of keeping the data partition encrypted and inaccessible by TWRP, maybe by not applying the no-verity-opt-encrypt.zip patch? I'm concerned about a lost/stolen phone scenario where someone could access my data partition via TWRP.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] KickerTom:
Yes, I am using it that way. Install normally, except for the no-verity, and you should be set. You need external SD card with the zips of course, as you can't access internal from TWRP. Also I am not sure if TWRP nandroid backup is usable, it's encrypted partition dump of course, but I never tried if all keys etc. are in the backup, maybe restore is not decryptable at all.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nite4evr:
This support LGH531?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Does anybody know what actually changed in the new 3.2.0.0 version? Did the date/time finally get fixed? Is there anything new that's important?

Seems like the new version broke (most) TWRP themes, so if nothing important changed/got fixed I'll probably just stay on 3.1.1.0 ... for now at least :cool:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] viktor92:
Good question, I don't care themes, but the date/time issue is important.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
All I found is https://twrp.me/site/update/2017/12/01/twrp-3.2.0-0-released.html which are the general release notes ... since the date/time issue is device specific that doesn't help though :(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mkpcxxl:
Flashed today, time and date bugs still there.

Regards

mkpcxxl
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Damn, but thank you for checking ;)

This phone has some terrible support ... on the S4 when that bug popped up it certainly didn't take THIS long to fix it :rolleyes: :eek:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mkpcxxl:
Yes, it's a bit sad but for me the most important is to install zips and make backups and this works. :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Sure it works, but having to rename every backup with the current date is a *bit* annoying :rolleyes:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] eoghan2t7:
I'm currently looking into the date and time issue so hopefully I'll have a fix soon.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mkpcxxl:
This would be great.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
That would be sooooooo amazing, thank you :) :fingers-crossed:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] cheeze.keyk:
anyone tried the latest update for H830?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nguyenvantuc:
password twrp?

if i skipp it,it don't mount sd card and don't wipe data

how can i fix it?

---------- Post added at 06:09 AM ---------- Previous post was at 05:35 AM ----------

password twrp?if i skip it,i can't wipe data,can't see sdcard,who can help me?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Matthew_Jay:
So will this work with the rs988 since the bootloader is officially unlockable by LG?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] totalnoob34:
I don't believe so, I wouldn't risk it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] potato7526:
i wanna know how to enter recovery when the phone is off,i tried tons of times but still cant,i can only enter it by Terminal emulator ,thx if you help me:)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ilyadan:
Hold power and volume down together. When you see LG logo release power button but keep pressing volume down. Say "21,22" and press power button again. Don't wait to much and don't press to quick it should take about 1 sec. Release both buttons when hone will ask to erase all data. Answer "yes" twice. If you have TWRP installed it will not erase data and you can answer yes to both questions. First time is scary... TWRP will boot. Takes some practice though...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] potato7526:
thankyou for your help，finally in

i stuck in device unlock warning before,
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lindworm:
Are you using a stock or custom ROM? I'm trying to use a custom ROM after encrypting via stock but lineage 14.1 doesn't support encrypting the H850 and dirty flashing means lineage will never get past the boot screen. As TWRP can't decrypt the data partition it recreates it, removing encryption as it can't use rm -rf instead.

If you are using a custom ROM, which one and what was your procedure? Thanks!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] KickerTom:
Stock. I don't think you can use full disk encryption on lineage yet.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lindworm:
Yeah I've been thinking about creating the fde partition with a a marshmallow stock rom, backing up the dm-crypt header/footer with dd (but I'm not sure about the offsets yet), wiping data + using Lineage OS 13 after restoring the footer. Alternatively one could try using a Nougat stock rom with fbe, backup the files containing the salt, encrypted master key etc and then do the same procedure as described above.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] KickerTom:
That sounds like it might work. If you happen to try it, let us know...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
I have a backup and restore question. I have LOS 14.1 and TWRP 3.2.0.0 on my G5. I can make full backups in recovery, but I cannot restore them. TWRP stucks at the beginning. The last message on the screen is "MTP enabled" - and then nothing happens. I have to pull out the battery to be able to start the phone again. When backing up I checked boot, system, data (exkl. internal storage) and EFS. Do I have to check any other option for making a restorable full backup?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] megatron_lives:
Same problem here. I downgraded to penultimate version and could then restore backups.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mkpcxxl:
Had the same problem with fulmics rom. Flashed TWRP 3.1.1.0 and all works fine.

I think there is a problem with the G5 and the version 3.2.0.0

Best regards

mkpcxxl
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] viktor92:
There is a newer version: 3.2.1-0
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
This ... I've used Nandroids made (and restored) with 3.2.1-0 last week when flashing the new Typhon kernel. They work just fine :good: :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
Thanks for the hint, I will give it a try. :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mkpcxxl:
Thanks for the info but for the moment I don't see reason for flash this version because 3.1.1.0 works good.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DenyDarko:
3.2.0 is outdated already.

3.2.0.1 is out.

You may want to try that, it might be corrected.