[G2 Android Development] IT Tech:
No 4G LTE on VS980 & ERROR 7 While Flashing 9.0 PIE

Thank You [MENTION=5821146]Lessmore[/MENTION] Thank You SO Much! Being that I troubleshoot for a living and in my sleep it seems I should have tried a different TWRP version like I have done in the past with previous Rom's but I figured I would post and see if someone had a quick solution and also it could help others. When I made the post regarding this topic I was using TWRP 3.2.3-0 and I did try using TWRP "3.1.0-1" So based on your post I decided to try TWRP 3.1.1-0 and BINGO!!!

I now have 4G LTE and the Rom is working. [ SO DO NOT USE TWRP "3.1.0-1" I CAN CONFIRM THIS WILL LEAVE YOU WITH NO 4G FLASHING 9.0 PIE ] I did however receive ERROR 7 while trying to flash the Rom so I did indeed have to edit the "updater script" which removed the ERROR 7 and allowed the Rom to install perfectly.

If you are experiencing ERROR 7 while trying to install the ROM try the method below:

Extract the ROM/build image (by using WinRAR, WinZip etc) and navigate to: "META-INF\com\google\android" and edit the "updater-script" (right click on the script and "open with" Notepad) and at the top of the script REMOVE the "assert" lines and below so that your first line in the script will be:

ui_print("Target: lge/g2_vzw/g2:5.0.2/LRX22G/15046001715f9:user/release-keys");

*****EDITED ONE DAY LATER***** My research pointed to removing ALL the "assert" lines however [MENTION=5821146]Lessmore[/MENTION] suggested to only remove the first four lines below. I have not tried this yet but keep it in mind if you are going to edit the "updater script" THANK YOU AGAIN [MENTION=5821146]Lessmore[/MENTION]

DELETE ALL THESE LINES:

assert(getprop("ro.product.device") == "vs980" || getprop("ro.build.product") == "vs980" ||

getprop("ro.product.device") == "g2" || getprop("ro.build.product") == "g2" ||

getprop("ro.product.device") == "galbi" || getprop("ro.build.product") == "galbi" || abort("E3004: This package is for device: vs980,g2,galbi; this device is " + getprop("ro.product.device") + ".");

assert(run_program("/sbin/sh", "-c", "aboot=`strings /dev/block/platform/msm_sdcc.1/by-name/aboot | grep mdss_mdp.panel=`; if [ -z "$aboot" ]; then exit 1; fi") == 0 || abort("Wrong Aboot version, please update!");

assert(g2.verify_trustzone("TZ.BF.2.0-2.0.0086","TZ.BF.2.0-2.0.0091") == "1");

Once again, when you remove the "assert" lines your first line in the script will be:

ui_print("Target: lge/g2_vzw/g2:5.0.2/LRX22G/15046001715f9:user/release-keys");

Place your cursor in front of this line and using your "Backspace" key and make sure this line is at the top left corner of the script. Then save the changes to the now edited "updater-script".

Right click the entire Aosp image folder that includes the now edited "updater-script" and "Add to zip". Make sure you create a ".zip" extension (not a .rar extension)

After removing these lines/editing and saving the "updater-script" and re-zipping the image it should install with no issues.

Boot into TWRP

1) Install Your Now Edited Pie 9.0 Rom.zip

2) Wipe Dalvik & Cache

3) Install Gapps

4) Wipe Dalvik & Cache

5) Reboot

Once you have your Rom and apps working and running to your liking, boot into TWRP and make an Image backup of your complete Rom. If anything ever goes wrong you can simply RESTORE your complete working Rom using TWRP. It also allows you to experiment and troubleshoot and as stated if anything goes wrong do a simple restore of your entire image.

BIG PROPS AGAIN TO [MENTION=5821146]Lessmore[/MENTION] THANKS MY FRIEND!!!