Browse Source

Info on patching

master
ave 3 years ago
parent
commit
4220a0851e
No known key found for this signature in database GPG Key ID: 9356ABAA42C842B
  1. 8
      README.md

8
README.md

@ -13,9 +13,13 @@ Discord Android app patches
## Building an patched discord app
- Get a Discord apk (*cough* [aptoide](https://ws75.aptoide.com/api/7/app/getMeta?package_name=com.discord)), and get the patches you want for that version. If the patches aren't available, you'll have to port them yourself.
- Apply the patches you want
- Get a Discord apk (*cough* [aptoide](https://ws75.aptoide.com/api/7/app/getMeta?package_name=com.discord)), and get all the necessary patches and the optional patches you want for that version. If the patches aren't available, you'll have to port them yourself.
- Apply the patches (`patch -p1 < <patch name>`).
- Edit `emojireplace.sh` to point to right directories, and apply emoji patches (`bash emojireplace.sh`)
- Build the new APK (`apktool b com.discord-831`)
- 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!
## Building patches
`diff -crB -x "dist" Folder1 Folder2 > atmpatch.patch`
Loading…
Cancel
Save