mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 07:17:38 +00:00
Fix auto install stub
This commit is contained in:
parent
15a7e9af57
commit
6ecc04a4df
@ -119,9 +119,7 @@ int get_manager(int user_id, string *pkg, bool install) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (skip_mgr_check.test_and_set()) {
|
if (skip_mgr_check.test_and_set()) {
|
||||||
if (mgr_app_id < 0) {
|
if (mgr_app_id >= 0) {
|
||||||
goto not_found;
|
|
||||||
}
|
|
||||||
// Just need to check whether the app is installed in the user
|
// Just need to check whether the app is installed in the user
|
||||||
const char *name = mgr_pkg->empty() ? JAVA_PACKAGE_NAME : mgr_pkg->data();
|
const char *name = mgr_pkg->empty() ? JAVA_PACKAGE_NAME : mgr_pkg->data();
|
||||||
ssprintf(app_path, sizeof(app_path), "%s/%d/%s", APP_DATA_DIR, user_id, name);
|
ssprintf(app_path, sizeof(app_path), "%s/%d/%s", APP_DATA_DIR, user_id, name);
|
||||||
@ -134,6 +132,7 @@ int get_manager(int user_id, string *pkg, bool install) {
|
|||||||
} else {
|
} else {
|
||||||
goto not_found;
|
goto not_found;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Here, we want to actually find the manager app and cache the results.
|
// Here, we want to actually find the manager app and cache the results.
|
||||||
// This means that we check all users, not just the requested user.
|
// This means that we check all users, not just the requested user.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user