Comment on: Tmalloc error on install for mediatek chromebook
Repo: google-antigravity/antigravity-cli by Brajesh2022
I'm on Android/Termux and hit the same issue
I got it fully working natively on Termux , no proot-distro, no VM, no Cloud Shell. The fix required addressing 7 separate issues: VA39 TCMalloc patch, `faccessat2` syscall rewrite, glibc `libc.so` shim, `LD_PRELOAD` pollution, DNS resolver, TLS certificates, and shell hash caching.
The `faccessat2` fix is not in @hjotha 's patch, Android seccomp blocks it with `SIGSYS` after the TCMalloc issue is resolved, so both patches are needed together.
Full writeup with reusable patch script: https://gist.github.com/Brajesh2022/e42160d29b55417db6c18c52dd1d6d37
The script is pattern-based, not offset-based, so it should work across versions. You can also paste the gist URL or its full contents directly into any AI agent and ask it to set up your environment , the document has enough detail to follow without human guidance.
GitHub Issue
SaaS Metrics