Skip to content

Instantly share code, notes, and snippets.

@marcorichetta
Last active February 23, 2020 18:29
Show Gist options
  • Save marcorichetta/756591f6c64afe0006f42d7df2f71891 to your computer and use it in GitHub Desktop.
Save marcorichetta/756591f6c64afe0006f42d7df2f71891 to your computer and use it in GitHub Desktop.

Revisions

  1. marcorichetta revised this gist Feb 23, 2020. 1 changed file with 9 additions and 3 deletions.
    12 changes: 9 additions & 3 deletions Havoc-LG.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    - [LG Developer page](https://developer.lge.com/resource/mobile/RetrieveBootloader.dev)
    - [TWRP Official images for H870](https://dl.twrp.me/h870/)
    - [Havoc OS official XDA post](https://forum.xda-developers.com/lg-g6/development/rom-havocos-v2-1-t3893668)
    - [NikGapps Downloads](https://nikgapps.github.io/downloads.html)
    - [BiTGapps official XDA post](https://forum.xda-developers.com/android/software/custom-bitgapps-android-t4012165) - The downloads can be found on [this Telegram group](https://t.me/bitgapps_downloads_official)
    - [Custom ROM install tutorial](https://youtu.be/nnSF-XM25Vc?t=59)
    - [How to install Magisk](https://www.xda-developers.com/how-to-install-magisk/)
    @@ -40,14 +41,19 @@ Luckily, there were some users with the same error and [the solution was to upda

    ### 2) Installing custom ROM

    - On TWRP, go to **Wipe** and slide to factory reset. :exclamation:**DO NOT REBOOT**
    - On TWRP, go to **Wipe** and slide to factory reset. :exclamation:**DO NOT REBOOT**:exclamation:

    - In case of the following **ERROR**: `Could not mount /data and unable to find crypto footer`:
    - Go to Wipe -> Format Data -> Then reboot again to **RECOVERY**
    - Now try again with **Factory Reset** and it should succeed.
    - [Source](https://android.stackexchange.com/questions/201709/twrp-failed-to-mount-data)

    - Go back, select **Advanced Wipe**, and select Dalvik, System, Data, Internal Storage and Cache. Swipe and :exclamation:**DO NOT REBOOT** again.

    - Go back to home menu, select **Install**, search the Havoc ROM (.zip)

    - After the installation has finished, :exclamation:**DO NOT REBOOT**, go back and flash BiTGapps selecting it and swiping again.
    - After the installation has finished, :exclamation:**DO NOT REBOOT**:exclamation:, go back and flash your Gapps selecting the zip and swiping again.

    - Finally select **Reboot System**, unselect both options (unless you want), and select **Do Not Install**.
    - Finally select **Reboot System**, unselect both options to install TWRP (unless you want), and select **Do Not Install**.

    - Now the phone should boot into Havoc OS.
  2. marcorichetta renamed this gist Dec 22, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install.md → Havoc-LG.md
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ Follow [this guide](https://forum.xda-developers.com/lg-g6/how-to/official-lg-g6
    #### TWRP Version troubleshooting

    **Official TWRP Version 3.3.1-0**
    1. After flashing twrp, rebooted following the steps below and after that, the TWRP screen was shown but the phone followed then booting the stock ROM.
    1. After flashing twrp, I rebooted the phone following the steps above and after that the TWRP screen was shown but the phone followed booting to the stock ROM.

    2. After looking on XDA, tried flashing the **twrp.img** offerred [here](http://downloads.codefi.re/rashed/g6/), which is version 3.1.1.0.

  3. marcorichetta revised this gist Dec 22, 2019. 1 changed file with 20 additions and 4 deletions.
    24 changes: 20 additions & 4 deletions Install.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    #### Useful links:
    - [ADB tools](https://www.xda-developers.com/install-adb-windows-macos-linux/)
    - [LG Developer page](https://developer.lge.com/resource/mobile/RetrieveBootloader.dev)
    - [TWRP for H870](https://dl.twrp.me/h870/)
    - [TWRP Official images for H870](https://dl.twrp.me/h870/)
    - [Havoc OS official XDA post](https://forum.xda-developers.com/lg-g6/development/rom-havocos-v2-1-t3893668)
    - [BiTGapps official XDA post](https://forum.xda-developers.com/android/software/custom-bitgapps-android-t4012165) - The downloads can be found on [this Telegram group](https://t.me/bitgapps_downloads_official)
    - [Custom ROM install tutorial](https://youtu.be/nnSF-XM25Vc?t=59)
    @@ -20,7 +20,23 @@ Follow [this guide](https://forum.xda-developers.com/lg-g6/how-to/official-lg-g6
    > After flashing TWRP
    > - Unplug the USB cable and power off the phone (**hold volume down + power button**). Continue holding until phone reboots...
    > - As soon as you see the LG logo on the screen.. let go of the power button then quickly press it again (**never letting go of volume down**). Keep holding until you see the Factory Reset screen.
    > - Click thru the factory reset screens using the volume buttons to move up/down and power button to select. Choose "Yes" twice until it boots into TWRP. Despite what the screen says it won't actually factory reset/wipe your data... as long as you've installed TWRP. If stock recovery is installed it WILL wipe data.
    > - Click thru the factory reset screens using the volume buttons to move up/down and power button to select. Choose "Yes" twice until it boots into TWRP. Despite what the screen says it won't actually factory reset/wipe your data... as long as you've installed TWRP. If stock recovery is installed it WILL wipe data.
    #### TWRP Version troubleshooting

    **Official TWRP Version 3.3.1-0**
    1. After flashing twrp, rebooted following the steps below and after that, the TWRP screen was shown but the phone followed then booting the stock ROM.

    2. After looking on XDA, tried flashing the **twrp.img** offerred [here](http://downloads.codefi.re/rashed/g6/), which is version 3.1.1.0.

    3. Result was at least successful to enter TWRP but when I wanted to install the ROM

    `error E3004: This package is for device: lg, lucye, ...; this device is .`

    Luckily, there were some users with the same error and [the solution was to update TWRP](https://androidforums.com/threads/i-cant-install-any-roms-now-error-7-solved.1130319/#post-7715232)

    4. Having TWRP already, I could update it by going to Install > Image > Twrp 3.3.1-0 (The latest official version)
    5. Then rebooted to recovery and, with the new TWRP version I installed Havoc and BiTGapps successfully.

    ### 2) Installing custom ROM

    @@ -32,6 +48,6 @@ Follow [this guide](https://forum.xda-developers.com/lg-g6/how-to/official-lg-g6

    - After the installation has finished, :exclamation:**DO NOT REBOOT**, go back and flash BiTGapps selecting it and swiping again.

    - Finally go to **Reboot**, select **System**, unselect both options (unless you want), and that's it.

    - Finally select **Reboot System**, unselect both options (unless you want), and select **Do Not Install**.

    - Now the phone should boot into Havoc OS.
  4. marcorichetta created this gist Dec 20, 2019.
    37 changes: 37 additions & 0 deletions Install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    # LG G6 H870AR - Havoc OS 3.0 (Android Q) with BiTGapps

    #### Useful links:
    - [ADB tools](https://www.xda-developers.com/install-adb-windows-macos-linux/)
    - [LG Developer page](https://developer.lge.com/resource/mobile/RetrieveBootloader.dev)
    - [TWRP for H870](https://dl.twrp.me/h870/)
    - [Havoc OS official XDA post](https://forum.xda-developers.com/lg-g6/development/rom-havocos-v2-1-t3893668)
    - [BiTGapps official XDA post](https://forum.xda-developers.com/android/software/custom-bitgapps-android-t4012165) - The downloads can be found on [this Telegram group](https://t.me/bitgapps_downloads_official)
    - [Custom ROM install tutorial](https://youtu.be/nnSF-XM25Vc?t=59)
    - [How to install Magisk](https://www.xda-developers.com/how-to-install-magisk/)

    ### 1) Unlocking bootloader

    Follow [this guide](https://forum.xda-developers.com/lg-g6/how-to/official-lg-g6-bootloader-unlock-t3614719) from XDA.

    :exclamation: **Pay attention to the process after step 9**

    [This part of the video](https://youtu.be/nnSF-XM25Vc?t=485) shows the process described below.

    > After flashing TWRP
    > - Unplug the USB cable and power off the phone (**hold volume down + power button**). Continue holding until phone reboots...
    > - As soon as you see the LG logo on the screen.. let go of the power button then quickly press it again (**never letting go of volume down**). Keep holding until you see the Factory Reset screen.
    > - Click thru the factory reset screens using the volume buttons to move up/down and power button to select. Choose "Yes" twice until it boots into TWRP. Despite what the screen says it won't actually factory reset/wipe your data... as long as you've installed TWRP. If stock recovery is installed it WILL wipe data.
    ### 2) Installing custom ROM

    - On TWRP, go to **Wipe** and slide to factory reset. :exclamation:**DO NOT REBOOT**

    - Go back, select **Advanced Wipe**, and select Dalvik, System, Data, Internal Storage and Cache. Swipe and :exclamation:**DO NOT REBOOT** again.

    - Go back to home menu, select **Install**, search the Havoc ROM (.zip)

    - After the installation has finished, :exclamation:**DO NOT REBOOT**, go back and flash BiTGapps selecting it and swiping again.

    - Finally go to **Reboot**, select **System**, unselect both options (unless you want), and that's it.