My apk is asking for permissions that I am not asking on my AndroidManifest.xml

I just noticed that my app is asking for new permissions all of a sudden.

./aapt d permissions MyApk.apk 
package: mypackage
uses-permission: android.permission.INTERNET
uses-permission: android.permission.ACCESS_WIFI_STATE
uses-permission: android.permission.CHANGE_WIFI_MULTICAST_STATE
uses-permission: android.permission.ACCESS_NETWORK_STATE
uses-permission: com.android.vending.BILLING
uses-permission: android.permission.WRITE_EXTERNAL_STORAGE
uses-permission: com.android.launcher.permission.INSTALL_SHORTCUT
uses-permission: android.permission.GET_ACCOUNTS
uses-permission: android.permission.USE_CREDENTIALS
uses-permission: android.permission.ACCESS_COARSE_LOCATION
uses-permission: android.permission.READ_EXTERNAL_STORAGE

      

I believe these 3 things I am not asking for:

  uses-permission: android.permission.GET_ACCOUNTS
  uses-permission: android.permission.USE_CREDENTIALS
  uses-permission: android.permission.ACCESS_COARSE_LOCATION

      

These are the only permissions for my AndroidManifest.xml

 <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="com.android.vending.BILLING" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />

      

This is an application that I release new versions at least once a month for a year, this is the first time this has happened.

I recently switched to using MoPub, but I haven't changed my permissions, plus I released this version over a month ago. The very last thing I did was add a ChartBoost chart file, but this is just a jar file.

Any ideas?

Thank.

+3


source to share


1 answer


All my dependencies on Google Play Services were 7+ and 7.5 just came out last week so it requires new permissions because when I changed them to 7.3 it all started working as usual again.

After change 7.3:

uses-permission: android.permission.INTERNET
uses-permission: android.permission.ACCESS_WIFI_STATE
uses-permission: android.permission.CHANGE_WIFI_MULTICAST_STATE
uses-permission: android.permission.ACCESS_NETWORK_STATE
uses-permission: com.android.vending.BILLING
uses-permission: android.permission.WRITE_EXTERNAL_STORAGE
uses-permission: com.android.launcher.permission.INSTALL_SHORTCUT

      

This is the change I made:

compile 'com.google.android.gms:play-services-ads:7+'

      



To:

compile 'com.google.android.gms:play-services-ads:7.3+'

      

I've done this for all of my dependencies on Google Play services, so I don't know if the ads are the only ones requiring this, or if all of them.

EDIT: From my testing, as soon as you add compile 'com.google.android.gms:play-services-wallet:7.5+'

to a clean project it will start asking for new permissions.

+3


source







All Articles