Propagate Zygisk state to Magisk app

This commit is contained in:
topjohnwu
2021-09-18 02:38:53 -07:00
parent 7b25e74418
commit db590091b3
11 changed files with 99 additions and 85 deletions

View File

@ -376,6 +376,13 @@ bool get_manager(string *pkg) {
return get_manager(0, pkg, &st);
}
int get_manager_app_id() {
struct stat st;
if (get_manager(0, nullptr, &st))
return to_app_id(st.st_uid);
return -1;
}
void exec_sql(int client) {
run_finally f([=]{ close(client); });
string sql = read_string(client);