[ROM][PIE][GUIDE] How to install pie (Stock + Treble AOSP)

LameMonster82

Senior Member
Apr 15, 2017
583
319
0
Hello, if you want any kind of pie you came to the right place! This is a guide of how to install Stock Pie and AOSP.
Because of that this guide will be splitted into 2 Parts.

Please read everything written down and on the second post before asking questions!

Before we do anything i have to explain some stuff:
  • I am not responsible for any damages that may occur during the installation or after it. I dont have every G7 on the world to test it so something unexpected can happen. Still if something is not clear ask here for help.
  • Stock pie will work on almost every model (G710TIM and G710TM (Anything related to T-Mobile) models are not supported) while AOSP works only on phones with unlocked/unlocakbe bootloaders (such as G710EM) so please don't ask if your phone is supported.
    Note: for models from ATT, Cricket, Sprint, BoostMobile, VirginMobile, AIO and Tracfone wont be able to go back to their stock firmware because ther is no KDZ or Dump available. Probably in the future there will be dumps of those models but for now there is no.
  • Can't guarantee that every feature will work on Stock pie or AOSP.
  • VoLTE and VoWiFi do not work. With European KDZ/Version it should work but need feedback on it please.

Join our Telegram Group here:
>> t.me/lgg7thinqmain <<

Everything must be done on Windows.
Do a backup because your data will be completly wiped from your phone (including your Internal Storage)!
  • 1st How to install Stock European pie.
    Step 0: Make sure that you have read everything that was written above. Also please uninstall any previous version of LGUP if presented.
    Step 1: Everything that you need:

    Step 2: After downloading everything install:
    • The USB Drivers (LGMobileDriver_WHQL_Ver_4.2.0.exe)
    • Then LGUP (LGUP_Dev_Frame_Ver_1_15_0_6.msi)

    Step 3: Turn off your phone and then:
    • Hold volume up
    • Plug your USB Cable to your phone while holding volume up (The usb must be connected to your pc)!
    Now the phone should look like this.
    Step 4: Open the device manager
    • There will be a tab with the name "Ports"
    • Open it and it shoud look lime this.



    Note: If you dont see it or there is a problem with is. please try reinstalling the drivers from before.

    • At the end it should say COMX.
    • Remember that number. We will need it in the next step.

    Step 5: Time to install pie!
    • Go to
      Code:
      C:\Program Files (x86)\LG Electronics\LGUP
    • Extract the "common" folder from LGUP dll (LGUP_Common.zip) inside the folder "model".
    • Then go back to C:\Program Files (x86)\LG Electronics\LGUP (if you're not already there)
    • Hold the shift key and right click on a free space.
    • Choose to open a command prompt.
    Note: If you're on windows 10 it will be called a PowerShell. After oppening it type cmd and hit enter.
    • After that type
      Code:
      lgup_cmd.exe com[B]X[/B] "C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_Common.dll" [KDZ Loctation]
    • X = Your number from step 4 (e.g. com3)
    • [KDZ Location] = Your full path to your European Pie KDZ File (G710N20c_00_LGU_KR_OP_0107.kdz)

    After that the phone should start being flashed and after a bit it should boot to European pie
  • 2nd How to install AOSP Pie.
    A gentle reminder: This part is only for G710EM users that want AOSP!​

    [*]
    We have custom ROMs now. Please use them as they have G7 specific features and all bugs fixed​
    !​
    No other model is supported


    Step 0: Do Part 1 (installing european pie)
    • You cant skip it!
    Step 1: Download those files:

    https://drive.google.com/open?id=1RSeQP78DKBdberhQEaai7frP1IXRX5QA (vendor_gsi.img)
    https://drive.google.com/open?id=1bJn6oQCeV3HfBDfch9wts1HCQeHWEuxz (TWRP_RealPie.img)
    https://drive.google.com/open?id=1IYDI5lL_TS__BrBvzmyptKFBAGEXPJGI (vbmeta.img)
    https://dl.google.com/android/repository/platform-tools-latest-windows.zip (android-sdk)

    Step 2:Reboot to fastboot
    • To reboot to fast boot turn off the phone.
    • Hold volume down.
    • Plug a USB Cable while still holding volume down (the usb hast to be pluggend to a pc)!
    • You should be booted into fastboot.

    Step 3: Extract android-sdk zip (platform-tools_r28.0.2-windows.zip) to your desktop (or a place where you will remember).
    • After that go inside the extracted folder
    • Hold shift and rick click on a free space
    • Choose to open a command prompt
    Note: If you're on windows 10 it will be called a PowerShell. After oppening it type cmd and hit enter.
    • After that type
      Code:
      fastboot --set-active=a flash boot_a [TWRP_RealPie.img full path]
    • TWRP_RealPie.img full path = the full path of your boot image (in this case TWRP_RealPie.img)
    • Also type
      Code:
      fastboot --disable-verity --disable-verification flash vbmeta_a [vbmeta_a.img full path]
    • vbmeta_a.img full path = full path of your vbmeta.img that you downloaded
    • And at last but most importantly type
      Code:
      fastboot flash vendor_a [vendor_gsi.img full path]
    • vendor_gsi.img full path = full path to vendor_gsi.img that you downloaded

    Step 4:Choose a rom!
    • Its time to choose a rom. You can use AOSP from phhusson or something else like LineageOS or Resurrection Remix or something else
    • https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list (not every rom will work but most do)
    • The only thing that you have to watch out is that the rom must have arm64 and ab in its name (e.g. system-arm64-ab-xxx)
    • After downloading it (and extracting it if needed) use
      Code:
      fastboot flash system_a [your system path]
    • your system path = full path to your system image of choice

    Step 5: Reboot using
    Code:
    fastboot -w reboot
    • This will wipe data and restart the phone to your fresh installed custom rom
    Feel free to ask questions!

    Credit and a lot of thanks to:
    • @Sellerie_ for his amazing help with TWRP and custom system overlay for the G7
    • @J0SH1X for getting AOSP to work on oreo and pie firmware and also his awesome work on TWRP
    • @phhusson for his work on Treble AOSP and for helping J0SH1X and me to get it to work
    Also i did this at 12:00 so there will be some grammer mistakes
 
Last edited:

LameMonster82

Senior Member
Apr 15, 2017
583
319
0
To fix vibration and enable ARCore on AOSP please install this zip as a magisk module in Magisk manager
https://drive.google.com/open?id=1TTM2m4BwRRebaJn8qxrNo5x-pKLYrmie

Current AOSP Bugs:
  • LED not working
  • Occasional slowdowns (nothing major and clearing recent apps will fix the problem)
  • The display will turnn off for 0.5 secons when the phone gets unlocked (only when AOD is not active)

Current Stock/European Pie Bugs:
  • VoWiFi and VoLTE not working. It should work with European KDZ/Version but need feedback on it.
  • Dual sim not supported

Code:
Keep in mind that i can't do anything about Stock/European pie bugs
 
Last edited:

oliake

Senior Member
Mar 16, 2017
74
17
0
Works great with the lastes apk from Arnova
Cool, thanks! :) Another question, i'm trying to flash korean version of pie but when I try to flash it, It looks like this. And yes I chose the right port which is 4 in my case but it still says ''COM0''
Do you know how to fix this? Thanks!

Selected Port : COM0
SW Version :
Model Name :
Can't get device SW version
Download Error
 

LameMonster82

Senior Member
Apr 15, 2017
583
319
0
Cool, thanks! :) Another question, i'm trying to flash korean version of pie but when I try to flash it, It looks like this. And yes I chose the right port which is 4 in my case but it still says ''COM0''
Do you know how to fix this? Thanks!

Selected Port : COM0
SW Version :
Model Name :
Can't get device SW version
Download Error
It seems that you didnt extract the zip correctly.
 

tweteks

Senior Member
Oct 6, 2012
52
3
28
Guys I got error "[SW PATH] is null"

after lgup_cmd.exe com5 (in my case) C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_Common.dll C:\Program Files (x86)\LG Electronics\LGUP\model\common\G710N20c_00_LGU_KR_OP_0107.kdz
 

LameMonster82

Senior Member
Apr 15, 2017
583
319
0
Guys I got error "[SW PATH] is null"

after lgup_cmd.exe com5 (in my case) C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_Common.dll C:\Program Files (x86)\LG Electronics\LGUP\model\common\G710N20c_00_LGU_KR_OP_0107.kdz
By kdz location i mean where you downloaded your kdz.
Also i forgot to add quotes for the path so i guess thank you for showing it to me
In your case the command should be:
Code:
 lgup_cmd.exe com5 "C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_Common.dll" [KDZ Path like your download folder or the place where you downloaded the kdz file]
For example
Code:
lgup_cmd.exe com5 "C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_Common.dll" "D:\MyFiles\Desktop\LG G7 Files\G710NO20c_00_OPEN_KR_OP_0107.kdz"
 

oliake

Senior Member
Mar 16, 2017
74
17
0
It seems that you didnt extract the zip correctly.
Problem was with the DLL like you said, but it was that Powershell wouldn't find it so in the command where it says model\common\LGUP_Common.dll, I erased LGUP_Common.dll from the code and manually drag the DLL file from the folder and drop it into code instead, if you understand what I mean! So the code would look something like this instead lgup_cmd.exe comX "C:\Program Files (x86)\LG Electronics\LGUP\model\common"C:\Program Files (x86)\LG Electronics\LGUP\model\LGUP_Common.dll" and that worked and now I have pie installed on my phone!

Thank you so much for the tutorial, it was so easy to follow! :D
 

tweteks

Senior Member
Oct 6, 2012
52
3
28
Next problem LameMonster82

C:\platform-tools>fastboot --set-active=a flash boot_a TWRP_RealPie.img
Sending 'boot_a' (65536 KB) OKAY [ 1.682s]
Writing 'boot_a' OKAY [ 0.360s]
Setting current slot to 'a' OKAY [ 0.016s]
Finished. Total time: 2.262s

C:\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta_
a
unknown partition 'vbmeta_a'
fastboot: error: cannot determine image filename for 'vbmeta_a'
 

LameMonster82

Senior Member
Apr 15, 2017
583
319
0
Next problem LameMonster82

C:\platform-tools>fastboot --set-active=a flash boot_a TWRP_RealPie.img
Sending 'boot_a' (65536 KB) OKAY [ 1.682s]
Writing 'boot_a' OKAY [ 0.360s]
Setting current slot to 'a' OKAY [ 0.016s]
Finished. Total time: 2.262s

C:\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta_
a
unknown partition 'vbmeta_a'
fastboot: error: cannot determine image filename for 'vbmeta_a'
You forgot to put vbmeta_a.img full path at the end
Example:
Code:
fastboot --disable-verity --disable-verification flash vbmeta_a[B] "D:\MyFiles\Desktop\LG G7 Files\vbmeta_a.img"[/B]
 
  • Like
Reactions: tweteks

tweteks

Senior Member
Oct 6, 2012
52
3
28
Guys I got same bug on HavocOS, Resurrection Remix n Pixel Dust - led notificator always blinking (light blue color) :(
Any ideas to solve the problem?
Anybody else got same?

Options to disable LED inside ROMs isnt working.
Start blinking with ROM's logo show up.
 
Last edited:

LameMonster82

Senior Member
Apr 15, 2017
583
319
0
Guys I got same bug on HavocOS, Resurrection Remix n Pixel Dust - led notificator always blinking (light blue color) :(
Any ideas to solve the problem?
Anybody else got same?

Options to disable LED inside ROMs isnt working.
Start blinking with ROM's logo show up.
As I said it's a bug in AOSP that is ultra hard to fix. You just have to deal with it
 

Inerent

Senior Member
Oct 6, 2017
1,024
363
93
39
Bucharest


---------- Post added at 07:55 PM ---------- Previous post was at 07:51 PM ----------

You can try reading the thread but yeah it does
1. I have read the thread, but I'm a little suspicious. I just don't want to break my imei, partitions or important things.
2. Is your method different than flashing a firmware with lgup, or the power shell command does something else than normal flashing with lgup?
Thx for your tutorial.
P. S. I want to go for the stock Korean firmware but as I said I am afraid of breaking things like repartitioning the storage, loosing imei and efs folder, serial numbers, drm keys etc. I'm also on dualism, will that work?
 
Last edited: