Update notrack patch with superProperties additions
This commit is contained in:
parent
5ac86f7bdb
commit
93a0782d11
2 changed files with 127 additions and 1 deletions
|
@ -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;
|
.method public final a(Lio/fabric/sdk/android/a/g/w;)Lorg/json/JSONObject;
|
||||||
! .locals 0
|
! .locals 0
|
||||||
return-void
|
return-void
|
||||||
.end method
|
.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;-><init>()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;
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
This patch disables `track` (aka `science`) endpoint, firebase tracking, fabric.io tracking and crashlytics.
|
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.
|
Fuck telemetry.
|
||||||
|
|
||||||
#### Available and tested on:
|
#### Available and tested on:
|
||||||
|
|
Reference in a new issue