mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 23:14:03 -05:00
native: Simplify and deduplicate package lookup
- Expose MagiskD::get_app_id via CXX bridge and reuse it in denylist instead of duplicating user collection and package UID lookup in C++. - Remove redundant manager package name returns, Status enum, and the ManagerInfo wrapper struct now that the package name is fixed. Assisted-by: Gemini 4 Argon
This commit is contained in:
@@ -224,6 +224,7 @@ pub mod ffi {
|
||||
fn get_db_setting(&self, key: DbEntryKey) -> i32;
|
||||
#[cxx_name = "set_db_setting"]
|
||||
fn set_db_setting_for_cxx(&self, key: DbEntryKey, value: i32) -> bool;
|
||||
fn get_app_id(&self, pkg: &str) -> i32;
|
||||
|
||||
#[Self = MagiskD]
|
||||
#[cxx_name = "Get"]
|
||||
|
||||
Reference in New Issue
Block a user