From 8fa86cc7cd708fae8657b4e977711132999054bc Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 25 Feb 2023 21:52:11 +0800 Subject: Update Android port * java/debug.sh (is_root): Fix tee detection again for old systems which don't return exit codes from adb shell. * src/android.c (android_run_select_thread, NATIVE_NAME, JNICALL): * src/android.h (NATIVE_NAME): * src/androidterm.c (JNICALL, NATIVE_NAME): Apply stack alignment to all JNICALL functions. --- java/debug.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/debug.sh') diff --git a/java/debug.sh b/java/debug.sh index f07bb98ed7d..83690e0b536 100755 --- a/java/debug.sh +++ b/java/debug.sh @@ -281,7 +281,7 @@ else # Upload the specified gdbserver binary to the device. adb -s $device push "$gdbserver" "$gdbserver_bin" - if adb -s $device shell ls /system/bin/tee; then + if (adb -s $device shell ls /system/bin | grep -G tee); then # Copy it to the user directory. adb -s $device shell "$gdbserver_cat" adb -s $device shell "run-as $package chmod +x gdbserver" -- cgit v1.2.1