/vault-software-development:apk-ndk-version-checkfrom vault-software-development
Check which Android NDK / clang version built an APK's native library (libUE4.so, lib*.so) — works even when the ELF section table is stripped (UE Shipping builds), maps "based on rXXXXXX" revisions to NDK releases via changelog, and cross-validates with libc++_shared.so. Use when asked to check NDK version, clang version, compiler version of an APK or .so, or to figure out which toolchain built a native library.
Ships in vault-software-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
结论先行:NDK 版本写死在 .so 的编译器签名串里,格式为
Android (<build-id>[, +pgo, +bolt, ...], based on r<LLVM rev>) clang version <X.Y.Z>。
先走标准 ELF 探测,探测不到(节头被裁)就全文扫字符串,用 based on r… 修订号查 NDK changelog 定版到具体字母版本,再用 libc++_shared.so 交叉验证。
lib*.so(尤其是 libUE4.so)是用哪个工具链编的本机 Python 2.7.18(32 位)。两个脚本都用 br"..." 字节串和 ord(x[0:1]) 写法,py2/py3 通用。验证过的机器只有 py2.7,脚本失败先怀疑 py3 语法回退问题。
先找已解包目录(用户常给两个路径:.apk + 同名无后缀目录)。目标在 lib/<abi>/ 下,UE 包是 lib/arm64-v8a/libUE4.so,另取同目录 libc++_shared.so 备用(Step 5 用)。
只有 .apk 时解包:
python -c "import zipfile; zipfile.ZipFile(r'<apk路径>').extractall(r'<目标目录>')"
python <skill目录>/scripts/elf_probe.py <path.so>
脚本输出 ELF class、节头数、PT_NOTE 内容。判定:
.comment 段,clang 签名串就在里面,跳到 Step 4ndk_version 描述串 → 直接得 NDK 字母版(较新 NDK 的 crtbegin 才写,不是必有)python <skill目录>/scripts/scan_clang_strings.py <path.so> [更多.so...]
输出所有去重后的 Android (...) clang version ... 串。一个 so 出 5~10 个不同版本串是正常的——静态链接进来的各第三方 SDK 各带各的工具链。不要用出现次数判断主体:.comment 已被链接器去重,每个串只留一份。
两段信息,用法不同:
clang version X.Y.Z — 定 NDK 家族(大版本),对应关系见下表based on r<LLVM rev> — 查 NDK changelog(websearch NDK changelog rXX "r530567d")定到具体字母版(r28b / r28c…)坑:括号里的 <build-id> 是工具链构建号,不总等于 gradle ndkVersion。r28b 恰好两边都是 13324770,r26 系列则不相等——不要拿 build-id 反查 gradle 版本号,用 LLVM 修订号查 changelog 才可靠。
对 Step 1 留下的 libc++_shared.so 跑同一个扫描脚本。它是 NDK 自带组件、随引擎构建所用 NDK 打包,其主体签名串应与 libUE4.so 中的最新串一致。判定规则:
| NDK | clang | LLVM base 修订号(查 changelog 用) | 状态 |
|---|---|---|---|
| r18 | 6.0.2 | r316199 | 串实测 |
| r20 | 9.0.8 | r365631c | 串实测 |
| r21 | 9.0.8 | r365631c1 | 串实测 |
| r23 | 12.0.5 | r416183b | 串实测 |
| r24 | 12.0.8 | r416183c1 | 串实测 |
| r25 | 14.0.7 | r450365d | 待复核 |
| r26 | 17.0.2 | r487747e | 串实测 |
| r27 | 18.0.x | r522817 | 串实测 |
| r28 | 19.0.0 | r530567a(r28b=d, r28c=e) | 已复核 |
| r29+ | — | 用同一套 changelog 方法查 | — |
表只做家族级速查;报给用户的字母版必须经 changelog 复核,缺材料就标"待确认",不补虚构出处。
报结论时按这个结构,别把第三方 SDK 的老 NDK 说成引擎的:
libUE4.so 由 NDK rXXb(clang A.B.C)构建;另检出 NDK r18/r20/r21/r23b/r24/r26d 等串,来自静态链接的第三方 SDK 历史产物,
.comment去重后无法反推具体哪个 SDK 用哪个 NDK。
Torch_ReviewUGS_Shipping_5956938_Release_fc7af9a2.1788945322.apk(已解包目录)39e3c1c9...,SHA1)→ Step 2 判停,走 Step 3Android (13324770, +pgo, +bolt, +lto, +mlgo, based on r530567d) clang version 19.0.0clang-r530567d,r28c 为 r530567e(build 13676358)→ 定 r28bandroid_36(targetSdk 36)吻合——r28 起 16 KB page size 兼容默认开启++UE4+Release-*)也被裁——都不是异常,直接走字符串扫描strings 命令能干同样的事,但 Windows 上未必装了;脚本方案零依赖What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yhyu13/agentskillsvault --plugin vault-software-developmentOther plugins' skills for the same job
25 skills in this plugin
/agent-desktopOperate desktop applications on macOS, Windows and Linux through native accessibility trees, using the agent-desktop CLI. Use when an AI agent must see or act on a desktop GUI: click buttons, fill forms, read UI state, navigate menus, toggle checkboxes, scroll, drag, type text, press shortcuts, take screenshots, manage windows, use the clipboard, launch or close apps, read notifications. Triggers on: "click button", "fill form", "open app", "read UI", "computer use", "operate desktop", "accessibility tree", "snapshot app", "type into field", "navigate menu", "toggle checkbox", "take screenshot", "desktop automation", "agent-desktop", or any desktop GUI task on macOS, Windows or Linux.
/agent-eval-loopBuild a Skill + Eval + Verification triad for any agent workflow, then
ascend the trust curve from local observation to cloud automation. Use
this when the user wants to (1) encode a team best practice as a reusable
skill, (2) write a unit test for an agent skill ("skill is hallucinating,
how do I check?"), (3) establish a trust loop before running cloud agents
at scale, or (4) move from "agent I have to babysit" to "agent I trust
to ship PRs to main." This skill teaches the methodology distilled from
the Cursor team's public talk by a SpaceXAI engineer.