为什么在包含Google Play服务库时将权限自动添加到我的AndroidManifest中

我注意到当我在build.gradle文件中使用以下内容时,会自动添加以下权限


compile 'com.google.android.gms:play-services:7.5.0'

早期版本的播放服务不会发生这种情况。有谁有解决方案来删除这些不需要的权限?


我仅使用广告功能(INTERNET和ACCESSNETWORK_STATE)。我不需要LOCATION和USE_CREDENTIALS权限。如何删除这些不需要的权限?


我注意到“ manifest-merger-xxx-debug-report.txt”文件包含以下内容


 ...<snipped bunch of other merges>

MERGED from com.google.android.gms:play-services-maps:7.5.0:22:5

    android:name

        ADDED from com.google.android.gms:play-services-maps:7.5.0:22:22

uses-permission#android.permission.ACCESS_COARSE_LOCATION

ADDED from com.google.android.gms:play-services-maps:7.5.0:23:5

MERGED from com.google.android.gms:play-services-maps:7.5.0:23:5

MERGED from com.google.android.gms:play-services-maps:7.5.0:23:5

MERGED from com.google.android.gms:play-services-maps:7.5.0:23:5

    android:name

        ADDED from com.google.android.gms:play-services-maps:7.5.0:23:22

uses-feature#0x00020000

ADDED from com.google.android.gms:play-services-maps:7.5.0:24:5

MERGED from com.google.android.gms:play-services-maps:7.5.0:24:5

MERGED from com.google.android.gms:play-services-maps:7.5.0:24:5

MERGED from com.google.android.gms:play-services-maps:7.5.0:24:5

    android:glEsVersion

        ADDED from com.google.android.gms:play-services-maps:7.5.0:25:8

    android:required

        ADDED from com.google.android.gms:play-services-maps:7.5.0:26:8

android:uses-permission#android.permission.READ_EXTERNAL_STORAGE

IMPLIED from AndroidManifest.xml:2:1 reason: com.google.android.gms.maps requested WRITE_EXTERNAL_STORAGE

uses-permission#android.permission.GET_ACCOUNTS

ADDED from com.google.android.gms:play-services-wallet:7.5.0:21:5

    android:name

        ADDED from com.google.android.gms:play-services-wallet:7.5.0:21:22

uses-permission#android.permission.USE_CREDENTIALS

ADDED from com.google.android.gms:play-services-wallet:7.5.0:22:5

    android:name

        ADDED from 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>


慕的地6264312
浏览 723回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android