最近我将google play服务的依赖版本更新到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权限,这个依赖项是否真的需要此权限。
应用级别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}"
}
项目级别 Gradledependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.google.gms:google-services:3.2.0'
}
注意:针对引荐跟踪,我已经在使用 Google Analytics
<service android:name="com.google.android.gms.analytics.CampaignTrackingService"
android:enabled="true"
android:exported="false" />