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.
*#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.
##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.
*#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.
| Code | What 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# + number | Hide 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.
| Code | What 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.
| Code | What it does | Risk |
|---|---|---|
*#06# | Show IMEI | Safe |
*#*#4636#*#* | Testing menu: phone info, battery, usage stats, WiFi | Safe |
*#*#34971539#*#* | Camera firmware info | Safe |
*#*#232338#*#* | Show WiFi MAC address | Safe |
*#*#232339#*#* | Wireless LAN / WiFi test | Safe |
*#*#0*#*#* | LCD display test | Safe |
*#*#0673#*#* / *#*#0289#*#* | Speaker / audio test | Safe |
*#*#2664#*#* | Touchscreen test | Safe |
*#*#44336#*#* | Build number, firmware date | Safe |
*#*#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.
| Need | AT&T | T-Mobile | Verizon |
|---|---|---|---|
| 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 support | 611 | 611 | *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.
| Code | What it does |
|---|---|
*67 + number | Hide your caller ID for that one call |
*82 + number | Force-show your caller ID (unblock for one call) |
*69 | Call back the last number that called you |
*57 | Malicious call trace (logs the last call with your carrier for law enforcement) |
*70 + number | Turn off call waiting for one call |
*72 + number | Forward all calls (CDMA style) |
*73 | Cancel *72 forwarding |
*71 + number | Forward only when busy / unanswered |
611 | Call 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:
- Run
##002#to wipe every forwarding rule, then*#21#again to confirm it all reads Disabled. - Change your SIM PIN with
**04*, so your SIM cannot be moved to another phone. - Change your Apple ID / Google account password and turn on two-factor, forwarding is often the tip of a bigger access problem.
- Check Settings for Wi-Fi Calling and any unfamiliar call-forwarding entries in Phone settings.
- 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.
Related guides
Security
Scrub Yourself Off the Internet in One Afternoon
Data brokers sell your home address and phone number to anyone with a few dollars. Here is the afternoon checklist that pulls you off the biggest ones, the free manual way and the faster automated way, plus how to stop them re-adding you.
Security
Check If Your Passwords Are Already For Sale
Type your email into one free site and see every breach it has turned up in. Then a two-minute lockdown so a password leaked in 2019 cannot open your accounts today.
Security
The 60-Second Check: Is Anyone Inside Your iPhone?
Six settings tell you whether someone added themselves to your messages, your location, your calls or your Face ID. Sixty seconds, no apps, no jailbreak, all built into the phone.
Security
iPhone Secret Codes: Check If Anyone's Inside Your Phone
The dial codes that reveal call-forwarding, caller ID and hidden redirects in seconds, then wipe anything you didn't set up.
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.
