android - Why are permissions being automatically added to my AndroidManifest when including Google Play Services library -
i noticed following permissions automatically added when use following in build.gradle file
compile 'com.google.android.gms:play-services:7.5.0'
this did not occur earlier versions of play-services. have solution remove these unwanted permissions?
i using ads function (internet , accessnetwork_state). got no need location , use_credentials permissions. how remove these unwanted permissions?
i noticed 'manifest-merger-xxx-debug-report.txt' file contains following
...<snipped bunch of other merges> merged com.google.android.gms:play-services-maps:7.5.0:22:5 android:name added com.google.android.gms:play-services-maps:7.5.0:22:22 uses-permission#android.permission.access_coarse_location added com.google.android.gms:play-services-maps:7.5.0:23:5 merged com.google.android.gms:play-services-maps:7.5.0:23:5 merged com.google.android.gms:play-services-maps:7.5.0:23:5 merged com.google.android.gms:play-services-maps:7.5.0:23:5 android:name added com.google.android.gms:play-services-maps:7.5.0:23:22 uses-feature#0x00020000 added com.google.android.gms:play-services-maps:7.5.0:24:5 merged com.google.android.gms:play-services-maps:7.5.0:24:5 merged com.google.android.gms:play-services-maps:7.5.0:24:5 merged com.google.android.gms:play-services-maps:7.5.0:24:5 android:glesversion added com.google.android.gms:play-services-maps:7.5.0:25:8 android:required added com.google.android.gms:play-services-maps:7.5.0:26:8 android:uses-permission#android.permission.read_external_storage implied androidmanifest.xml:2:1 reason: com.google.android.gms.maps requested write_external_storage uses-permission#android.permission.get_accounts added com.google.android.gms:play-services-wallet:7.5.0:21:5 android:name added com.google.android.gms:play-services-wallet:7.5.0:21:22 uses-permission#android.permission.use_credentials added com.google.android.gms:play-services-wallet:7.5.0:22:5 android:name added com.google.android.gms:play-services-wallet:7.5.0:22:22 meta-data#com.google.android.gms.wallet.api.enabled ...<snips more lines away>
when use
compile 'com.google.android.gms:play-services:7.5.0'
this implies using every feature of google play services, including location services. if need particular api, should using selective apis.
in case of ads, can use solely:
compile 'com.google.android.gms:play-services-ads:7.5.0'
Comments
Post a Comment