Skip to content

Instantly share code, notes, and snippets.

@Silur
Created November 4, 2020 11:01
Show Gist options
  • Save Silur/9f5ad39b95863ebff2450366074f6c0a to your computer and use it in GitHub Desktop.
Save Silur/9f5ad39b95863ebff2450366074f6c0a to your computer and use it in GitHub Desktop.
Disable tracking in APKs with meta tags

With the assumption that faceless trinet companies actually respect these values in their SDKs, try to recompile your APK with these meta-tags inside application in the manifest:

I'll try to include more tracking malware killswitches here

<meta-data
                    android:name="firebase_analytics_collection_deactivated"
            android:value="true"/>
        <meta-data android:name="google_analytics_adid_collection_enabled" android:val
ue="false" />
        <meta-data android:name="google_analytics_ssaid_collection_enabled" android:va
lue="false" />
        <meta-data android:name="google_analytics_default_allow_ad_personalization_sig
nals" android:value="false" />
        <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled"
                    android:value="false"/>
        <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled"
                    android:value="false"/>
        <meta-data android:name="com.facebook.sdk.AutoInitEnabled"
                    android:value="false"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment