Flash Custom ROM on Motorola
Motorola is developer-friendly. Unlocking is straightforward, and fastboot works great. Here's how to get your custom ROM running.
Why Motorola is Easy
Motorola benefits:
- Official bootloader unlock program
- Standard fastboot commands
- Good developer support
- Clean stock Android base
Prerequisites
- Motorola device with unlockable bootloader
- Windows/Mac/Linux computer
- USB cable
- Motorola account
- ADB and Fastboot installed
Check Unlockability
Not all Motorola devices can be unlocked:
- Carrier variants often locked permanently
- "Unlocked" retail versions usually unlockable
- Check Motorola's site for your device
Step 1: Enable Developer Options
Settings → About Phone
Tap "Build Number" 7 times
Enter PIN if prompted
"You are now a developer!"
Step 2: Enable OEM Unlocking
Settings → Developer Options
OEM Unlocking → Enable
Confirm
⚠️ If grayed out: Device may not be unlockable.
Step 3: Get Unlock Code from Motorola
Register Device
1. Visit motorola-global-portal.custhelp.com
2. Sign in or create Motorola account
3. Navigate to Unlock Bootloader page
Get Unlock Key
1. Boot to fastboot mode:
adb reboot bootloader
Or: Power off, hold Power + Volume Down
2. Get device ID:
fastboot oem get_unlock_data
3. Copy the entire string (multiple lines)
Combine into one line (no spaces)
4. Paste into Motorola website
5. Accept terms
6. Receive unlock key via email
Unlock Key Email
Motorola emails your unlock key within minutes (usually). Check spam if not received.
Step 4: Unlock Bootloader
# Boot to fastboot
adb reboot bootloader
# Check connection
fastboot devices
# Unlock with key from email
fastboot oem unlock KEY_FROM_EMAIL
# Device will wipe and reboot
After Unlock
- Device factory resets
- Shows "Unlocked bootloader" warning at boot (normal)
- You can now flash anything
Step 5: Flash Custom Recovery
Download TWRP
Get from twrp.me for your device codename.
Flash Recovery
fastboot flash recovery twrp-xxx-device.img
Boot to Recovery
fastboot reboot recovery
# Or use button combo after power off
First TWRP Boot
- Swipe to allow modifications
- This makes TWRP permanent
Step 6: Flash Custom ROM
Download
- ROM for your device (check codename!)
- GApps package (if needed)
- Optional: Magisk for root
In TWRP
1. Wipe → Advanced Wipe
- Dalvik/Cache ✓
- System ✓
- Data ✓
- Cache ✓
(Don't wipe internal storage unless issues)
2. Mount → Enable MTP
Or already have files on device
3. Install → Select ROM.zip
4. Add more zips to queue:
- GApps
- Magisk (optional)
5. Swipe to flash all
6. Wipe cache/dalvik again
7. Reboot → System
Motorola-Specific Notes
Boot Warning
After unlock, you'll see:
"Your device has been unlocked..."
Warning screen for few seconds at every boot
This is normal and doesn't affect function.
Stock Firmware
If you need stock firmware:
- Lolinet mirror has Motorola firmwares
- XDA device forums
- Some ROMs include firmware
Device Codenames
| Device | Codename |
|---|---|
| Edge 40 | dubai |
| Edge 30 Ultra | eqs |
| G84 | bangkk |
| G54 | cancunf |
| Razr 40 | zeekr |
Find yours: Settings → About → look for codename
Troubleshooting
"Device Not Unlockable"
- Carrier-locked device
- Some regions restricted
- Not much you can do
Recovery Gets Replaced
Stock Motorola can replace recovery:
After flashing TWRP, immediately:
1. Boot directly to recovery
2. Flash Magisk before booting system
Bootloop After ROM Flash
1. Boot to TWRP
2. Try wiping data again
3. Reflash ROM
4. If persists, try different ROM
OEM Unlock Grayed Out
- Wait after first boot (some need days)
- Factory reset
- Connect to internet
- Try again
Relocking Bootloader
If returning to stock:
# ONLY on complete stock firmware!
fastboot oem lock
⚠️ Never relock with custom ROM - will brick!
Best ROMs for Motorola
| ROM | Notes |
|---|---|
| LineageOS | Most stable, wide support |
| crDroid | Good features |
| Evolution X | If available for device |
| ArrowOS | Minimal, good battery |
Check XDA for your specific device's options.
Summary
Motorola Flash Process:
1. Get unlock code from Motorola website
2. fastboot oem unlock YOUR_CODE
3. Flash TWRP recovery
4. Flash ROM + GApps in TWRP
5. Enjoy!
Motorola makes it relatively easy. Happy flashing!
Keywords: unlock motorola bootloader, motorola custom rom, flash motorola, motorola oem unlock, motorola twrp