I have an app that have only had minor changes the last couple of years. Yesterday I released a bugfix to Google Play, and noticed that my app suddenly requires 5 new permissions:
I have not made any changes to AndroidManifest.xml, so these 5 permissions are not listed there.
I'm using Google's billing library (com.android.billing) for in-app purchases. This might have been automatically updated by Android Studio.
I have upgraded these libraries as well:
Does anyone know why this happened?
UPDATE WITH ANSWER
@ahmad-nawaz is right, and his answer led me to figure this out. Here is a more detailed answer to my question:
The library that wanted the extra permissions is Google Play Services.
In Google Play Services version 6.5 and onward, you can (and probably should) define which specific API you need, instead of just importing the whole package.
In my case, I was just using play-services-analytics, so I changed this in my build.gradle
compile 'com.google.android.gms:play-services:7.5.0'
to this
compile 'com.google.android.gms:play-services-analytics:7.5.0'
After this change, all the 5 permissions mentioned in the original question disappeared.
Here is the complete list of the individual APIs of Google Play Services: https://developers.google.com/android/guides/setup#split
These are coming from Libraries you used. Android studio merge the libraries permissions into app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With