[HTC Sensation] vijaysapkota:
If any codes don't work, report me so that I can remove them or correct them.

There is also a app available in market. Click here for the link.

Hope you would guys will find it useful

Code:

*#*#4636#*#*

This code can be used to get some interesting information about your phone and battery. It shows following 4 menus on screen:

Phone information

Battery information

Battery history

Usage statistics

Code:

*#*#7780#*#*

This code can be used for a factory data reset. It'll remove following things:

Google account settings stored in your phone

System and application data and settings

Downloaded applications

It'll NOT remove:

Current system software and bundled applications

SD card files e.g. photos, music files, etc.

PS: Once you give this code, you get a prompt screen asking you to click on "Reset phone" button. So you get a chance to cancel your operation.

Code:

*2767*3855#

Think before you give this code. This code is used for factory format. It'll remove all files and settings including the internal memory storage. It'll also reinstall the phone firmware.

PS: Once you give this code, there is no way to cancel the operation unless you remove the battery from the phone. So think twice before giving this code.

Code:

*#*#34971539#*#*

This code is used to get information about phone camera. It shows following 4 menus:

Update camera firmware in image (Don't try this option)

Update camera firmware in SD card

Get camera firmware version

Get firmware update count

WARNING: Never use the first option otherwise your phone camera will stop working and you'll need to take your phone to service center to reinstall camera firmware.

Code:

*#*#7594#*#*

This one is my favorite one. This code can be used to change the "End Call / Power" button action in your phone. Be default, if you long press the button, it shows a screen asking you to select any option from Silent mode, Airplane mode and Power off.

You can change this action using this code. You can enable direct power off on this button so you don't need to waste your time in selecting the option.

Code:

*#*#273283*255*663282*#*#*

This code opens a File copy screen where you can backup your media files e.g. Images, Sound, Video and Voice memo.

Code:

*#*#197328640#*#*

This code can be used to enter into Service mode. You can run various tests and change settings in the service mode.

WLAN, GPS and Bluetooth Test Codes:

Code:

*#*#232339#*#* OR *#*#526#*#* OR *#*#528#*#*

- WLAN test (Use "Menu" button to start various tests)

Code:

*#*#232338#*#*

- Shows WiFi MAC address

Code:

*#*#1472365#*#*

- GPS test

Code:

*#*#1575#*#*

- Another GPS test

Code:

*#*#232331#*#*

- Bluetooth test

Code:

*#*#232337#*#

- Shows Bluetooth device address

Code:

*#*#8255#*#*

This code can be used to launch GTalk Service Monitor.

Codes to get Firmware version information:

Code:

*#*#4986*2650468#*#*

- PDA, Phone, H/W, RFCallDate

Code:

*#*#1234#*#*

- PDA and Phone

Code:

*#*#1111#*#*

- FTA SW Version

Code:

*#*#2222#*#*

- FTA HW Version

Code:

*#*#44336#*#*

- PDA, Phone, CSC, Build Time, Changelist number

Codes to launch various Factory Tests:

Code:

*#*#0283#*#*

- Packet Loopback

Code:

*#*#0*#*#*

- LCD test

Code:

*#*#0673#*#* OR *#*#0289#*#*

- Melody test

Code:

*#*#0842#*#*

- Device test (Vibration test and BackLight test)

Code:

*#*#2663#*#*

- Touch screen version

Code:

*#*#2664#*#*

- Touch screen test

Code:

*#*#0588#*#*

- Proximity sensor test

Code:

*#*#3264#*#

* - RAM version

NOTE: Some codes may not work depending on the device/rom's/location etc...

If so, please let me know.