Restore Stock ROM on Any Android Device
Sometimes you need to go back. Maybe custom ROMs aren't for you. Maybe you're selling your phone. Maybe you need warranty service.
Whatever the reason, here's how to restore factory firmware on every major brand.
Before You Start
Things to Know
- Data loss: All methods typically require wiping data
- Time required: 15-30 minutes depending on method and device
- Bootloader: May remain unlocked (brand-specific)
- Knox/Warranty: Some brands may still show modification history
What You'll Need
- Computer (Windows preferred for widest compatibility)
- USB cable (data cable, not charge-only)
- Stock firmware for your exact device model
- Brand-specific flashing tool
Samsung Galaxy
Samsung uses Odin and has the most reliable stock restore process.
Get Firmware
Sources:
Find your model: Settings → About Phone → Model Number (SM-XXXX)
Flash with Odin
1. Download and extract firmware
You'll get: BL, AP, CP, CSC files
2. Boot to Download Mode:
- Power off
- Hold Volume Down + connect USB
- Press Volume Up when warning appears
3. Open Odin (run as administrator)
4. Load files:
- BL → BL_xxx.tar
- AP → AP_xxx.tar (takes longest)
- CP → CP_xxx.tar
- CSC → CSC_xxx.tar (full reset)
or HOME_CSC_xxx.tar (keep some data)
5. Options:
- Auto Reboot: ON
- F. Reset Time: ON (optional)
- Re-Partition: OFF (unless specified)
6. Click Start
7. Wait for "PASS" (5-15 minutes)
8. Phone reboots to initial setup
Re-lock Bootloader (Optional)
⚠️ Only do this ON STOCK FIRMWARE
Settings → Developer Options → OEM Unlocking → Disable
-OR-
adb oem lock (in Download Mode)
Xiaomi/Redmi/POCO
Xiaomi devices use MiFlash for stock restore.
Get Firmware
Official: MIUI Downloads Community: Xiaomi Firmware Updater
Download Fastboot ROM (not Recovery ROM).
Flash with MiFlash
1. Download MiFlash from Xiaomi
2. Extract ROM to simple path (e.g., C:\xiaomi\rom)
Avoid spaces and special characters in path
3. Boot to Fastboot:
- Power off
- Hold Volume Down + Power
- Fastboot bunny appears
4. Connect USB and open MiFlash
5. Click "Select" and choose ROM folder
6. Select clean all option:
- "clean all" = Factory reset
- "save user data" = Keep some data (may not fix issues)
7. Click "Flash"
8. Wait 5-10 minutes
9. Phone reboots to MIUI setup
If MiFlash Fails
Try EDL (Emergency Download) mode:
- Usually requires authorization
- Search XDA for model-specific EDL guides
Google Pixel
Google makes this incredibly easy.
Method 1: Android Flash Tool (Easiest)
1. Go to flash.android.com in Chrome
2. Enable Developer Mode in browser
3. Boot phone to Fastboot:
- Power off
- Hold Power + Volume Down
4. Connect USB
5. Follow web interface:
- Select your Pixel
- Choose Android version
- Configure options
- Click Start
6. Wait 10-15 minutes
Method 2: Factory Images Manual
1. Download factory image from:
developers.google.com/android/images
2. Extract the downloaded file
3. Boot to Fastboot
4. Run flash script:
Windows: flash-all.bat
Mac/Linux: ./flash-all.sh
5. Wait for completion
6. Phone boots to setup
Re-lock Bootloader
# In Fastboot
fastboot flashing lock
# Confirm on device
OnePlus
OnePlus uses MSM Download Tool for full restore.
Get MSM Tool
- Official: OnePlus website (sometimes removed)
- Community: XDA device forums
Flash with MSM Tool
1. Install Qualcomm drivers
2. Open MSM Tool
3. Boot to EDL mode:
- Power off
- Hold Volume Up + Volume Down
- Connect USB while holding
4. MSM Tool detects device
5. Click Start
6. Wait 10-15 minutes
7. Relocks bootloader automatically
Note: MSM re-locks bootloader. You'll need to unlock again for custom ROMs.
Alternative: Local Upgrade
For less drastic restore:
1. Download Full OTA from OnePlus
2. Copy to phone storage
3. Settings → System → System Updates
4. Tap gear icon → Local Upgrade
5. Select the file
Motorola
Motorola uses Rescue and Smart Assistant.
Method 1: Rescue and Smart Assistant
1. Download RSD Lite or Rescue and Smart Assistant
2. Find firmware:
- Motorola Firmware site
- XDA device forums
3. Boot to Fastboot:
- Power off
- Hold Volume Down + Power
4. Load firmware in RSA/RSD
5. Flash and wait
6. Reboot
Method 2: Manual Fastboot
# Extract firmware package
# Flash each partition
fastboot flash partition_a file.img
fastboot flash partition_b file.img
# ... for each file
Generic Fastboot Method
For phones without special tools:
Get Stock Firmware
- Official manufacturer download
- XDA device forums
- Community firmware sites
Extract Images
Stock packages usually contain .img files:
- boot.img
- recovery.img
- system.img
- vendor.img
- etc.
Flash via Fastboot
# Reboot to bootloader
adb reboot bootloader
# Flash each partition
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash vbmeta vbmeta.img
# Wipe data
fastboot -w
# Reboot
fastboot reboot
Troubleshooting Stock Restore
"Device Not Found"
1. Try different USB port (USB 2.0 if possible)
2. Try different cable
3. Reinstall drivers
4. Disable antivirus temporarily
Flash Fails Midway
1. Don't unplug
2. Wait 5 minutes
3. Force reboot to download/fastboot mode
4. Try again
Bootloop After Stock Flash
1. Boot to recovery (if possible)
2. Do factory reset
3. Or reflash with factory reset option
Wrong Firmware Flashed
If you flashed wrong variant:
- Find correct firmware immediately
- Reflash while still in download mode
- Don't reboot to system with wrong firmware
What Stock Restore Does and Doesn't Fix
Does Fix ✅
- Soft bricks
- Boot loops
- System instability
- Corrupted system files
- Unknown baseband
- Most software issues
Doesn't Fix ❌
- Hardware damage
- Knox trip (Samsung - permanent)
- Tamper flags (varies by brand)
- Hardware fuse blows (rare)
- Physical damage
After Restoring Stock
Recommended Checks
1. Complete initial setup
2. Test phone calls
3. Test mobile data
4. Test WiFi
5. Test Bluetooth
6. Test camera
7. Check for OTA updates
If Everything Works
Decide next steps:
- Stay stock
- Re-unlock and try different ROM
- Sell or trade phone
If Issues Persist
- Might be hardware issue
- Try service center
- Provide proof of stock firmware attempt
Brand Comparison
| Brand | Tool | Difficulty | Bootloader After |
|---|---|---|---|
| Samsung | Odin | Easy | Stays current |
| Xiaomi | MiFlash | Easy | Stays current |
| Pixel | Web Flash | Very Easy | Stays current |
| OnePlus | MSM | Medium | Re-locks |
| Motorola | RSD | Medium | Varies |
Summary
Going back to stock
│
├── Samsung → Odin + Stock firmware
│
├── Xiaomi → MiFlash + Fastboot ROM
│
├── Pixel → flash.android.com (easiest)
│
├── OnePlus → MSM Download Tool
│
└── Others → Generic fastboot method
Stock restoration is always available as a safety net. Keep the tools and firmware handy, and you can always recover your device.
Keywords: restore stock android, go back to stock rom, restore factory firmware, unbrick android stock, flash stock samsung xiaomi pixel