Skip to content

Building from source

Ricardo Fernández Serrata edited this page Feb 3, 2025 · 9 revisions
  1. Install clang, as it's required for mold (no need for gcc)
  2. Install the Rust toolchain.
  3. Install the mold linker.
  4. Clone this repository however you like. If you won't contribute PRs then you should only download the contents as:
    • Latest commit
    git clone --depth 1 https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
  5. cd into your local repo
  6. And finally, build for distribution, or install for the current machine (respectively):
cargo build --release
cargo install --path . --config 'build.rustflags="-C target-cpu=native"'

To update, repeat from step-4. git pull is recommended if you want to update frequently (saves bandwidth).

If you're a Nix user, start from step-4, and only do step-6 after running:

nix develop
Clone this wiki locally