Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Android snippet for hiding debug screens behind SECRET_CODE broadcasts sent via the dialler.
<receiver android:name=".SecretCodeReceiver">
<action android:name="android.provider.Telephony.SECRET_CODE" />
android:host="1111" />
public class SecretCodeReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
Intent i = new Intent(context, SecretActivity.class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment