Build


How to build Themaphack from source code using Termux

An extensive tutorial for building Themaphack using ndk-build within Termux terminal emulator.

Prepare

We have set up custom ndk-build to work on this project or you can download Android ndk at its official website

  • Download our custom ndk-build tools
  • Install Termux on your Android devices or just use your terminal/cmd if you build on PC
# Update repository Termux
$ pkg update && pkg upgrade -y

# Install required tools
$ pkg install git openssh wget

# Change to Termux $HOME directory
$ cd ~/

# Download ndk-build system
$ wget https://github.com/anggorodhanumurti/themaphack/releases/download/ndk_aide_latest/ndk-build.tar.gz

# Extract ndk-build
$ tar -xvzf ndk-build.tar.gz

# Clone themaphack repository
$ git clone https://github.com/anggorodhanumurti/themaphack.git && cd themaphack

# Run compile script
$ ./compile.sh

Note: Ensure you select the appropriate library based on your device’s architecture. If you’re not sure you can check your device architecture using 64bit checker and download our compiled mod so you dont need to build from source.

Install

I assume you’re using 64bit Android

  1. After compile.sh script runs succesfully, lib file will generated on your working directory libs/arm64-v8a the filename is libAkSoundEngine2.so

  2. Open Zarchiver Copy that libAkSoundEngine2.so to mlbb folder: Android/data/com.mobile.legends/files/dragon2017/assets/comlibs/arm64-v8a

  3. Rename original lib from mlbb libAkSoundEngine.bytes to libTMH.bytes

  4. Rename libAkSoundEngine2.so to libAkSoundEngine.bytes done TMH is installed succesfully! but before open MLBB you must have a key for login to TMH modmenu. Generate key here

Warning: Your account is still not safe from banned. So before you open mlbb game make sure you follow this guide