简体   繁体   English

是否为Android上的应用程序授予默认权限?

[英]Are there default permissions granted for applications on Android?

I have noticed in an application I wrote, in-spite of me not specifying any permission in the manifest file, the application throws up permissions granted, such as 我注意到在编写的应用程序中,尽管我未在清单文件中指定任何权限,但该应用程序会抛出授予的权限,例如

android.permission.WRITE_EXTERNAL_STORAGE android.permission.READ_PHONE_STATE android.permission.WRITE_EXTERNAL_STORAGE android.permission.READ_PHONE_STATE

What is all that about? 这是怎么回事? I was not even aware my application needs to write into external store, and I am pretty sure it doesn't need to. 我什至不知道我的应用程序需要写入外部存储,而且我很确定它不需要。 So why are these permission being granted when I never requested for them? 那么为什么当我从不要求这些权限时才授予这些权限?

Thoose two were default in earlier API versions. 在较早的API版本中,默认两个。 Read more about it: here . 在此处阅读更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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