mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-15 14:24:15 -08:00
Implement preinit related features in Rust
This commit is contained in:
@@ -42,7 +42,6 @@ extern std::string native_bridge;
|
||||
|
||||
void reset_zygisk(bool restore);
|
||||
int connect_daemon(int req, bool create = false);
|
||||
std::string find_preinit_device();
|
||||
void unlock_blocks();
|
||||
|
||||
// Poll control
|
||||
|
||||
@@ -26,4 +26,9 @@ private:
|
||||
};
|
||||
|
||||
const char *get_magisk_tmp();
|
||||
|
||||
// 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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user