Extend README

This commit is contained in:
ave 2019-01-21 12:36:56 +03:00
parent 520d3f2423
commit 1e33f68eb4
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -6,11 +6,24 @@ Discord Android app patches.
Automatically patched binaries are available on [distok.a3.pm/cutthecord](https://distok.a3.pm/cutthecord). Automatically patched binaries are available on [distok.a3.pm/cutthecord](https://distok.a3.pm/cutthecord).
To be able to install them (when moving from official discord app), you'll need to first uninstall Discord app and restart your device. You may also need to enable play protect. #### Installing patched binaries
You can just update directly from APKs there once you do that, so this is a process you only need to do once. First of all, download the apk you want to install from the link above, then:
## Toolchain setup - Uninstall the official Discord app from your phone. You'll need to re-login, so make sure that you remember your password!
- (optional) Disable Play Protect
- Restart your phone
- Install the APK you downloaded. Ignore Play Protect's nag.
#### Updating or moving between patches
You can just update directly or move between the patches that are built by cutthecord without having to uninstall or restart.
If you ever want to move back to official Discord builds or want to move to your own built APKs, you'll need to do the "Installing patched binaries" step above again. This is due to the different signatures provided.
## Building
#### Toolchain setup
- Get apktool - Get apktool
- Get a keystore, see [here](https://stackoverflow.com/a/14994354/3286892), step 1. - Get a keystore, see [here](https://stackoverflow.com/a/14994354/3286892), step 1.
@ -18,7 +31,7 @@ You can just update directly from APKs there once you do that, so this is a proc
- Extract the emojis you got somewhere. - Extract the emojis you got somewhere.
- Clone this repo somewhere, edit `emojireplace.py` and set the `extracted_mutstd_path` folder to the folder you just extracted emojis to. - Clone this repo somewhere, edit `emojireplace.py` and set the `extracted_mutstd_path` folder to the folder you just extracted emojis to.
## Building an patched discord app #### Building a patched discord app
- Get a Discord apk (*cough* [apkmirror](https://www.apkmirror.com/apk/discord-inc/discord-chat-for-gamers/), [aptoide API](https://ws75.aptoide.com/api/7/app/getMeta?package_name=com.discord)). - Get a Discord apk (*cough* [apkmirror](https://www.apkmirror.com/apk/discord-inc/discord-chat-for-gamers/), [aptoide API](https://ws75.aptoide.com/api/7/app/getMeta?package_name=com.discord)).
- Extract it with apktool (`apktool d <apk path>`) - Extract it with apktool (`apktool d <apk path>`)
@ -30,11 +43,11 @@ You can just update directly from APKs there once you do that, so this is a proc
- Sign the new APK (`jarsigner -keystore <keystore path> <foldername>/dist/<foldername>.apk <alias>`) - Sign the new APK (`jarsigner -keystore <keystore path> <foldername>/dist/<foldername>.apk <alias>`)
- Get your new APK from `<foldername>/dist/<foldername>.apk`, install and enjoy! - Get your new APK from `<foldername>/dist/<foldername>.apk`, install and enjoy!
## Building patches #### Building patches
`diff -crB -x "dist" -x "res/raw" -x "build" CleanFolder PatchedFolder > patchname.patch` `diff -crB -x "dist" -x "res/raw" -x "build" CleanFolder PatchedFolder > patchname.patch`
## Disclaimer about emojos #### Disclaimer about emojos
This [thing] uses Mutant Standard emoji (https://mutant.tech), which are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (https://creativecommons.org/licenses/by-nc-sa/4.0/). This [thing] uses Mutant Standard emoji (https://mutant.tech), which are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (https://creativecommons.org/licenses/by-nc-sa/4.0/).