[Moto G50] TwelwePL:
A simple guide to installing custom GSI's on Motorola G50.

This works only on Qualcomm models that are from G series of Motorola.

Recomended flashing stock android 12 to your phone to get NFC functionality back and for bluetooth disconecting there is a workaround by going to Phh's treble settings and enabling "Force Disable A2DP offload"

What will you need?​

Motorola's fastboot tools (attached to thread.) Update these don't work now. Use latest version of fastboot.

Unlocked bootloader

blank vbmeta (Included with Fastboot.)

Generic System Image of your choice.

Download your GSI image. Because there isn't any TWRP recovery for G50 (ibiza) yet. We need to download GSI image with gapps like Pixel Experience or Lineage OS 19 with GMS.

Download fastboot and adb tools from Motorola. Since some features like "fastboot oem get_unlock_data" dosen't work

Unlock bootloader (If you have unlocked bootloader skip this step.). There's a guide on motorola site to help you unlock your bootloader. Here you have the guide https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a/

After unlocking bootloader we can go to installing our GSI.

Boot to bootloader. You can do it by turning off your phone and pressing at the same time Power + Volume down or using adb by "adb reboot bootloader"

After doing that you need to reboot to fastbootd. You can do it by typing in fastboot "fastboot reboot fastboot"

If you boot to a screen with bold red text written "fastbootd" we can go to erasing data and system partitions. But after we can do that we need to flash vbmeta.

Flash vbmeta.img to bypass AVB (Android Verified Boot.) : "fastboot --disable-verification flash vbmeta vbmeta.img" and wait until it says OK

If we did that we can erase system partition by typing in fastboot "fastboot erase system" If it says OK we can go to the next step

If we get "CANNOT RESIZE SYSTEM PARTITION" do this: "fastboot delete-logical-partition product_a" and "fastboot delete-logical-partition product_b"

Now it's time to flash our GSI. To do that just type "fastboot --u flash system *name of your gsi*.img

And wait until it flashes and DO NOT REBOOT!!!

After successful flash we need to type "fastboot -w"

And now you can reboot.

If you did everything and your device boots then congrats you did it. If you have questions or issues reply to this thread and I will do my best to help you!

And this is my first guide and I was scratching my head how to do that so yeah that took some time.

What roms are working?

As for midrangers some roms dosen't work fully, like HavocOS or AncientOS but i made a little list of compatible roms at current date (18.01.2022)

Pixel Experience 11

Pixel Experience 12

DotOS 5.2

AncientOS

CorvusOS

Phh's AOSP

Lineage OS

And other roms, list of these roms that work on this phone is available here

Generic System Image (GSI) list

Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.

github.com

Tested but not booting:

HavocOS (GSI discontinued.)

(Updating list until i'll get my phone back from repair.)

Known Issues

- All GSI that runs under Phh NFC does not work (Status: fixed check begining of the thread.)