[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mbinnun10:
Sucessfully moved from stock 10g to LOS15.1 08/13 build. Works perfectly - H990

After weeks of doubts, I finally decided to move my H990 (single sim) to Lineage OS 15.1.

I was very sceptical that everything is gonna work without problems, but to my suprise all the features (almost) work out of the box.

I can confirm that after doing a clean flash of build 08/13 on my H990, the following features work

(*without flashing the gamma kernel*):

- calls

- mobile data

- wifi

- bluetooth

- nfc

- fingerprint

- usb-otg

- cast

- regular (stills) photographing

- video photographing

- internet, youtube, etc

- gapps nano for 8.1 run smoothly without problems

- sound is good. It is also well on device's speaker and earphones (but noisy on bluetooth, see below.)

Features that needed 3rd party app to work:

- Using the car's bluetooth causes the calls to be very noisy.

I use an app called "Auto Speaker" (by HH group) to start the calls automatically on the device's speaker instead of bluetooth

(now using the car's bluetooth only to sync contacts and answer the calls, so I wouldn't have to tap on the phone during driving)

Features that do not not work:

- second screen, mainly because I used the "regular" build and not the SS one (but to be honest - who really needs this sh*t)?

- voLTE (I repeat, who really needs this sh*t?)

- There is no FM radio (just to compare, on my redmi note 4 device for example, with same lineage 15.1 the FM radio works.

I've read something that there is no api for the FM radio from LG but don't know if it's true.)

It took me about 2 hours to do the whole process of "From stock 10g to LOS 15.1".

===================================================================================================

I'm writing up here what I've done, with recommendations (this is a kind of a step by step "guide")

because I think that people who are "newbies" to custom roms and flashing

would (for sure) meet up some difficulties during the process.

===================================================================================================

1) "Backup" Step" :

- Back up all of your data, photos, etc to "an external media".

You may want to use your google drive, but at least for me - an external hard drive was much easier and faster.

- Open your whatsapp application and create a backup (a "restore point").

2) "Download Stuff" step:

Download all the following files, which you're gonna use during the process:

- KDZ firmware of type "H99010b" (I needed to do this since I've been on "H99010g" firmware type)

Enter here and download:

https://lg-firmwares.com/lg-h990-firmwares/firmwares/

again, make sure its a "10b" type - otherwise the "DirtySanta" step will not work !!

- Universal LG USB drivers - download from here:

http://tool.cdn.gdms.lge.com/dn/downloader.dev?fileKey=UW00120120425

- LGUP Installer - download from here:

https://mega.nz/#!JtRFkD4Y!u3QgNNaUc-q9w86bBYVoLa9bDBIKA4IZAC57m3rFcsI

and you may need some dlls from here:

https://mega.nz/#!TwNwUYwJ!ZTBcxmEkerLcp-2Ri66TOsZBf8LQl7qwoD2fmoJSCsc

and here:

https://mega.nz/#!VhpDxKoI!Mo0LcQOVOjcM337Vs2X87KoEMvE3HApYgpFNMYEl4XU

- UpperCat , so you'll be able use LGUP with V20 - download from here:

http://downloads.codefi.re/autoprime/LG/Flash_Tools/LGUP/UPPERCUT_1.0.0.0.zip

- DirtySanta H990 files from here:

https://androidfilehost.com/?fid=457095661767122821

- TWRP 3.0.2-1 for h990 - from here:

https://build.nethunter.com/test-builds/twrp/lge/twrp-3.0.2-1-h990.img

and TWRP for H990 new version of 2018-08-05 from here:

https://androidfilehost.com/?fid=5862345805528066450

- (And finally, download)

LOS - lineage-15.1-20180813-X86CPU-h990 zip file - from here:

https://drive.google.com/drive/folders/1g2HpODcbzLCI6ROTs6JUd7xI8s5jRVwu

+ MAGISK 16

https://github.com/topjohnwu/Magisk/releases/download/v16.0/Magisk-v16.0.zip

+ MAGISK Manager APK

https://github.com/topjohnwu/Magisk/releases/download/manager-v5.8.3/MagiskManager-v5.8.3.apk

+ GAPPS

https://opengapps.org/?arch=arm64&api=8.1&variant=nano

4) "Refubrish" step:

Flash the "H99010b" KDZ to your phone using LGUP:

(Unfortunately, LGUP works only on a disg*sting operating system called "Windows".

Therefore, I'll assume you're using Windows 8.1 or 10 during the LGUP step)

- Turn off your phone and disconnect it from the computer.

- Double click LGMobileDriver_WHQL_Ver_4.2.0.exe run as admin and install it.

- Double click on LGUP_Install_Ver_1_14_3.msi and run as administrator. Accept everything with next-next..

- Install any additional necessery DLLs from the othe MSIs.

- Unzip the UPPERCUT_1.0.0.0.zip

- Double click the UPPERCUT_1.0.0.0.exe that you've just extracted and run as admin.

- When it says "there's no handset", click OK and now you should see the "Model List" window.

- Connect the data usb cable the computer (make sure phone is still disconnected).

- Hold the "volume up button" on your phone and while holding, and connect the phone to the the data cable.

- The phone will now turn on in download mode. You may need to approve the driver's intallation dialog.

- You should now see "LG-H990" in the Model List window. If it shows "unknown" instead, then unplug the USB cable and re-plug it.

- If it's still "unknown" then make sure that you loaded LGUP from UPPERCAT only (not from the desktop link) and re-plug the phone.

- Click on "select",

- On the next screen, choose the "10b" KDZ under "file path" of the bin file.

- On the "process" section, check "refubrish" and click "Start".

- If the computer alerts "cannot refubrish from this file" then don't panic. Check "upgrade" instead of "refubrish" and click Start again.

- When the whole flashing process ends, wait about 20 seconds and then close LGUP and disconnect the phone from the the computer.

5) "Factory Reset" step:

Wipe your phone data.

- Turn off your phone again (you may take out the battery and return it back).

- While still disconnected from the computer,do the following (please concentrate):

a. Hold down both "volume down" and "power button"

b. When you see the LGs logo, release the "power button" immediately. After 1 second has passed immdiately hold this button again.

- You should now be on the "wipe data" screen. Choose "Yes" and then choose "Yes" again.

(we should do this wipe, since we did "upgrade" instead of "refubrish" on LGUP)

- Repeat this "wipe" process once again (I had to do the wipe process twice from some reason).

- Finally, turn on your "refubrished phone" to load android (LGs factory rom).

You may wait about 3 minute on LG logo (for cache to be regenerated)

6) "DirtySanta" step:

(On the DirtySanta step, I'll assumbe that you have one of the following: [Windows 8.1 / Windows 10 / Linux / Mac]

with "adb" and "fastboot" installed to the path (so they'll be available from the command line)

- On the fresh LGs rom bypass all the initial screens, wifi, etc.

- Go to phone settings -> about phone and make sure that the security policy is *from December 2016 or before*

(aka, the "refubrish" process was successful).

- Tap 10 times on the "build number" so the "developer mode" will be activated

- Go to the developer options and turn on "ADB on USB" to be available

- Download the app "terminal emulator" from the Google play store and open it

- Connect the phone to the computer

- Open command line/terminal and "cd" to the folder where you extracted the "v20-root.zip".

- Run RUNMEFIRST.bat (RUNMEFIRST.sh on linux/Mac) and leave this window opened (this is our "verbose/logcat" to see what happens).

- Open another command line/terminal window and move again to our folder, and run step1.bat (step1.sh on linux/Mac)

- When you see the phone's prompt shell (adb shell) then type "run-as con" (without the quotes) and press enter

(If you get error here, then the "refubrish" step has failed. But we made sure before, so we shouldn't get that error..)

- Type "chmod 0777 /storage/emulated/0/*" (without the quotes) and press enter.

- Open terminal emulator app on the phone and type "id"

- If the response of the command contains the text "untrusted_app" then we can continue.

Otherwise, repeat "DirtySanta" step from the beginning.

- In the terminal emulator app on phone, type "applypatch /system/bin/atd /storage/emulated/0/dirtysanta"

(type it without quotes, but keep the spaces as is!!!)

- Look at the "RUNMEFIRST" window, it should prompt you to run "step2.bat".

- Run step2.bat (step2.sh on linux/Mac)

- Step2.bat has just created 2 files, "abootbackup.img" and "bootbackup.img" on our folder.

*Backup them now* to an external media. You'll need them on any case you'd like to go back to stock firmware.

7) First "Fastboot" step:

- The phone will now reboot into "fastboot mode". If not, open another command line window and type "adb reboot fastboot" (without quotes).

Another option to get into fastboot is to turn off the phone, unplug phone from the computer, hold the "volume down button" and replug it.

- One the command line, move to the folder where you downloaded the two TWRP recoveries (old and new)

and type "fastboot flash recovery twrp-3.0.2-1-h990.img".

- Wait 50 seconds and type again "fastboot flash recovery twrp-3.0.2-1-h990.img"

and then wait another 50 seconds.

- Type "fastboot reboot", and when you see the LGs logo - immediately take out the battery and return it back.

8) First "Custom Recovery" step:

Do the following (same as you did on the "Wipe" step):

a. Hold down both "volume down" and "power button".

b. When you see the LGs logo, release the "power button" immediately. After 1 second has passed immdiately hold this button again.

- Answer "yes" and "yes" again.

(If the phone will now "wipe data" then the "First fastboot step" failed, so you'll have to repeat that fastboot step again.

otherwise, the recovery flash has succeeded.)

- You should now see an attention that "your device is corrupt, it cannot be trusted!"

Don't panic, in 5 second you'll see the LGs logo and the then you'll be moved into TWRP.

That means you have sucessfully passed the "First fastboot step".

9) Second "Fastboot" step:

- From within TWRP, "command" the phone to reboot into fastboot again .

(or power the phone off and do again the trick with "volume down" and USB cable plug-in).

- Move again to the folder where you downloaded the TWRP recoveries.

- Type "fastboot flash recovery recovery-twrp-h990-2018-08-05.img" and wait at least a minute

- Do this again: type "fastboot flash recovery recovery-twrp-h990-2018-08-05.img" and wait at least a minute

- Type "fastboot reboot", and when you'll see the LG logo - then immediately take out the battery and return it back.

10) Second "Custom Recovery" step:

Again, do the following (same as you did on "First Custom Recovery" and "Wipe" steps):

a. Hold down both "volume down" and "power button".

b. When you see the LGs logo, release the "power button" immediately. After 1 second has passed immdiately hold this button again.

- Answer "yes" and "yes" again.

You'll see again the LGs logo and the then you'll be moved into TWRP.

11) "Flashing" step:

- On TWRP click on "Wipe" and then "Advanced Wipe".

- Check only "Dalvik / Art Cache", "System", "Data" and "Cache".

- Go again to "Wipe" and click "Format data". Wait for the formatting to complete.

- Prepare an SD or a USB stick (if you have a usb-otg cable) with the following files:

+ lineage-15.1-20180813-X86CPU-h990.zip

+ Magisk-v16.X.zip

+ MagiskManager-vX.X.X.apk

+ open_gapps-arm64-8.1-nano-XXXXXX.zip

(I myself used a USB stick and formatted it to fat32, worked for me)

- Insert the SD card (or connect the stick using the usb-otg cable) and mount it in TWRP.

- Go to "Flash" and flash the ZIPs in this order:

a. Flash Lineage 15.1

(if you get an error here, then you didn't format the data.

Go and format the data in the "Wipe" section and flash again)

b. Flash Magisk 16

c. Flash Gapps

- Wipe dalvik cache

- Reboot

12) "Boot up" step:

- After the reboot, you'll see again the "Device is corrupted" message. Everything is fine, just get use to it.

- Wait 3 minutes (for cache to be generated).

- Viola! You've booted LineageOS and everything I wrote on the top should be working.

- After configuring the system, Install the Magisk APK file from the SD/USB stick we've prepared earlier.

- Run Magisk for the first time and make sure it is working (you should see a green "V").

- You may want to go to "about phone" and click the build 10 times again to re-activate "developer mode" and ADB.

- You may also want to install the terminal emulator app and to type "su" to check out that you get the Root privilages correctly.

Enjoy your new phone...