From ed6361037eb0dafa64b69dde03af042a97fefacb Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Fri, 18 Jan 2019 19:16:21 +0300 Subject: [PATCH] Add in necessary-831 and disable-mobileindicator patches --- patches/disable-mobileindicator/830.patch | 19 +++++++++++++++++++ patches/disable-mobileindicator/831.patch | 20 ++++++++++++++++++++ patches/disable-mobileindicator/README.md | 9 +++++++++ patches/necessary/831.patch | 13 +++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 patches/disable-mobileindicator/830.patch create mode 100644 patches/disable-mobileindicator/831.patch create mode 100644 patches/disable-mobileindicator/README.md create mode 100644 patches/necessary/831.patch diff --git a/patches/disable-mobileindicator/830.patch b/patches/disable-mobileindicator/830.patch new file mode 100644 index 000000000..873069f7c --- /dev/null +++ b/patches/disable-mobileindicator/830.patch @@ -0,0 +1,19 @@ +diff -crB -x dist com.discord-830/smali/com/discord/utilities/analytics/AnalyticsUtils.smali com.discord-830-patched/smali/com/discord/utilities/analytics/AnalyticsUtils.smali +*** com.discord-830/smali/com/discord/utilities/analytics/AnalyticsUtils.smali 2019-01-18 19:15:30.660919428 +0300 +--- com.discord-830-patched/smali/com/discord/utilities/analytics/AnalyticsUtils.smali 2019-01-18 17:21:29.052584838 +0300 +*************** +*** 181,187 **** + + const-string v1, "browser" + +! const-string v2, "Discord Android" + + invoke-static {v1, v2}, Lkotlin/q;->w(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair; + +--- 181,187 ---- + + const-string v1, "browser" + +! const-string v2, "Discord Client" + + invoke-static {v1, v2}, Lkotlin/q;->w(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair; diff --git a/patches/disable-mobileindicator/831.patch b/patches/disable-mobileindicator/831.patch new file mode 100644 index 000000000..7215ba8ec --- /dev/null +++ b/patches/disable-mobileindicator/831.patch @@ -0,0 +1,20 @@ +diff -crB -x dist com.discord-831/smali/com/discord/utilities/analytics/AnalyticsUtils.smali com.discord-831-patched/smali/com/discord/utilities/analytics/AnalyticsUtils.smali +*** com.discord-831/smali/com/discord/utilities/analytics/AnalyticsUtils.smali 2019-01-18 19:12:19.106603636 +0300 +--- com.discord-831-patched/smali/com/discord/utilities/analytics/AnalyticsUtils.smali 2019-01-18 19:12:36.296691801 +0300 +*************** +*** 197,203 **** + + const-string v1, "browser" + +! const-string v2, "Discord Android" + + .line 87 + invoke-static {v1, v2}, Lkotlin/q;->w(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair; +--- 197,203 ---- + + const-string v1, "browser" + +! const-string v2, "Discord Client" + + .line 87 + invoke-static {v1, v2}, Lkotlin/q;->w(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair; diff --git a/patches/disable-mobileindicator/README.md b/patches/disable-mobileindicator/README.md new file mode 100644 index 000000000..5d945ae95 --- /dev/null +++ b/patches/disable-mobileindicator/README.md @@ -0,0 +1,9 @@ +## DisTok CutTheCord: Disable Mobile Indicator Patch + +#### Bugs / Side effects +- CRITICAL: Push notifications are broken + +#### Available and tested on: +- 8.3.0 +- 8.3.1 + diff --git a/patches/necessary/831.patch b/patches/necessary/831.patch new file mode 100644 index 000000000..35bc99638 --- /dev/null +++ b/patches/necessary/831.patch @@ -0,0 +1,13 @@ +diff -crB -x dist com.discord-831/res/values/public.xml com.discord-831-patched/res/values/public.xml +*** com.discord-831/res/values/public.xml 2019-01-18 19:05:56.057972374 +0300 +--- com.discord-831-patched/res/values/public.xml 2019-01-18 17:26:29.150818524 +0300 +*************** +*** 65,71 **** + + + +- + + + +--- 65,70 ----