This repository has been archived on 2021-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
cutthecord/patches/branding/README.md
2021-01-05 17:09:25 -05:00

5.4 KiB

DisTok CutTheCord: Custom Branding Patch

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.

Running customicon.sh (while on root of the extracted folder) will also change the icon to the debug icon:

If you want a different icon, replace res/mipmap-xxxhdpi/logo_debug.png with the icon you want before running customicon.sh. If you don't want dynamic icon to be shown instead of the custom icon, delete the folder res/mipmap-anydpi-v26/ (or if you want to replace it too, look at the next line instead).

If you want a custom dynamic icon replace res/mipmap-xxxhdpi/ic_launcher_foreground.png (optionally transparent image with only the foreground of the icon) and res/mipmap-xxxhdpi/ic_launcher_background.png (optionally transparent image with only the background of the icon), both images should be square and of same size, and then run customdynamicicon.sh.

You can use the following line to patch authorities:

sed -i 's/android:authorities="com.discord./android:authorities="com.cutthecord.CTCBRANCH./g' AndroidManifest.xml

Available and tested on:

  • 8.3.3
  • 8.3.4g
  • 8.3.5g
  • 8.3.6g
  • 8.3.9g
  • 8.4.1g
  • 8.4.2g
  • 8.4.3g
  • 8.4.4g
  • 8.4.5g
  • 8.4.8
  • 8.5.0
  • 8.5.1
  • 8.5.3
  • 8.5.4
  • 8.5.5
  • 8.5.6
  • 8.7.6
  • 8.8.4
  • 8.8.8
  • 8.9.6
  • 8.9.7
  • 8.9.8
  • 8.9.9
  • 9.0.0
  • 9.0.1
  • 9.0.2
  • 9.0.3
  • 9.0.4
  • 9.0.6
  • 9.0.9
  • 9.1.0
  • 9.3.8-SAO-Heathcliff
  • 9.3.9
  • 9.4.0
  • 9.4.2-SA
  • 9.4.3-SA
  • 9.4.5
  • 9.4.6
  • 9.4.7
  • 9.4.8
  • 9.6.3
  • 9.6.4
  • 9.6.5
  • 9.6.6
  • 9.6.7
  • 9.6.8
  • 9.7.0
  • 9.8.0
  • 9.8.4
  • 9.8.6
  • 9.9.1
  • 9.9.2
  • 9.9.3
  • 9.9.4
  • 9.9.6
  • 10.0.6
  • 10.0.7
  • 10.1.1
  • 10.1.2
  • 10.1.3
  • 10.1.5
  • 10.1.6
  • 10.1.9
  • 10.2.0
  • 10.2.1
  • 10.2.2
  • 10.2.3
  • 10.2.4
  • 10.2.5
  • 10.2.6
  • 10.2.9
  • 10.3.1
  • 10.3.2
  • 10.3.3
  • 10.4.0
  • 10.4.1
  • 10.5.1
  • 11.0
  • 11.4
  • 11.5
  • 12.0-alpha1
  • 11.7
  • 12.1
  • 12.2
  • 12.3
  • 13-alpha1
  • 12.5
  • 14-alpha2
  • 14-alpha3
  • 14.0
  • 15-alpha3
  • 15.0
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3-alpha1
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3-alpha4
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3-alpha6
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3-alpha7
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3
  • 22.4
  • 22.5
  • 23.0
  • 24-alpha2
  • 24
  • 28-alpha2
  • 28.1
  • 29-alpha1
  • 30.0
  • 30.1
  • 31-alpha1
  • 31-alpha2
  • 32-alpha2
  • 32.0
  • 33.1
  • 34.0
  • 34.2
  • 34.3
  • 35.0-alpha1
  • 36.3
  • 36.5
  • 38.0
  • 38.1
  • 40.04
  • 41.02
  • 41.05
  • 41.06
  • 41.10
  • 41.11
  • 42.0
  • 42.1
  • 42.3
  • 44-alpha2
  • 44-alpha4
  • 44.5
  • 44.6
  • 45.2
  • 46.0
  • 46.3
  • 48.0
  • 48.1
  • 48.2
  • 49.1
  • 49.2
  • 49.8
  • 49.10
  • 49.12
  • 49.13
  • 52.3
  • 53.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.1
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0
  • 53.3
  • 54.0
  • 55.1
  • 56.0
  • 53.6
  • 53.8
  • 54.0
  • 55.1
  • 56.0