Here are the standard vanilla codes that should work across all devices:
A quick grep through the source code revealed these secret dial codes (for Android 4.1):
- 4636 (show debug info in apps/Settings)
- 8351, 8350 (start/stop voice call debug logging or so in apps/VoiceDialer)
- 36245 (debug email in apps/Email)
- 8477 (? in apps/Protips)
- 225 (debug calendar in providers/CalendarProvider)
I did also check all available Google Apps from http://goo.im/gapps (Versions 2.2-4.2 w/o 3.x):
Android 2.2 and 2.3:
- 8255 (Google Talk)
- 46, 7867, 2432546 (GoogleServicesFramework)
Android 4.0, 4.1 and 4.2 Jelly Bean:
- 8255, 46, 7867, 947322243, 2432546 (GoogleServicesFramework)
- 759 (GooglePartnerSetup)
Note:
This functionality is realized via regular broadcast intents and filters, i.e. any app that wants to can define their own code and subscribe to those broadcasts. Also note, that the above code are only the visible open sourced part (CyanogenMod here), and Google Apps (which I did unpack and then scan). If you're interested in doing it yourself, unpack them with apktool and grep through their AndroidManifest.xml files for this way):
egrep -r --include=\*xml SECRET_CODE\|android:host=\"\[0-9\] .
It will find occurences in AndroidManifest.xml:
<receiver android:name=".checkin.CheckinService$SecretCodeReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SECRET_CODE" />
<data android:scheme="android_secret_code" android:host="2432546" />
</intent-filter>