From f884bfdace39cd446a91939a7e5ed933377ae4b1 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Tue, 8 Jul 2025 15:25:27 +0200 Subject: [PATCH] Make test Frida setup work on older Android versions --- test/android/setup-emulator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/android/setup-emulator.sh b/test/android/setup-emulator.sh index 2d855f9..326c8f5 100755 --- a/test/android/setup-emulator.sh +++ b/test/android/setup-emulator.sh @@ -28,7 +28,7 @@ FRIDA_SERVER_URL="https://github.com/frida/frida/releases/download/${FRIDA_VERSI FRIDA_SERVER_LOCAL="/tmp/frida-server" FRIDA_SERVER_REMOTE="/data/local/tmp/frida-server" -if ! adb shell pgrep -f frida-server > /dev/null; then +if ! adb shell "ps -A | grep '[f]rida-server'" > /dev/null; then if [ ! -f $FRIDA_SERVER_LOCAL ]; then wget -q $FRIDA_SERVER_URL -O /tmp/frida-server.xz unxz -f /tmp/frida-server.xz