a simple python tool to patch supercell game apks to redirect their server traffic to a custom host/ip.
built for @AsAlinks — https://github.com/AsAlinks
replaces the hardcoded server hostname inside libg.so (e.g. gamea.clashofclans.com) of stock supercell apks, then re-signs the apk so it can be installed and run normally.
| package | default host |
|---|---|
| com.supercell.clashroyale | game.clashroyaleapp.com |
| com.supercell.clashofclans | gamea.clashofclans.com |
| com.supercell.hayday | game.haydaygame.com |
| com.supercell.boombeach | game.boombeachgame.com |
| com.supercell.brawlstars | game.brawlstarsgame.com |
- python 3.8+
- androguard (https://github.com/androguard/androguard)
- keysigner (apk_signer module)
install dependencies:
pip3 install androguard
place your apk in the same directory as the script and run:
python3 main.py
the script will:
- list available apks in the current directory
- ask you to select one or enter a path manually
- detect the package and show the current host
- ask for your new host/ip
- patch libg.so and re-sign the apk
- output a _patched.apk file
- only works with stock apks — not already-modified clients or repackaged ones
- your new host/ip cannot be longer than the original one (binary size must stay the same)
- use uptodown (https://uptodown.com) or apkbe (https://apkbe.com) to get older versions of supercell games
- we do not take any responsability for what you do with it
- we are NOT affiliated to Supercell or anything
the patched apk will be saved as:
originalname_patched.apk