yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] dadme:
Just use Magisk uninstaller from twrp to remove old version, reboot TWRP, and flash new magisk 13.3. It works!
[LG V20 Guides, News, & Discussion] UL7RA:
Uninstalling fails with ERROR: 1, 'Boot image patched by other programs! Please restore stock boot image'. What do I do?
[LG V20 Guides, News, & Discussion] dadme:
Did you used SuperSu? Then just UnSU.... but you need stock boot image. After that reboot recovery and install latest Magisk.
[LG V20 Guides, News, & Discussion] dadme:
I find something interesting, Horizon camera works. The preview camera display is normal, but after shooting the image is darker video freeze is gone!
[LG V20 Guides, News, & Discussion] UL7RA:
Can confirm that Horizon camera recording actually works. But it might or might not be using the same trick Snapchat is using with their pictures, basically taking screenshots of what the camera sees, and not actual photos.
[LG V20 Guides, News, & Discussion] dadme:
Footej Camera 2.0.7 works really nice! No more video freeze!
[LG V20 Guides, News, & Discussion] UL7RA:
Guys, it seems I somehow managed to forget to backup my boot images and formatted my computer for a fresh start... Not very smart of me. I noticed that Restore-To-Stock method 1b implies to use a backup found on the phone, at the location of /dev/block/bootdevice/by-name/abootback. Will I be able to restore to stock using that method, if ever wanting to do so in the future? Or will I need to beg for a stock boot image?
[LG V20 Guides, News, & Discussion] dadme:
Used this once https://xdaforums.com/showpost.php?p=72842236&postcount=674. Worked for me. Uppercut and LGUP for the rest.
[LG V20 Guides, News, & Discussion] UL7RA:
And if I restore it like that will I be able to proceed with installing Magisk 13.3 (as I said it failed cause modified boot img) without rebooting and starting the root process over again? After I restore the image with the post you linked, will I flash kernel + SuperSU + magisk or just kernel + magisk?
[LG V20 Guides, News, & Discussion] dadme:
If you restore, you are on lockedbootloader again, so you need to use DirtyCow on december update and after installing twrp, make a boot.img backup ( personal i forgot to do this), then root with magisk
[LG V20 Guides, News, & Discussion] emdroidle:
I'm actually unsure how device-specific the boot images are. I'd give pretty good odds of the various H990DS images being inter-compatible; odds are a bit lower of differing H990* boot images being compatible with other H990* devices. Odds of a non-H990* boot image working on a H990*, and vice versa aren't that great, but there is a non-zero chance.

Ideally there are several programs which can extract a copy of the "proper" boot image from the appropriate KDZ file. Yet thinking about it, the odds of H990* compatibility is quite good, just not quite 100%.

Did it in fact work un-rooted, but with DirtySanta still in place? If so this seems to suggest something about the `su` installation is what is leading to this problem, rather than a pure kernel/hardware issue. Alternatively I need to start combing the LineageOS tree for "camera fix". :(

My ordering of issues was:

`kdzwriter` for writing KDZ files

merging towards LineageOS's head, should get full LineageOS for the H990

scripting DirtySanta, hopefully this simplifies things for others; alternatively some people are trying to crack Download mode, which would give the same result

As [MENTION=566409]dadme[/MENTION] correctly typed, that is for getting you fully back to stock. As has been noted this root process is troublesome, so avoiding that is a Good Thing(tm) if you can avoid it. Quite a few tools exist which can extract a copy of the boot image out of a KDZ file, those are likely your simplest option.

WARNING Important issue here, two distinct areas are being referred to here. boot and aboot, even though the names are similar, DO NOT CONFUSE THEM! Restoring aboot is for going back to stock. Restoring boot merely removes the root program.
[LG V20 Guides, News, & Discussion] dadme:
emdroidle, may be you could ask stratosk, developer of Footej camera app, https://xdaforums.com/general/paid-software/android-5-0-footej-camera-1-0-1-t3384995, what are diferences between his app and other apps. With Footej video record works. Only in 1080p, and only mono, but works realy nice.
[LG V20 Guides, News, & Discussion] Leicxan:
Sorry for a little bit op.

I made a full stock twrp flashable zip file for H990N, based on latest v10h release.

You can update your rooted H990N from v10e to v10h.

The update-scripts is from Tilde88, this zip file doesn't contain aboot, boot and recovery partition, so it's safe to use.

I use ASC from Octanium91 to create the signed zip file.

I tested this zip file on my H990N, works great.

Click here to download.

I also checked H990DS firmware on LG-Firmwares, there are so many region for H990DS varient, and i'm not a developer, so I don't know how to deal with this.
[LG V20 Guides, News, & Discussion] PinkOstrich:
No. Every time I mess around and flash something, the camera will work upon boot for like half an hour before biting the dust. This happens regardless of whether or not my device is rooted.

Phooey.
[LG V20 Guides, News, & Discussion] UL7RA:
So let me check if I understood right. If I restore the boot image that was backed up on my phone, I have to redo the whole rooting process over again. But if I extract a stock boot img from a kdz and restore it, I can just proceed with flashing the kernel and magisk?
[LG V20 Guides, News, & Discussion] dadme:
Camera works OK on v10h, with root?
[LG V20 Guides, News, & Discussion] Leicxan:
This ROM doesn't contain root itself. I even did not include the boot.img.

Make sure you have root before flash it, but it will keep your root after you flash it.

Camera is fine, same behavior as before cuz we are using the kernel from op.
[LG V20 Guides, News, & Discussion] Prowler_gr:
I would like to confirm this, Footej Camera works like like a treat for video recording. I even got the purchased version for $2.99 which allows over 5min length videos.
[LG V20 Guides, News, & Discussion] ExtentedByte:
How did you manage to transfer a kdz file into a flashable zip without the aboot boot and recovery?

As I'm still on v10c on H990ds and want to upgrade to the newest firmware.
[LG V20 Guides, News, & Discussion] emdroidle:
Interesting... Perhaps even very interesting...

Have you ever tried the command

adb shell dmesg

This retrieves messages from the kernel. Generally there are a whole bunch on boot (due to probing hardware), but afterwords the frequency of messages heavily decreases. Would it be possible for you to get a copy of the messages near boot time and a copy of the messages after your camera is acting up? (simply `adb shell dmesg >dmesg_0.txt`)

This may give some good clues as to what is happening. The above was helpful since come to think about it, most of my camera confirmations were shortly after boot so knowing it takes a while is important.

I was almost breaking out in a cold sweat after thinking about this situation and realizing the potential for misunderstanding...

There are two distinct pieces, boot and aboot. boot is where the Linux kernel and ramdisk reside, rooting is done by modifying this area. aboot is the bootloader, DirtySanta works by replacing this with an unlocked one which will boot unsigned kernels.

The command in the opener `dd if=/dev/block/bootdevice/by-name/abootbak of=/dev/block/bootdevice/by-name` is for going fully back to stock. This restores aboot. By doing this you would be on a path which forces you to go fully back to stock, at which point you would have to restart the procedure from the begining. It is important to note that aboot is device-specific and flashing the wrong one will brick you.

If you instead extract an image of the stock boot from a KDZ file and restore that, you merely need to reinstall the new kernel and su program (Magisk, SuperSU, Superuser). I suspect boot is likely compatible between V20 devices. Even if you flash the wrong one and you've got a handy rescue via TWRP.

Better approach for fixing corrupted boot now available. kdzwriter's "-k" mode will restore boot from a KDZ file.
[LG V20 Guides, News, & Discussion] UL7RA:
I restored the boot image from a kdz, then installed the kernel and Magisk. Works wonderful. I noticed recording also worked too, so I grabbed a log as you suggested the other user. After a while, I noticed the recording didn't work anymore, so I grabbed another log. Links below. Hope it helps.

I installed a Magisk module to make SELINUX permissive in attempt to fix recording, didn't quite work.

Before

After

Edit: The logs were take with Terminal Emulator as I couldn't create a log file, system being read only due to Magisk, so I copied all it showed in Terminal Emulator and pasted it there.

Edit 2: Another set of logs, perhaps a little more relevant, but that's up to you to decide. It's without the SELinux Permissive module.

Before

After
[LG V20 Guides, News, & Discussion] dadme:
How did you restore image from kdz? Is in boot.bin not boot.img format, so how did you manage to flash this?

Other logs here. Recordin works at 13:22 first log, at 13:30 i made other record but it freeze, dmesg2.txt.
[LG V20 Guides, News, & Discussion] UL7RA:
Renamed .bin to .img. Worked like a charm.
[LG V20 Guides, News, & Discussion] Leicxan:
I use the kdz extractor from here https://xdaforums.com/showthread.php?t=2600575

First, extract dz file from kdz, then extract the dz file. You will get a lot of system[random numbers ].bin file, use merge system.img in the kdz extractor, then you will get a system.img

Use ext2explore to browse the system.img and save it in to a folder called system, you can create one if you don't have. Remember to delete recovery-from-boot.p file in it.

Don't forget grab cust.bin and modem.bin from kdz other files like aboot.bin, boot.bin and recovery.bin is useless for us.

You can unpack my zip file and copy the file you extract instead those files in my zip file.
[LG V20 Guides, News, & Discussion] ExtentedByte:
Nice little guide, thank you a lot!

I managed to create the system.img but if I extract the system folder, it's empty afterwards.

I did browse with ext2explore the first system.bin in the dz folder and saw the whole system in it, but as it is distributed to the other system.bins I'm unable to extract the system.

Did you had the problem to extract the system folder?

Edit: Worked like a charm! :highfive:
[LG V20 Guides, News, & Discussion] marvelboy88:
Is it also possible for somebody with knowledge to make also the weta rom for our h990n??
[LG V20 Guides, News, & Discussion] dadme:
Leicxan, please, make a more detailed tutorial. I want to make same thing, for 990DS, but i am stuck at ASC, it give me an eeror1. Coul you describe steps after i have extracted system files from system.img on system folder and renamed cust,bin and modem.bin?
[LG V20 Guides, News, & Discussion] thubble:
Regarding the camera issue, I found a couple of Lineage commits that might be relevant:

https://github.com/LineageOS/androi...mmit/a2c9f5ededde6340c1c209828e8c5d391be50236 - The "modem_mem" region is overridden with the correct values in other device files, but "peripheral_mem" and "adsp_mem" are not. The camera drivers likely use the ADSP, and while it's only the alignment that changes, I wonder if that has something to do with it failing after the first few recordings after reboot?

https://github.com/LineageOS/androi...mmit/fd733d0944f02f5528783028f7d1a700be296c80 - Looks like some power management fixes for the camera sensors, although I'm not sure if it's just a fix for previous Lineage commits.

I did also find a Lineage bug report with this issue (although it's for a completely different phone), but apparently it was closed due to being logged in the wrong section.
[LG V20 Guides, News, & Discussion] Leicxan:
First, load the dz file, check all the check box, then click Merge System-bin button.

Finally you will got a system.img in merge_output folder.

You can see the screenshot I attched.

Seems you get this file: system.img, cust.bin and modem.bin from kdz file sucessfully.

Run Ext2explore as administrator, then load system.img, save it to a folder called system, you can create one if you don't have it.

Create a folder called H990, then move system folder, cust.bin and modem.bin into it.

Open ASC, import your script in the functions menu. Then you'll see your script will displayed, click Files on the right, choose H990 folder, click add.

Go to Build tab, choose a binary, set a signature key, then click collect.

This process will spend an hour to create a new zip.
[LG V20 Guides, News, & Discussion] dadme:
Thanks for detailed information. I just made all the steps, but I think that my mistake is when I selected generic twrp script in ASC. Where I can get your script? It is ok to use updater-script from your zip META-INF, folder?
[LG V20 Guides, News, & Discussion] Leicxan:
Yes, don't mind.
[LG V20 Guides, News, & Discussion] MR.EXCEPTIONAL:
I flashed twrp with cmd completely and reset the phone but it doesnt go to twrp menu and the screen has been crashed ...

how can I solve this ?

The phone show the error screen and doesnt boot

Please help
[LG V20 Guides, News, & Discussion] emdroidle:
From your description, there are two possible places to restart; either Step 16 or Step 17. The red triangle error screen with the message "your phone is corrupt and will not boot" will always show up, the DirtySanta bootloader doesn't enforce this and will continue booting anyway. If you're pulling the battery when you see this message, that is your mistake.

Are you ever getting to the "Delete all user data" message?

If not, then this indicates you're not getting the button press timing right. You need to keep volume down and power pressed most of the time. Releasing the power button should be very brief, and this needs to be while the LG logo is displayed for the first time.

If you are getting to that message, answering "yes" twice, but then never getting into TWRP, then you need to get back to Step 16. Press and hold volume DOWN and power, and do not release until you see the red text on screen. Repeat step 16, and be patient, waiting more than 30 seconds is perfectly fine.
[LG V20 Guides, News, & Discussion] Johnnqtvo:
I got an error at step 9.

chmod: chmod '/storage/emulated/0/Alarms' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Android' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/DCIM' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Download' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/LGBackup' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Movies' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Music' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Notifications' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Pictures' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Podcasts' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Preload' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Quickset Setup' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/Ringtones' to 40777: Operation not permitted

chmod: chmod '/storage/emulated/0/aboot.img' to 100777: Operation not permitted

chmod: chmod '/storage/emulated/0/dirtysanta' to 100777: Operation not permitted

chmod: chmod '/storage/emulated/0/theme' to 40777: Operation not permitted
[LG V20 Guides, News, & Discussion] MR.EXCEPTIONAL:
Yes ,

I repeat step 16 for 10 Times and then works. :D

Thanks
[LG V20 Guides, News, & Discussion] Rajeev:
Hi friends

I am new to LG v20. Got it 5 days ago. Successfully rooted with this method. Very easy process. But unfortunately my voLTE is not working. I am from India. Asking about JIO voLTE. I am now running v10C Singapore firmware with 1st December Security Patch (Downgraded for root purpose). So is there any way to make voLTE works ? :p:p
[LG V20 Guides, News, & Discussion] ahmedyar91:
Hello Rajeev Bro Good To see you here. ??

I am also moving towards V20

Missing Good Old days of Sony.!
[LG V20 Guides, News, & Discussion] emdroidle:
Most of this is certainly harmless, part of this I'm unsure (partially I haven't done the process myself in a while :confused:). I think you're okay to continue, but since I don't want to cause a brick, try running the command

ls -l /storage/emulated/0/dirtysanta /storage/emulated/0/aboot.img

As long as both lines begin "-rwxrwxrwx", you're okay, simply continue.

Not the usual sort of problem. :) You likely need to do something akin to what [MENTION=4394458]Leicxan[/MENTION] was writing about above. Start with the latest KDZ for India, you would flash modem and system. I'm working on a program to do this in an automated fashion, but this isn't yet complete.
[LG V20 Guides, News, & Discussion] Rajeev:
[MENTION=6984210]emdroidle[/MENTION]

Thanks my friend, Now i got some ideas. Seems everything is easy now. Time to mod :o
[LG V20 Guides, News, & Discussion] Mars104:
Camera focus issue

Gutted.. H990ds also have the camera focus problem on the main rear camera running software V10c-twn-xx. Is there still no fix for this problem other than to return to stock?

Root and camera are essential to me, wondering if i should return my new v20 or gamble and wait for a fix..

I tried both kernals and even stock camera apps from different roms
[LG V20 Guides, News, & Discussion] kersian:
Can we repack updated stock kernels to something similar to these?

https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605
[LG V20 Guides, News, & Discussion] NW13:
Hello everyone! Thanks to [MENTION=6984210]emdroidle[/MENTION] and everyone who has contributed or worked on making the H990DS root possible. I unfortunately am running into a big issue with getting my new H990DS rooted. I am struggling to get to step 17 ("Boot in to TWRP"). I am able to get to the prompt screen of "Delete all user data and reset all settings?", but when I try to go further after selecting ""Yes"" twice, I am greeted with my screen appearing like it has "static." Then the screen returns to the LG logo screen and apparently attempts to boot up like normal (given the boot up sound). I'm not sure why this is happening. The screen was definitely fine before I attempted rooting. I am wondering if I somehow didn't install TWRP properly or some other issue has come up. I was pretty sure to give myself enough time at step 16 for the commands. Do I need to try step 16 more than once? I tried to use the latest version of Magisk (v13.3) instead of SuperSU too. Any ideas on why this is happening and how to fix it? I've have an image of what looks like a "blue screen of death" that comes up for me., but can't quite post outside links since I'm still a very new user, as of this posting.

[EDIT]: Plugging in my LG V20 into my computer manages to get me into FastBoot mode thankfully. Suggestions? Really just want to root so I can load up my apps' data from Titanium Backup, and then go back to stock.
[LG V20 Guides, News, & Discussion] Mars104:
This worked for me (in a previous post)

(P) Run command prompt, change folder to adb folder and type ""fastboot flash recovery twrp-3.0.2-1-h990.img"" and wait it to finish, then wait further 30 seconds and run the same command again and then wait for another 30 seconds to enable the command to execute completely.

(Q) unplug sync cable, pull out battery wait 5 seconds and put back afterward

(R) boot in to TWRP.

Press and hold volume DOWN; press and hold power until the LG logo comes up, then briefly release power (0.5-1.0sec) and then hold power again.

You will then be prompted ""Delete all user data and reset all settings?""

Select ""Yes"" twice, and as long as TWRP installation was successful you'll get into TWRP and NO RESET will be done.
[LG V20 Guides, News, & Discussion] NW13:
I did do those steps. Those are the same steps that [MENTION=6984210]emdroidle[/MENTION] gave in the instructions to root the device. :( Is it possible that I need to issue the "fastboot flash" and "fastboot recovery" commands more than a few times to get into TWRP?
[LG V20 Guides, News, & Discussion] Mars104:
The steps are different. You don't issue the reboot command, you remove the battery after the second flash command.
[LG V20 Guides, News, & Discussion] NW13:
Thanks [MENTION=924699]Mars104[/MENTION]! :) It looks like that step change of unplugging the sync cable, pulling out the battery, waiting 5 seconds and putting it back afterward without issuing "fastboot reboot" after issuing "fastboot flash recovery twrp-3.0.2-1-h990.img" was what I needed to do. This probably should be mentioned in the instructions by [MENTION=6984210]emdroidle[/MENTION] as the alternative instructions by [MENTION=273964]ahlok_hk[/MENTION] work better here. Do you suggest doing any backups at this point? And if so, what do you suggest backing up? The instructions by@ahlok_hk say from step (S): "Note:If you wish to make a back up now, you MUST save it to your SD card, and you cannot backup the data partition." You think backing up everything, but the data partition should be fine?
[LG V20 Guides, News, & Discussion] emdroidle:
Working on kernel updates is my next issue, I give good odds any camera issues are shared with LineageOS and which should be enough people to get the issue solved. I'm definitely worried by this issue, but I have to rate software updates as a higher priority.

Based on [MENTION=4260449]UL7RA[/MENTION]'s logs though I do have one idea. Could you (or anyone who has run into this) try doing force quits of background programs on your phone? I'm wondering if perhaps memory exhaustion is responsible.

No. The rebuilt kernel was necessary in order to compensate for differences between LG's original bootloader and the DirtySanta bootloader. The closest to this approach you might come would be to disassemble LG's original bootloader and turn it into a stub you could prefix to the Linux kernel. This should nominally be doable, but requires someone to do it.

I guess I need to ask. What method do you use to test whether VoLTE is working or not?

Right now the tasks I'm planning to work on are:

KDZ writer

Updated kernel

Easy root method

I consider the KDZ write tool as highest priority due to things like the 911 bug. From the sound of it, that might be a generalized Qualcomm with VoLTE bug in which case updates are critical. Security updates are also rather important.

Kernel updates are next since that will make up to date LineageOS releases available for the H990. I hope this also gets us camera and MyDP fixes, a larger pool of people looking for the solution should work wonders.

That root process is complicated. I've got a rough idea of how to make things simpler (a large Python script in control of the process), but since the existing process does work I'm placing this last on my queue.
[LG V20 Guides, News, & Discussion] Rajeev:
Hi

Its my mistake only bro. I have choose a wrong kdz file for my Indian version. Now everything working fine. I am now on latest April security patch with root. Yep voLTE also working... I have added Supersu command in the updater-script and root done automatically
[LG V20 Guides, News, & Discussion] UL7RA:
[MENTION=6984210]emdroidle[/MENTION] if you could be a bit more specific about those force quits you're talking about, then I can surely help. You mean to kill background processes to free memory, and then see if the camera works? I'm runnjng Greenify to hibernate plenty of the apps, if that's relevant.
[LG V20 Guides, News, & Discussion] Mars104:
Thanks for the reply. Cleared most background apps, stopping several running services so 1.5gb free, camera still isn't focusing I'm afraid. Example photo attached, I'm trying to focus on the balloon.
[LG V20 Guides, News, & Discussion] Brutale1090!:
Hi guys, does anybody of you know if any custom rom for the DS version is under development or going to be ported / expanded from other versions?