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:
topjohnwu
2026-10-22 14:06:48 -07:00
committed by John Wu
parent e8e8c3e3f1
commit a51dc10f88
6 changed files with 85 additions and 162 deletions
+1
View File
@@ -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"]