我的应用违反了 Android 广告 ID 政策

My app violates the Android Advertising ID policy

Google Play 团队拒绝了我的应用,因为:

The advertising identifier must not be connected to personally-identifiable information or associated with any persistent device identifier (for example: SSAID, MAC address, IMEI, etc.) without explicit consent of the user.

For example, we have identified that your app's attribution SDK enables collection of IMEI from devices which have an Android advertising ID without prominent disclosure, which is a violation of our Android Advertising ID policy.

我没有明确收集 IMEI,因此 IMEI 必须由应用程序的依赖项之一访问。

我如何检测到哪个正在访问 IMEI

更新: 这些是我的依赖项

    compile "com.android.support:appcompat-v7:$support_version"
    compile "com.android.support:mediarouter-v7:$support_version"      // I'm using icons from here, like ic_media_pause and such
    compile "com.android.support:recyclerview-v7:$support_version"
    compile "com.android.support:design:$support_version"
    compile "com.android.support:support-compat:$support_version"

    compile 'com.android.support:multidex:1.0.2'

    // individual dependencies -- 
    compile "com.google.android.gms:play-services-maps:$gms_version"
    compile "com.google.android.gms:play-services-analytics:$gms_version"
    compile "com.google.android.gms:play-services-gcm:$gms_version"
    compile "com.google.firebase:firebase-appindexing:$gms_version"
    compile "com.google.firebase:firebase-core:$gms_version"

    compile "com.facebook.android:facebook-android-sdk:$facebook_version"
    compile 'com.facebook.android:notifications:1.0.2'

    compile 'com.batch.android:batch-sdk:1.11.0'

    compile 'commons-codec:commons-codec:1.9'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
    compile 'com.github.chrisbanes.photoview:library:1.2.2'
    compile 'de.greenrobot:eventbus:2.4.0'
    compile 'info.hoang8f:android-segmented:1.0.5'
    compile 'io.card:android-sdk:5.4.2'
    compile 'me.dm7.barcodescanner:zxing:1.9'
    compile 'com.google.android.exoplayer:exoplayer:r2.2.0'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.okhttp:okhttp:2.2.0'

    compile 'io.reactivex:rxandroid:1.1.0'
    compile 'io.reactivex:rxjava:1.1.0'
    //compile 'io.reactivex:rxjava-joins:0.22.0' // to use JoinObservable (and-then-when combinator)

    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    // In libs we have:
    // - ZooZ 1.02 : From https://github.com/Zooz/Zooz-Android/releases/tag/1.02
    // - AppsFlyer : AF-Android-SDK 2.3.1.13 jar
    // - Volley
    compile fileTree(dir: '../libs', include: '*.jar')

    compile('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
        transitive = true
    }

注意AppsFlyer已配置为:

        AppsFlyerLib.setCollectIMEI(false); // https://play.google.com/about/monetization-ads/ads/ad-id/
        AppsFlyerLib.setCollectMACAddress(false);
        AppsFlyerLib.setCollectAndroidID(false);

您正在使用低于 sdk 4.3 的 Appsflyer。这就是问题。 这是他们发给所有开发者的电子邮件。

Hi there,

The AppsFlyer and Google Play teams are collaborating to ensure that all advertisers using the AppsFlyer SDK are compliant with the Google Play privacy policy. To avoid any disruption to your business, we strongly encourage that all advertisers take the following steps.

If you are running the AppsFlyer SDK version 4.3 or earlier: Please update to the latest AppsFlyer SDK as soon as possible to maintain full compliance. If you have enabled IMEI collection in a newer SDK version: Disable IMEI collection via the AppsFlyer SDK by removing the following code AppsFlyerLib.getInstance().setImeiData("IMEI_DATA_HERE") If your apps are not yet compliant with the Google Play privacy policy, we recommend that you correct your data collection in a timely manner. For more information about the AppsFlyer SDK, please visit the Help Center or contact your success manager.

Thank you, The AppsFlyer Team

Crashlytics 使用各种标识符来提供他们的服务,包括 Android ID,以及 Android广告ID.

所以 crashlytics 库 可能是个问题。这个库正在处理广告 ID。许多使用 crashlytics 库而不是 AppsFlyerLib 的开发人员收到此警告。 所以我认为你也应该关注 crashlytics 库。

如需更多说明,您可以访问 crashlytics security page

You have to add privacy policy on your application.

首先,您必须创建一个隐私政策 URL,然后根据应用程序将此 URL 添加到 GOOGLE 发布者控制台 中。您可以使用此网站轻松创建隐私政策。

Privacy Policies

如果您有server/host,请尝试将隐私政策页面上传到您自己的服务器上,否则您可以使用该网站进行存储。

提到:您必须在您的申请中添加此政策页面。创建一个菜单作为隐私政策,并在对话框中显示所有政策内容。最简单的方法

在我的情况下,URL 未在 Google Play 控制台中设置隐私政策。我也使用 Crashlytic。但是当我添加隐私政策时,它需要一些时间来处理然后才得到解决。 我没有事件不得不重新发布它。

我的申请也被 Google 删除了。我做了下面的方法重新发布。

  1. 使用Free Privacy Policy URL

  2. 创建应用程序隐私政策
  3. URL

  4. 发布隐私政策
  5. 复制已发布的隐私政策link并将其添加到 Developer Play Console。
  6. 也在应用程序中添加隐私政策link(可选)

希望这对你也有帮助。