Script that applies CutTheCord patches to Discord
This repository has been archived on 2021-11-19. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Observer of Time 423fc55dc5
Add nocamerabutton patch
Also, prompt before applying the patches.
This allows the user to manually edit them if needed.
2020-12-15 21:15:44 +02:00
.gitignore Download the decompiled code from apkfuckery 2020-11-02 13:36:12 +02:00
LICENSE Initial commit 2020-03-07 16:38:19 +02:00
README.md Add nocamerabutton patch 2020-12-15 21:15:44 +02:00
patch.sh Add nocamerabutton patch 2020-12-15 21:15:44 +02:00

README.md

CutTheCord patcher

Requires

  • bash
  • sed
  • patch
  • curl
  • tar
  • apktool
  • keytool
  • jarsigner
  • adb (optional if SKIP_INSTALL is set)

Patches

  • bettertm
  • branding
  • customfont (text, code)
  • customversion
  • necessary
  • nocamerabutton
  • noblocked
  • squareavatars

Usage

The script needs a keystore to sign the patched app.

# the path to a .keystore or .jks file
export KEYSTORE_PATH="ctc-key.jks"
# the alias of the keystore
export KEYSTORE_ALIAS="ctc-key"

If the file doesn't exist, generate it with keytool.

keytool -genkeypair -keystore "$KEYSTORE_PATH" -alias "$KEYSTORE_ALIAS"

You also need to set the following variables:

# the version code of the Discord APK
export VERCODE="1340"
# the apkfuckery commit hash corresponding to VERCODE
# https://gitdab.com/distok/apkfuckery/commits/branch/master
export COMMIT_HASH="47c2a54ada268de6c892b130ffed118d76fc4f2a"

The variables below are optional:

# if you don't want to be prompted before patching
export NO_PROMPT=1
# if you want to manually install the patched app
# you will find the APK in com.discord/dist/
export SKIP_INSTALL=1

Now, you can run the script like so:

bash < <(curl -LSs https://discord.coffee/5V4AnGq)

You will be prompted to enter the keystore password.