mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-07 10:50:43 -08:00
24 lines
724 B
C++
24 lines
724 B
C++
#pragma once
|
|
|
|
#include <base.hpp>
|
|
|
|
struct ModuleInfo;
|
|
|
|
const char *get_magisk_tmp();
|
|
bool setup_magisk_env();
|
|
bool check_key_combo();
|
|
void disable_modules();
|
|
void exec_common_scripts(rust::Utf8CStr stage);
|
|
void exec_module_scripts(rust::Utf8CStr stage, const rust::Vec<ModuleInfo> &module_list);
|
|
void install_apk(rust::Utf8CStr apk);
|
|
void uninstall_pkg(rust::Utf8CStr pkg);
|
|
void update_deny_flags(int uid, rust::Str process, uint32_t &flags);
|
|
void initialize_denylist();
|
|
void restore_zygisk_prop();
|
|
|
|
// Rust bindings
|
|
static inline rust::Utf8CStr get_magisk_tmp_rs() { return get_magisk_tmp(); }
|
|
static inline rust::String resolve_preinit_dir_rs(rust::Utf8CStr base_dir) {
|
|
return resolve_preinit_dir(base_dir.c_str());
|
|
}
|