rust-jni
Pass
Audited by Gen Agent Trust Hub on Nov 7, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill references standard command-line tools for development, auditing, and testing.
cargo treeandcargo updateare used for managing and verifying the versions of thejnicrate dependencies.llvm-nmis recommended for inspecting exported symbols to debug linkage errors.adb shellcommands are used to enableCheckJNIon Android devices for runtime verification.gradlewis used to run instrumentation tests for binding verification.- [EXTERNAL_DOWNLOADS]: The skill provides links to well-known, official documentation for Android development.
- It references the official Android NDK guides on
developer.android.comfor JNI tips and class loading behaviors. - [DYNAMIC_EXECUTION]: The instructions cover the necessary use of
unsafeRust features for FFI (Foreign Function Interface) operations. - The skill promotes safe practices by requiring
SAFETYcomments and explicit invariant checks when usingfrom_rawpointers or mapping direct buffers. - It provides correct templates for
JNI_OnLoadand panic guards to prevent native aborts, which is a key stability and security best practice when crossing the language boundary.
Audit Metadata