Fully implement daemon side of Zygisk in Rust

This commit is contained in:
topjohnwu
2025-01-30 00:47:01 +08:00
committed by John Wu
parent b575c95710
commit 15a605765c
12 changed files with 160 additions and 101 deletions
-1
View File
@@ -26,7 +26,6 @@ enum class RespondCode : int {
END
};
extern bool zygisk_enabled;
extern std::string native_bridge;
void reset_zygisk(bool restore);
+2
View File
@@ -6,6 +6,8 @@ const char *get_magisk_tmp();
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(); }