为什么Google Play服务依赖项会自动添加com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE权限

时间:2018-04-22 04:39:10

标签: android android-gradle google-play-services install-referrer

最近我将谷歌播放服务依赖版本更新为15.0.0,它自动添加了以下权限。

我不需要这个Google Play Referrer API许可

<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" />

我可以删除此权限

    <uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" 
tools:node="remove" />

但我需要知道哪个依赖项需要BIND_GET_INSTALL_REFERRER_SERVICE权限,依赖项是否真的需要此权限。

App Level Gradle

dependencies {

     ext {
        support_library_version = '27.0.2'
        google_play_services_version = '15.0.0'
    }

    implementation 'com.android.support:multidex:1.0.3'
    implementation "com.android.support:appcompat-v7:${support_library_version}"
    implementation "com.android.support:design:${support_library_version}"
    implementation "com.android.support:recyclerview-v7:${support_library_version}"
    implementation "com.android.support:cardview-v7:${support_library_version}"

    implementation "com.google.android.gms:play-services-analytics:${google_play_services_version}"
    implementation "com.google.android.gms:play-services-gcm:${google_play_services_version}"
    implementation "com.google.firebase:firebase-messaging:${google_play_services_version}"
    implementation "com.google.firebase:firebase-core:${google_play_services_version}"
    implementation "com.google.firebase:firebase-ads:${google_play_services_version}"

}

项目级别Gradle

dependencies {
    classpath 'com.android.tools.build:gradle:3.1.1'
    classpath 'com.google.gms:google-services:3.2.0'
  }

注意:对于引荐来源跟踪我已经在使用谷歌分析

<service   android:name="com.google.android.gms.analytics.CampaignTrackingService"
            android:enabled="true"
            android:exported="false" />

1 个答案:

答案 0 :(得分:2)

不会修复(预期行为)

有关详细信息,请查看Google Issue Tracker