From ac00bfd7258d5df8b70c968fbce1f14069765af7 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Thu, 7 Feb 2019 22:21:12 +0300 Subject: [PATCH] branding: allow multiple instances of CTC and discord to be installed side by side Closes #16 --- patches/branding/843.patch | 65 ++++++++++++++++++++++++++++++++++++-- patches/branding/README.md | 5 +++ 2 files changed, 67 insertions(+), 3 deletions(-) diff --git a/patches/branding/843.patch b/patches/branding/843.patch index 71f9f0e..924e056 100644 --- a/patches/branding/843.patch +++ b/patches/branding/843.patch @@ -1,6 +1,6 @@ diff -crB -x dist -x build com.discord-843-base/AndroidManifest.xml com.discord-843/AndroidManifest.xml *** com.discord-843-base/AndroidManifest.xml 2019-02-06 23:27:45.000000000 +0300 ---- com.discord-843/AndroidManifest.xml 2019-02-06 23:49:38.603186409 +0300 +--- com.discord-843/AndroidManifest.xml 2019-02-07 22:19:29.693898547 +0300 *************** *** 1,4 **** ! @@ -12,9 +12,68 @@ diff -crB -x dist -x build com.discord-843-base/AndroidManifest.xml com.discord- +*************** +*** 95,101 **** + + + +! + + + +--- 95,101 ---- + + + +! + + + +*************** +*** 140,148 **** + + + +! + +! + + + +--- 140,148 ---- + + + +! + +! + + + +*************** +*** 181,188 **** + + + +! +! + + + +\ No newline at end of file +--- 181,188 ---- + + + +! +! + + + +\ No newline at end of file diff -crB -x dist -x build com.discord-843-base/apktool.yml com.discord-843/apktool.yml *** com.discord-843-base/apktool.yml 2019-02-06 23:27:45.323639501 +0300 ---- com.discord-843/apktool.yml 2019-02-06 23:49:38.603186409 +0300 +--- com.discord-843/apktool.yml 2019-02-07 22:19:29.697231896 +0300 *************** *** 345,349 **** tag: null @@ -30,7 +89,7 @@ diff -crB -x dist -x build com.discord-843-base/apktool.yml com.discord-843/apkt ! versionName: 8.4.3g-cutthecord-CTCBUILD diff -crB -x dist -x build com.discord-843-base/res/values/strings.xml com.discord-843/res/values/strings.xml *** com.discord-843-base/res/values/strings.xml 2019-02-06 23:27:49.190325481 +0300 ---- com.discord-843/res/values/strings.xml 2019-02-06 23:49:38.603186409 +0300 +--- com.discord-843/res/values/strings.xml 2019-02-07 22:19:29.700565245 +0300 *************** *** 1157,1163 **** Disconnecting your account might remove you from servers you joined via this account. diff --git a/patches/branding/README.md b/patches/branding/README.md index 73ddc98..5e90bf3 100644 --- a/patches/branding/README.md +++ b/patches/branding/README.md @@ -8,6 +8,11 @@ Running customicon.sh (while on root of the extracted folder) will also change t ![](https://elixi.re/i/48nc2je7.png) + +You can use the following line to patch authorities: + +`sed -i 's/android:authorities="com.discord./android:authorities="top.distok.cutthecord.CTCBRANCH./g' AndroidManifest.xml` + #### Available and tested on: - 8.3.3 - 8.3.4g