Skip to content

Instantly share code, notes, and snippets.

@thinhbuzz
Created January 8, 2026 03:47
Show Gist options
  • Select an option

  • Save thinhbuzz/97ab9230d733098a0c1bf2932698b970 to your computer and use it in GitHub Desktop.

Select an option

Save thinhbuzz/97ab9230d733098a0c1bf2932698b970 to your computer and use it in GitHub Desktop.
Build Frida with Frida's latest SELinux

You can build Frida with Frida's latest SELinux update by following these steps:

Step 1: Clean the build and deps directories

rm -rf build deps

Step 2: Update the SELinux configuration in the releng/deps.toml file

[selinux]
when = "machine.os == 'android'"
name = "SELinux Userspace"
version = "b7c8cd70d821bb3fc69500e6273149299b80b923"
url = "https://github.com/frida/selinux.git"
options = [
    "-Dregex=disabled",
]

Step 3: Run these commands BEFORE the configure step to rebuild SELinux

python3 releng/deps.py build --host android-arm64 --only selinux -v
rm -rf deps/src deps/sdk-android-arm64
mv deps/sdk-android-arm64.tar.xz deps/sdk-android-arm64.tar.xz.backup

Step 4: Run these commands AFTER the configure step but BEFORE make to ensure the latest SELinux is used

tar -xf deps/sdk-android-arm64.tar.xz.backup -C deps/sdk-android-arm64 --strip-components=1

Step 5: Run make to build Frida

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment