0

WithgetPackageManager() it is possible to get a list of installed Android applications. (How to get a list of installed android applications and pick one to run)

Is it possible to hide an Android app, so that it can‘t be seen by other apps in this list? (For example, because an app can reveal the political orientation, the sexual orientation or the health status of a user).

Phantômaxx
  • 36,442
  • 21
  • 78
  • 108
max
  • 1
  • 1
    why are you wanting to hide an application? not a good look. – letsCode Feb 20 '18 at 17:27
  • For this reason: "... because an app can reveal the political orientation, the sexual orientation or the health status of a user". And that's why it seems difficult to me that every android app can see the entire list of installed apps without having any permission from the user. Does this make sense? – max Feb 21 '18 at 13:15
  • yes it makes sense.... but there are ways around this. for example, override the onPause, onStop, or onDestory to either send the user out of the protected activity, or make the user enter a pin to access it. hiding it wont look good. – letsCode Feb 21 '18 at 13:55

2 Answers2

3

Is it possible to hide an Android app, so that it can‘t be „seen“ by other apps in this list?

No.

because an app can reveal the political orientation, the sexual orientation or the health status of a user

Another reason for this would be "because an app is malware", which is why you cannot hide apps this way.

CommonsWare
  • 910,778
  • 176
  • 2,215
  • 2,253
0

Only apps listed as malware can be hidden this way, and don't think that it's a good idea to hide any app from the launcher.