From 88f97bc519cfa91b1521d51b0b570f82e36d917d Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Mon, 13 May 2019 11:45:31 +0300 Subject: [PATCH] Allow backing up and debugging --- patches/blobs/README.md | 7 +++---- patches/branding/896.patch | 30 +++++++++++++++++++++++++----- patches/branding/README.md | 4 +++- 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/patches/blobs/README.md b/patches/blobs/README.md index d3397cf..1e7791d 100644 --- a/patches/blobs/README.md +++ b/patches/blobs/README.md @@ -1,9 +1,8 @@ -## DisTok CutTheCord: Blob Emoji Patch +## DisTok CutTheCord: Blob Emoji Patch Instructions -This patch replaces emojis with Blob Emojis. +This patch is a simple file replacement, so it doesn't have patch files. -You'll need to pack in the right images to the apk. See README.md at the root of the repo for more information. +You'll just need to pack in the right images to the apk using the `emojireplace.py` script in this folder. See README.md at the root of the repo for information on obtaining the images. #### Bugs / Side effects - Not all emojis are replaced - diff --git a/patches/branding/896.patch b/patches/branding/896.patch index 17f03f0..eca49bf 100644 --- a/patches/branding/896.patch +++ b/patches/branding/896.patch @@ -1,6 +1,6 @@ diff -crB com.discord-896-base/AndroidManifest.xml com.discord-896/AndroidManifest.xml *** com.discord-896-base/AndroidManifest.xml 2019-05-12 12:15:23.870380580 +0300 ---- com.discord-896/AndroidManifest.xml 2019-05-12 12:38:19.864296241 +0300 +--- com.discord-896/AndroidManifest.xml 2019-05-13 11:40:14.718435134 +0300 *************** *** 1,4 **** ! @@ -13,6 +13,23 @@ diff -crB com.discord-896-base/AndroidManifest.xml com.discord-896/AndroidManife *************** +*** 21,27 **** + + + +! + + + +--- 21,27 ---- + + + +! + + + +*************** *** 96,102 **** @@ -64,7 +81,7 @@ diff -crB com.discord-896-base/AndroidManifest.xml com.discord-896/AndroidManife *************** -*** 182,189 **** +*** 182,190 **** @@ -73,7 +90,9 @@ diff -crB com.discord-896-base/AndroidManifest.xml com.discord-896/AndroidManife ---- 182,189 ---- +! +\ No newline at end of file +--- 182,190 ---- @@ -82,9 +101,10 @@ diff -crB com.discord-896-base/AndroidManifest.xml com.discord-896/AndroidManife +! diff -crB com.discord-896-base/apktool.yml com.discord-896/apktool.yml *** com.discord-896-base/apktool.yml 2019-05-12 12:13:48.744567188 +0300 ---- com.discord-896/apktool.yml 2019-05-12 12:37:07.104064259 +0300 +--- com.discord-896/apktool.yml 2019-05-13 11:38:54.714734040 +0300 *************** *** 308,312 **** tag: null @@ -100,7 +120,7 @@ diff -crB com.discord-896-base/apktool.yml com.discord-896/apktool.yml ! versionName: 8.9.6-cutthecord-CTCBUILD diff -crB com.discord-896-base/res/values/strings.xml com.discord-896/res/values/strings.xml *** com.discord-896-base/res/values/strings.xml 2019-05-12 12:13:45.461106806 +0300 ---- com.discord-896/res/values/strings.xml 2019-05-12 12:37:07.107397603 +0300 +--- com.discord-896/res/values/strings.xml 2019-05-13 11:38:54.724734086 +0300 *************** *** 1280,1286 **** 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 e5c8483..3fcb74f 100644 --- a/patches/branding/README.md +++ b/patches/branding/README.md @@ -1,6 +1,8 @@ ## DisTok CutTheCord: Custom Branding Patch -This patch renames Discord app to Cutthecord. +This patch renames Discord app to CutTheCord. + +It also enables debuggability (`android:debuggable`) and backupability (`android:allowBackup`) of the application. You'll need to run "addpatch.py" with syntax of `python3 addpatch.py $in_patch_filename $app_name $branch_name` and use the `-custom.patch` version, or else it'll fail. You'll need to put a valid directory for storing hacky build counters to it.