All resources
Security·9 min read·iPhone · Android

Every Secret Phone Code (iPhone + Android Master List)

These are MMI codes, hidden strings you type into the phone dialer that talk straight to your carrier's network and your phone's firmware. Some check if your calls are being secretly forwarded, some show your IMEI or signal strength, some wipe spyware forwarding in one shot. Here is every code worth knowing, grouped and explained, plus a dedicated Android section, the codes that change by carrier, and why the errors like 'setting interrogation failed' pop up.

Start here: is someone forwarding your calls?

This is the one from the video, and it is the single most important check. Open your phone dialer and enter the master interrogation code below, then hit call. Your carrier answers with the status of every forwarding rule on your line. You want every line to read Disabled. If it shows On and a phone number you do not recognize, every call and text to you is being silently copied to that number, and the person on the other end sees it all.

If it comes back clean, you are good. If it does not, jump to the wipe code in the next block, then the response playbook near the bottom.

Copy-paste this
*#21#

The one-shot wipe (nuke every forwarding rule)

If the master check showed forwarding you did not set up, this erases all call-forwarding rules on your SIM in one move, no menus, no per-rule digging. Enter it, hit call, wait for the 'erased' confirmations, then run *#21# again to confirm everything reads Disabled.

Harmless to run even if you are clean, it just resets forwarding to off.

Copy-paste this
##002#

Your phone's fingerprint (IMEI)

Every phone has a unique IMEI, its serial number on the cellular network. You need it to report a phone stolen, to check a used phone against a blacklist before buying, or to unlock it. This code shows yours instantly and works on literally every phone, iPhone or Android, any carrier.

Copy-paste this
*#06#

How the attack actually works (so you can spot it)

Knowing the attacker's move is how you recognize it on your own device. Unconditional call forwarding is set with a code shaped like **21* followed by a number and a #. Someone with 60 seconds of physical access to an unlocked phone types it in, and from that moment every call rings on their phone too. There is no notification, no icon, nothing.

That is exactly why *#21# exists as the counter-check, and ##002# as the undo. Only ever run forwarding codes on a phone you own. Setting forwarding on someone else's line without permission is illegal, this section is here so you can catch it being done to you, not do it to anyone.

Every iPhone / GSM code

These work on any GSM line (AT&T, T-Mobile, most of the world). A few behave differently or not at all on Verizon's older CDMA network, see the carrier section for that.

CodeWhat it does
*#06#Show your IMEI (network serial number)
*#21#Master check: are calls / texts being forwarded? (want Disabled)
##002#Erase ALL call forwarding in one shot
*#61#Check where unanswered calls forward to (usually voicemail)
##61#Turn off 'forward when no answer'
*#62#Check where calls go when your phone is unreachable / off
##62#Turn off 'forward when unreachable'
*#67#Check where calls go when your line is busy
##67#Turn off 'forward when busy'
*#30#Check if incoming caller IDs are shown to you (CLIP)
*#31#Check if your number is hidden from people you call (CLIR)
#31# + numberHide your caller ID for one specific call
*#43#Check if call waiting is on
*43# / #43#Turn call waiting on / off
*#33#Check call barring (are outgoing calls blocked?)
*#5005*7672#Show your carrier's SMS center (SMSC) number
*3001#12345#*Field Test Mode: exact signal in dBm + cell tower info

SIM security codes

These manage the PIN on the physical SIM itself, the layer that stops someone popping your SIM into another phone. Handle with care, too many wrong PUK entries can permanently lock the SIM.

CodeWhat it does
**04* old PIN * new PIN * new PIN #Change your SIM PIN
**05* PUK * new PIN * new PIN #Unblock a locked SIM with the PUK code
*#06#Show IMEI (also your EID on eSIM)

Your PUK is printed on the plastic card the SIM came in, or in your carrier account. If you lose it, your carrier can reissue it.

Android secret codes (dedicated section)

Android has its own layer of hidden codes, most in the *#*#...#*#* shape, that open engineering and test menus. Two big caveats: many are manufacturer-specific (these lean Samsung), and Google has disabled a lot of them on newer Android for security, so not every code fires on every phone. The GSM call-forwarding codes above (*#21#, ##002#) also work on any Android GSM line.

CodeWhat it doesRisk
*#06#Show IMEISafe
*#*#4636#*#*Testing menu: phone info, battery, usage stats, WiFiSafe
*#*#34971539#*#*Camera firmware infoSafe
*#*#232338#*#*Show WiFi MAC addressSafe
*#*#232339#*#*Wireless LAN / WiFi testSafe
*#*#0*#*#*LCD display testSafe
*#*#0673#*#* / *#*#0289#*#*Speaker / audio testSafe
*#*#2664#*#*Touchscreen testSafe
*#*#44336#*#*Build number, firmware dateSafe
*#*#7780#*#*Factory reset (wipes app data + settings)⚠️ Destructive
*2767*3855#Full wipe + reinstall firmware, no confirmation🛑 Nukes everything

Treat the last two like live wires, *2767*3855# starts wiping the instant you press call, with no 'are you sure'.

Codes by carrier

Two things change by carrier: the exact strings for forwarding and account info, and whether GSM MMI codes work at all. Verizon grew up on CDMA, so the umbrella *#21# interrogation historically did not work there, you use the *72 / *73 vertical codes instead. AT&T and T-Mobile are GSM, so the codes above work as written.

NeedAT&TT-MobileVerizon
Forward all calls**21*num#**21*num#*72 + number
Cancel forwarding##21# or ##002###21# or ##002#*73
Account balance*225# (*BAL#)#225# (#BAL#)#225 (#BAL)
Minutes used*646# (*MIN#)#646# (#MIN#)#646 (#MIN)
Data used*3282# (*DATA#)#932# (#WEB#)#3282 (#DATA)
Voicemail*86*86*86
Carrier support611611*611

Universal star codes (any US line)

These are vertical service codes, they work on essentially every US carrier and even landlines, no # needed. Dial the code right before the number where noted.

CodeWhat it does
*67 + numberHide your caller ID for that one call
*82 + numberForce-show your caller ID (unblock for one call)
*69Call back the last number that called you
*57Malicious call trace (logs the last call with your carrier for law enforcement)
*70 + numberTurn off call waiting for one call
*72 + numberForward all calls (CDMA style)
*73Cancel *72 forwarding
*71 + numberForward only when busy / unanswered
611Call your carrier

Troubleshooting (why the errors happen)

"Setting interrogation failed" on *#21#. The network could not read that forwarding condition. Usual causes: you are on a CDMA carrier (Verizon, old Sprint) that does not fully support GSM interrogation, Wi-Fi Calling intercepted the code, you are on a dual-SIM / eSIM phone and queried the wrong line, or one forwarding type (fax / data) simply is not provisioned. Fix: turn Wi-Fi Calling off, make sure you have real cellular signal, pick the right SIM line in Settings, then retry. Or check the conditions one at a time with *#61#, *#62#, *#67# instead of the umbrella *#21#.

"Connection problem or invalid MMI code." The string was mistyped, your carrier does not support that MMI, you are on CDMA, or Wi-Fi Calling swallowed it. Fix: retype it exactly (it is picky), turn off Wi-Fi Calling, confirm cellular signal, or use the carrier-specific star codes above.

Codes do nothing on Verizon. CDMA heritage, use the *72 / *73 style codes in the carrier table.

Field Test numbers look negative. dBm signal is negative, and closer to zero is stronger, -80 dBm is a great signal, -110 dBm is nearly no bars.

Dual SIM confusion. MMI codes only query the currently selected line, switch your default line in Settings if the results look wrong.

If someone IS forwarding your calls (response playbook)

You ran *#21# and it showed forwarding to a number you do not know. Do this in order:

  1. Run ##002# to wipe every forwarding rule, then *#21# again to confirm it all reads Disabled.
  2. Change your SIM PIN with **04*, so your SIM cannot be moved to another phone.
  3. Change your Apple ID / Google account password and turn on two-factor, forwarding is often the tip of a bigger access problem.
  4. Check Settings for Wi-Fi Calling and any unfamiliar call-forwarding entries in Phone settings.
  5. If it keeps coming back, someone has ongoing access, factory reset the phone and call your carrier to reissue the SIM.

Use this responsibly

Everything here is for checking and securing your own phone, or one you have explicit permission to test. The interrogation and wipe codes are safe on your own line. The forwarding-setup codes are not a toy, configuring forwarding or barring on someone else's phone without consent is illegal in most places. Save this, run the master check on your own phone, and send it to someone you care about so they can too.

Get the next one first

New prompts every week.

Free. The new drops and the tools behind them, before they hit the feed.

No spam · New issues Sunday · Unsubscribe anytime

Need it custom?

Want this built for you?

Tell me the idea and I’ll build it. An app, a tool, an automation. You don’t need to be technical.

Frequently asked questions

It interrogates your carrier for all call-forwarding rules on your line, voice, data, SMS, fax. If any read 'On' with a number you did not set, your calls and texts are being copied to that number. You want every line to say Disabled.

Yes. It simply erases every call-forwarding rule on your SIM and resets forwarding to off. If you had none set up, nothing changes. If spyware forwarding was set, it wipes it. Run *#21# afterward to confirm.

The network could not read one of the forwarding conditions, usually because you are on a CDMA carrier like Verizon, Wi-Fi Calling intercepted the code, or you queried the wrong SIM on a dual-SIM phone. Turn off Wi-Fi Calling, confirm cellular signal, and retry, or check conditions individually with *#61#, *#62#, *#67#.

The GSM call-forwarding codes (*#21#, ##002#, *#06#) work on any Android GSM line. Android also has its own *#*#...#*#* engineering codes, see the dedicated Android section, though many are manufacturer-specific and some are disabled on newer phones.

Verizon grew up on CDMA, which does not support the GSM MMI interrogation codes the same way. Use the vertical codes instead, *72 + number to forward, *73 to cancel, #225 for balance. See the carrier table.