Why Google play services dependency automatically added com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE permission-ThrowExceptions

Exception or error:

Recently i have updated google play services dependency version to 15.0.0 it automatically added the below permission.

i don’t no wheather i need this Google Play Referrer API permission or not

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

I’m able to remove this permission

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

but i need know which dependency will need BIND_GET_INSTALL_REFERRER_SERVICE permission does the dependency really need this permission or not.

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}"

}

Project Level Gradle

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

Note: For referrer tracking am already using google analytics

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

Won’t Fix (Intended behavior)

For More details check Google Issue Tracker

Leave a Reply

Your email address will not be published. Required fields are marked *