"Warning: Policy violation" 但应用程序不需要任何权限
"Warning: Policy violation" but the apps don't require any permission
我在 html+javascript 中为 android 开发了 2 个简单的网络应用程序。今天我收到了来自 google 的 2 封电子邮件(每个应用 1 封):
Hello Google Play Developer,
Our records show that your app, xxx, with package name
com.xxx.xxx.xxx, currently violates our User Data policy regarding
Personal and Sensitive Information.
Policy issue: Google Play requires developers to provide a valid
privacy policy when the app requests or handles sensitive user or
device information. Your app requests sensitive permissions (e.g.
camera, microphone, accounts, contacts, or phone) or user data, but
does not include a valid privacy policy.
Action required: Include a link to a valid privacy policy on your
app's Store Listing page and within your app. You can find more
information in our help center.
Alternatively, you may opt-out of this requirement by removing any
requests for sensitive permissions or user data.
If you have additional apps in your catalog, please make sure they are
compliant with our Prominent Disclosure requirements.
Please resolve this issue by March 15, 2017, or administrative action
will be taken to limit the visibility of your app, up to and including
removal from the Play Store. Thanks for helping us provide a clear and
transparent experience for Google Play users.
Regards,
The Google Play Team
这些是清单:
第一个应用程序:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx.xxx.xxx" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
第二个应用程序:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx.xxx.xxx" >
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
这就是 Google Play 控制台在 "Store Listing" 中为我显示的两个应用程序的内容:
Your app has an apk with version code 6 that requests the following
permission(s): android.permission.GET_ACCOUNTS. Apps using these
permissions in an APK are required to have a privacy policy set.
正如您从清单文件中看到的那样,我没有请求该权限。
那我现在该怎么办?
编辑:
两个应用程序中使用的库:
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
编辑 2:
build.gradle 中的依赖项:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
wearApp project(':wear')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.google.android.gms:play-services:7.8.0'
}
也许播放服务请求该权限?
我很确定您正在使用请求此类权限的某些广告网络或依赖项。
例如,一些广告网络依赖于 READ_PHONE_STATE 许可,这也可能触发来自 Google 的此类通知。
我在 html+javascript 中为 android 开发了 2 个简单的网络应用程序。今天我收到了来自 google 的 2 封电子邮件(每个应用 1 封):
Hello Google Play Developer,
Our records show that your app, xxx, with package name com.xxx.xxx.xxx, currently violates our User Data policy regarding Personal and Sensitive Information.
Policy issue: Google Play requires developers to provide a valid privacy policy when the app requests or handles sensitive user or device information. Your app requests sensitive permissions (e.g. camera, microphone, accounts, contacts, or phone) or user data, but does not include a valid privacy policy.
Action required: Include a link to a valid privacy policy on your app's Store Listing page and within your app. You can find more information in our help center.
Alternatively, you may opt-out of this requirement by removing any requests for sensitive permissions or user data.
If you have additional apps in your catalog, please make sure they are compliant with our Prominent Disclosure requirements.
Please resolve this issue by March 15, 2017, or administrative action will be taken to limit the visibility of your app, up to and including removal from the Play Store. Thanks for helping us provide a clear and transparent experience for Google Play users.
Regards,
The Google Play Team
这些是清单:
第一个应用程序:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx.xxx.xxx" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
第二个应用程序:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx.xxx.xxx" >
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
这就是 Google Play 控制台在 "Store Listing" 中为我显示的两个应用程序的内容:
Your app has an apk with version code 6 that requests the following permission(s): android.permission.GET_ACCOUNTS. Apps using these permissions in an APK are required to have a privacy policy set.
正如您从清单文件中看到的那样,我没有请求该权限。
那我现在该怎么办?
编辑:
两个应用程序中使用的库:
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
编辑 2:
build.gradle 中的依赖项:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
wearApp project(':wear')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.google.android.gms:play-services:7.8.0'
}
也许播放服务请求该权限?
我很确定您正在使用请求此类权限的某些广告网络或依赖项。
例如,一些广告网络依赖于 READ_PHONE_STATE 许可,这也可能触发来自 Google 的此类通知。