android - InstallReferrerClient.startConnection() throwing 由 java.lang.SecurityException 引起

标签 android crash-reports install-referrer

 Caused by java.lang.SecurityException
    Not allowed to bind to service Intent { act=com.google.android.finsky.BIND_GET_INSTALL_REFERRER_SERVICE cmp=com.android.vending/com.google.android.finsky.externalreferrer.GetInstallReferrerService }

在 android 项目中我使用新库 com.android.installreferrer:installreferrer:1.1
什么时候调用这段代码

referrerClient.startConnection(new InstallReferrerStateListener()

发生异常

在firebase crashReporter中报告了这个异常 三星(Galaxy Note3、Galaxy Grand2、Galaxy A7)和华为(Y5II、G750-U10)

安卓 5.1 21% 安卓5.0 10% 安卓5.0.2 21% 安卓 4.4.2 16% 安卓4.2.2

我检查合并 list 并找到此权限

android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" 

但不是源tools:remove标签

enter image description here

最佳答案

这似乎是 Google 的问题:他们的问题跟踪器中有一张 Unresolved 工单:

https://issuetracker.google.com/issues/72926755

关于android - InstallReferrerClient.startConnection() throwing 由 java.lang.SecurityException 引起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60463175/

相关文章:

android - 在 `adb forward` 和 `usbmuxd` 的情况下,谁应该是 socket 服务器,谁应该是客户端

android - 如何确认应用程序是否已从 deeplink/referlink 安装?

java.lang.SecurityException : Binder invocation to an incorrect interface on Android 6 错误

android - 如何从 kotlin 中的 map 获取值?

objective-c - MediaPlayer 在 iOS 7.1 (MPAVItem) 上崩溃

ios - 崩溃报告 EXC_CRASH (SIGABRT)

iOS 8.0 - "failed to scene-update in time"崩溃

android - 如何测试 Google App Invites

android - 使用 Install Referrer 获取(not%20set)UTM 参数 - Android

android - 在与主机 Android 设备连接的 Gear 2 模拟器上运行的 Gear 2 应用程序中进行 web api 调用的问题