Warning: With version 8.212.12, Supercell has started banning accounts for the use of third party software. I am unsure what, if any, checks are in place that might reveal the use of these patches, so continue use at your own risk. See here for more info.
Patches and signs the Clash of Clans APK
Run with:
python3.5 patcher.py [--json] version-number
For example:
python3.5 patcher.py 2.212.9
By default, coc-patcher
will retrieve the keys, MD5s, and key and URL offsets from the coc-proxy
wiki. To provide these values for a new or unknown APK version, enter them in config.json
and use the --json
flag. Enter them with the following layout:
"versions": {
"8.212.9": {
"key": "469b704e7f6009ba8fc72e9b5c864c8e9285a755c5190f03f5c74852f6d9f419",
"arm": {
"md5": "769e2e9e1258b75d15cb7e04b2e49de3",
"key-offset": "4280344",
"url-offset": "3534513"
},
"x86": {
"md5": "29ca23e48a5e419e83f2a7988c842d3e",
"key-offset": "6189080",
"url-offset": "4768816"
}
}
}
-
Install dependencies.
-
Fill in the
config.json
file.Note: The
keypass
anddname
fields are only required to create a new keystore. See here for how to fill out thedname
fields.
-
keytool
andjarsigner
from the Java JDK -
md5sum
anddd
from Coreutils (Windows binaries available in Git for Windows) -
zipalign
from the Android SDK -
Note:
requests
andrequests-cache
can be installed with:python3.5 -m pip install requests requests-cache