ACCESS_COARSE_LOCATION merged with lib-play base lib

I use Android Studio to create my project, and after viewing the file, manifest-merger-debug-report.txtI see that the following permission has been added to my manifest:

ADDED from com.google.android.gms:play-services-base:7.5.0:22:13
uses-permission#android.permission.ACCESS_COARSE_LOCATION

It seems that the play-services lib combined the ACCESS_COARSE_LOCATION permission for my manifest. I use game services to support GCM in my library (play-services-gcm). I have been using the play-services library for a long time, until the recent lib update, which, apparently, for some reason added this permission. This is obviously not required at my end, as fewer users will trust my application.

Anyway, can I use lib without this unnecessary permission?

+4
source share
2 answers

Google Play 7.5 services automatically add the required permissions - when used com.google.android.gms:play-services- it says that you use every part of the Google Play services, potentially adding more permissions than you planned.

You may need to selectively compile only the required Google Play APIs.

Here is a link to shared libraries, and here is the list that was at the time of writing:


Google + com.google.android.gms:play-services-plus:7.5.0

Sign in to your Google Account com.google.android.gms:play-services-identity:7.5.0

Google Actions Base Client Library com.google.android.gms:play-services-base:7.5.0

Google app indexing com.google.android.gms:play-services-appindexing:7.5.0

Google App com.google.android.gms:play-services-appinvite:7.5.0

Google analytics com.google.android.gms:play-services-analytics:7.5.0

Google cast com.google.android.gms:play-services-cast:7.5.0

Google Cloud Messaging com.google.android.gms:play-services-gcm:7.5.0

Google drive com.google.android.gms:play-services-drive:7.5.0

Google fit com.google.android.gms:play-services-fitness:7.5.0

Google location, activity and location recognition com.google.android.gms:play- services-location:7.5.0

Google maps com.google.android.gms:play-services-maps:7.5.0

Google Mobile Ads com.google.android.gms:play-services-ads:7.5.0

Google nearby com.google.android.gms:play-services-nearby:7.5.0

Google panorama viewer com.google.android.gms:play-services-panorama:7.5.0

Google Play Game com.google.android.gms:play-services-games:7.5.0

SafetyNet com.google.android.gms:play-services-safetynet:7.5.0

Google com.google.android.gms:play-services-wallet:7.5.0

Android Wear com.google.android.gms:play-services-wearable:7.5.0

+7

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" tools:node="remove" />

, .

0

All Articles