为什么我会收到警告-即使我的最新版本不需要这些权限,此应用也不符合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?

查看:116
本文介绍了为什么我会收到警告-即使我的最新版本不需要这些权限,此应用也不符合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的权限播放权限政策.

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

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 文件.
  • 打开底部的合并清单标签.
  • 搜索任何这些权限. (示例- READ_SMS )
  • 如果有任何内容,现在该删除它们了.检查示例
  • Open your project's AndroidManifest file.
  • Open the Merged Manifest tab in the bottom.
  • Search for any of those permission. (example- READ_SMS)
  • If you get any, now it's time to remove them. Check the example

示例:如果您在合并清单文件中看到了 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: .替换/删除那些正在使用这些权限的第三方库.

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天全站免登陆