mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 21:27:41 +02:00
Test su request via instrumentation
This commit is contained in:
@ -67,11 +67,6 @@ run_tests() {
|
||||
# Run app tests
|
||||
am_instrument '.MagiskAppTest,.AdditionalTest'
|
||||
|
||||
# Test shell su request
|
||||
am_instrument '.Environment#setupShellGrantTest'
|
||||
adb shell /system/xbin/su 2000 su -c id | tee /dev/fd/2 | grep -q 'uid=0'
|
||||
adb shell am force-stop com.topjohnwu.magisk
|
||||
|
||||
# Test app hiding
|
||||
am_instrument '.Environment#setupAppHide'
|
||||
wait_for_pm com.topjohnwu.magisk
|
||||
@ -79,11 +74,6 @@ run_tests() {
|
||||
# Make sure it still works
|
||||
am_instrument '.MagiskAppTest' true
|
||||
|
||||
# Test shell su request
|
||||
am_instrument '.Environment#setupShellGrantTest' true
|
||||
adb shell /system/xbin/su 2000 su -c id | tee /dev/fd/2 | grep -q 'uid=0'
|
||||
adb shell am force-stop repackaged.com.topjohnwu.magisk
|
||||
|
||||
# Test app restore
|
||||
am_instrument '.Environment#setupAppRestore' true
|
||||
wait_for_pm repackaged.com.topjohnwu.magisk
|
||||
|
Reference in New Issue
Block a user