Skip to content

How hard can it be to build Frida natively on Android/Termux...#2225

Open
carlospolop wants to merge 1 commit into
masterfrom
update_How_hard_can_it_be_to_build_Frida_natively_on_Andr_20260512_195308
Open

How hard can it be to build Frida natively on Android/Termux...#2225
carlospolop wants to merge 1 commit into
masterfrom
update_How_hard_can_it_be_to_build_Frida_natively_on_Andr_20260512_195308

Conversation

@carlospolop
Copy link
Copy Markdown
Collaborator

🤖 Automated Content Update

This PR was automatically generated by the HackTricks News Bot based on a technical blog post.

📝 Source Information

  • Blog URL: https://qbtau.in/posts/building_frida_on_termux/
  • Blog Title: How hard can it be to build Frida natively on Android/Termux without NDK?
  • Suggested Section: Mobile Pentesting > Android Applications Pentesting > Frida Tutorial / Android Testing Environment

🎯 Content Summary

This post is a deep technical guide for building Frida 17.9.1 natively inside Android/Termux on ARM64, without using the Android NDK, without cross-compilation, and without relying on build.frida.re prebuilts. The result is a native Termux/Bionic Frida build produced with the normal Frida-style ./configure + ninja workflow.


Goal and impact: the build enables Android users, especially those usi...

🔧 Technical Details

Native Frida build on Android/Termux without NDK: The core technique is to build Frida as --build=linux-arm64 instead of android-arm64. This avoids Frida’s Android NDK environment path, specifically env_android.py, and allows the build to use Termux’s native clang/Bionic toolchain. This is useful when building instrumentation tooling directly on an Android device rather than cross-compiling from a desktop.


Bypassing unwanted Frida prebuilt and compat behavior: The guide disables prebuilt dependency usage with --without-prebuilds=sdk,toolchain and disables Frida compat with -Dfrida-core:compat=disabled. It also patches subprojects/frida-core/compat/build.py so an empty allowed_prebuilds set does not get treated as unrestricted prebuild permission, and so upstream GLib output groups are only created when compat is actually enabled. This prevents accid...

🤖 Agent Actions

Updated src/mobile-pentesting/android-app-pentesting/frida-tutorial/README.md.

Added:

  • a new Native Frida build on Android/Termux (without NDK) section
  • key build flags and constraints
  • Bionic-specific pitfalls:
    • false-positive Meson function detection
    • patched GLib / patched Vala requirement
    • opaque FILE * / libc-shim.c issues
    • minizip-ng 4.x API drift
    • low-memory ninja -j1/-j2 guidance
  • a compact Termux configure/build example
  • references to the blog and relevant Frida/Termux sources

Validation:

  • reviewed the diff
  • ran basic file integrity checks successfully
  • mdbook build could not be run because mdbook is not installed in this environment

This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.

@carlospolop
Copy link
Copy Markdown
Collaborator Author

🔗 Additional Context

Original Blog Post: https://qbtau.in/posts/building_frida_on_termux/

Content Categories: Based on the analysis, this content was categorized under "Mobile Pentesting > Android Applications Pentesting > Frida Tutorial / Android Testing Environment".

Repository Maintenance:

  • MD Files Formatting: 974 files processed

Review Notes:

  • This content was automatically processed and may require human review for accuracy
  • Check that the placement within the repository structure is appropriate
  • Verify that all technical details are correct and up-to-date
  • All .md files have been checked for proper formatting (headers, includes, etc.)

Bot Version: HackTricks News Bot v1.0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant