[BILLIE] [FASTBOOT] GSI Installer

Search This thread

Fedon

Senior Member
Aug 4, 2017
80
83
Prague

Instructions!​

Prerequisites!​

What's Needed?​

  1. ADB Reborn.
  2. A GSI that's smaller than 2.7GB that's for ARM64 and has AB partitions.
  3. Patience or a sense of humor.
  4. An unlocked bootloader.
  5. a cold drink.

Installation!​

  1. Extract the juicy contents to a preferred directory on your drive.
  2. Extract the GSI to the root of that directory and rename it system.img.
  3. Run the Flash-Device.bat.
  4. Follow the on-screen prompts.

Recommended Options!​

I recommend wiping the userdata partition when prompted and installing with the option 3, installing on both partitions.


Downloads!​

GSI Installer

ADB Reborn [XDA]

Treble-Enabled Device Development A/AB ROMS [XDA]

i try it on BE2029 and it work, but only with small rom (without gapps) - boot AOSP Android 12 OK
signal ok, wifi ok, bluetooth ok, fingerprint OK, sound OK, calling OK.... everything is ok :D

If i try flash rom with gapps then you can see error:

FAILED (remote: 'Not enough space to resize partition')​


Someone who can help me with this? :)

p.s. i try:
1) fastboot resize-logical-partition system_a 1810000000 - result was OK,
but still same error after i use "fastboot flash system_a system.img" (i cant use higher value bcs again no space)
2) fastboot delete-logical-partition product - result was OK,
but still same error after i use "fastboot flash system_a system.img"


p.s. 2 I FOUND SOLUTION! USE:
fastboot delete-logical-partition product_a

and then you can flash new system :)


So i Fix for you bat file :) Now you can flash what you need!
++ TWRP in previous version dont work for me... (cant boot) - so i use other twrp and now worked :)


for you:
-update v2 - all img files replace to BE2029
-update v3 -some bug fixes :)
-update v4 - new vbmeta and --disable-verification added



You can use AOSP Android 12:

Or Pixel Experience Android 12 (recomended -
bcs gapps included and work like charm. AOSP dont work now with gapps trust me):

root in Pixel Experience Android 12 is not possible now... i try many ways...
if you find way how to root this rom with magisk - tell me :D


Who need help PM me :)
And of crs THANK YOU KILLCMD :)
 
Last edited:

msi68

Member
Mar 30, 2021
14
1
Is it possible go back to stock rom if you delete a logical partition? Other question, will SafetyNet pass on these gsi roms and does it matter which oos version (10 or 11) you are running before installing?
 

Fedon

Senior Member
Aug 4, 2017
80
83
Prague
Is it possible go back to stock rom if you delete a logical partition? Other question, will SafetyNet pass on these gsi roms and does it matter which oos version (10 or 11) you are running before installing?
1) its possible go back to stock via EDL and msm tool (yes you can delete logical part). 2) Yes SafetyNet is OK (im using credit card with this gsi rom :) ). 3) You can have 10/11 does not matter
 

TRKARTAL

Senior Member
Jun 21, 2017
167
28
İstanbul

Fedon

Senior Member
Aug 4, 2017
80
83
Prague
Hello Fedon, have you tried SGSI on this device?
I saw that there is latest CalyxOS which is security oriented rom so seems good:


Also, do you know that which steps need to update or install another GSI?

Thanks.
Basic info for all GSI OS:
1) you have stock ROM
2) download GSI what you want
3) unlock bootloader
4) boot to fastboot
5) use command "fastboot reboot fastboot" (for boot to fastbootd)
6) use command "fastboot erase system_a"
7) use command fastboot --disable-verity --disable-verification flash vbmeta_system_a vbmeta_system.img
8) use command fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
9) use command "fastboot flash system_a GSIROMFILE.iso"
10) fastboot resize-logical-partition system_a 3897860000 (size is for BE2029 - see my comment bellow)
11) reboot to recovery and wipe all data "factory reset"
12) reboot into system - done
 
Last edited:
  • Like
Reactions: TRKARTAL

msi68

Member
Mar 30, 2021
14
1
I have a problem after booting to fastbootd. Phone not detect and commands not work. I have three language choice in my phone in fastbootd mode and I can manually select booting to fastboot. Fastboot works well. If I have understood right, logical partitions shows only fastbootd mode, not fastboot mode. Any ideas how to get fastbootd working?
 

user123123123

New member
Feb 22, 2022
2
0
I have a problem after booting to fastbootd. Phone not detect and commands not work. I have three language choice in my phone in fastbootd mode and I can manually select booting to fastboot. Fastboot works well. If I have understood right, logical partitions shows only fastbootd mode, not fastboot mode. Any ideas how to get fastbootd working?
 

Fedon

Senior Member
Aug 4, 2017
80
83
Prague
WoW :D i forgot:
fastboot --disable-verity --disable-verification flash vbmeta_system_a vbmeta_system.img
fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img

and this is bonus....:
fastboot resize-logical-partition system_a 3897860000
(size is for BE2029, but you can try it on other devices - if you see "you don't have enough space" use smaller number :) - this give you more space in system partition)

im sorry, but my head is full of my problems :D
 
  • Like
Reactions: TRKARTAL

TRKARTAL

Senior Member
Jun 21, 2017
167
28
İstanbul
So i want to try to get Android 11's stock images for mine phone's model number. There is Android 10; but i want to get from 11.
 

buraksahnnc

New member
Feb 10, 2022
3
0
i try it on BE2029 and it work, but only with small rom (without gapps) - boot AOSP Android 12 OK
signal ok, wifi ok, bluetooth ok, fingerprint OK, sound OK, calling OK.... everything is ok :D

If i try flash rom with gapps then you can see error:

FAILED (remote: 'Not enough space to resize partition')​


Someone who can help me with this? :)

p.s. i try:
1) fastboot resize-logical-partition system_a 1810000000 - result was OK,
but still same error after i use "fastboot flash system_a system.img" (i cant use higher value bcs again no space)
2) fastboot delete-logical-partition product - result was OK,
but still same error after i use "fastboot flash system_a system.img"


p.s. 2 I FOUND SOLUTION! USE:
fastboot delete-logical-partition product_a

and then you can flash new system :)


So i Fix for you bat file :) Now you can flash what you need!
++ TWRP in previous version dont work for me... (cant boot) - so i use other twrp and now worked :)


for you:
-update v2 - all img files replace to BE2029
-update v3 -some bug fixes :)
-update v4 - new vbmeta and --disable-verification added



You can use AOSP Android 12:

Or Pixel Experience Android 12 (recomended -
bcs gapps included and work like charm. AOSP dont work now with gapps trust me):

root in Pixel Experience Android 12 is not possible now... i try many ways...
if you find way how to root this rom with magisk - tell me :D


Who need help PM me :)
And of crs THANK YOU KILLCMD :)
Thank you for your support i installed pixel experience gsi android 12 with your script and its working great.
 

Artesna

Member
Sep 25, 2021
10
4
24
OnePlus Nord N10 5G
Nice script, I modified it a bit to flash the modified product.img that is small in size instead of deleting product.img so I can flash magisk (i bootlooped with magisk when product was removed). Also changed the firmware files to the newest OOS11 eu version after a few flashes, it works almost perfectly. It's cool that a noob with very little knowledge on scripts like me could modify it easily, great work.

Though for some reason my wifi and hotspot do not work with original or new firmware files, I've tries A LOT of different gsi's, android 11 and 12 both. Only some A11 ones boot or work properly, but all of the A12 ones and A12L ones work nicely. Currently using the newest CherishOS, it is pretty nice GSI. When I flash back the original system.img wifi works again. Does anyone have any ideas on how to fix this? It's not a huge deal because usb tethering and bluetooth tethering work both, but would be nice to get it working.

I included the modified product.img for anyone if they need it. If I understand right it should work for any OS.

EDIT: Also included the modified script that includes flashing the product_gsi.img. One other change is that in this the custom recovery needs to be named twrp.img. Otherwise it's the same as the one few posts above.
 

Attachments

  • product_gsi.img
    328 KB · Views: 0
  • Flash-Device_Modified.zip
    1.2 KB · Views: 0
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    GOOD DAY XDA'S FINEST!

    I recently got interested in the Generic System Image posts you guys were making, well honestly I wanted to make a script to restore my phone Mauronofrio style! It's uploaded to SourceForge and working pretty nicely. I used it to install Corvus OS on this little under supported underdog.

    Right now I'm waiting for the file to finish processing on SF.

    For Now Here's the OOS 10.5.11 script!
    Factory Image [Global Variant]

    UPDATE:
    Corvus 16.5 works ok, I can't say I notice anything not working.
    2

    Instructions!​

    Prerequisites!​

    What's Needed?​

    1. ADB Reborn.
    2. A GSI that's smaller than 2.7GB that's for ARM64 and has AB partitions.
    3. Patience or a sense of humor.
    4. An unlocked bootloader.
    5. a cold drink.

    Installation!​

    1. Extract the juicy contents to a preferred directory on your drive.
    2. Extract the GSI to the root of that directory and rename it system.img.
    3. Run the Flash-Device.bat.
    4. Follow the on-screen prompts.

    Recommended Options!​

    I recommend wiping the userdata partition when prompted and installing with the option 3, installing on both partitions.


    Downloads!​

    GSI Installer

    ADB Reborn [XDA]

    Treble-Enabled Device Development A/AB ROMS [XDA]
    2

    Instructions!​

    Prerequisites!​

    What's Needed?​

    1. ADB Reborn.
    2. A GSI that's smaller than 2.7GB that's for ARM64 and has AB partitions.
    3. Patience or a sense of humor.
    4. An unlocked bootloader.
    5. a cold drink.

    Installation!​

    1. Extract the juicy contents to a preferred directory on your drive.
    2. Extract the GSI to the root of that directory and rename it system.img.
    3. Run the Flash-Device.bat.
    4. Follow the on-screen prompts.

    Recommended Options!​

    I recommend wiping the userdata partition when prompted and installing with the option 3, installing on both partitions.


    Downloads!​

    GSI Installer

    ADB Reborn [XDA]

    Treble-Enabled Device Development A/AB ROMS [XDA]

    i try it on BE2029 and it work, but only with small rom (without gapps) - boot AOSP Android 12 OK
    signal ok, wifi ok, bluetooth ok, fingerprint OK, sound OK, calling OK.... everything is ok :D

    If i try flash rom with gapps then you can see error:

    FAILED (remote: 'Not enough space to resize partition')​


    Someone who can help me with this? :)

    p.s. i try:
    1) fastboot resize-logical-partition system_a 1810000000 - result was OK,
    but still same error after i use "fastboot flash system_a system.img" (i cant use higher value bcs again no space)
    2) fastboot delete-logical-partition product - result was OK,
    but still same error after i use "fastboot flash system_a system.img"


    p.s. 2 I FOUND SOLUTION! USE:
    fastboot delete-logical-partition product_a

    and then you can flash new system :)


    So i Fix for you bat file :) Now you can flash what you need!
    ++ TWRP in previous version dont work for me... (cant boot) - so i use other twrp and now worked :)


    for you:
    -update v2 - all img files replace to BE2029
    -update v3 -some bug fixes :)
    -update v4 - new vbmeta and --disable-verification added



    You can use AOSP Android 12:

    Or Pixel Experience Android 12 (recomended -
    bcs gapps included and work like charm. AOSP dont work now with gapps trust me):

    root in Pixel Experience Android 12 is not possible now... i try many ways...
    if you find way how to root this rom with magisk - tell me :D


    Who need help PM me :)
    And of crs THANK YOU KILLCMD :)
    1
    You'd have to use that unbrick tool for global to bypass the bootloader lock from TMO TBH.
    I actually found a bypass for flashing the international version in another thread on here.
    1
    I've tried flashing so many GSI's... have yet to have one boot. Best I get is stuck at boot animation