Secret codes for Android These are combinations of numbers and symbols that, when entered from your phone's calling app, allow you to access advanced features, hidden menus, hardware tests, and, in very specific cases, erase and reset your device. Two of the most important and dangerous are * 2767 * 3855 # y * # * # * # * # 7780, which allow you to return your phone to its factory settings, erasing personal data and sometimes reinstalling the firmware. In this comprehensive guide, you'll discover exactly what each code does, how they work, the risks they pose, the situations in which they can be useful, and how to use them safely. We'll also review the vast universe of Android secret codes, with practical applications beyond resetting or formatting, as well as essential security tips to avoid technological disasters.
What are secret codes on Android?

The android secret codes (also known as MMI and USSD codes) are sequences entered directly into the Phone app, as if you were going to make a call. They consist of asterisks, hash marks, and numbers and are used to access settings and tests that would otherwise remain hidden from the average user. These codes were originally intended for developers, factory technicians, and manufacturers, as they allow them to test hardware functionality, obtain internal data, force system states, or completely reset the phone.
Most users are unaware of these codes.However, when used properly, they can be very helpful in diagnosing problems, obtaining technical information, optimizing your phone, or restoring it to its original configuration if you're going to sell or give it away.
It's important to know that many of these codes don't display a warning or confirmation before performing sensitive actions, so always proceed with caution and, if you're unsure how they work, consult this guide or trusted forums before entering them.
Difference between MMI and USSD codes

MMI stands for "Human Machine Interface" and refers to the codes that run locally on the phone, allowing for internal device settings, testing, and configuration. USSD codes (Unstructured Data Supplementary Service) are more oriented towards interacting with the operator's mobile network to, for example, check balance, activate services or manage voicemail.
In practice, most of the Android secret codes we are interested in (such as *2767*3855# and *#*#7780#*#*) are MMI, and affect the configuration and operation of your mobile.
Essential precautions before using secret codes

- Use these codes at your own riskIf you're inexperienced, please consult first and don't enter any code if you're unsure about its effect.
- Make a backup of your data before using any code that involves resetting, erasing, or formatting.
- Many of these codes They do not display a warning or confirmation screen. When you press the last hash (#), the action may be irreversible (especially with * 2767 * 3855 #).
- Codes vary depending on the manufacturer, Android version, and carrier.A code may work on some phones but not on others, disappearing without any action being taken.
- Do not trust unknown sources Do not follow instructions from strangers (phones, messages, suspicious websites) to enter secret codes.
Sometimes entering these codes can cause total loss of information, system instability, or render the device inoperable If they are overused, use them only when necessary and knowing exactly what they do.
*#*#7780#*#*: Factory reset while keeping the system

The code *#*#7780#*#* allows you to perform a factory data reset, which returns the phone to its original state, just like when it came out of the box. However, it doesn't delete or reinstall the operating system or preinstalled apps, so it's a less aggressive reset than others.
What does *#*#7780#*#* delete?
- The associated Google account to the device.
- System settings and all applications.
- Applications downloaded by the user (not system apps).
- Personal data stored in the mobile's internal memory.
What does this code NOT erase?
- The original operating system and all factory applications.
- Files saved on the SD card (photos, videos, music, documents, etc.)
- SIM data and network-specific settings (although it does delete apps related to your Google account and downloaded apps).
What happens after inserting it? When dialing * # * # * # * # 7780 On the dialer, the system displays a warning and asks you to confirm whether you want to reset your phone. Only by pressing "Reset phone" does the process begin. If you cancel, nothing happens.
(For added security, always make a backup copy before using these codes.)
It's perfect if you're giving away or selling your phone, if you're having serious issues with apps and want to start from scratch without losing the firmware, or if you simply want to erase all your personal data and return to factory settings without reinstalling the operating system.
*2767*3855#: Full format and firmware reinstallation

This is the most dangerous and forceful code. * 2767 * 3855 # run a 100% complete formatting from the Android mobile phone, it deletes absolutely all information, settings, configurations, applications (downloaded and system), personal files and, in addition, reinstall the original firmware Of the device.
What exactly does it do?
- Erase all internal memory: applications, personal data, accounts, contacts, photos, videos, music, documents, system settings and any trace of information stored on the phone.
- Removes all software modifications (including root, customizations and unofficial updates on some models).
- Reinstall the original factory firmware, which means that the phone is as if it had just come out of the factory, with the base operating system and original applications.
- Does not ask for confirmation or display a warning: After typing the last #, the action starts immediately and cannot be reversed.
- Does not delete files from SD card (although it is always advisable to extract it before running the code, as a precaution).
(To restore firmware in serious cases, there are also specific methods)
In what situations can it be useful? If the operating system is damaged, the phone won't boot properly, you've experienced serious errors, or you need a hard reset to reinstall everything from scratch, this code can return you to a working state. It's also the safest option for erasing all traces of your data before selling or giving away your device.
Important Warning!
By not showing confirmation, Entering this code by mistake means the total loss of information without the possibility of recovering it.You should know exactly what you're doing, have made a backup copy beforehand, and if in doubt, don't insert it.
Additional note: Some older models or those with heavily customized versions of Android may run the process immediately, while other newer models have introduced some additional security filtering.
How to enter secret codes on Android?

- Open the Phone app and go to the dialer. You don't have to call the number; just enter it from here.
- Dial the desired combination (for example, *2767*3855# or *#*#7780#*#*), exactly as shown, with all asterisks, hash marks, and numbers.
- The system, depending on the code, will execute the action, display relevant information, or launch a confirmation screen if appropriate.
- If the code isn't supported by your Android model or version, nothing may happen and it may simply disappear.
Some codes may require administrator permissions or special manufacturer features. If none of these apply, check compatibility for your manufacturer and model.
Other universal and advanced secret codes on Android

The universe of android secret codes It goes far beyond commands for formatting or resetting your phone. There are dozens of useful combinations that allow you to obtain technical information, check device status, test sensors, analyze battery problems, view the IMEI, reboot system components, hide your number on calls, or even check the status of call forwarding.
Below are the most interesting and secure categories and codes:
- * # # 06: Displays your device's IMEI code, which is required to report theft or unlock your phone.
- * # * # * # * # 4636: Access a hidden menu with technical information about your phone, including app usage statistics, battery, Wi-Fi connection, and more.
- * # * # 273282 * 255 * 663282 * # * # *: Allows you to create a manual backup of media files stored on your device.
- * # * # * # * # 232338: Displays the MAC address of the WiFi network, useful in advanced network configurations or to identify the device on the local network.
- * # * # * # * # 197328640: Activates “service mode” for advanced component testing such as speakers, display calibration, and sensors.
- * # * # 0 * # * # *: Runs a display test, checking color, sensors, front camera, and touch controls—ideal for diagnosing hardware issues.
- * # * # * # * # 34971539: Advanced information about the camera, its firmware and installed version.
- * # * # * # * # 1472365: Perform a GPS test to detect connection or location problems.
- * # 3282 * 727336 * #: View information about data storage and usage statistics on your device.
- * # # 67: Displays information about call forwarding (which number the calls are redirected to).
- * 31 #: Hide your number on outgoing calls (private mode).
- * # * # * # * # 2222: Hardware version of the device.
- * # * # * # * # 3264: : Check the amount and version of RAM installed.
- * # * # * # * # 232331: Bluetooth Test.
- * # # 43: Activates call waiting.
- * # * # * # * # 0842: Vibration and backlight test.
- * # * # * # * # 2664: Touchscreen sensitivity diagnostics.
- And many other manufacturer-specific options, such as those for Samsung, Xiaomi, Huawei, etc., to access diagnostic menus, hardware information, engineer mode, sensor tests, and advanced network settings.
We must distinguish between universal codes (they work on almost all Androids, like the ones shown above) and manufacturer-specific codes, which can change, be hidden, or not work on all models. If you want to learn more about how to manage these codes, we recommend visiting our article on The keys you didn't know about Android.
Secret codes by manufacturer: Samsung, Xiaomi, Huawei and more

Some Android phone brands add their own secret codes. to access exclusive engineering menus, hardware tests, battery diagnostics, proximity sensor, camera, speaker test, etc. These codes vary between manufacturers and models:
- Samsung:
- * # 0 * #: Full test menu on supported models.
- * # # 1234: Software version.
- * # # 0011: Advanced service menu.
- * # # 0228: Current battery status.
- * # # 0808: USB settings menu.
- * # # 9900: Dump of system logs.
- * # # 9090: Diagnostic and debugging tools.
- Xiaomi/Redmi/POCO:
- *#*#64663#*#* or *#*#6484#*#*: QC menu for complete hardware testing.
- * # * # * # * # 2664: Touch screen test.
- Huawei:
- ## 258741: : General reset of the device.
- ## 147852: Hardware test mode.
- #8746846549: User information.
- ## 1857448368: Mobile version information.
- OnePlus:
- * # # 888: PCB board information.
- Motorola:
- * # * # * # * # 2486: Access to the factory test menu.
If you want to access these menus, enter the code directly from the Phone app. If nothing happens, your model or carrier may not be compatible or the code may be blocked. To improve your understanding of Android system functions, also see .
Main uses of secret codes on Android

The secret codes can be used to:
- Reset your phone before selling it (eliminating personal data and accounts in seconds).
- Troubleshoot software or performance issues returning the system to a stable state.
- Run hardware diagnostics, checking the status of the battery, sensors, screen, camera, microphone, speakers, etc.
- Optimize your system and free up space deleting corrupt settings and unnecessary apps.
- Duplicate or write down the IMEI number for security procedures, releases or reports in case of theft.
- Consult advanced technical information to resolve issues or check that the data matches before purchasing a second-hand mobile phone.
- Set up additional privacy (such as hiding the number on outgoing calls or diverting all incoming calls).
- Create backups of personal files directly before formatting the phone.
In many cases, these shortcuts save time and provide information not available in the standard Android settings menu. Remember, to manage these features, you can also check out our complete guide on .
What risks and dangers do Android secret codes pose?

- Total loss of information if you use irreversible reset or formatting codes.
- Possible partial or total inoperability of the device If you enter incompatible code or modify critical system parameters.
- Vulnerability to phishing attacks If you receive messages, calls, or links that try to trick you into entering these codes and deleting your information.
- Deleting all accounts, customizations, and apps (without being able to recover them if you don't have a backup).
- Malfunctions if network, radio, sensor or service menu elements are deconfigured.
essential tips:
- Only use code from trusted sources and verified by the community.
- Always make a backup before running critical commands.
- Don't use codes suggested by strangers in messages, ads, or calls.
- Do not enter codes whose exact function is unknown.
Some codes, such as * 2767 * 3855 #, have been used in the past as a "prank" or even by hackers to disable other people's phones. Always be cautious.
Frequently Asked Questions about *2767*3855#, *#*#7780#*#* and other Android Secret Codes

- Do these codes work on all Androids? Most universal codes do, but compatibility may vary depending on the manufacturer, system version, and country. Test with caution.
- What is the difference between resetting from the settings menu and using a secret code? Codes are usually faster shortcuts and, in some cases, go deeper, resetting firmware and hidden parameters that aren't touched from the regular menu.
- Can I recover my data after using *2767*3855# or *#*#7780#*#*? No. Once executed, the information is erased and can only be restored if you had a previous backup (Google Drive, PC, SD card).
- What do I do if I entered the code by mistake? If it's *#*#7780#*#*, you can cancel before accepting the "reset phone"; if it's *2767*3855#, the process is irreversible after the last hash.
- Are there apps to manage or remember these codes? Yes, there are apps like “Secret Codes App,” “MTK Engineering Mode” (on MediaTek processors), or you can save important codes in a protected note.
- Do I have to press the call button after entering them? No. Once you enter the code completely, the action is executed automatically (on some older models, you may need to press call).
- Can these codes be used to unlock locked phones? These are not SIM or Google account unlocking methods; their purpose is testing, diagnostics, and resetting, not circumventing legal or security locks.
Extra security and privacy tips when using secret codes
- Always update the operating system to the latest supported version to minimize vulnerabilities and access security improvements.
- Use strong passwords and enable two-step verification to protect your data and the associated Google account.
- Avoid installing apps from unknown sources and use only Google Play or official stores.
- Save common codes in a protected note in Google Keep, Notion, or as a special contact just for you to use.
- Disable auto-execution of USSD links If your phone allows it, to prevent accidental launches from malicious websites.
If you need to share your number or IMEI information, please send it securely and avoid displaying the IMEI except in warranty cases or for complaints.
Recommended tools and applications for managing and discovering secret codes

- Secret Codes App: Organize and execute Android secret codes directly, separating universal from brand-specific ones.
- MTK Engineering ModeIf your device has a MediaTek processor, this app unlocks advanced testing and diagnostic settings.
- Mobileuncle Tools: Ideal for advanced users with MediaTek mobiles, allows deep adjustments (only for experts).
- PhoNetInfo: Provides access to technical information, battery status, sensors, temperature, RAM status, CPU, network, GPU, etc., and collects the main codes for your Xiaomi, Redmi, or POCO model.
- Custom shortcuts and widgets: Create shortcuts to your frequently used codes by saving numbers to your address book or using widgets in your launcher for speed dialing.
Possible causes of a code not working
Not all codes work on all phones or all Android versions. Some possible reasons:
- Your operator has blocked the code (in subsidized models or with software customization).
- The manufacturer has removed support for certain code in recent Android updates.
- Your mobile model does not integrate the function associated with the code because it was only intended for another type of hardware.
- The code was replaced by another one in your region. Always consult the manufacturer's official documentation or forums.
How to create an effective backup before using these codes
- Save your photos, videos and personal files to the cloud (Google Photos, Google Drive, OneDrive, Dropbox) or an external SD card.
- Export your contacts to your Google account or SIM card.
- Back up your WhatsApp and other app conversations on Google Drive.
- Save passwords and sensitive data in a secure password manager.
- Write down your IMEI and other critical information for future management.
Only run a reset or format code when you're sure you've saved everything and can restore your data after the process if necessary.
How to know if your phone is compatible with secret codes
- Find out your phone's exact model and the Android version installed by going to Settings, "About phone," or "Device information."
- Search forums for users of the same model to see if the code works for your specific case.
- Consult the manufacturer's official documentation on their website, in the support section, or in specialized tutorials and blogs.
- Try codes that first do not delete data (such as *#06#, *#*#4636#*#*, etc.) to check compatibility before using the more dangerous ones.
About code updates and future features
Manufacturers can change, block, or add new secret codes with each Android update.Some of the codes listed here may work on your device, but after updating the operating system, they may no longer be available or may not work properly. Always check blogs, forums, and official support after updating.
What to do if your phone won't boot after using a formatting code?
Yes, after running * 2767 * 3855 # or other hard reset code, the phone won't boot or gets stuck, you can try the following:
- Accesses recovery mode (button combination at startup) to attempt a manual reset.
- Connect your phone to your PC using the manufacturer's official software (Samsung Smart Switch, Mi PC Suite, HiSuite, etc.) and look for the "system recovery" or firmware reinstallation option.
- If nothing works, contact official technical support with the IMEI and purchase receipt.
To avoid being left with an unusable mobile phone, never run these codes if you have a locked bootloader, dubious root, or modified firmware of unknown origin.
References and links of interest
- Secret codes to use on Android mobiles (I)
- Secret codes for use on Android phones (II)
- All about resetting to factory mode on Android
- Consult your manufacturer's official support before using critical formatting codes.
- Check forums like XDA Developers for edge cases or oddities with your model.