From 845a26ace5fd4f0615cfb683e626ea46ecbf3bec Mon Sep 17 00:00:00 2001 From: uye <2396806385@qq.com> Date: Sun, 30 Jul 2023 14:35:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mumu=E6=A8=A1=E6=8B=9F=E5=99=A8=E5=9C=A8?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E6=9C=AA=E5=90=AF=E5=8A=A8=E6=97=B6=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E6=B8=B8=E6=88=8F=E6=8A=A5=E9=94=99=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=85=B3=E9=97=AD=E6=B8=B8=E6=88=8F=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=92=8C=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/config.json b/resource/config.json index b719a00d6f..f1e8a9d54d 100644 --- a/resource/config.json +++ b/resource/config.json @@ -81,7 +81,7 @@ "screencapEncode": "[Adb] -s [AdbSerial] exec-out screencap -p", "release": "[Adb] kill-server", "start": "[Adb] -s [AdbSerial] shell am start -n [Intent]", - "stop": "[Adb] -s [AdbSerial] shell \"am force-stop `dumpsys activity activities 2>/dev/null | grep -E '(packageName|Activities)=[^\\n]+arknights' 2>/dev/null | grep -i -o -E '[^= ]*arknights[^ /\\n]*' | head -n 1`\"", + "stop": "[Adb] -s [AdbSerial] shell \"PACKAGE_NAME=$(dumpsys activity activities 2>/dev/null | grep -E '(packageName|Activities)=[^\\n]+arknights' 2>/dev/null | grep -i -o -E '[^= ]*arknights[^ /\\n]*' | head -n 1); if [ -n \\\"$PACKAGE_NAME\\\" ]; then echo \\\"Closing $PACKAGE_NAME\\\"; am force-stop $PACKAGE_NAME; else echo \\\"app not running or arknights package name not found\\\"; fi\"", "abilist": "[Adb] -s [AdbSerial] shell getprop ro.product.cpu.abilist", "orientation": "[Adb] -s [AdbSerial] shell dumpsys input | grep SurfaceOrientation | grep -m 1 -o -E [0-9]", "pushMinitouch": "[Adb] -s [AdbSerial] push \"[minitouchLocalPath]\" \"/data/local/tmp/[minitouchWorkingFile]\"",