简体   繁体   中英

How to Hide the Android Manifest Permissions

有什么方法可以出于某些原因隐藏android manifest 权限 ,而用户在安装应用程序时看不到?

Taken from the support page from Google Play :

Google Play shows you which permission groups an app will be able to access. This information can help you decide whether you want to install the app.

The whole sole purpose of those permissions is for people to see what your app can access and decide whether they want to share (all) that information with you.

In Android L and lower, this is impossible. If you do not ask for a permission, you will get a crash when you try to access the thing that needs permission. Thus, you cannot hide permissions from users.

In Android M, the whole permission idea is changed: instead of asking for lots of permission at the install, the app is installed without permissions, and when you need a specific permission, for example for camera, the user will have the option of accepting or declining the permission. Thus, the user will have a clearer view of what a permission is asked for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM