MCPcopy Create free account

hub / github.com/Gstalker/Zygisk-Rust-ModuleTemplate / functions

Functions20 in github.com/Gstalker/Zygisk-Rust-ModuleTemplate

↓ 1 callersFunctionnative_activity_create
()
module/rust/src/lib.rs:18
↓ 1 callersMethodon_load
(&self, api: ZygiskApi, env: JNIEnv)
module/rust/src/lib.rs:39
Functioncompanion
(_socket: RawFd)
module/rust/src/lib.rs:32
Methodconnect_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
Methodfrom_module
(module: &'static mut RawModule)
module/rust/src/module.rs:55
Methodfrom_raw
(inner: &'a RawApiTable)
module/rust/src/api.rs:167
Methodget_flags
Get information about the current process. Returns bitwise-or'd [StateFlags] values.
module/rust/src/api.rs:77
Methodget_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
Methodhook_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
Functionmodule_entry_impl
(module: &'static dyn ZygiskModule, table: *const (), env: *mut ())
module/rust/src/macros.rs:10
Methodon_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
Methodplt_hook_commit
Commit all the hooks that was previously registered. Returns `false` if any error occurs.
module/rust/src/api.rs:158
Methodplt_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
Methodplt_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
Methodpost_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
Methodpost_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
Methodpre_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
Methodpre_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
Methodretain
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
Methodset_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