本文介绍了安装Referrer Library v1.1添加权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将安装引荐来源库从v1.0更新到v1.1,添加了以下权限:

Updating the Install Referrer Library from v1.0 to v1.1 added the following permissions:

READ_EXTERNAL_STORAGE

READ_EXTERNAL_STORAGE

READ_PHONE_STATE

READ_PHONE_STATE

安装引荐来源网址"清单manifest.xml中不存在这些权限:

Those permissions are not present in the Install Referrer Library manifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.installreferrer" >

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

    <application />

</manifest>

来源: https://mvnrepository.com/artifact/com.android.installreferrer/installreferrer/1.1

为什么将那些权限添加到合并清单中?

Why those permissions added to the merged manifest?

推荐答案

版本1.1和1.1.1缺少"minSdkVersion".这将自动添加这些权限.在此处看到类似的问题: Google Play服务12.0.1 .

Version 1.1 and 1.1.1 are missing "minSdkVersion". This would automatically add those permissions. See similar issue here: Google Play Services 12.0.1.

解决方案

版本1.1.2解决了此问题.

Version 1.1.2 solves this issue.

详细信息

v1.0的Manifest.xml(来自 https://mvnrepository. com/artifact/com.android.installreferrer/installreferrer/1.0 )

Manifest.xml for v1.0 (from https://mvnrepository.com/artifact/com.android.installreferrer/installreferrer/1.0)

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.installreferrer" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="22" />

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

    <application />

</manifest>

v1.1的Manifest.xml(来自 https://mvnrepository. com/artifact/com.android.installreferrer/installreferrer/1.1 )

Manifest.xml for v1.1 (from https://mvnrepository.com/artifact/com.android.installreferrer/installreferrer/1.1)

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.installreferrer">

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

    <application />

</manifest>

这篇关于安装Referrer Library v1.1添加权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-28 02:11