1

适用于 Android 的 Necessitas 应用程序似乎默认启用了三个权限:

- Storage
     modify/delete SD card contents
- Network communication
     full internet access
- Phone calls
     read phone state and identity

我想删除它们。我已经尝试在我的所有项目文件中搜索,uses-permission并从以下位置找到并删除了这两行AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

但是,现在删除这些行后,我的 Necessitas 应用程序仍然需要两个权限:

- Storage
     modify/delete SD card contents
- Phone calls
     read phone state and identity

看来我已经摆脱了只有网络权限。我如何摆脱这三个?

4

3 回答 3

1

当我将使用 Necessitas 开发的应用程序发布到 Google Play 时,权限Phone calls消失了,我不知道为什么:P

权限Storage仍然有效,我的应用程序需要它。

于 2012-12-30T07:27:35.887 回答
1

应用程序所需的所有权限都列在AndroidManifest.xml文件中,例如

<uses-permission android:name="android.permission.INTERNET"/>

如果不需要,您可以从清单中删除它们。您的清单中还有哪些其他权限?

但是,如果您的应用程序需要您已删除的权限才能运行,您将收到异常。因此,您需要检查您的应用是否需要已删除的权限

于 2012-12-30T07:01:27.003 回答
0

仔细阅读清单文件中的内容:

<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
     Remove the comment if you do not require these default permissions. -->
<!-- %%INSERT_PERMISSIONS -->
于 2017-09-29T18:30:45.923 回答