mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
Minor changes
This commit is contained in:
parent
054971e899
commit
f919bb0e99
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -162,7 +162,7 @@ jobs:
|
||||
run: scripts/avd_test.sh ${{ matrix.version }}
|
||||
|
||||
cf_test:
|
||||
name: Test on AOSP main Cuttlefish
|
||||
name: Test Cuttlefish on main
|
||||
runs-on: ubuntu-24.04
|
||||
env:
|
||||
CF_HOME: /home/runner/aosp_cf_x86_64_phone
|
||||
@ -186,7 +186,7 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
check-name: 'Build Magisk artifacts'
|
||||
check-name: "Build Magisk artifacts"
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
|
@ -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'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user