How To Guide GSI Install guide for Motorola G50 and 5G

Search This thread

TwelwePL

Senior Member
Apr 17, 2020
66
12
Nexus 7
Sony Xperia SP
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.
Unlocking bootloader will void your warranty and erase your data (If you have any important data you can backup in System settings or using LMSA tool, I am NOT responsible for any damage that you make. If you **** up you can always restore to stock by using LMSA tool from Motorola.
  1. 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.
  2. Download fastboot and adb tools from Motorola. Since some features like "fastboot oem get_unlock_data" dosen't work
  3. 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/
  4. After unlocking bootloader we can go to installing our GSI.
  5. 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"
  6. After doing that you need to reboot to fastbootd. You can do it by typing in fastboot "fastboot reboot fastboot"
  7. 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.
  8. Flash vbmeta.img to bypass AVB (Android Verified Boot.) : "fastboot --disable-verification flash vbmeta vbmeta.img" and wait until it says OK
  9. 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
  10. If we get "CANNOT RESIZE SYSTEM PARTITION" do this: "fastboot delete-logical-partition product_a" and "fastboot delete-logical-partition product_b"
  11. Now it's time to flash our GSI. To do that just type "fastboot --u flash system *name of your gsi*.img
  12. And wait until it flashes and DO NOT REBOOT!!!
  13. After successful flash we need to type "fastboot -w"
  14. 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

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

Attachments

  • Fastboot_Mot_V1.zip
    3.3 MB · Views: 519
Last edited:

TwelwePL

Senior Member
Apr 17, 2020
66
12
Nexus 7
Sony Xperia SP
Hello which GSI is the best
I'm thinking about lineageos a64 vb.
Is it ok?!
If you wanna clean Ui and smooth experience dotOS should be good for you.
Currently im using Pixel Experience 12 alpha and it works good. And im still working on nfc fix. If you have more questions feel free to ask me.

Also if you want to choose GSI you need an A/B version "arm64-ab".
 

walidmerdji

Member
Mar 4, 2015
27
36
If you wanna clean Ui and smooth experience dotOS should be good for you.
Currently im using Pixel Experience 12 alpha and it works good. And im still working on nfc fix. If you have more questions feel free to ask me.

Also if you want to choose GSI you need an A/B version "arm64-ab".
fastboot reboot fastboot
Error unknown target fastboot!
There is no such command on fastboot!
 

walidmerdji

Member
Mar 4, 2015
27
36
If your device is on turn it off.
Press Power + Volume down and hold till you get an android bot laying and then type fastboot reboot fastboot
Hi
I flashed 100s of phones using fastboot
I'm aware of how to boot to fastboot and using cmd
The thing is there is no such command for fastboot
Fastboot reboot bootloader takes you to the same window
However I managed to boot to fastbootd
Using phone terminal
su reboot fastboot
But again my phone is rooted (magisk) so I don't think if I can flash a GSI on a rooted phone
 
Last edited:

TwelwePL

Senior Member
Apr 17, 2020
66
12
Nexus 7
Sony Xperia SP
Hi
I flashed 100s of phones using fastboot
I'm aware of how to boot to fastboot and using cmd
The thing is there is no such command for fastboot
Fastboot reboot bootloader takes you to the same window
However I managed to boot to fastbootd
Using phone terminal
su reboot fastboot
But again my phone is rooted (magisk) so I don't think if I can flash a GSI on a rooted phone
I forgot to add that booting to fastbootd mode and flashing gsi with Magisk it will just simply bootloop. By flashing stock boot image gsis run flawlessly but HavocOS dosen't want to boot. I'll make a quick video how to do this if you need more context.
 

TwelwePL

Senior Member
Apr 17, 2020
66
12
Nexus 7
Sony Xperia SP
Hi
I flashed 100s of phones using fastboot
I'm aware of how to boot to fastboot and using cmd
The thing is there is no such command for fastboot
Fastboot reboot bootloader takes you to the same window
However I managed to boot to fastbootd
Using phone terminal
su reboot fastboot
But again my phone is rooted (magisk) so I don't think if I can flash a GSI on a rooted phone
Hi, again.
I've made a video that could help you flash gsi on your Moto G50
If you have more issues you can dm me on xda.
Thomas, TwelwePL.
 
  • Like
Reactions: Voytec83

dynia

Member
Jan 11, 2007
9
2
Moto G50
Hello, can I use this guide and the file provided to flash my Chinese version of this phone (ibiza_retcn). It has 8gb if ram, 128gb of storage and no NFC. Everything else seem the same (CPU is snap)
 

TwelwePL

Senior Member
Apr 17, 2020
66
12
Nexus 7
Sony Xperia SP
Hello, can I use this guide and the file provided to flash my Chinese version of this phone (ibiza_retcn). It has 8gb if ram, 128gb of storage and no NFC. Everything else seem the same (CPU is snap)
Yeah! Fastboot and vbmeta are correct for the ibiza-retcn. But if you mess something up you can revert back to stock using motorola's tool LMSA. Currently I have my moto g50 in repair center because i forgot that you cannot relock bootloader on motorola phones. And please be careful, if you'll be stuck on bootloop when you flashed some gsi, it isn't bricked just flash another. Some gsis dosen't always work on this phone. Tommorow I will prowide list of compatible gsis that will work on this phone.
 
  • Like
Reactions: dynia

Voytec83

Senior Member
Apr 25, 2017
451
627
Koszalin
Hi, again.
I've made a video that could help you flash gsi on your Moto G50
If you have more issues you can dm me on xda.
Thomas, TwelwePL.
Nice language in Your device 🙂👍
Thx for the guide, lacking TWRP or any custom recovery, could be a pain... However old-school methods are still 'a gold skills'.
See U around!
 

Voytec83

Senior Member
Apr 25, 2017
451
627
Koszalin
Hello,
Just a small FYI - Pixel Experience A12 boots and so far works OK as well 👍
If I manage to implement root solution, I will stay with it for a little bit longer.
Wish U all good day!
 
  • Like
Reactions: dynia

TwelwePL

Senior Member
Apr 17, 2020
66
12
Nexus 7
Sony Xperia SP
Hello,
Just a small FYI - Pixel Experience A12 boots and so far works OK as well 👍
If I manage to implement root solution, I will stay with it for a little bit longer.
Wish U all good day!
Thanks u too,
Currently my motorola is in repair because i bricked it. Now waiting for them to call me and pick my phone up. I'm happy that my guide worked for you!
For root like Magisk I had almost done Magisk but with "Task Failed Succesfully" by making to bootanimation and not booting. About In Februrary or March magisk should be working.
After texting motorola they release their MyUX A12 on Februrary If you're interested.

Wish that your phone with PE12 will work without any issues (only nfc :)
 

bejam

Senior Member
Dec 7, 2006
123
21
Update 14.02.2022
- Magisk is working with Pixel Experience 12 V401
Thanks very much for the guide. I now have Pixel Experience 12 V402 working.

I tired to get magisk working (patched boot.img in the magisk app then back to fastbootd and "fastboot flash boot magisk_boot.img" but it boot loops. I also tried flashing to both boot_a and boot_b.

Can you tell me how you got this working?
 

TwelwePL

Senior Member
Apr 17, 2020
66
12
Nexus 7
Sony Xperia SP
Thanks very much for the guide. I now have Pixel Experience 12 V402 working.

I tired to get magisk working (patched boot.img in the magisk app then back to fastbootd and "fastboot flash boot magisk_boot.img" but it boot loops. I also tried flashing to both boot_a and boot_b.

Can you tell me how you got this working?
When PE12 v401 got released the Magisk app appeared in app drawer and it just needed to reboot to setup magisk so i did that and Magisk worked flawlessly. It also worked on my A50 so i didn't patched the boot.img
 
Aug 19, 2019
9
1
many many many thanks for this thread. I was very suprised to see that this cheap smartphone had so little support from the bigger custom roms (like, for instance lineageos). I will try pixelexperience - can you please provide some help identifying which "codename" is hould download to flash my Motog50?

Thanks again
 

bigośnik

New member
Mar 28, 2022
3
0
Any Degoogled ROMs for this device? Currently I am on stock rooted with magisk but with many problems like GPS not working correctly and some motorola update reminders popping out. Any help Highly appreciated
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    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.
    Unlocking bootloader will void your warranty and erase your data (If you have any important data you can backup in System settings or using LMSA tool, I am NOT responsible for any damage that you make. If you **** up you can always restore to stock by using LMSA tool from Motorola.
    1. 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.
    2. Download fastboot and adb tools from Motorola. Since some features like "fastboot oem get_unlock_data" dosen't work
    3. 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/
    4. After unlocking bootloader we can go to installing our GSI.
    5. 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"
    6. After doing that you need to reboot to fastbootd. You can do it by typing in fastboot "fastboot reboot fastboot"
    7. 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.
    8. Flash vbmeta.img to bypass AVB (Android Verified Boot.) : "fastboot --disable-verification flash vbmeta vbmeta.img" and wait until it says OK
    9. 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
    10. If we get "CANNOT RESIZE SYSTEM PARTITION" do this: "fastboot delete-logical-partition product_a" and "fastboot delete-logical-partition product_b"
    11. Now it's time to flash our GSI. To do that just type "fastboot --u flash system *name of your gsi*.img
    12. And wait until it flashes and DO NOT REBOOT!!!
    13. After successful flash we need to type "fastboot -w"
    14. 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

    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.)
    1
    Hi
    I flashed 100s of phones using fastboot
    I'm aware of how to boot to fastboot and using cmd
    The thing is there is no such command for fastboot
    Fastboot reboot bootloader takes you to the same window
    However I managed to boot to fastbootd
    Using phone terminal
    su reboot fastboot
    But again my phone is rooted (magisk) so I don't think if I can flash a GSI on a rooted phone
    Hi, again.
    I've made a video that could help you flash gsi on your Moto G50
    If you have more issues you can dm me on xda.
    Thomas, TwelwePL.
    1
    Hello, can I use this guide and the file provided to flash my Chinese version of this phone (ibiza_retcn). It has 8gb if ram, 128gb of storage and no NFC. Everything else seem the same (CPU is snap)
    Yeah! Fastboot and vbmeta are correct for the ibiza-retcn. But if you mess something up you can revert back to stock using motorola's tool LMSA. Currently I have my moto g50 in repair center because i forgot that you cannot relock bootloader on motorola phones. And please be careful, if you'll be stuck on bootloop when you flashed some gsi, it isn't bricked just flash another. Some gsis dosen't always work on this phone. Tommorow I will prowide list of compatible gsis that will work on this phone.
    1
    Hello,
    Just a small FYI - Pixel Experience A12 boots and so far works OK as well 👍
    If I manage to implement root solution, I will stay with it for a little bit longer.
    Wish U all good day!
    1
    Thank you. Can you provide any link? Got this: https://github.com/phhusson?tab=repositories but can't fiuguere ot which repo is the right one
    https://github.com/phhusson/treble_experimentations and find the arm64-ab-floss in releases.