MCPcopy Create free account
hub / github.com/Gstalker/Zygisk-Rust-ModuleTemplate / get_module_dir

Method get_module_dir

module/rust/src/api.rs:59–64  ·  view source on GitHub ↗

Get the file descriptor of the root folder of the current module. This API only works in the `pre[XXX]Specialize` functions. Accessing the directory returned is only possible in the `pre[XXX]Specialize` functions or in the root companion process (assuming that you sent the fd over the socket). Both restrictions are due to SELinux and UID. Returns -1 if errors occurred.

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected