moto g55 5g - TrebleDroid/treble_experimentations GitHub Wiki

Tested working images

Preparation

First, in order to avoid issues during initial setup:

  • Remove screen lock protection.
  • Remove your Google accounts.

Download the SDK Platform Tools.

Download and uncompress the image file:

# For `.gz` compressed files
gzip -d your_gsi_rom_of_choice.gz

# For `.xz` compressed files
unxz your_gsi_rom_of_choice.img.xz

Enable Development settings:

  • Go to Settings > About device.
  • Tap Build number rapidly until you see "You have enabled development settings!".

Enable OEM Unlocking:

  • Go back to the main menu.
  • Select System > Developer options.
  • Toggle on OEM unlocking.

Steps to install

Unlock bootloader:

fastboot oem get_unlock_data
# https://en-us.support.motorola.com/app/standalone/bootloader/unlock-your-device-c
fastboot oem unlock <key>

Flash:

# Enter fastbootd
fastboot reboot fastboot  # If this does not work: boot system and `adb reboot fastboot`

# Flash system
fastboot flash system your_gsi_rom_of_choice.img

# Enter bootloader
fastboot reboot bootloader

# Flash vbmeta
wget https://dl.google.com/developers/android/qt/images/gsi/vbmeta.img
fastboot flash vbmeta vbmeta.img

# Wipe userdata and metadata
fastboot -w

# Reboot
fastboot reboot

Steps to update (if OTA is not working)

# Enter fastbootd
fastboot reboot fastboot  # If this does not work: boot system and `adb reboot fastboot`

# Flash system
fastboot flash system your_gsi_rom_of_choice.img
fastboot reboot
⚠️ **GitHub.com Fallback** ⚠️