Android devices can have different designs, so there is no generic command or set of instructions for flashing a GSI to apply to all devices. Specially for Xperias am i writing this Guides for You. So please read carefully...
1. Ensure that You have the following before You start:
To Start:
Additional:
1. Ensure that You have the following before You start:
- Latest Fastboot Version (Or the used fastboot commands may not work)
- A Method for disabling Android Verified Boot (Part of the Guide)
- An unlocked Bootloader State (Official Instructions HERE)
To Start:
- Download the Basic Package from Google: https://developer.android.com/topic/generic-system-image/releases
- Download the AOSP Vendor Package from Sony: https://developer.sony.com/develop/open-devices/downloads/software-binaries
- Open up the Zip Files and place the 3 included Images on Your fastboot destination
- Boot Your Device into Fastboot:
Code:Turn off Your Device and hold VolumeUP while connecting via USB to a PC or use ADB to reboot to fastboot
- Disable the verified booting (AVB) by flashing vbmeta.img:
Code:fastboot --disable-verification flash vbmeta vbmeta.img
- Flash the Vendor to the Primary A Slot OEM:
Code:fastboot flash oem_a nameofthesonyoemimage.img
- Repeat to flash to the B Slot OEM
Code:fastboot flash oem_b nameofthesonyoemimage.img
- Flash the GSI to the Primary A Slot System:
Code:fastboot flash system_a system.img
- Repeat to flash to the B Slot System
Code:fastboot flash system_b system.img
- Wipe the user data and clear the data from other necessary partitions (for example, user data and system partitions):
Code:fastboot -w
- Reboot:
Code:fastboot reboot
Additional:
- You can use any Android 9+ GSI out of the XDA Forum here: https://forum.xda-developers.com/project-treble/trebleenabled-device-development
- To get Magisk/Root; just patch Your actual Kernel with the Magisk Manager App and flash the Boot Image together with the GSI (Example below)
- Patched Boot Image for Xperia 5 Users: https://forum.xda-developers.com/xp...isk-v20-3-patched-boot-image-android-t4033547
Last edited: