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
- Unlocked Bootloader
If your bootloader isn't unlocked, see Unlock bootloader section of the Main G52 Guide. - Motorola USB drivers
Only needed if you use Windows. - Have platform tools already setup in your PC and some experience with CLI
- Your custom recovery of preference like TWRP by Hemanth Jabalpuri or LOS Recovery by Dhina_17
Boot into fastboot mode
You can do so by:
- Pressing and holding (volume down + power) buttons
- If you are connected to the phone via adb with the command
Flash the custom recovery image
Using fastboot from your PC you can flash the recovery image using the command:
Flashing additional partitions (If necessary for your recovery)
If your recovery needs additional partitions to work properly you can flash those now:
You can now reboot into recovery
Using the command
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
- Pressing and holding (volume up + power) buttons
- If you are connected to the phone via fastboot with the command
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)
Flash custom ROM zip
- After copying firmware reboot into recovery again.
- Do a Format Data or Factory Reset (whichever is called in your recovery)
- Flash the zip that contains your custom ROM.
If you are using adb you can sideload with the command
(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.
- Download the Gapps package you wish to use.
- Reboot into recovery, DO NOT boot into the ROM as Gapps install will then Fail.
- Flash Gapps same as with the other steps, if you want to sideload you can with the command.
Sources:
- LineageOS installation guide for G52
- The incredible devs in our community
- Trial and Error
This page is part of Moto G52 Community.