Android secret codes

Most Android makers hide a test menu behind a dialer code. The codes differ by brand, and new system versions block some of them. This page lists the ones that open hardware tests.

Updated:

Codes for every Android phone

*#06#IMEI. Works on every phone.
*#*#4636#*#*Phone, battery and Wi-Fi information. Some makers removed it.

Test menus by brand

Type the code in the stock Phone app. For Samsung and Xiaomi see the separate pages.

*#*#7287#*#*Google Pixel: diagnostics for the display, touch, sensors and cameras. Needs an internet connection.
*#*#2486#*#*Motorola: CQATest engineering menu. Not on every model.
*#899#Oppo, Realme, OnePlus: EngineerMode with manual hardware tests.
*#808#Oppo, Realme, OnePlus on older versions: manual test mode.
*#*#2846579#*#*Huawei and Honor: project menu with device information.

If no code works

This is common on phones sold by carriers and on the newest system versions. Check the maker's support app: many have a diagnostics section. The browser tests on this site work on any brand and cover the screen, touch, sound, cameras and sensors.

Be careful with long lists

Pages with hundreds of codes copy from each other, and many entries are from phones made 10 years ago. Some old codes reset the phone. On a phone that is not yours yet, type only codes that open tests or show information.

Questions

Why does the code disappear and nothing happens?
The phone accepted the characters but has no such menu, or the carrier blocked it. Try the stock Phone app, then the maker's support app.
Is a test menu a sign that the phone is original?
Partly. Clones of popular models usually lack the brand menu. For a stronger check compare the IMEI with the box and look at the model in the settings.
Can I break something in an engineering menu?
In the hardware tests, no. Menus with radio bands and calibration values can break mobile data if you change them. Do not change values.

Run the full 19 step check