Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 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.

Connect with me๐Ÿ‡ฎ๐Ÿ‡ณ.

Image

๐Ÿพ Support My Work ๐Ÿฅณ

If you find my work valuable, consider supporting me through the following platforms.
Your contributions help me continue developing and maintaining open-source projects!.


๐ŸŒŸ Crypto Donations ๐Ÿ˜‡

  • Image

TON (The Open Network)

UQDTX8QV6csepk9U1-dGzhoPfE4MUZTzAjjVE6YVIKVWuVj1

Send Toncoinโ˜๏ธโ˜๏ธ or anything based on TON to support my projects on The Open Network (TON). Image


  • Image

Etherium

 0x56dC57B9D03C6b947e49a28edC7e18FBe383365a

Send Anything(Token/NFT) on Etherium Chain.

Image

  • Image

Solana

9JEjaDCfe9esp6ECpyww7Gm3NUcieiy7hMU1pKMQVWxP

Send Anything(Token) In Solana Chain.

Image


rainbow

๐Ÿ’– Support Via Telegram

Image

Note: Please include your GitHub username when donating NFTs so I can thank you!

rainbow

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