我在 html+javascript 中为 android 开发了 2 个简单的 webapps。今天我收到了来自谷歌的 2 封电子邮件(每个应用 1 封):
您好 Google Play 开发者,
我们的记录显示,您的应用程序 xxx,包名称为 com.xxx.xxx.xxx,目前违反了我们关于个人和敏感信息的用户数据政策。
政策问题:当应用请求或处理敏感的用户或设备信息时,Google Play 要求开发者提供有效的隐私政策。您的应用请求敏感权限(例如摄像头、麦克风、帐户、联系人或电话)或用户数据,但不包含有效的隐私政策。
需要采取的措施:在您应用的商品详情页面和您的应用中包含指向有效隐私政策的链接。您可以在我们的帮助中心找到更多信息。
或者,您可以通过删除对敏感权限或用户数据的任何请求来选择退出此要求。
如果您的目录中有其他应用程序,请确保它们符合我们的突出披露要求。
请在 2017 年 3 月 15 日之前解决此问题,否则我们将采取行政措施来限制您的应用的可见性,直至从 Play 商店中移除。感谢您帮助我们为 Google Play 用户提供清晰透明的体验。
问候,
Google Play 团队
这些是清单:
第一个应用程序:
<?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 控制台在两个应用的“商品详情”中向我展示的内容:
您的应用有一个版本代码为 6 的 apk,它请求以下权限:android.permission.GET_ACCOUNTS。在 APK 中使用这些权限的应用需要设置隐私政策。
正如您从清单文件中看到的那样,我没有请求该权限。
那我现在该怎么办?
编辑:
两个应用程序中使用的库:
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'
}
也许播放服务请求该许可?