Skip to content

Commit

Permalink
Hopefully fixes the AD_ID permission that is included via a library i…
Browse files Browse the repository at this point in the history
…n the play store release (does not affect the CDR release since that does not use Firebase)
  • Loading branch information
christianrowlands committed May 14, 2024
1 parent c590059 commit 741afea
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions networksurvey/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ android {
}
}

configurations.configureEach {
exclude group: 'com.google.android.gms', module : 'play-services-ads'
exclude group: 'com.google.android.gms', module : 'play-services-ads-identifier'
exclude group: 'com.google.android.gms', module : 'play-services-ads-lite'
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.jakewharton.timber:timber:5.0.1'
Expand Down
3 changes: 3 additions & 0 deletions networksurvey/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
android:name="android.content.APP_RESTRICTIONS"
android:resource="@xml/app_restrictions" />

<meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" />
<meta-data android:name="google_analytics_default_allow_ad_personalization_signals" android:value="false" />

<receiver
android:name=".StartAtBootReceiver"
android:label="StartAtBootReceiver"
Expand Down
16 changes: 16 additions & 0 deletions networksurvey/src/regular/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<!-- Remove all the permissions coming from libraries that we don't actually use -->
<uses-permission
android:name="com.google.android.gms.permission.AD_ID"
tools:node="remove" />
<uses-permission
android:name="android.permission.ACCESS_ADSERVICES_ATTRIBUTION"
tools:node="remove" />
<uses-permission
android:name="android.permission.ACCESS_ADSERVICES_AD_ID"
tools:node="remove" />

</manifest>

0 comments on commit 741afea

Please sign in to comment.