How to implement a secret menu

To test a feature that I donโ€™t want to release to the general public yet , I would like to implement a โ€œsecretโ€ menu or menu item.

By "secret" I do not mean a truly secret, but more hidden or invisible menu, accessible only to the developer (me) by entering the code or some other mechanism.

This is not the end of the world if the end user finds out about it and tries to use it ("They made it an idiot proof, but I found a workaround"). I just don't want to give up on an unsuspecting innocent end-user by providing a function that is not yet fully tested.

Any suggestions on how to do this? (Only for Android 2.2 and higher)

+5
source share
4 answers

One approach that I have used several times is to open the PIN entry form, when the user triple deletes a certain part of the screen. You enter the PIN code, you go to the developer screen.

+4
source
  • compare, for example. Android device identifier, and if it matches your mobile phone, open the menu

  • let your application check if another application is installed (empty dummy) and unlock the menu based on this information.

  • you can add Activity to your code / manifest, which is not triggered by any code. You can still run it through adb shell am start -n com.your.package/.SecretThing(this activity can just set a shared preference that opens the menu)

  • , - , adb shell am broadcast -a your.secret.broacast.ACTION_SECRET

  • , , , - ( )

  • , , , , .

  • , ( , )

+6

?

3 , .

1) key code, .

2) , .

3) If you have an options menu, with an additional section you can pick up the passage screen. Or, if you have a screen, a long press on the logo may launch the passage screen.

+3
source

I also need a secret menu. Well, I'm going to implement it on login screen, type device timein the EditText field and press cancel.

0
source

All Articles