mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 07:20: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:
+2
-2
@@ -322,8 +322,8 @@ app_test_main() {
|
||||
for apk in "${apks[@]}"; do
|
||||
# Cleanup
|
||||
adb shell pm uninstall com.topjohnwu.magisk || true
|
||||
adb install -r -g $apk
|
||||
adb install -r -g out/test.apk
|
||||
adb install --user current -r -g $apk
|
||||
adb install --user current -r -g out/test.apk
|
||||
am_instrument '.AppTest' $app
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user