G52 Flashing Guide

By: @bastiandeux

Tip. Use desktop view if you're viewing in the phone for better view.

Note. This guide is in continuous development, found ANY mistake/doubt, report/ask immediately in the community.

Contact us on Moto G52 Community

Flashing custom recovery

Prerequisites

Boot into fastboot mode

You can do so by:

  1. Pressing and holding (volume down + power) buttons
  2. If you are connected to the phone via adb with the command
    adb reboot bootloader
    

Flash the custom recovery image

Using fastboot from your PC you can flash the recovery image using the command:

fastboot flash boot boot.img

Flashing additional partitions (If necessary for your recovery)

If your recovery needs additional partitions to work properly you can flash those now:

fastboot flash dtbo dtbo.img 
fastboot flash vendor_boot vendor_boot.img

You can now reboot into recovery

Using the command

fastboot reboot recovery

Flash custom ROM

Prerequisites

  • Have a Custom recovery already installed.
    If you dont have one see the Flashing custom recovery section of this guide.
  • Have a Micro SD Card, USB-OTG or PC with platform-tools installed.
  • Have the copy-partitions.zip downloaded.
  • Having your Custom ROM downloaded.

Enter recovery mode

  1. Pressing and holding (volume up + power) buttons
  2. If you are connected to the phone via fastboot with the command
    fastboot reboot recovery
    

Copying the firmware partitions

Info. Because of the a/b partition scheme of our device, the slot whe are not using could be unpopulated or it could contain much older firmware than the active slot, this could lead to various issues, like hard bricks, so to prevent this we are going to copy the firmware of our active slot to our inactive one

Note. The steps below only need to be run once per device.

To copy the firmware we flash the copy-partitions.zip on recovery
If you dont have Micro SD or OTG you can sideload this using adb on PC with the command (different recoveries have different steps to sideload, go watch a guide or ask in group)

adb sideload copy-partitions.zip

Flash custom ROM zip

  1. After copying firmware reboot into recovery again.
  2. Do a Format Data or Factory Reset (whichever is called in your recovery)
  3. Flash the zip that contains your custom ROM.
    If you are using adb you can sideload with the command
    adb sideload rom.zip
    

(Optional) Flash Gapps

Note. If you don’t want to install Google Apps, you can skip this.

Warning. If you want to flash Google Apps on your custom ROM, you MUST do this BEFORE booting into it for the first time.

  1. Download the Gapps package you wish to use.
  2. Reboot into recovery, DO NOT boot into the ROM as Gapps install will then Fail.
  3. Flash Gapps same as with the other steps, if you want to sideload you can with the command.
    adb sideload Gapps.zip
    

Sources:


This page is part of Moto G52 Community.

Edit

Pub: 10 Jul 2023 18:32 UTC

Edit: 10 Jul 2023 19:16 UTC

Views: 217