[GUIDE][GSI] Flashing GSI's with TWRP Fixes and Workarounds

rafyvitto

Senior Member
Aug 12, 2014
309
131
73
Follow these easy steps

Makes sure you have the GSI image on your sdcard before starting this, if your coming from lineage OS backup your data!

1.Unlock Bootloader

2. Boot into bootloader, check your slot if on B switch to A and vice versa.(fastboot set_active a/b) or you can stay in your current active slot up to you.

3.Download twrp and flash it (fastboot flash boot boot.img)

4.Boot back into boot loader and run "fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img" link with b11 vbeta.img

5.Boot into twrp,Format data or in bootloader run this command "fastboot format userdata" to get rid if encryption else gsi wont boot then, go to "install" navigate to your sdcard where you place the gsi , look for 'select image" then flash your gsi.

6.To flash gapps(skip if the gsi includes them) if your using a aosp gsi go to twrp then go into /wipe/advanced wipe/ select system on the options then "repair or change file system" then press on "resize file system" this will resize your system partiton back to 3.X gigs and allow you to flash gapps.

7.Then reboot to system

8. Your gsi "should" boot

Downloads:
http://www.mediafire.com/folder/ha8j5crsdmbmx/ZTE_Axon_10_pro_stuff

https://forum.xda-developers.com/pr...bled-device-development/gsi-havoc-os-t3930030 Havoc OS the gsi ive been using for some weeks.

Fixes and WorkArounds

Volte Fix for GSi

Install the volt-ims.apk as you would normally install an apk, download here http://www.mediafire.com/file/l0x88jx5zxyknhh/volte-ims.apk/file

For root( magisk) and twrp flash http://www.mediafire.com/file/de8tccz7gr93831/twrp-magisked-los-boot.img/file

To pass SafetyNet flash this http://www.mediafire.com/file/867xncq865vvtct/Universal-safetynet-fix-v3.zip/file

Also I created a template for what works on phhusson Treble experiments wiki:
https://github.com/phhusson/treble_experimentations/wiki/ZTE-Axon-10-Pro

CREDITS:
Unjustifieddev for his work on lineage, and the boot.img im using.
All the gsi creators
 
Last edited:
  • Like
Reactions: DrakenFX
Jun 4, 2013
33
0
0
cant escape bootloop hell and error 255

Follow these easy steps

Makes sure you have the GSI image on your sdcard before starting this, if your coming from lineage OS backup your data!

1.Unlock Bootloader

2. Boot into bootloader, check your slot if on B switch to A and vice versa.(fastboot set_active a/b) or you can stay in your current active slot up to you.

3.Download twrp and flash it (fastboot flash boot boot.img)

4.Boot back into boot loader and run "fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img" link with b11 vbeta.img

5.Boot into twrp,Format data or in bootloader run this command "fastboot format userdata" to get rid if encryption else gsi wont boot then, go to "install" navigate to your sdcard where you place the gsi , look for 'select image" then flash your gsi.

6.To flash gapps(skip if the gsi includes them) if your using a aosp gsi go to twrp then go into /wipe/advanced wipe/ select system on the options then "repair or change file system" then press on "resize file system" this will resize your system partiton back to 3.X gigs and allow you to flash gapps.

7.Then reboot to system

8. Your gsi "should" boot

Downloads:
http://www.mediafire.com/folder/ha8j5crsdmbmx/ZTE_Axon_10_pro_stuff

https://forum.xda-developers.com/pr...bled-device-development/gsi-havoc-os-t3930030 Havoc OS the gsi ive been using for some weeks.

Fixes and WorkArounds

Volte Fix for GSi

Install the volt-ims.apk as you would normally install an apk, download here http://www.mediafire.com/file/l0x88jx5zxyknhh/volte-ims.apk/file

For root( magisk) and twrp flash http://www.mediafire.com/file/de8tccz7gr93831/twrp-magisked-los-boot.img/file

To pass SafetyNet flash this http://www.mediafire.com/file/867xncq865vvtct/Universal-safetynet-fix-v3.zip/file

Also I created a template for what works on phhusson Treble experiments wiki:
https://github.com/phhusson/treble_experimentations/wiki/ZTE-Axon-10-Pro

CREDITS:
Unjustifieddev for his work on lineage, and the boot.img im using.
All the gsi creators
Lineage 17 is very broken right now, i would suggest flashing bliss 2.7 gsi, check my telegram channel for more info.

having trouble

Steps I followed:
(bootloader been unlocked but double checked to be sure)

Started from LineageOS 16 clean flashed based

booted rom made sure Debug was enable in settings did nothing else

booted to bootloader

>fastboot set_active a

>fastboot boot "D:\Android\Flash\Recovery.img"

In Recovery:
Installed Twrp zip
install zip DisableForcedEncryption.zip

-reboot bootloader

>fastboot flash vbmeta "C:\Users\chris\Downloads\ZTE_Flash\vbmeta.img"

>fastboot format userdata

boot to recovery:

Installed GSI Image of Havoc OS to System image

Flashing system image......
simg2ing '/sdcard1/Havoc-OS-v2.9-20190914-phhgsi_arm64_ab-offical.img' 'dev/block/bootdevice/by-name/system_a'process
ended with ERROR: 255

got creative because nothing i was doing was fixing the problem so i went into fast boot and
>fastboot flash system "location/of/Havoc.img"

now no longer can acess the recovery not even but fastboot boot img command and back in a bootloop hell

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot "D:\Android\Flash\Recovery.img"
downloading 'boot.img'...
OKAY [ 0.605s]
booting...
FAILED (remote: Failed to load/authenticate boot image: Load Error)
finished. total time: 0.640s

also i have no way to return to the original 10 pro rom whenever i flash it via the EDL tool with one of the US edl
Zips you provided i have boot loop but it gives me enough so i can have bootloader mode accessible but i have to rerun
the bootloader unlock. but flashing Lineage 16 seems to be the only thing to make my phone functional without giving it boot loop hell

ill try do it with bliss later but if there's anywhere i went wrong or how to solve the 255 let me know i really want to try out one of those GSIs


but im running on the US rom and using the TWRP for my pro from the fourms so i just really confused here idk if i could possibly give you anymore details
 
Last edited:
Jun 4, 2013
33
0
0
ok update i got it working
1. the 255 i fixed by

"
Reboot into recovery, TWRP
Go to the terminal in "Advanced"
Type cd /system to change the path to the system folder
Type rm addon.d to remove the addon file
Type exit to quit from the terminal
Now back to TWRP home, try backup/restore again, it should works.

Further adjustment: do check the use rm -f to format disk settings of TWRP, to make sure TWRP won't mess up the filesystem."

secondly what was ruining me was a big dumb mistake on my part you HAVE to do " --disable-verity --disable-verification flash vbmeta vbmeta.img" with the latest ADB tool kit I was using minimal adb and fastboot then got it to work
 

CuDem

Member
Aug 31, 2017
44
2
8
Ha Noi
In step 5,i can not boot into TWRP and phone displays ZTE crashdump mode.

Please help.

Thanks.

Edit: I fixed it and can flashed this rom but it has some bugs.
 
Last edited: