Directly use rust::Vec

This commit is contained in:
topjohnwu
2023-06-16 02:33:01 -07:00
parent 0493829231
commit 81493475f9
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -25,13 +25,13 @@ pub mod ffi {
fn magisk_logging();
fn zygisk_logging();
fn find_apk_path(pkg: &[u8], data: &mut [u8]) -> usize;
fn read_certificate(fd: i32, version: i32) -> Vec<u8>;
}
#[namespace = "rust"]
extern "Rust" {
fn daemon_entry();
fn zygisk_entry();
fn read_certificate(fd: i32, version: i32) -> Vec<u8>;
type MagiskD;
fn get_magiskd() -> &'static MagiskD;