Android 应用具有 "view network connections" 权限,但未在 AndroidManifest.xml 中列出
Android app has permission "view network connections" without it being listed in AndroidManifest.xml
我刚刚在 Playstore 中发布了我的应用程序,看到它列出了“查看网络连接”权限,但是我没有在清单中列出此权限,而且我的应用程序也没有执行任何与网络相关的操作。如何禁用此权限?
这是我的AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.xxxxx.xxx">
<uses-permission android:name="android.permission.SET_ALARM" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:allowBackup="true"
android:fullBackupContent="@xml/backup_descriptor"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppThemeDark">
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
<activity
android:name=".MainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppThemeDark"
android:windowSoftInputMode="adjustPan"
tools:ignore="LockedOrientationActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".system_interaction.handler.share.BackUpActivity"
android:parentActivityName=".MainActivity"/>
<receiver android:name="com.xxxxx.xxx.system_interaction.receiver.RebootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver android:name="com.xxxxx.xxx.system_interaction.receiver.NotificationReceiver" />
<meta-data
android:name="preloaded_fonts"
android:resource="@array/preloaded_fonts" />
</application>
</manifest>
您可以转到 AndroidManifest
并单击 Merged Manifest
。从那里您可以轻松地跟踪该权限来自哪个库。
我刚刚在 Playstore 中发布了我的应用程序,看到它列出了“查看网络连接”权限,但是我没有在清单中列出此权限,而且我的应用程序也没有执行任何与网络相关的操作。如何禁用此权限?
这是我的AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.xxxxx.xxx">
<uses-permission android:name="android.permission.SET_ALARM" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:allowBackup="true"
android:fullBackupContent="@xml/backup_descriptor"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppThemeDark">
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
<activity
android:name=".MainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppThemeDark"
android:windowSoftInputMode="adjustPan"
tools:ignore="LockedOrientationActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".system_interaction.handler.share.BackUpActivity"
android:parentActivityName=".MainActivity"/>
<receiver android:name="com.xxxxx.xxx.system_interaction.receiver.RebootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver android:name="com.xxxxx.xxx.system_interaction.receiver.NotificationReceiver" />
<meta-data
android:name="preloaded_fonts"
android:resource="@array/preloaded_fonts" />
</application>
</manifest>
您可以转到 AndroidManifest
并单击 Merged Manifest
。从那里您可以轻松地跟踪该权限来自哪个库。