mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 19:40:47 -05:00
Fix package management and user targeting on HSUM
- Use --user current for pm install, adb install, and appops set across install_script, adb_pm_install, and test/setup scripts. - Skip headless user 0 in get_users() on HSUM devices. - Use --user current in app_notify for non-app UIDs instead of calling content call against all users. - Clear path buffer on each iteration in setup_magisk_env. - Use --user current for am instrument in app migration tests. Assisted-by: Gemini 4 Argon
This commit is contained in:
@@ -235,8 +235,8 @@ void exec_module_scripts(Utf8CStr stage, const rust::Vec<ModuleInfo> &module_lis
|
||||
constexpr char install_script[] = R"EOF(
|
||||
APK=%s
|
||||
log -t Magisk "pm_install: $APK"
|
||||
log -t Magisk "pm_install: $(pm install --user all -g -r $APK 2>&1)"
|
||||
appops set --user all %s REQUEST_INSTALL_PACKAGES allow
|
||||
log -t Magisk "pm_install: $(pm install --user current -g -r $APK 2>&1)"
|
||||
appops set --user current %s REQUEST_INSTALL_PACKAGES allow
|
||||
rm -f $APK
|
||||
)EOF";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user