Skip to content

AsAlinks/sc-games-ip-patcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

sc-games-ip-patcher

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


what it does

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.

supported games

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

requirements

install dependencies:

pip3 install androguard

usage

place your apk in the same directory as the script and run:

python3 main.py

the script will:

  1. list available apks in the current directory
  2. ask you to select one or enter a path manually
  3. detect the package and show the current host
  4. ask for your new host/ip
  5. patch libg.so and re-sign the apk
  6. output a _patched.apk file

notes

  • 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

output

the patched apk will be saved as:

originalname_patched.apk

About

a simple python tool to patch supercell games APKs libg.so (clash royale, clash of clans, etc) default ip address to an external one (for example from gamea.clashofclans.com to 127.0.0.1) and pad rest with 00’s to not make the client crash.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages