From 93a0782d11a45069cafb4de0a329bf85ac1e58c3 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sun, 20 Jan 2019 22:58:30 +0300 Subject: [PATCH] Update notrack patch with superProperties additions --- patches/notrack/832.patch | 126 +++++++++++++++++++++++++++++++++++++- patches/notrack/README.md | 2 + 2 files changed, 127 insertions(+), 1 deletion(-) diff --git a/patches/notrack/832.patch b/patches/notrack/832.patch index 929c671..2d5c536 100644 --- a/patches/notrack/832.patch +++ b/patches/notrack/832.patch @@ -1700,4 +1700,128 @@ diff -crB -x dist -x build com.discord-832-base/smali_classes2/io/fabric/sdk/and .method public final a(Lio/fabric/sdk/android/a/g/w;)Lorg/json/JSONObject; ! .locals 0 return-void - .end method \ No newline at end of file + .end method +diff -crB -x dist -x build com.discord-832-base/smali/com/discord/utilities/analytics/AnalyticsUtils.smali com.discord-832/smali/com/discord/utilities/analytics/AnalyticsUtils.smali +*** com.discord-832-base/smali/com/discord/utilities/analytics/AnalyticsUtils.smali 2019-01-19 04:41:50.756429597 +0300 +--- com.discord-832/smali/com/discord/utilities/analytics/AnalyticsUtils.smali 2019-01-20 22:56:47.592027576 +0300 +*************** +*** 179,196 **** + } + .end annotation + +! .line 84 +! invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; +! +! move-result-object p1 +! +! const-string v0, "android_id" +! +! invoke-static {p1, v0}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String; +! +! move-result-object p1 +! +! const/16 v0, 0x9 + + .line 86 + new-array v0, v0, [Lkotlin/Pair; +--- 179,185 ---- + } + .end annotation + +! const/16 v0, 0x4 + + .line 86 + new-array v0, v0, [Lkotlin/Pair; +*************** +*** 251,341 **** + + aput-object v1, v0, v2 + +- const-string v1, "device" +- +- .line 93 +- new-instance v2, Ljava/lang/StringBuilder; +- +- invoke-direct {v2}, Ljava/lang/StringBuilder;->()V +- +- sget-object v3, Landroid/os/Build;->MODEL:Ljava/lang/String; +- +- invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; +- +- const-string v3, ", " +- +- invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; +- +- sget-object v3, Landroid/os/Build;->PRODUCT:Ljava/lang/String; +- +- invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; +- +- invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; +- +- move-result-object v2 +- +- invoke-static {v1, v2}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair; +- +- move-result-object v1 +- +- const/4 v2, 0x4 +- +- aput-object v1, v0, v2 +- +- const-string v1, "device_id" +- +- .line 94 +- invoke-static {v1, p1}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair; +- +- move-result-object p1 +- +- const/4 v1, 0x5 +- +- aput-object p1, v0, v1 +- +- const-string p1, "os" +- +- const-string v1, "Android" +- +- .line 95 +- invoke-static {p1, v1}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair; +- +- move-result-object p1 +- +- const/4 v1, 0x6 +- +- aput-object p1, v0, v1 +- +- const-string p1, "os_sdk_version" +- +- .line 96 +- sget v1, Landroid/os/Build$VERSION;->SDK_INT:I +- +- invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String; +- +- move-result-object v1 +- +- invoke-static {p1, v1}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair; +- +- move-result-object p1 +- +- const/4 v1, 0x7 +- +- aput-object p1, v0, v1 +- +- const-string p1, "os_version" +- +- .line 97 +- sget-object v1, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String; +- +- invoke-static {p1, v1}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair; +- +- move-result-object p1 +- +- const/16 v1, 0x8 +- +- aput-object p1, v0, v1 +- + .line 86 + invoke-static {v0}, Lkotlin/a/ab;->a([Lkotlin/Pair;)Ljava/util/Map; + \ No newline at end of file diff --git a/patches/notrack/README.md b/patches/notrack/README.md index 9532efb..3d70407 100644 --- a/patches/notrack/README.md +++ b/patches/notrack/README.md @@ -2,6 +2,8 @@ This patch disables `track` (aka `science`) endpoint, firebase tracking, fabric.io tracking and crashlytics. +It also removes various fields from `superProperties` that could be used to track your device. + Fuck telemetry. #### Available and tested on: