android - 警告您的 Apk 正在使用需要隐私政策 : (android. 权限的权限。READ_PHONE_STATE)

标签 android android-studio permissions android-manifest google-developers-console

在 list 中未添加 android.permission.READ_PHONE_STATE。权限。

为什么我上传新的apk版本时出现错误如下。

您的应用有一个版本代码为 1 的 apk,它请求以下权限:android.permission.READ_PHONE_STATE。在 APK 中使用这些权限的应用需要设置隐私政策。

我附上了我的 google play 商店帐户的屏幕截图。 enter image description here

我的 list 文件。

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

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:name=".utils.PreferenceManager"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".SplashScreen"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name=".MainActivity"
            android:screenOrientation="portrait" />

        <activity
            android:name=".CategoryListActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".ImagesActivity"
            android:screenOrientation="portrait" />

    </application>

</manifest>

最佳答案

您的应用的 manifest.xml 具有从您的设备访问信息的这些权限,但您在 Play 商店提交时没有隐私政策链接。所以你会收到这个警告。

如果您的应用处理个人或敏感用户数据,则需要应用的隐私政策

Adding a privacy policy to your app's store listing helps provide transparency about how you treat sensitive user and device data.

更新 1

Google Play 管理中心的隐私政策设置已更改位置。

在 Google Play 控制台中,
选择商店展示应用内容
根据隐私政策

更新 2

选择最左下角的政策应用内容
根据隐私政策

关于android - 警告您的 Apk 正在使用需要隐私政策 : (android. 权限的权限。READ_PHONE_STATE),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41234205/

相关文章:

java - 在 Play 服务 9.4.0 中访问 AdvertisingIdClient

java - 如何将外部SqliteDatabase连接到Android应用程序?

Nginx 仅在将工作进程用户设置为 root 时有效

android - 如何在 AlertDialog.Builder 上调用 findViewById?

java - 从 Android 的下载文件夹中获取 pdf 或 doc 文件

android - AssetManager 列表返回 Assets 文件夹中没有的目录

java - Android Studio下面的类无法实例化?

php - 图像未从本地主机服务器显示

android - 串联使用 Google SettingsAPI 和 PermissionModel API

android - Android将一个TextView的文本大小设置为等于另一个