If your Google Pixel or Pixel XL suddenly shows “No service,” “Not registered on network,” or a blank IMEI in Settings, the device’s IMEI (International Mobile Equipment Identity) number has likely become corrupted or lost. This guide walks you through safe, software-based methods to restore the IMEI without sending the phone to a repair shop. You’ll need a computer, a USB cable, and about 30 minutes. No root access or paid tools are required for the first two methods; the third uses a free tool but requires an unlocked bootloader.
What You’ll Need
- Google Pixel or Pixel XL with the IMEI problem
- Windows PC (or Mac with some adjustments)
- USB data cable (the one that came with the phone works)
- Latest Google USB drivers (Windows) or Android File Transfer (Mac)
- ADB and Fastboot tools installed on your PC
- Stock factory image for your exact Pixel model and Android version (from Google’s developer site)
- Optional: QPST or QFIL tool (for Qualcomm-based Pixel/Pixel XL) if the first two methods fail
Step-by-Step
Method 1: Restore IMEI via Factory Reset and Cache Wipe
- Back up any important data. A factory reset erases everything on the phone.
- Turn off the phone completely.
- Press and hold Volume Down + Power until the bootloader screen appears.
- Use the volume keys to highlight Recovery Mode and press Power to select.
- When the Android robot with a red exclamation appears, press and hold Power, then tap Volume Up once.
- Use volume keys to select Wipe data/factory reset, then confirm with Power.
- After the reset, select Reboot system now.
- Check if the IMEI is restored: Go to Settings > About phone > Status > IMEI information. If it shows a number, you’re done. If not, proceed to Method 2.
Method 2: Flash Stock Firmware (Preserves IMEI)
- Download the correct factory image for your Pixel model (e.g., sailfish for Pixel, marlin for Pixel XL) from Google’s official developer page. Match the build number shown in your phone’s bootloader.
- Extract the ZIP file to a folder on your PC.
- Enable Developer Options on the phone: Go to Settings > About phone and tap Build number 7 times.
- In Developer Options, enable USB debugging and OEM unlocking (if available).
- Connect the phone to your PC via USB. Accept the RSA fingerprint prompt on the phone.
- Open a command prompt in the folder where you extracted the factory image.
- Boot the phone into bootloader mode by running:
adb reboot bootloader - Run the flash-all.bat script (Windows) or flash-all.sh (Mac/Linux). This will reflash the entire stock firmware, including the modem partition that contains the IMEI.
- Wait for the script to finish. The phone will reboot automatically. Do not disconnect the cable during the process.
- After reboot, check the IMEI again. If it’s still missing, try Method 3.
Method 3: Re-Write IMEI Using QPST (Requires Unlocked Bootloader)
- Unlock the bootloader (this wipes the phone and voids warranty). Go to bootloader mode and run:
fastboot flashing unlock(orfastboot oem unlockon older builds). Confirm on the phone. - Download and install QPST (Qualcomm Product Support Tools) on your PC. This is a free tool from Qualcomm.
- Extract the QPST ZIP and run the setup. Install both QPST and QFIL (Qualcomm Flash Image Loader).
- Download the “modem” or “NON-HLOS” partition image from your stock factory image. It’s usually named
image-*.zip; extract it and look forNON-HLOS.bin. - Power off the phone. Then hold Volume Up + Volume Down + Power simultaneously to enter EDL (Emergency Download) mode. The screen stays black; the device appears as a COM port in Windows.
- Open QFIL. Select the “Flat Build” tab. In the “Programmer” field, browse to the
prog_emmc_firehose_8996_ddr.elffile (you can extract it from the QPST installation folder or from a compatible firmware package). - In the “Load XML” fields, select the
rawprogram0.xmlandpatch0.xmlfiles from the same firmware package. - Click Download. QFIL will flash the modem partition, which rewrites the IMEI from the device’s backup area.
- When finished, the phone reboots. Check the IMEI. If it’s still missing, you may need to manually write the IMEI using a tool like “QPST Software Download” with a QCN backup—but that requires a working backup from your specific device, which you likely don’t have. In that case, professional repair is the next step.
Common Mistakes
- Using the wrong factory image (e.g., Pixel image on Pixel XL). Always verify the model name in the bootloader.
- Interrupting the flash process by unplugging the USB cable or letting the battery die.
- Skipping the backup step and losing personal data.
- Forgetting to enable OEM unlocking before flashing, which can cause a “remote: oem unlock is not allowed” error.
- Using a third-party “IMEI repair” tool that promises a fix but actually bricks the device or installs malware.
Tips
- Always use the original USB cable and a direct USB port on your PC (not a hub).
- Keep your phone charged above 70% before starting any flash.
- Write down your IMEI number (find it on the box or under the battery) before attempting any repair. You’ll need it if you have to contact support.
- If the IMEI shows zeros or null, the issue is often in the modem partition—flashing stock firmware usually fixes it.
- After a successful repair, immediately update to the latest security patch to avoid the same bug.
Troubleshooting
- Phone not detected by ADB/Fastboot: Install the correct USB drivers (Google USB Driver for Windows). On Mac, install Android File Transfer and enable USB debugging.
- Flash-all script fails with “remote: not allowed”: Your bootloader is locked. Unlock it first (Method 3, step 1). This wipes data, so back up first.
- IMEI still missing after flashing stock: Try a second factory reset. If that fails, the modem partition may be physically damaged. Check if the phone has water damage or a loose antenna connection (if you’re comfortable opening it). Otherwise, seek professional repair.
- Phone stuck in bootloop after flash: Re-flash the factory image using the “flash-all” script again. If it persists, try a different USB port or PC.
- QFIL cannot find the programmer file: Download a firmware package that explicitly includes the
prog_emmc_firehose_8996_ddr.elffile. Some packages omit it. - EDL mode not entering: Try a different key combination: hold Volume Up + Volume Down, then plug the USB cable into the PC while the phone is off.
Frequently Asked Questions
Will a factory reset fix my IMEI problem?
Sometimes, yes. A factory reset clears corrupted software that might be hiding the IMEI. It’s the easiest and safest first step.
Is it legal to repair my own IMEI?
Yes, repairing your own device’s IMEI is generally legal. However, altering an IMEI to impersonate another device or evade tracking is illegal in most jurisdictions.
Will I lose my data if I flash stock firmware?
Yes, the flash-all script wipes the user data partition. Always back up your photos, contacts, and files before proceeding.
Can I use a third-party app to fix the IMEI?
No. Apps cannot access the modem partition where the IMEI is stored. Only low-level flashing tools can rewrite it. Avoid any app that claims to “repair IMEI” as they are scams.
What if my Pixel is carrier-locked?
Flashing stock firmware does not unlock the carrier lock. The IMEI repair methods here only restore the original IMEI; they do not change the carrier lock status. You’ll need to contact your carrier for an unlock.
My IMEI shows a different number than the one on the box. What now?
This is rare but can happen after a motherboard replacement. The IMEI is stored in the modem partition, and if the motherboard was swapped, the IMEI will match the new board. You can use the original IMEI only if you have a QCN backup from that board, which is unlikely. In that case, accept the new IMEI as your device’s valid number.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Disable Autocorrect on iPhone or iPad: Quick Guide
- Custom Keyboard Shortcuts on Windows 11 & macOS
- Restore Windows 11 Display Scaling to Recommended
- Semiconductor Cycle: How Investors Track It0.0
- Microsoft Store Error 0x80073d12: Fixes That Work
- View Notification Count on iPhone: Full Guide