[GUIDE] GSI for US V40

Ainz_Ooal_Gown

Senior Member
Feb 3, 2013
3,841
1,716
0
26
Los Osos
Greetings everyone, i go by the name Ainz Ooal Gown. Here i bring you the a guide to flash GSI roms to your V40

Fist things first if you try this and end up with a brick or your device transforms and tries to take over the world; it's not my fault you messed up not me. So just read all of this thread not just the O.P to, and get out of a bind if you reply with "the thread is too long i wont read it please help" don't expect anything short of "there's a search bar use it"

Requirements
Unlocked bootloader
TWRP

Installation guide:
  1. You need to download Lineage OS 16 by Xsavi i recommend the build "lineage-16.0-20190914-UNOFFICIAL-judypn(More LG Stuff use this).zip". Put into your external SD
  2. You need to download a GSI from here https://forum.xda-developers.com/project-treble/trebleenabled-device-development i personally recommend Havoc OS 2.9 and Resurrection Remix 7.0 download the Arm 64 A/B Variant and what ever recommended Gapps Package is linked.
  3. Extract the GSI you downloaded and copy the extracted Folder into your external SD.
  4. Boot into TWRP and check your active Slot in the reboot menu.
  5. Flash LOS 16 Install -> select the ROM zip -> tick Inject TWRP -> Swipe for install (if you're on a, it will be installed to b, and vice versa).
  6. Go to and select Reboot Menu -> select your inactive slot -> select recovery and you should reboot into your inactive slot.
  7. Go to and select Wipe Menu -> Swipe to factory reset
  8. Select install and navigate to your downloaded GSI -> select install image -> select the GSI image -> select the bubble next to "System Image" -> Swipe to Custom Flash.
  9. Select the wipe menu -> select advanced wipe -> select the square next to "System" -> select "Repair or Change File System" -> select Resize File System -> Swipe to Resize.
  10. Install any Gapps and/or Magisk and reboot.
You will probably have to add your Carriers APN settings for Data and MMS to work.
Thanks to: @SGCMarkus @Xsavi
 
Last edited:

scrubber

Senior Member
Aug 4, 2008
128
383
0
Moscow
Hello here i will be uploading the instructions for running GSI Treble Oreo and Pie roms.
At the moment i'm making sure everything is working before i upload those instructions and links please be patient last thing i want to do is make you device a fancy brick.
Hello!
Maybe you have a dump system or stock firmware for twrp?
Or maybe there is an instruction for unpacking the kdz firmware :confused:
 

grandomegabosses

Senior Member
Dec 29, 2008
456
11
48
Troy, OH
www.twitter.com
When I flash LOS16 into my inactive B slot, I am unable to boot into TWRP on slot B because there's some Lineage recovery in place and no option to flash anything and the sideload option doesn't work; I am checking inject TWRP. Am I missing something?
 

Ainz_Ooal_Gown

Senior Member
Feb 3, 2013
3,841
1,716
0
26
Los Osos
When I flash LOS16 into my inactive B slot, I am unable to boot into TWRP on slot B because there's some Lineage recovery in place and no option to flash anything and the sideload option doesn't work; I am checking inject TWRP. Am I missing something?
If you injected TWRP and made sure it was checked it should've given you TWRP in slot b I'll pm you with what to do give me a sec
 

xPreSiDenT

Senior Member
Aug 14, 2007
384
11
0
Boston
On step 9, I get a failed error on resize. The error is:

Code:
/sbin/e2fsck -fp /dev/block/bootdevice/by-name/
system_b process ended with ERROR: 1
Unable to repair system
Anyone know how to fix this?

EDIT: I tried to install gapps after this, but it failed because of insufficient space. Went to check the /system partition size, and it only has 65MB free out of 1637MB. Is there a way to restore the original partition size and start from scratch?
 
Last edited:

Ainz_Ooal_Gown

Senior Member
Feb 3, 2013
3,841
1,716
0
26
Los Osos
On step 9, I get a failed error on resize. The error is:



Anyone know how to fix this?

EDIT: I tried to install gapps after this, but it failed because of insufficient space. Went to check the /system partition size, and it only has 65MB free out of 1637MB. Is there a way to restore the original partition size and start from scratch?
You have 2 things to try, 1st. resize again and see if the error happens again... 2nd. Reboot recovery and try once more I've had this happen to me.
 

xPreSiDenT

Senior Member
Aug 14, 2007
384
11
0
Boston
You have 2 things to try, 1st. resize again and see if the error happens again... 2nd. Reboot recovery and try once more I've had this happen to me.
I already booted into the rom. Would that affect anything? I'm gonna try anyway.

Edit: It worked. Gapps flashing now. Hopefully all will be well.
 
Last edited:

Ainz_Ooal_Gown

Senior Member
Feb 3, 2013
3,841
1,716
0
26
Los Osos
I already booted into the rom. Would that affect anything? I'm gonna try anyway.

Edit: It worked. Gapps flashing now. Hopefully all will be well.
You can always factory reset after flashing gapps to get all your stuff synced and what not...or just add your account after and it may tell you to finish setting up.
 

cavcagamgee

Member
Oct 17, 2019
21
2
0
Is there a way to remove the GSI without reflashing the whole thing? RR is having an issue with the camera that is still in development. Is there any way to revert to the LOS 16 without losing my data?