Why is my app requesting permissions I didn't ask for?

513 Views Asked by At

my APK is requesting these permissions:

android.permission.ACCESS_NETWORK_STATE
android.permission.BIND_NOTIFICATION_LISTENER_SERVICE
android.permission.INTERNET
android.permission.READ_EXTERNAL_STORAGE
android.permission.READ_LOGS
android.permission.WRITE_EXTERNAL_STORAGE

I can see that when I try to publish the APK on the play store or when I try to install the APK on my physical device.

However, my app manifest only has:

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

Why would my app request the other permissions?

My solution has a Xamarin.Forms PCL project, a shared PCL utilities project and the native Android project. I'm using SQLite.NET (it doesn't require these permissions) could it be related?

Any ideas?

EDIT: Here is the entire manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.SpaceMonkey.Boats">
    <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21" />
    <application android:label="Boats" android:icon="@drawable/anchor" android:theme="@android:style/Theme.Material"></application>
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_LOGS" />
    <uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" />
</manifest>
1

There are 1 best solutions below

4
On BEST ANSWER

Acording to this article Xamarin.Insights.dll manifest have this:

[assembly: UsesPermission("android.permission.WRITE_EXTERNAL_STORAGE")]
[assembly: UsesPermission("android.permission.INTERNET")]

Could be this your case?