mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-01 14:16:06 +00:00
Minor changes
This commit is contained in:
@@ -82,7 +82,7 @@ test_emu() {
|
||||
# Install LSPosed
|
||||
if [ $api -ge $lsposed_min_api -a $api -le $atd_max_api ]; then
|
||||
adb push out/lsposed.zip /data/local/tmp/lsposed.zip
|
||||
adb shell echo 'PATH=$PATH:/debug_ramdisk magisk --install-module /data/local/tmp/lsposed.zip' \| /system/xbin/su
|
||||
echo 'PATH=$PATH:/debug_ramdisk magisk --install-module /data/local/tmp/lsposed.zip' | adb shell /system/xbin/su
|
||||
fi
|
||||
|
||||
adb reboot
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cvd_args='-daemon -enable_sandbox=false -report_anonymous_usage_stats=n'
|
||||
cvd_args='-daemon -enable_sandbox=false -memory_mb=8192 -report_anonymous_usage_stats=n'
|
||||
magisk_args='-init_boot_image=magisk_patched.img'
|
||||
|
||||
cleanup() {
|
||||
|
||||
@@ -13,7 +13,7 @@ print_error() {
|
||||
|
||||
run_content_cmd() {
|
||||
while true; do
|
||||
local out=$(adb shell echo "'content call --uri content://com.topjohnwu.magisk.provider --method $1'" \| /system/xbin/su | tee /dev/fd/2)
|
||||
local out=$(echo "content call --uri content://com.topjohnwu.magisk.provider --method $1" | adb shell /system/xbin/su | tee /dev/fd/2)
|
||||
if ! grep -q 'Bundle\[' <<< "$out"; then
|
||||
# The call failed, wait a while and retry later
|
||||
sleep 30
|
||||
@@ -38,5 +38,5 @@ test_setup() {
|
||||
test_app() {
|
||||
# Run app tests
|
||||
run_content_cmd test
|
||||
adb shell echo 'su -c id' \| /system/xbin/su 2000 | tee /dev/fd/2 | grep -q 'uid=0'
|
||||
echo 'su -c id' | adb shell /system/xbin/su 2000 | tee /dev/fd/2 | grep -q 'uid=0'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user