Programmatically enter secret code like *#*#4636#*#* on Android

前端 未结 5 1034
南方客
南方客 2020-11-27 15:37

On many Android devices you can get into a secret settings menu from Phone app by typing in

*#*#4636#*#*

http://technology-headlines.com/2010/09/17/4636-and

5条回答
  •  感动是毒
    2020-11-27 16:15

    Is it also possible to open this stuff programmatically?

    Yes:

        Intent in = new Intent(Intent.ACTION_MAIN);
        in.setClassName("com.android.settings", "com.android.settings.TestingSettings");
        startActivity(in);
    

    You just need to watch logcat output to learn what this magic combination actually opens:

    I/ActivityManager(31362): START {act=android.intent.action.MAIN flg=0x10000000 cmp=com.android.settings/.TestingSettings} from pid 4257

提交回复
热议问题