What you are looking for is part of the contact application, and although it is very likely that the implementation is the same for each manufacturer, I am not sure about that.
handleSecretCode SpecialCharSequenceMgr.
static boolean handleSecretCode(Context context, String input) {
int len = input.length();
if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) {
Intent intent = new Intent(Intents.SECRET_CODE_ACTION,
Uri.parse("android_secret_code://" + input.substring(4, len - 4)));
context.sendBroadcast(intent);
, Intents.SECRET_CODE_ACTION uri android_secret_code:// "code" , .
, , , , - * # * # 4636 # * # *.