Fix Connection Problem or Invalid MMI Code on Android
In this article
If you see a "Connection problem or invalid MMI code" error on your Android phone, it usually means the phone's dialer couldn't process a USSD or MMI code (like *#06# or *#*#4636#*#*). The fix is often simple: toggle airplane mode, clear the dialer's cache, or reset your network settings. Below are step-by-step solutions, from quickest to more involved.
What You'll Need
- Your Android phone
- Access to the Settings app
- Your SIM card (for removal/reinsertion steps)
- Wi-Fi network (for some steps, though not required)
Step-by-Step
1. Toggle Airplane Mode
- Swipe down from the top of the screen to open the Quick Settings panel.
- Tap the Airplane Mode icon to turn it on. Wait 10–15 seconds.
- Tap it again to turn it off. This forces the phone to re-register with your carrier's network.
- Try the MMI code again (e.g., dial *#06# to check your IMEI).
2. Restart Your Phone
- Press and hold the Power button until the power menu appears.
- Tap "Restart" or "Reboot." If you don't see that option, tap "Power off," wait a few seconds, then turn it back on.
- After the phone boots up, try the code again.
3. Clear the Phone/Dialer App Cache
- Open the Settings app.
- Go to "Apps" or "Applications" (the label may vary by device).
- Tap "See all apps" if needed, then scroll to find your Phone or Dialer app (often named "Phone" or "Google Phone").
- Tap "Storage & cache" (or just "Storage").
- Tap "Clear cache." Do NOT tap "Clear storage" or "Clear data" yet—that will erase your call history and settings.
- Go back and try the MMI code again.
4. Check for Carrier-Specific USSD Codes
- Some MMI codes are carrier-specific and may not work on all networks. For example, codes that check account balance or data usage often require a specific format.
- Verify the code you're using is correct for your carrier. Check your carrier's website or customer service page for the exact USSD code.
- If the code is correct but still fails, try adding a comma or a semicolon after the code? No—that's not standard. Instead, just make sure you're dialing it exactly as given.
5. Reset Network Settings
- Go to Settings > System > Reset options (or Settings > General management > Reset).
- Tap "Reset Wi-Fi, mobile & Bluetooth." This will forget saved Wi-Fi networks, clear Bluetooth pairings, and reset mobile network settings.
- Confirm the reset. Your phone will restart.
- After restart, reconnect to Wi-Fi if needed and try the MMI code again.
6. Reinsert or Replace SIM Card
- Power off your phone.
- Use the SIM ejector tool (or a paperclip) to remove the SIM tray.
- Take out the SIM card, inspect it for damage or dirt, and gently wipe the gold contacts with a soft, dry cloth.
- Reinsert the SIM card firmly into the tray and push it back into the phone.
- Power on the phone and try the code again.
7. Update Your Phone's Software
- Go to Settings > System > System update (or Settings > About phone > Software update).
- Tap "Check for updates." If an update is available, download and install it.
- After updating, restart your phone and test the MMI code.
8. Contact Your Carrier
- If none of the above works, the issue may be on your carrier's side—a network outage, a blocked USSD service, or a problem with your SIM provisioning.
- Call your carrier's customer support (using another phone if possible) and explain the error. They can verify if the code is supported on your plan and reset your network profile.
Common Mistakes
- Clearing storage instead of cache: Tapping "Clear storage" on the Phone app deletes your call history, voicemail settings, and other data. Only use "Clear cache" unless you're okay losing that info.
- Typing the code incorrectly: MMI codes are case-sensitive? No, they're not, but they must be entered exactly as given—including asterisks and hashes. A missing * or # will cause the error.
- Using the code while on Wi-Fi calling: Some MMI codes don't work over Wi-Fi calling. Turn off Wi-Fi calling temporarily (Settings > Connections > Wi-Fi calling) and try again.
- Skipping a restart: A simple restart fixes many temporary glitches. Don't jump to resets before trying it.
Tips
- If you're trying to check your IMEI, you can also find it in Settings > About phone > IMEI, so you don't need the MMI code at all.
- For USSD codes that require a response (like checking balance), make sure you have a stable cellular signal. Move to an area with better reception.
- If you're using a dual-SIM phone, try switching the SIM to the other slot—sometimes the slot's connection is faulty.
- Keep your phone's software updated. Carrier and Android updates often fix USSD handling bugs.
Troubleshooting
If you've tried all the steps above and the error persists, here's what to do next:
- Test another MMI code: Dial *#06# (IMEI) or *#*#4636#*#* (testing menu) to see if any code works. If none work, the issue is likely systemic.
- Try a different SIM card: Borrow a SIM from a friend or family member (with their permission) and insert it into your phone. If the code works with another SIM, your SIM card may be faulty—contact your carrier for a replacement.
- Factory reset as a last resort: This erases all data on your phone. Back up everything first. Go to Settings > System > Reset > Factory data reset. After reset, set up your phone and test the code before reinstalling apps.
- Check for carrier outages: Visit your carrier's website or social media to see if others are reporting similar issues. If there's an outage, wait it out.
Frequently Asked Questions
What is an MMI code?
MMI (Man-Machine Interface) codes are short numeric sequences, often starting with *# or *#*, that let you query or configure your phone's network features, like checking IMEI or call forwarding.
Why does my phone say "Connection problem or invalid MMI code"?
This error appears when the phone fails to process the code—either because the code is misspelled, not supported by your carrier, or because the network connection is unstable.
Will clearing the Phone app's cache delete my contacts?
No. Clearing cache only removes temporary files. Your contacts are stored separately and won't be affected. Clearing "Storage" (data) would delete call history and some settings, but not contacts.
Can I fix this error without resetting my phone?
Yes, most of the time. Toggling airplane mode, restarting, clearing cache, or resetting network settings usually resolves it. Factory reset is a last resort.
Does this error affect making calls or using data?
Usually no. The error only affects the specific MMI/USSD code you're trying to run. Normal calls, texts, and data typically continue to work.
What if the code works on another phone but not mine?
That suggests your phone's dialer or network stack is the issue. Try clearing the Phone app's cache, updating the app, or resetting network settings. If it still fails, a factory reset may help.