Skip to content

Instantly share code, notes, and snippets.

@plugnburn
Last active April 3, 2023 17:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save plugnburn/b98d3ee1f1fcbb78b910 to your computer and use it in GitHub Desktop.
Save plugnburn/b98d3ee1f1fcbb78b910 to your computer and use it in GitHub Desktop.
Samsung B312E Cheatbook

B312E Cheatbook: pump up your Samsung Metro!

This is probably the most complete cheats and secret codes reference for the new Samsung SM-B312E phone you can ever find on the Internet. The main reason I say this is because most of the codes were dumped straight from the firmware (the European version, B312EXXNE6), others, meant for much older models, were also found on the Internet, but almost all of them were then tested on a real device (if the code is not tested, there's a note about this in the "Notes and warnings" column) and a description was made what do they do right here, on B312E. This cheatbook is divided into several parts: information codes, testing codes, setting codes, codes with undefined behavior and general tips and tricks.

Please note: GSM-related USSD codes (such as call divert, Caller ID display etc) are not included here because all of them are common for all GSM phones, their functionality is completely duplicated in standard call settings menu, and you better ask your cellular operator for them.

Disclaimer: try all these codes and tricks on your own risk. The author is not responsible for any harm done to your particular device.

Information codes

These codes are not meant to run or change anything, just to display some information to you.

Code Mnemonic Meaning Notes and warnings
*#03# None Show some unique number of the device
*#06# None Show IMEI of both SIM slots
*#4357# *#HELP# Meant to be a help screen for all other codes Actually shows just HELP (4357) This screen and nothing else
*#0782# *#0RTC# Show current date, time, and the time of last turning on and off
*#1111# None Show software version
*#1234# None Show firmware version
*#2222# *#BABA# Show hardware revision
*#4986*2650468# *#IZUM*AMK0HOT# Even more detailed info about firmware version, regional patch version, hardware revision, manufacturing date and time
*#0228# *#0BAT# Show battery voltage and temperature
*#0638# *#0NET# Show current SIM network code and name
*#0746# *#0SIM# Show current SIM phase and SMS memory in the SIM
*#0778# *#0SST# Show current SIM SST size
*#636679# *#MEMORY# Show memory status Doesn't fit into the screen and there is no way to scroll it
*#3282*727336*# *#DATA*SCREEN*# Nice summary of call amount, stored media size, SMS count, ringtones, memos, wallpapers and IMEIs Unlike the previous status, it's scrollable
*#9324# or *#9999*0# *#WEBI# Netmonitor (change screens with Up/Down keys) Can exit with "hang up" key only
*#232337# *#BDADDR# Show Bluetooth device MAC address
*#28324564# *#BTDBGLOG# Show some Bluetooth debug mode information
*#927837# *#WAPVER# WAP browser version info Openwave version (used for J2ME app HTTP requests and OTA installs)
*#737425# *#SERIAL# S/N, some serial number May be all zeroes
*#222554448# *#BACKLIGHT# Some MILC_BackFlags info screen Probably has something to do with backlight parameters
*#6874232# *#MUSICDB# FSDB/Add/Menu/List info popup Some stats about music collection, I guess
*#9998*968# *#9998*WOV# Some unknown screen Shows YAMAHA OK o_O
*#9998*5646# *#9998*LOGO# GSM logo info Most likely will show Default LOGO
*#9998*76# *#9998*PN# Product number Just shows the words PRODUCT NUMBER o_O
*#9998*377# *#9998*ERR# Trap summary Kind of an error log
*2767*4387264636# *CROP*GETSAMINFO# Some info popup "Active", PCode, Mode

Testing codes

These codes run different hardware or software tests on the phone.

Code Mnemonic Meaning Notes and warnings
*#0*# None General display and hardware test LOL at Mega CAM; be extra careful with "Sleep mode", it may lose SIMs and you may have to reboot
*#8*# None White/black screen test
*#7353# *#SELF# "Self test" Another general hardware test menu
*#0283# *#0AUD# Microphone and handsfree test
*#0673# None Keytone test
*#0289# *#0BUZ# Another speaker, microphone, handsfree test
*#0842# *#0VIB# Vibrator test Can exit with * key only
#*3888# #*DUVU# Bluetooth hardware test Requires reboot after running! Better use *#SELF# for real Bluetooth testing

Setting codes

These codes allow you to change different settings or even wipe your data, and may be dangerous (carefully read "Notes and warnings" column), but also may give you some unusual possibilities. The table starts from the most useful and important setting codes to the most useless, unknown and dangerous ones.

Setting codes

Code Mnemonic Meaning Notes and warnings
*#3633284*# *#FMDEBUG*# FM Debug (allows you to listen to FM radio without earphones if the signal is strong enough) Works until reboot, then you have to enter this code again
*#72632337# *#RANDADDR# Randomize and show new Bluetooth device MAC address
*#22766# *#ACRON# Turn on automatic call reception Unlike the "automatic answering" in phone settings, it doesn't depend on headset and ringtone
*#227633# *#ACROFF# Turn off automatic call reception
*#02263# *#0BAND# Manual GSM band selection May fail to work in some networks
*#251# *#BL1# Makes the backlight never turn off Appears to do nothing after you enter it, but works
*#250# *#BL0# Restores the backlight to usual mode Appears to do nothing after you enter it, but works
*#32436837# *#DAIENTER# Turn "Digital audio interference" on Don't know what it means
*#3243948# *#DAIEXIT# Turn "Digital audio interference" off Don't know what it means
*#9998*667# *#9998*MMS# DITTO MMS Debug - all MMS info and settings You can enter any password to enter this menu
*#9998*5282# *#9998*JAVA# Java libraries info and app connection settings
*#4777*8665# *#GPRS*TOOL# Hidden GPRS settings
*#2728378# *#CSCTEST# CSC Test Mode Have absolutely no idea what it is
*#92782# *#WAPUA# WAP browser User Agent settings Set the User-Agent header string for Java app HTTP requests
*#927827# *#WAPUAP# WAP browser User Agent Profile settings Changes the X-Wap-Profile header string in HTTP requests from Java apps
*#927837882# *#WAPTESTUA# Change WAP profile to one of preset test profiles Changes the User-Agent and X-Wap-Profile header string in HTTP requests from Java apps; the only ways to turn it back are either manual re-entry or WAP reset with *CROP*WAP#
*#92733284# *#WAPDEBUG# WAP debug mode Asks to enter your PIN and then does nothing
*#04674# *#0IMSI# IMSI replace menu Don't know what it means, probably better don't touch that
*2767*73876766# *CROP*SETSMSON# Sellout SMS? Haven't figured out yet what it is for, affects the first line in *CROP*GETSAMINFO#
*2767*738767633# *CROP*SETSMSOFF# Sellout SMS? Haven't figured out yet what it is for, affects the first line in *CROP*GETSAMINFO#
*2767*7387678378# *CROP*SETSMSTEST# Set some mode to "Test" Haven't figured out yet what it is for, affects the third line in *CROP*GETSAMINFO#
*2767*7387677763# *CROP*SETSMSPROD# Set some mode to "Prod" Haven't figured out yet what it is for, affects the third line in *CROP*GETSAMINFO#

Wipeout codes (be careful!)

Code Mnemonic Meaning Notes and warnings
*2767*8451# *CROP*UIL1# Reset the phone password Then you can go to Settings-7-1-Change password and set the new one if needed)
*2767*5282# *CROP*JAVA# Wipe all Java midlets (except pre-installed) and all Java settings, including Opera Mini settings Reboots after the wipe
*2767*927# *CROP*WAP# Wipe all WAP settings Reboots after the wipe
*2767*667# *CROP*MMS# Wipe all MMS messages and settings Reboots after the wipe
*2767*2878# *CROP*CUST# Wipe all custom settings Reboots after the wipe; not tested yet
*2767*3855# *CROP*FULL# Full EEPROM wipe Reboots after the wipe; not tested yet
*#272*HHMM# *#CSC*HHMM# Full factory reset with changing the distribution region (HHMM is the time displayed on the phone when you type the code) The region codes in the menu are not so obvious, so you have to guess (for example, SEK is for Ukraine, SER is for Russia)

Codes with undefined behavior

These codes are showing that they work but appear to do nothing. Be extra careful with any of them, probably you don't want to enter them at all.

Code Mnemonic Meaning Notes and warnings
*#350# None Unknown, crashes the phone in 3 seconds Better don't touch that: the phone may either reboot or turn off and hang (in that case, you'll have to pull the battery out and put it back in)
*#432787243# *#HEARTPAGE# Does nothing? Appears to do nothing, probably there must have been some info screen

General tips and tricks

Here are some tips and tricks you can perform with your SM-B312E. Some are based on the codes described above, others are not. Anyway, have fun.

  1. Did you know that you can take screenshots from Java games and apps? How? Easy. First, you need to use the code *#9998*5282# (*#9998*JAVA#), go to "Hidden options" (press 3), choose "Select all" and press "Save". It is enough to do it only once. Then you can go to Games menu, choose a game or app you want to take the screenshots from, press "Options", then choose "Extra settings", and in the "Send key function" menu choose "Photo". Click "Select" and then run this game or app. Whenever you want to make a screenshot, press the "Send" key (the key usually used to make a call) and a screenshot will appear in your Images folder in BMP format, the name is starting with "Capture_". Note you cannot view BMP screenshots right on your phone (somehow it reads incorrect height from there), you have to transfer them to another device or computer.
  2. Did you know that you can listen to FM radio without wired headset or earphones? Just use the code *#3633284*# (*#FMDEBUG*#) that allows you to turn on earphone emulation. Then don't forget to turn on the speaker in the FM radio itself (FM Radio - Options - 4). And then, if the stations around you have the signal strong enough to be received without an antenna, you may be able to listen to them. The only downside is that this FM debug mode must be turned on again after each phone reboot.
  3. Just in case anyone still doesn't know: to turn the flashlight quickly on (or off), press and hold Up button. No need to fiddle around any menus. Still need to unlock the keypad though.
  4. When the flashlight is not enough and you need even more lighting, use the *#251# (*#BL1#) code and the backlight will constantly stay on with the maximal allowed brightness. The upside is that the phone will not automatically lock the keypad because the backlight doesn't go out, so if you need anything to persist on the screen for some time, this code is for you. To turn this madness off and turn the backlight back into normal mode, type the *#250# (*#BL0#) code.
  5. When your hands are busy and you need to automatically receive calls, you have two options. The first is to go to your settings menu and find the "Call" - "All calls" - "Answering mode" - "Automatic" checkbox. But you can read two disappointing things right there: for it to work, you must have a headset connected and a ringtone on. My phone is always on vib so I might want to receive all calls silently. So what's my recommended option? The second one: *#22766# (*#ACRON#) code. It just works all the time: two buzzes and the phone is automatically picked up. To turn this wonderful mode off, just enter the *#227633# (*#ACROFF#) code.
  6. Forgot your phone protection password but don't want to do a full or regional factory reset? Enter the *2767*8451# (*CROP*UIL1#) code, a confirmation popup will appear, and then you can go to Settings-7-1-Change password and set the new one if needed.
  7. Of course you can measure the room temperature with the *#0228# (*#0BAT#) code if you leave the phone on the table for a while.
  8. Don't use GPRS but your phone automatically connects to it and shows the G sign, eating out your battery? No more. Enter the *#4777*8665# (*#GPRS*TOOL#) code. First, go to the "GPRS Setting" submenu (press 9) and uncheck the "PS Auto Attach" checkbox. Press Save. This will disable autoconnection after every reboot. Then go to main GPRS menu and select "GPRS Detach" item (press 2). Wait until "GPRS DETACH CONFIRM" appears. This will abort any active GPRS connections and make the G sign go off.
  9. Tired of that annoying camera shutter sound that can't be turned off in any way? Just plug wired earphones in (Bluetooth headset connection doesn't work for this). Or you can use a dumb 3.5mm jack, e.g. cut off old non-working headphones. Not so elegant solution, but it seems to be the only one until special firmware patches come out.
  10. Are you a fan of "cellphone cover" melodies that can be played using melodic keytones on most Samsung phones? Then you've probably noticed the really annoying fact: if you key in a long melody, after some amount of digits the number buffer overflows and you have to reset it thus ruining the flow of your melody. Is there any workaround? The answer is yes! At least on B312E. You just need to find an input field that allows unlimited keyboard input...and can you guess where it is? Just open the FM Radio app, go to the Options - Manual tuning (7) and start playing your melody with no limits! That is possible because the last digit of the frequency field just gets overwritten. Real time to unleash your creativity! :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment