From 9b316d9ba238dc4544488300251c0115c07f9654 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sun, 20 Jan 2019 00:25:08 +0300 Subject: [PATCH] Add notrack and litecord patches~ --- patches/litecord/832.patch | 332 +++++++++++++++++++++++++++++++++++++ patches/litecord/README.md | 14 ++ patches/notrack/832.patch | 247 +++++++++++++++++++++++++++ patches/notrack/README.md | 9 + 4 files changed, 602 insertions(+) create mode 100644 patches/litecord/832.patch create mode 100644 patches/litecord/README.md create mode 100644 patches/notrack/832.patch create mode 100644 patches/notrack/README.md diff --git a/patches/litecord/832.patch b/patches/litecord/832.patch new file mode 100644 index 0000000..9d2f33c --- /dev/null +++ b/patches/litecord/832.patch @@ -0,0 +1,332 @@ +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/app/App.smali com.discord-832/smali/com/discord/app/App.smali +*** com.discord-832-base/smali/com/discord/app/App.smali 2019-01-19 04:41:50.773096345 +0300 +--- com.discord-832/smali/com/discord/app/App.smali 2019-01-19 22:52:25.312996678 +0300 +*************** +*** 218,224 **** + + invoke-virtual {v0, v1}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lkotlin/jvm/functions/Function2;)Lkotlin/Unit; + +! const-string v0, "https://cdn.discordapp.com" + + .line 75 + invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V +--- 218,224 ---- + + invoke-virtual {v0, v1}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lkotlin/jvm/functions/Function2;)Lkotlin/Unit; + +! const-string v0, "https://dev.litecord.top" + + .line 75 + invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/BuildConfig.smali com.discord-832/smali/com/discord/BuildConfig.smali +*** com.discord-832-base/smali/com/discord/BuildConfig.smali 2019-01-19 04:41:50.749762898 +0300 +--- com.discord-832/smali/com/discord/BuildConfig.smali 2019-01-19 22:51:32.679372540 +0300 +*************** +*** 16,30 **** + + .field public static final FLAVOR_internalExternal:Ljava/lang/String; = "external" + +! .field public static final HOST:Ljava/lang/String; = "https://discordapp.com" + +! .field public static final HOST_API:Ljava/lang/String; = "https://discordapp.com/api/" + +! .field public static final HOST_CDN:Ljava/lang/String; = "https://cdn.discordapp.com" + + .field public static final HOST_GIFT:Ljava/lang/String; = "https://discord.gift" + +! .field public static final HOST_INVITE:Ljava/lang/String; = "https://discord.gg" + + .field public static final LOCAL_IP:Ljava/lang/String; = "" + +--- 16,30 ---- + + .field public static final FLAVOR_internalExternal:Ljava/lang/String; = "external" + +! .field public static final HOST:Ljava/lang/String; = "https://dev.litecord.top" + +! .field public static final HOST_API:Ljava/lang/String; = "https://dev.litecord.top/api/" + +! .field public static final HOST_CDN:Ljava/lang/String; = "https://dev.litecord.top" + + .field public static final HOST_GIFT:Ljava/lang/String; = "https://discord.gift" + +! .field public static final HOST_INVITE:Ljava/lang/String; = "https://dev.litecord.top" + + .field public static final LOCAL_IP:Ljava/lang/String; = "" + +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/gateway/GatewaySocket.smali com.discord-832/smali/com/discord/gateway/GatewaySocket.smali +*** com.discord-832-base/smali/com/discord/gateway/GatewaySocket.smali 2019-01-19 04:41:50.776429695 +0300 +--- com.discord-832/smali/com/discord/gateway/GatewaySocket.smali 2019-01-19 22:43:27.786693491 +0300 +*************** +*** 32,38 **** + + .field private static final DISCOVERING:I = 0x1 + +! .field private static final GATEWAY_COMPRESSION:Ljava/lang/String; = "zlib-stream" + + .field private static final GATEWAY_ENCODING:Ljava/lang/String; = "json" + +--- 32,38 ---- + + .field private static final DISCOVERING:I = 0x1 + +! .field private static final GATEWAY_COMPRESSION:Ljava/lang/String; = "" + + .field private static final GATEWAY_ENCODING:Ljava/lang/String; = "json" + +*************** +*** 1019,1025 **** + + invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; + +! const-string p1, "/?encoding=json&v=6&compress=zlib-stream" + + invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; + +--- 1019,1025 ---- + + invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; + +! const-string p1, "/?encoding=json&v=6" + + invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; + +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/stores/StoreGatewayConnection.smali com.discord-832/smali/com/discord/stores/StoreGatewayConnection.smali +*** com.discord-832-base/smali/com/discord/stores/StoreGatewayConnection.smali 2019-01-19 04:41:50.796429793 +0300 +--- com.discord-832/smali/com/discord/stores/StoreGatewayConnection.smali 2019-01-19 22:13:05.243290498 +0300 +*************** +*** 1290,1296 **** + .line 228 + new-instance v9, Lcom/discord/gateway/rest/RestConfig; + +! const-string v2, "https://discordapp.com/api/" + + sget-object v3, Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;->INSTANCE:Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider; + +--- 1290,1296 ---- + .line 228 + new-instance v9, Lcom/discord/gateway/rest/RestConfig; + +! const-string v2, "https://dev.litecord.top/api/" + + sget-object v3, Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;->INSTANCE:Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider; + +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/utilities/icon/IconUtils.smali com.discord-832/smali/com/discord/utilities/icon/IconUtils.smali +*** com.discord-832-base/smali/com/discord/utilities/icon/IconUtils.smali 2019-01-19 04:41:50.756429597 +0300 +--- com.discord-832/smali/com/discord/utilities/icon/IconUtils.smali 2019-01-19 22:53:02.319867810 +0300 +*************** +*** 359,365 **** + goto :goto_2 + + :cond_1 +! const-string p3, "https://cdn.discordapp.com" + + .line 103 + check-cast p3, Ljava/lang/CharSequence; +--- 359,365 ---- + goto :goto_2 + + :cond_1 +! const-string p3, "https://dev.litecord.top" + + .line 103 + check-cast p3, Ljava/lang/CharSequence; +*************** +*** 407,413 **** + :cond_3 + new-instance p3, Ljava/lang/StringBuilder; + +! const-string v0, "https://cdn.discordapp.com/channel-icons/" + + invoke-direct {p3, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +--- 407,413 ---- + :cond_3 + new-instance p3, Ljava/lang/StringBuilder; + +! const-string v0, "https://dev.litecord.top/channel-icons/" + + invoke-direct {p3, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +*************** +*** 649,655 **** + goto :goto_1 + + :cond_0 +! const-string p2, "https://cdn.discordapp.com" + + .line 135 + check-cast p2, Ljava/lang/CharSequence; +--- 649,655 ---- + goto :goto_1 + + :cond_0 +! const-string p2, "https://dev.litecord.top" + + .line 135 + check-cast p2, Ljava/lang/CharSequence; +*************** +*** 699,705 **** + :cond_2 + new-instance p2, Ljava/lang/StringBuilder; + +! const-string v0, "https://cdn.discordapp.com/icons/" + + invoke-direct {p2, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +--- 699,705 ---- + :cond_2 + new-instance p2, Ljava/lang/StringBuilder; + +! const-string v0, "https://dev.litecord.top/icons/" + + invoke-direct {p2, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +*************** +*** 900,906 **** + :cond_0 + if-eqz p1, :cond_4 + +! const-string p2, "https://cdn.discordapp.com" + + .line 82 + check-cast p2, Ljava/lang/CharSequence; +--- 900,906 ---- + :cond_0 + if-eqz p1, :cond_4 + +! const-string p2, "https://dev.litecord.top" + + .line 82 + check-cast p2, Ljava/lang/CharSequence; +*************** +*** 969,975 **** + :goto_1 + new-instance p3, Ljava/lang/StringBuilder; + +! const-string v0, "https://cdn.discordapp.com/avatars/" + + invoke-direct {p3, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +--- 969,975 ---- + :goto_1 + new-instance p3, Ljava/lang/StringBuilder; + +! const-string v0, "https://dev.litecord.top/avatars/" + + invoke-direct {p3, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +*************** +*** 1717,1723 **** + .line 176 + new-instance v0, Ljava/lang/StringBuilder; + +! const-string v1, "https://cdn.discordapp.com/game-assets/" + + invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +--- 1717,1723 ---- + .line 176 + new-instance v0, Ljava/lang/StringBuilder; + +! const-string v1, "https://dev.litecord.top/game-assets/" + + invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +*************** +*** 1837,1843 **** + .line 157 + new-instance v0, Ljava/lang/StringBuilder; + +! const-string v1, "https://cdn.discordapp.com/app-assets/" + + invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +--- 1837,1843 ---- + .line 157 + new-instance v0, Ljava/lang/StringBuilder; + +! const-string v1, "https://dev.litecord.top/app-assets/" + + invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/utilities/rest/RestAPI$Companion.smali com.discord-832/smali/com/discord/utilities/rest/RestAPI$Companion.smali +*** com.discord-832-base/smali/com/discord/utilities/rest/RestAPI$Companion.smali 2019-01-19 04:41:50.763096296 +0300 +--- com.discord-832/smali/com/discord/utilities/rest/RestAPI$Companion.smali 2019-01-19 22:13:55.403567637 +0300 +*************** +*** 276,282 **** + .line 213 + new-instance v0, Lcom/discord/restapi/RestAPIBuilder; + +! const-string v9, "https://discordapp.com/api/" + + check-cast v6, Lokhttp3/m; + +--- 276,282 ---- + .line 213 + new-instance v0, Lcom/discord/restapi/RestAPIBuilder; + +! const-string v9, "https://dev.litecord.top/api/" + + check-cast v6, Lokhttp3/m; + +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/utilities/textprocessing/Rules$createCustomEmojiRule$1$parse$emojiNode$1.smali com.discord-832/smali/com/discord/utilities/textprocessing/Rules$createCustomEmojiRule$1$parse$emojiNode$1.smali +*** com.discord-832-base/smali/com/discord/utilities/textprocessing/Rules$createCustomEmojiRule$1$parse$emojiNode$1.smali 2019-01-19 04:41:50.769762996 +0300 +--- com.discord-832/smali/com/discord/utilities/textprocessing/Rules$createCustomEmojiRule$1$parse$emojiNode$1.smali 2019-01-19 22:53:32.186699493 +0300 +*************** +*** 105,111 **** + :goto_1 + new-instance p2, Ljava/lang/StringBuilder; + +! const-string v0, "https://cdn.discordapp.com/emojis/" + + invoke-direct {p2, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +--- 105,111 ---- + :goto_1 + new-instance p2, Ljava/lang/StringBuilder; + +! const-string v0, "https://dev.litecord.top/emojis/" + + invoke-direct {p2, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGameInvite.smali com.discord-832/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGameInvite.smali +*** com.discord-832-base/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGameInvite.smali 2019-01-19 04:41:50.823096590 +0300 +--- com.discord-832/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGameInvite.smali 2019-01-19 22:53:27.553340561 +0300 +*************** +*** 605,611 **** + .line 104 + new-instance v1, Ljava/lang/StringBuilder; + +! const-string v6, "https://cdn.discordapp.com/app-icons/" + + invoke-direct {v1, v6}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +--- 605,611 ---- + .line 104 + new-instance v1, Ljava/lang/StringBuilder; + +! const-string v6, "https://dev.litecord.top/app-icons/" + + invoke-direct {v1, v6}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V + +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGift.smali com.discord-832/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGift.smali +*** com.discord-832-base/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGift.smali 2019-01-19 04:41:50.823096590 +0300 +--- com.discord-832/smali/com/discord/widgets/chat/list/WidgetChatListAdapterItemGift.smali 2019-01-19 22:53:23.563318515 +0300 +*************** +*** 1042,1048 **** + :goto_3 + sget-object v10, Lcom/discord/utilities/icon/IconUtils;->INSTANCE:Lcom/discord/utilities/icon/IconUtils; + +! const-string v11, "https://cdn.discordapp.com" + + .line 116 + invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGift$Model$Resolved;->getGift()Lcom/discord/models/domain/ModelGift; +--- 1042,1048 ---- + :goto_3 + sget-object v10, Lcom/discord/utilities/icon/IconUtils;->INSTANCE:Lcom/discord/utilities/icon/IconUtils; + +! const-string v11, "https://dev.litecord.top" + + .line 116 + invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemGift$Model$Resolved;->getGift()Lcom/discord/models/domain/ModelGift; diff --git a/patches/litecord/README.md b/patches/litecord/README.md new file mode 100644 index 0000000..e2a0448 --- /dev/null +++ b/patches/litecord/README.md @@ -0,0 +1,14 @@ +## DisTok CutTheCord: Litecord Patch + +This patch replaces the gateway, cdn, invite and api endpoints with an example Litecord one. + +Just replace all mentions of `dev.litecord.top` to your instance. + +Please keep in mind that litecord is free software, provided under a libre license. If you paid money for it, you got scammed. + +#### Bugs / Side effects +- Gateway stuff is fucked and `Connecting...` is always visible. + +#### Available and tested on: +- 8.3.2 + diff --git a/patches/notrack/832.patch b/patches/notrack/832.patch new file mode 100644 index 0000000..0598271 --- /dev/null +++ b/patches/notrack/832.patch @@ -0,0 +1,247 @@ +diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/utilities/analytics/AnalyticsUtils$Tracker.smali com.discord-832/smali/com/discord/utilities/analytics/AnalyticsUtils$Tracker.smali +*** com.discord-832-base/smali/com/discord/utilities/analytics/AnalyticsUtils$Tracker.smali 2019-01-19 04:41:50.756429597 +0300 +--- com.discord-832/smali/com/discord/utilities/analytics/AnalyticsUtils$Tracker.smali 2019-01-19 23:42:54.573066848 +0300 +*************** +*** 407,466 **** + + .method public static synthetic setTrackingData$default(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;Ljava/lang/String;ZILjava/lang/Object;)V + .locals 0 +- +- and-int/lit8 p3, p3, 0x2 +- +- if-eqz p3, :cond_0 +- +- const/4 p2, 0x0 +- +- .line 141 +- :cond_0 +- invoke-virtual {p0, p1, p2}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->setTrackingData(Ljava/lang/String;Z)V +- + return-void + .end method + + .method public static synthetic track$default(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;Ljava/lang/String;Ljava/util/Map;ILjava/lang/Object;)V + .locals 0 +- +- and-int/lit8 p3, p3, 0x2 +- +- if-eqz p3, :cond_0 +- +- .line 166 +- invoke-static {}, Lkotlin/a/ab;->emptyMap()Ljava/util/Map; +- +- move-result-object p2 +- +- :cond_0 +- invoke-virtual {p0, p1, p2}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->track(Ljava/lang/String;Ljava/util/Map;)V +- + return-void + .end method + + .method public static synthetic track$default(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;Lkotlin/Pair;Ljava/util/Map;Ljava/lang/Long;ILjava/lang/Object;)V + .locals 0 +- +- and-int/lit8 p5, p4, 0x2 +- +- if-eqz p5, :cond_0 +- +- .line 157 +- invoke-static {}, Lkotlin/a/ab;->emptyMap()Ljava/util/Map; +- +- move-result-object p2 +- +- :cond_0 +- and-int/lit8 p4, p4, 0x4 +- +- if-eqz p4, :cond_1 +- +- const/4 p3, 0x0 +- +- :cond_1 +- invoke-virtual {p0, p1, p2, p3}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->track(Lkotlin/Pair;Ljava/util/Map;Ljava/lang/Long;)V +- + return-void + .end method + +--- 407,422 ---- +*************** +*** 636,797 **** + .end method + + .method public final track(Ljava/lang/String;Ljava/util/Map;)V +! .locals 2 +! .annotation system Ldalvik/annotation/Signature; +! value = { +! "(", +! "Ljava/lang/String;", +! "Ljava/util/Map<", +! "Ljava/lang/String;", +! "+", +! "Ljava/lang/Object;", +! ">;)V" +! } +! .end annotation +! +! const-string v0, "event" +! +! invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V +! +! const-string v0, "properties" +! +! invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V +! +! .line 167 +! iget-object v0, p0, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->eventsQueue:Ljava/util/concurrent/ConcurrentLinkedQueue; +! +! new-instance v1, Lcom/discord/restapi/RestAPIParams$Track$Event; +! +! invoke-direct {v1, p1, p2}, Lcom/discord/restapi/RestAPIParams$Track$Event;->(Ljava/lang/String;Ljava/util/Map;)V +! +! invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z +! +! .line 169 +! sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit; +! +! const-wide/16 v0, 0x5dc +! +! invoke-static {v0, v1, p1}, Lrx/Observable;->g(JLjava/util/concurrent/TimeUnit;)Lrx/Observable; +! +! move-result-object p1 +! +! .line 170 +! new-instance p2, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$track$1; +! +! invoke-direct {p2, p0}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$track$1;->(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;)V +! +! check-cast p2, Lrx/functions/Action1; +! +! invoke-virtual {p1, p2}, Lrx/Observable;->b(Lrx/functions/Action1;)Lrx/Subscription; +! + return-void + .end method + + .method public final track(Lkotlin/Pair;Ljava/util/Map;Ljava/lang/Long;)V +! .locals 7 +! .annotation system Ldalvik/annotation/Signature; +! value = { +! "(", +! "Lkotlin/Pair<", +! "Ljava/lang/String;", +! "Ljava/lang/Long;", +! ">;", +! "Ljava/util/Map<", +! "Ljava/lang/String;", +! "+", +! "Ljava/lang/Object;", +! ">;", +! "Ljava/lang/Long;", +! ")V" +! } +! .end annotation +! +! const-string v0, "throttleKey" +! +! invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V +! +! const-string v0, "properties" +! +! invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V +! +! const/4 v4, 0x0 +! +! const/4 v5, 0x4 +! +! const/4 v6, 0x0 +! +! move-object v1, p0 +! +! move-object v2, p1 +! +! move-object v3, p3 +! +! .line 158 +! invoke-static/range {v1 .. v6}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->isEventThrottled$default(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;Lkotlin/Pair;Ljava/lang/Long;ZILjava/lang/Object;)Z +! +! move-result p3 +! +! if-eqz p3, :cond_0 +! +! return-void +! +! .line 1000 +! :cond_0 +! iget-object p1, p1, Lkotlin/Pair;->first:Ljava/lang/Object; +! +! .line 162 +! check-cast p1, Ljava/lang/String; +! +! .line 163 +! invoke-virtual {p0, p1, p2}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->track(Ljava/lang/String;Ljava/util/Map;)V +! + return-void + .end method + + .method public final trackFireBase(Ljava/lang/String;Ljava/util/Map;)V +! .locals 1 +! .annotation system Ldalvik/annotation/Signature; +! value = { +! "(", +! "Ljava/lang/String;", +! "Ljava/util/Map<", +! "Ljava/lang/String;", +! "+", +! "Ljava/lang/Object;", +! ">;)V" +! } +! .end annotation +! +! const-string v0, "event" +! +! invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V +! +! const-string v0, "properties" +! +! invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V +! +! .line 177 +! new-instance v0, Landroid/os/Bundle; +! +! invoke-direct {v0}, Landroid/os/Bundle;->()V +! +! invoke-direct {p0, v0, p2}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->putMap(Landroid/os/Bundle;Ljava/util/Map;)Landroid/os/Bundle; +! +! move-result-object p2 +! +! .line 178 +! sget-object v0, Lcom/discord/utilities/analytics/AnalyticsUtils;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsUtils; +! +! invoke-static {v0}, Lcom/discord/utilities/analytics/AnalyticsUtils;->access$getFireBaseInstance$p(Lcom/discord/utilities/analytics/AnalyticsUtils;)Lcom/google/firebase/analytics/FirebaseAnalytics; +! +! move-result-object v0 +! +! if-eqz v0, :cond_0 +! +! invoke-virtual {v0, p1, p2}, Lcom/google/firebase/analytics/FirebaseAnalytics;->b(Ljava/lang/String;Landroid/os/Bundle;)V +! +! return-void +! +! :cond_0 + return-void + .end method +--- 592,607 ---- + .end method + + .method public final track(Ljava/lang/String;Ljava/util/Map;)V +! .locals 0 + return-void + .end method + + .method public final track(Lkotlin/Pair;Ljava/util/Map;Ljava/lang/Long;)V +! .locals 0 + return-void + .end method + + .method public final trackFireBase(Ljava/lang/String;Ljava/util/Map;)V +! .locals 0 + return-void + .end method diff --git a/patches/notrack/README.md b/patches/notrack/README.md new file mode 100644 index 0000000..bdab1f1 --- /dev/null +++ b/patches/notrack/README.md @@ -0,0 +1,9 @@ +## DisTok CutTheCord: No Track Patch + +This patch disables `track` (aka `science`) endpoint and firebase tracking. + +Fuck telemetry. + +#### Available and tested on: +- 8.3.2 +