为什么我收到警告 - 此应用不符合 Google Play 权限政策,即使我的最新版本不需要这些权限? [英] Why I am receiving Warning - this app does not meet Google Play permissions policy, even though my latest version doesn't require these permission?

查看:24
本文介绍了为什么我收到警告 - 此应用不符合 Google Play 权限政策,即使我的最新版本不需要这些权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显示这条消息

此应用不符合与使用 SMS 或 CALL_LOG 相关的 Google Play 权限政策.您必须在 2019 年 3 月 9 日之前解决此问题,否则您的应用将从 Google Play 中删除.注意:如果您最近进行了更改,则最多可能需要 12 小时才能更新此消息.

This app does not meet the Google Play permissions policy relating to the use of SMS or CALL_LOG. You must fix this before March 9. 2019 or your app will be removed from Google Play. Note: if you have recently made a change, it can take up to 12 hours to update this message.

我以前版本的应用程序有此权限,并在被拒绝时申请例外我在 2 周前更新了应用程序并删除了此权限.但现在我收到了这条消息.

My app on its previous version has this permission and apply for an exception when it was rejected I updated the app 2 weeks ago and removed this permission. But now I get this message.

推荐答案

我在上一个应用版本时也收到了这个警告.

I also received this warning on my last app version.

说明:您收到此警告是因为您以某种方式直接或间接使用了一些不符合 Google 的权限播放权限政策.

间接意味着,您在项目中使用的任何第三方库可能已经在使用这些权限.当您构建项目时,它会将所有 Manifest 文件合并到一个 Merged Manifest 文件中.这就是您收到此警告的原因,因为您的最终清单具有任何这些权限.

Indirectly means, may be any of the 3rd party library you are using in your project is already using those permissions. And when you build your project it merged all the Manifest file in a single Merged Manifest file. This is the reason you are getting this warning because your final manifest has any of those permission(s).

解决方案 1: 构建项目后,

Solution 1: After build your project,

  • 打开项目的 AndroidManifest 文件.
  • 打开底部的Merged Manifest标签.
  • 搜索任何这些权限.(示例 - READ_SMS)
  • 如果有,现在是时候删除它们了.检查示例

示例:如果您在 Merged Manifest 文件中看到 READ_SMS 权限,那么现在打开您项目的 AndroidManifest 文件并添加下面写的行以从您的项目中删除该权限-

Example: If you see READ_SMS permission in Merged Manifest file, so now open your project's AndroidManifest file and add the line written below to remove that permission from your project-

<uses-permission android:name="android.permission.READ_SMS" tools:node="remove" />

在您的 AndroidManifest 文件中添加上述权限行,就是这样.它将从合并清单文件中删除权限,您的问题将得到解决.

Add the above permission line in your AndroidManifest file, and that's it. It will remove the Permission from the Merged Manifest file and your issue will be resolved.

AndroidManifest 文件

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

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.READ_SMS" tools:node="remove" />

    <application
        android:name=".MyApp"
        android:allowBackup="false"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="GoogleAppIndexingWarning"
        tools:replace="android:allowBackup">

        <activity
            android:name=".SplashActivity"
            android:screenOrientation="portrait"
            android:theme="@style/FullscreenTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

解决方案 2: 替换/删除正在使用这些权限的第 3 方库.

Solution 2: Replace/Remove those 3rd Party library which are using these permissions.

更新:

解决方案 3: 为了安全起见,您可以在 AndroidManifest 文件中添加这些行.

<uses-permission
    android:name="android.permission.RECEIVE_SMS"
    tools:node="remove" />
<uses-permission
    android:name="android.permission.READ_SMS"
    tools:node="remove" />
<uses-permission
    android:name="android.permission.SEND_SMS"
    tools:node="remove" />
<uses-permission
    android:name="android.permission.WRITE_SMS"
    tools:node="remove" />
<uses-permission
    android:name="android.permission.RECEIVE_WAP_PUSH"
    tools:node="remove" />
<uses-permission
    android:name="android.permission.RECEIVE_MMS"
    tools:node="remove" />
<uses-permission
    android:name="android.permission.READ_CALL_LOG"
    tools:node="remove" />
<uses-permission
    android:name="android.permission.WRITE_CALL_LOG"
    tools:node="remove" />
<uses-permission
    android:name="android.permission.PROCESS_OUTGOING_CALLS"
    tools:node="remove" />

这些行将根据 权限政策删除所有受限权限 如果有的话.

these lines will remove all the restricted permission(s) according to Permission Policy if any used.

希望对您有所帮助.

这篇关于为什么我收到警告 - 此应用不符合 Google Play 权限政策,即使我的最新版本不需要这些权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆