如何检查我的应用程序中的 SDK 是否正在收集任何广告 ID

ALA*_*DIN 18 android admob firebase google-advertising-id onesignal

Google 向我发送了一条警告,告知我我的一个应用程序正在收集Android 设备 ID广告 ID信息。有没有什么工具可以用来测试这个活动涉及哪个SDK?

Ps:我使用以下 SDK:Admob 中介、Firebase、Onesignal

谢谢你!

小智 11

首先,检查您的合并清单并查找权限:

<uses-permission android:name="com.google.android.gms.permission.AD_ID" />
Run Code Online (Sandbox Code Playgroud)

双击它打开它来自的清单文件,并在新打开的选项卡名称中检查文件路径。就我而言,许​​可来自:

play-services-ads-identifier-18.0.0/AndroidManifest.xml
Run Code Online (Sandbox Code Playgroud)

然后,在 Android Studio 中打开代码 -> 分析代码 -> 依赖项...。将生成一份报告,列出您的所有依赖项及其包含的依赖项。在报告顶部的搜索字段中,搜索“play-services-ads-identifier”,然后点击找到的条目。

现在,在右侧窗口中,您可以看到包含该库的所有依赖项。

就我而言,它是由firebase-analytics-ktx导入的。


小智 0

What I did was open the manifest of my app, click below on "merged manifest" and look for the SDK reading them all, there I could see that the dependency "play-services-ads-identifier:18.0.0" is involved in the activity which makes my app use advertising ID, I found out by opening that manifest and copying and pasting into Google search "com.google.android.gms.ads_identifier" which is the package that manifest refers to and then it took me here:

https://developers.google.com/android/reference/com/google/android/gms/ads/identifier/package-summary

I don't know if it's exactly your dependency but for me the only way to find out that I had was this.

Saludos!