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.jsonfile.Note: The
keypassanddnamefields are only required to create a new keystore. See here for how to fill out thednamefields.
-
keytoolandjarsignerfrom the Java JDK -
md5sumandddfrom Coreutils (Windows binaries available in Git for Windows) -
zipalignfrom the Android SDK -
Note:
requestsandrequests-cachecan be installed with:python3.5 -m pip install requests requests-cache