Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to check if the SDKs in my app are collecting any Advertising ID

Google sent me a warning to inform me about one of my apps collecting Android Device Id and Advertising ID informations. Is there any tool i can use to test which SDK is involved in this activity?

P.s: I'm using the following SDK: Admob mediation, Firebase, Onesignal

Thank you!

like image 872
ALAEDDIN Avatar asked Dec 04 '25 15:12

ALAEDDIN


1 Answers

First, check your Merged Manifest and look for the permission:

<uses-permission android:name="com.google.android.gms.permission.AD_ID" />

Double-click it to open the manifest file that it comes from, and check the file path in the newly opened tab name. In my case, the permission was coming from:

play-services-ads-identifier-18.0.0/AndroidManifest.xml

Then, open Code -> Analyze Code -> Dependencies... in Android Studio. A report will be generated listing all your dependencies and their included dependencies. In the search field in the top of your report, search for "play-services-ads-identifier" and click the entry that it finds.

Now, in the right window you can see all your dependencies that include this library.

In my case it was imported by firebase-analytics-ktx.

like image 63
Supernaut Avatar answered Dec 07 '25 04:12

Supernaut



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!