Skip to content

Commit 79da807

Browse files
dturnerGerrit Code Review
authored andcommitted
Merge "Remove AD_ID permission" into main
2 parents 4284e69 + 11a4bba commit 79da807

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919

2020
<uses-permission android:name="android.permission.INTERNET" />
2121

22+
<!--
23+
Firebase automatically adds the AD_ID permission, even though we don't use it. If you use this
24+
permission you must declare how you're using it to Google Play, otherwise the app will be
25+
rejected when publishing it. To avoid this we remove the permission entirely.
26+
-->
27+
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>
28+
2229
<application
2330
android:name=".NiaApplication"
2431
android:allowBackup="true"
@@ -43,6 +50,8 @@
4350
<!-- Disable Firebase analytics by default. This setting is overwritten for the `prod`
4451
flavor -->
4552
<meta-data android:name="firebase_analytics_collection_deactivated" android:value="true" />
53+
<!-- Disable collection of AD_ID for all build variants -->
54+
<meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" />
4655
</application>
4756

4857
</manifest>

0 commit comments

Comments
 (0)