Typing dialer secret codes in devices other than phones Dialer secret codes are fun and useful and all the rage, but how can I use them in my tablet, or my TV dongle, or any onther non-phone android device?
From adb shell:

am broadcast -a android.provider.Telephony.SECRET_CODE -d android_secret_code://&lt;secretcode&gt;


Where &lt;secretcode&gt; is the code without the asterisks, e.g., 4636.

This is more effective than the DIAL action because it's direct and does not rely on the dialer to parse the code and fire the secret code intent itself.  (Some dialers will not do this automatically and you'd have to hit "Call".)  The DIAL intent is also handled by multiple apps (Phone, Skype, and Hangouts Dialer on my device) so this can skip that annoyance.