You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Migrate prune_su_access to Rust
This commit is contained in:
@@ -213,7 +213,7 @@ impl MagiskD {
|
||||
)
|
||||
}
|
||||
|
||||
fn db_exec(&self, sql: &str, args: &[DbArg]) -> i32 {
|
||||
pub fn db_exec(&self, sql: &str, args: &[DbArg]) -> i32 {
|
||||
self.db_exec_impl(sql, args, None, ptr::null_mut())
|
||||
}
|
||||
|
||||
@@ -308,10 +308,6 @@ impl MagiskD {
|
||||
self.set_db_setting(key, value).log().is_ok()
|
||||
}
|
||||
|
||||
pub fn rm_db_string_for_cxx(&self, key: DbEntryKey) -> bool {
|
||||
self.rm_db_string(key).log().is_ok()
|
||||
}
|
||||
|
||||
pub fn db_exec_for_cxx(&self, client_fd: RawFd) {
|
||||
// Take ownership
|
||||
let fd = unsafe { OwnedFd::from_raw_fd(client_fd) };
|
||||
|
||||
Reference in New Issue
Block a user