Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gstalker/Zygisk-Rust-ModuleTemplate
/ functions
Functions
20 in github.com/Gstalker/Zygisk-Rust-ModuleTemplate
⨍
Functions
20
◇
Types & classes
9
↓ 1 callers
Function
native_activity_create
()
module/rust/src/lib.rs:18
↓ 1 callers
Method
on_load
(&self, api: ZygiskApi, env: JNIEnv)
module/rust/src/lib.rs:39
Function
companion
(_socket: RawFd)
module/rust/src/lib.rs:32
Method
connect_companion
Connect to a root companion process and get a Unix domain socket for IPC. This API only works in the `pre[XXX]Specialize` functions due to SELinux re
module/rust/src/api.rs:44
Method
from_module
(module: &'static mut RawModule)
module/rust/src/module.rs:55
Method
from_raw
(inner: &'a RawApiTable)
module/rust/src/api.rs:167
Method
get_flags
Get information about the current process. Returns bitwise-or'd [StateFlags] values.
module/rust/src/api.rs:77
Method
get_module_dir
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
module/rust/src/api.rs:59
Method
hook_jni_native_methods
Hook JNI native methods for a Java class. This looks up all registered JNI native methods and replaces them with your own functions. The original fun
module/rust/src/api.rs:98
Function
module_entry_impl
(module: &'static dyn ZygiskModule, table: *const (), env: *mut ())
module/rust/src/macros.rs:10
Method
on_load
This function is called when the module is loaded into the target process. A Zygisk API handle will be sent as an argument; call utility functions or
module/rust/src/module.rs:15
Method
plt_hook_commit
Commit all the hooks that was previously registered. Returns `false` if any error occurs.
module/rust/src/api.rs:158
Method
plt_hook_exclude
For ELFs loaded in memory matching `regex`, exclude hooks registered for `symbol`. If `symbol` is `None`, then all symbols will be excluded.
module/rust/src/api.rs:146
Method
plt_hook_register
For ELFs loaded in memory matching `regex`, replace function `symbol` with `new_func`. The type `*mut ()` is used in place of Rust function pointer t
module/rust/src/api.rs:124
Method
post_app_specialize
This function is called after the app process is specialized. At this point, the process has all sandbox restrictions enabled for this application. Th
module/rust/src/module.rs:34
Method
post_server_specialize
This function is called after the system server process is specialized. At this point, the process runs with the privilege of `system_server`.
module/rust/src/module.rs:42
Method
pre_app_specialize
This function is called before the app process is specialized. At this point, the process just got forked from zygote, but no app specific specializat
module/rust/src/module.rs:29
Method
pre_server_specialize
This function is called before the system server process is specialized. See [Self::pre_app_specialize] for more info.
module/rust/src/module.rs:38
Method
retain
Retain the API handle to be used across function calls to [ZygiskModule](crate::ZygiskModule) by giving it a `'static` lifetime. ## Safety This is a
module/rust/src/api.rs:182
Method
set_option
Set various options for your module. Please note that this function accepts one single option at a time. Check [ZygiskOption] for the full list of opt
module/rust/src/api.rs:69