Skip to content

This is the fully explained guide to flash a compatible GSI to any of your device.

License

Notifications You must be signed in to change notification settings

mkr-infinity/Guide-for-flashing-GSI-to-any-device

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

Some important terms u need to know before flashing a GSI😊

{arm|a64|arm64}_{a|b}{v|g}{N|S}-{vndklite|secure|personal}
|               |    |    |     |
|               |    |    |     vndklite: For VNDKLite devices,
|               |    |    |               or for read-writeable /system on regular devices
|               |    |    |     secure: Superuser removed and system props spoofed,
|               |    |    |             for better chances of passing SafetyNet
|               |    |    |     personal: With personal mods, for reference
|               |    |    |
|               |    |    N: No Superuser
|               |    |    S: *Built* with PHH Superuser (app needed)
|               |    |    (Z): *Built* with eremitein's Dynamic Superuser (not offered here)
|               |    |
|               |    v: Vanilla, i.e. no GAPPS
|               |    g: With regular GAPPS
|               |    o: With Android Go GAPPS
|               |    (f): With built-in MicroG and FLOSS replacements of GAPPS (not offered here)
|               |
|               a: "A-only", i.e. system-as-system (deprecated since Android 12)
|               b: "AB", i.e. system-as-root
|
arm: ARM 32-bit (deprecated since Android 12)
a64: ARM 32-bit with 64-bit binder
arm64: ARM 64-bit

Another guide by KAIF for flashing a GSI image file to any of your ofcourse 😅 ANDROID Devices ios users regret 😂.(don't mind i bunked my English classes)


Warning

First check if your device is project treble supported or not by Treble Check App.
if it supporteed like this 😇 IMG_20240329_135907_489.jpg then only proceed to next. If project treble is not supported then don't try this.
Generally devices after Android 8,9 supports project treble.
but check it to confirm.

Samsung user please check before starting

  1. Check Compatibility: Ensure your device supports GSI and unlock bootloader.
  2. Download GSI: Get the compatible GSI file for your device.
  3. Install ADB and Fastboot: Set up Android Debug Bridge (ADB) and Fastboot on your computer.
  4. Backup Data: Back up important data on your device as flashing may erase data.
  5. Enable USB Debugging: Enable USB debugging and OEM unlocking in Developer Options on your device.
  6. Boot into Fastboot Mode: Power off your device, then boot into Fastboot mode by holding specific button combination.
  7. Connect Device: Connect your device to the computer via USB cable.
  8. Flash GSI: Use Fastboot commands to flash the GSI onto your device.
  9. Reboot: Once flashed, reboot your device.
  10. Set up Device: Set up your device as required.

Tip

Make sure you follow each step carefully.
just keep patient and be ready.

HOW TO FLASH A GSI

  1. Get Platform Tools

  2. Get vbmeta.img from Stock ROM or Google

  3. Get desired GSI

  4. Boot into bootloader mode:

adb reboot bootloader
  1. Flash the vbmeta you got from step two
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

👆Here you can remove vbmeta.img and drag and drop the vbmeta file.

Tip

You can skip this👆 process.

  1. Boot into fastbootd
fastboot reboot fastboot

Tip

NOT ALL DEVICES HAVE FASTBOOTD MODE.
SO U CAN PROCEED WITH FASTBOOT MODE IF THIS COMMNAD NOT WORK.

  1. Flash GSI
fastboot flash system GSI-FILENAME.img

👆Here also remove GSI-FILENAME.img and drag and drop the gsi .img file
After 3 minutes or 5 minutes later you can see count as 1/13 or like this👇👇👇
then wait untill this process complets.Fastboot flash system system.img.png

Note

After this commnad this will take approx. 5 minutes to show something like 1/13 or 1/something .
please be patient untill all completed , Do not press any button and anything just to avoid errors.
this process takes 15 or 20 mintes to complete the system flash.

  1. Go back to recovery, command fastboot reboot recovery then perform "Factory reset / Wipe data"

  2. Reboot and enjoy😇🥳.

Tip

FIRST USE OFFLINE SET-UP MODE😇.

SAMSUNG DEVICES

Vbmeta must be flashed trough Odin/Heimdall and isn't required to boot for some devices.

Requires patched recovery to access fastbootd https://github.com/Johx22/Patch-Recovery

Flash it through Odin/Heimdall. Boot it and select enter fastboot (fastbootd)

All commands used for..💁‍♂️

adb reboot bootloader
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot reboot fastboot
fastboot delete-logical-partition product 
fastboot flash system system.img

👆I am writing these commands for whom who knows it very well not for everyone.

You can join these telegram groups for help.

Lenovo TB-X306X 👈 join this for GSI and suppor.
Premium MODZ 👈 join this for premium apk for free.

Connect with me🇮🇳.

About

This is the fully explained guide to flash a compatible GSI to any of your device.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published