我的 APK 需要互联网许可,但我没有在清单中请求它?

My APK requires Internet permission, but I didn't request it in the manifest?

我刚刚在 Google Play 上发布了一个应用程序,当我去那里时它说该应用程序需要以下权限:

This app has access to:

  • Location

    • approximate location (network-based)
    • precise location (GPS and network-based)
  • SMS

    • read your text messages (SMS or MMS)
    • receive text messages (SMS)
    • send SMS messages
    • edit your text messages (SMS or MMS)
  • Other

    • receive data from Internet
    • view network connections
    • full network access
    • run at startup
    • prevent device from sleeping
    • full network access
    • run at startup

在我的主要清单中,我只需要 LOCATION 和 SMS 权限。但是,我在 src/beta 文件夹中有一个清单,在 src/debug 文件夹中有一个需要 INTERNET 权限。 Google play 上的 APK 使用构建类型 release 和风格 prod,所以这些清单不应该包含在最终的 APK 中,对吧?

会不会是因为我的应用程序中有使用 Volley 的代码,所以自动添加了 INTERNET 权限?还是因为我使用的是 Firebase?

打开应用 AndroidManifest。 点击文件底部面板上的 MergedManifest

所有的权限都会有颜色,你可以查看库右侧的Manifest Sources颜色对应的。请参考下图。