"Connection Problem or Invalid MMI Code": What It Means and How to Fix It
You dialed a code that starts with * or # (to check your balance, set up call forwarding, turn on call waiting, or change call barring) and instead of an answer, your phone showed "Connection problem or invalid MMI code." The message doesn't say which part went wrong, and it can mean anything from one wrong character to a code your carrier doesn't use. This guide explains what an MMI code is, the situations in which Android shows this exact message, how to narrow down the cause in a few minutes, and what to tell your carrier if it's on their side.
If the message appeared while you were turning call barring on or off, that case has its own detailed guide: Call Barring Not Working.
Current as of November 2026. The error wording and the situations that trigger it are confirmed against Android's public source code (AOSP), which Pixel and other stock-Android phones run close to. Samsung uses its own Phone app; where we couldn't confirm Samsung's own behavior, this guide says so.
1. The short answer
"Connection problem or invalid MMI code" is Android's general-purpose message for a dialed code that couldn't be carried out. It does not point to one cause. In Android's own source code, the same message is used when the phone can't process the code you typed, when your carrier refuses the request without a more specific reason, and when the request is dropped before an answer comes back. It does not mean your phone or your SIM card is broken.
Start with what you can check yourself: whether the code is one your carrier actually uses, whether it's typed exactly, and whether the request can reach your carrier (mobile signal, the right SIM on a dual-SIM phone). Only after that is it worth contacting your carrier.
| What you were doing | Possible causes | Check first |
|---|---|---|
| Checking balance, minutes or data with a # code | The code belongs to a different carrier or country | Your own carrier's code list (section 4) |
| Call forwarding (**21*, ##21#…) | Format, roaming, or your carrier uses different codes | Use the forwarding menu in the Phone app instead (section 5) |
| Call waiting (*43#, #43#) | Carrier support or no mobile signal | The call waiting switch in the Phone app's settings |
| Call barring (*33*…) | Password, carrier support, or call forwarding active | Call Barring Not Working |
| Any code, on Wi-Fi calling with weak mobile signal | Whether your carrier accepts codes over Wi-Fi calling | Try again where you have mobile signal |
2. What an MMI code is
MMI stands for "Man-Machine Interface." It's the name the mobile standard (3GPP TS 22.030) gives to the codes you type on a phone keypad to control the phone or ask your carrier for something, instead of placing a call. The standard describes their shape: a code always starts with *, #, **, ## or *# and ends with #.
These codes fall into three groups, and knowing which one you used tells you where the failure happened:
- Codes the phone answers by itself. The best known is *#06#, which shows your phone's IMEI. The standard says the phone must accept it with or without a SIM card inserted, so no carrier is involved.
- Standard service codes your carrier carries out. Call forwarding (21, 61, 62, 67), call waiting (43) and call barring (33 and related) use service numbers defined in the same standard, for example **21* followed by a number and # to forward all calls, and ##21# to stop. Your phone turns these into a request to your carrier's network.
- Carrier-specific codes. Balance checks, data usage and similar codes are created by each carrier. The standard covers them with a general mechanism called USSD ("Unstructured Supplementary Service Data"), which simply passes the code to your carrier to interpret. Whether a code like this works depends entirely on your carrier.
That third group is where most confusion comes from. A code that works on one carrier can be meaningless on another, and code lists copied from websites rarely say which carrier or country they're for.
3. When Android shows this message
Android's source code defines the text "Connection problem or invalid MMI code." for a dialed code "whose function could not be performed." The phone's code handling (GsmMmiCode, and ImsPhoneMmiCode for VoLTE and Wi-Fi calling) shows it in these situations:
The phone couldn't process the code
The code had the shape of a standard service code (call barring, for example) but asked for something Android doesn't support for that service. In that case nothing is sent to your carrier. This is the narrowest of the three: almost any other code that ends with #, including a mistyped one, is passed on to your carrier as it is, and your carrier decides whether it means anything. A code that doesn't end with # isn't treated as a code at all; the phone tries to call it as a number.
Your carrier refused the request
When the network sends back an error that Android has no specific message for, it falls back to this one. A carrier that doesn't recognize the code, or doesn't offer the service on your line, can end up here. Because a mistyped code also reaches your carrier, a typo and a genuine refusal usually look exactly the same on screen.
The request was dropped
If the phone's radio resets while a request is still waiting for an answer, Android marks it as failed with this same message.
Some failures have their own message instead, which helps narrow things down:
| Message | What it means |
|---|---|
| "Feature not supported." | The network said the request isn't supported or isn't allowed on your current mobile network. |
| "Operation is restricted to fixed dialing numbers only." | Fixed Dialing Numbers (FDN) is on and blocked the code. See Fixed Dialing Numbers on Android. |
| "Can not change call forwarding settings from your phone while you are roaming." | Some carriers don't accept call forwarding changes while you're roaming. |
| "Incorrect password" | With call barring codes, your carrier reported a wrong barring password. |
So if you see "Connection problem or invalid MMI code" and not one of the messages above, Android didn't get a more specific reason, from either your typing or your carrier.
4. How to fix it, step by step
Work through these in order. Each step rules out one of the situations in section 3.
Step 1: Dial *#06# to test the phone itself
The standard requires every phone to show its IMEI for *#06#, even with no SIM inserted, so no carrier is involved. If your IMEI appears, your Phone app is accepting codes normally, and the places to look are the code itself and your carrier (the next steps).
Step 2: Make sure the code is your carrier's
Carrier codes differ more than most people expect, even for the same task. In the US, for example:
| Task | T-Mobile | Verizon | AT&T Prepaid |
|---|---|---|---|
| Check balance | #BAL# (#225#) | #BAL (#225), listed as a code to call | *777# |
| Forward all calls | **21*1+PhoneNumber# | *72 + 10-digit phone number | — |
| Stop forwarding | ##21# | *73 | — |
T-Mobile postpaid and prepaid even use #BAL# for different things (account balance on postpaid, the service cycle on prepaid, where #999# checks the balance). Look up the code on your own carrier's support site rather than a general list, and if you've switched carriers or are using a SIM from another country, assume old codes no longer apply.
Step 3: Retype the code exactly
Type the code yourself in the Phone app's keypad instead of pasting it, and check every * and #. A typo usually still reaches your carrier as an unknown code and comes back as this same message, so the screen won't tell you it was a typo. For codes that include a phone number, follow your carrier's exact format: T-Mobile's forwarding code, for instance, is **21*, then 1 and the phone number, then #.
Step 4: Dial on the right SIM
On a dual-SIM phone, a code goes to the carrier of the line you dial it on. A balance code for one carrier sent through the other SIM is unlikely to work. If your phone asks which SIM to use, pick the one the code belongs to; if it doesn't ask, check which SIM is set for calls.
Step 5: Have mobile signal, not only Wi-Fi calling
By default, Android sends carrier codes over the regular mobile network; whether they can also go over VoLTE or Wi-Fi calling depends on settings your carrier chooses, and you can't see those settings on the phone. If you're indoors on Wi-Fi calling with little or no mobile signal, try again somewhere with a few bars of mobile signal.
Step 6: Check Fixed Dialing Numbers
If you see the FDN message from section 3 instead, Fixed Dialing Numbers is blocking the code. Turn FDN off (you'll need your SIM's PIN2) and try again; the steps are in Fixed Dialing Numbers on Android.
Step 7: For forwarding, waiting or barring, use the menu
For call forwarding and call waiting, the Phone app's settings do the same job without you typing a code, and they're less sensitive to format. If the menu works and the code doesn't, the code or its format was the problem. If both fail, it's likely your carrier's side (section 6).
5. On a Samsung Galaxy
Galaxy phones use Samsung's own Phone app rather than Google's, and we couldn't find a Samsung support page about this error message. The checks in section 4 still apply in the same way, because the code still has to reach your carrier.
Samsung's US support page puts call forwarding and call waiting in the same place:
- Call forwarding: Phone → More options (⋮) → Settings → Supplementary services → Call forwarding. Choose Always forward, Forward when busy, Forward when unanswered or Forward when unreachable, enter the number and tap Enable.
- Call waiting: Phone → More options (⋮) → Settings → Supplementary services → switch Call waiting on.
Samsung notes that availability of these features "may vary by carrier and phone model," so a missing item can simply mean your carrier doesn't offer it. For call barring on a Galaxy, see Call Barring on Samsung.
6. When it's your carrier's side
If *#06# works, the code is your carrier's own, it's typed exactly, you're on the right SIM with mobile signal, and the matching menu also fails, the remaining causes are things only your carrier can see: the service isn't on your plan, the code isn't active for your account type, or the network is refusing the request.
When you contact them, have this ready:
- The exact code you dialed and the exact message you saw.
- Which SIM or line you used, and whether you were roaming.
- That *#06# shows your IMEI.
- Whether you were on Wi-Fi calling or had mobile signal.
This lets the support agent skip the basic checks and look at your line's settings directly.
7. If you were trying to block calls
Many people reach for these codes to stop calls: call barring to stop outgoing or incoming calls, or call forwarding to send calls somewhere else. Both depend on your carrier offering the service and accepting the request, which is exactly what fails with this error.
If what you want is to stop your own outgoing calls, NoDial does it on the phone itself, without any code, password or carrier setting: you choose which numbers to block, international calls, or all outgoing calls, and emergency numbers can never be added to the block list. For incoming calls, NoCall blocks unwanted callers on the phone before they ring. Neither app depends on which carrier you use.
For the other ways to stop calls side by side, see How to Block Outgoing Calls on Android and Call Barring Codes.
8. FAQ
- What does "connection problem or invalid MMI code" mean?
- It's Android's general message for a dialed code (one starting with * or #) that couldn't be carried out. It covers a code the phone couldn't process, a request your carrier refused without a specific reason, and a request that was dropped before an answer came back.
- Does this error mean my SIM card is damaged?
- Not on its own. None of the situations in which Android shows this message is a SIM fault. Check that the code is your carrier's, that it's typed exactly, and that you have mobile signal.
- Why does a balance code that worked before now show this error?
- Balance and usage codes are set by each carrier and differ between carriers, between prepaid and postpaid, and between countries. If you changed carrier, plan or SIM, or you're abroad, look up the current code on your carrier's own support site.
- Can I use MMI codes over Wi-Fi calling?
- It depends on your carrier. By default Android sends carrier codes over the regular mobile network; whether they can go over Wi-Fi calling depends on your carrier's settings. If a code fails on Wi-Fi calling, try again with mobile signal.
- Why does a call forwarding code fail while I'm abroad?
- Some carriers don't accept call forwarding changes while you're roaming; Android has a separate message for that case. Set forwarding before you travel, or ask your carrier.
- What's the difference from "Feature not supported"?
- "Feature not supported" means the network explicitly said the request isn't supported or allowed. "Connection problem or invalid MMI code" means Android didn't get a more specific reason.
9. Summary
"Connection problem or invalid MMI code" means a dialed code couldn't be carried out, not that your phone or SIM is broken. Test the phone with *#06#, use your own carrier's code typed exactly, dial on the right SIM with mobile signal, and try the Phone app's menu for forwarding and waiting. If all of that checks out, the cause is on your carrier's side.
- MMI codes start with *, #, **, ## or *# and end with #. Some are answered by the phone, the rest go to your carrier.
- Android shows this one message for a code it couldn't process, a carrier refusal with no specific reason, and a dropped request. A typo usually looks the same as a refusal.
- Balance and usage codes differ by carrier, plan and country, so a code from a general list may not be yours.
- FDN, roaming forwarding, unsupported features and wrong barring passwords have their own messages.
- To stop calls without depending on your carrier, use NoDial for outgoing calls and NoCall for incoming calls.
NoCall: Blacklist Call BlockerBlock unwanted calls before they ring.
Sources
- AOSP, frameworks/base
core/res/res/values/strings.xml(mmiError "Connection problem or invalid MMI code." — "Displayed when the user dialed an MMI code whose function could not be performed"; mmiErrorNotSupported; mmiFdnError; mmiErrorWhileRoaming; passwordIncorrect "Incorrect password.") android.googlesource.com - AOSP,
GsmMmiCode.java(processCode: "Invalid or Unsupported MMI Code" → mmiError; getErrorMessage: FDN_CHECK_FAILURE → mmiFdnError, REQUEST_NOT_SUPPORTED / OPERATION_NOT_ALLOWED → mmiErrorNotSupported, other network errors → mmiError; onUssdFinishedError: "The radio has reset, and this is still pending" → mmiError; call forwarding while roaming → mmiErrorWhileRoaming; PASSWORD_INCORRECT → passwordIncorrect; newFromDialString: other strings ending in # are sent to the carrier as USSD) android.googlesource.com - AOSP,
ImsPhoneMmiCode.java(same message on VoLTE and Wi-Fi calling connections) android.googlesource.com - AOSP, frameworks/base
core/res/res/values/config.xml(config_allow_ussd_over_ims defaults to false) andCarrierConfigManager.java(KEY_CARRIER_USSD_METHOD_INT; default USSD_OVER_CS_PREFERRED) android.googlesource.com / android.googlesource.com - 3GPP TS 22.030 (ETSI TS 122 030 V17.0.0), "Man-Machine Interface (MMI) of the User Equipment" (
The procedure always starts with *, #, **, ## or *# and is finished by #.
; §6.5.3.2 Unstructured SS Data; §6.7 *#06# "shall be accepted and performed with and without an inserted SIM/USIM"; Annex B service codes) etsi.org (PDF) - T-Mobile, "Self-service & short codes" (#BAL# (#225#), #999#, *#06#, **21*1+PhoneNumber#, ##21#, ##004#, *43#, #43#) t-mobile.com
- Verizon, "# and * codes" (#BAL (#225), *72, *73) verizon.com
- AT&T Prepaid, usage check ("dial *777# from your AT&T Prepaid phone") att.com
- Samsung US, "Calling features on your Galaxy phone" (Supplementary services → Call forwarding / Call waiting; "Availability may vary by carrier and phone model.") samsung.com
Codes, menu names and which services are offered vary by carrier, plan, country, phone maker and Android version. Check your carrier's own help pages if a code or step does not match what you see.