From fe0c804cc0eeba607b7b92b4c71022628a5bd189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 23 Sep 2022 11:29:23 +0200 Subject: [PATCH] feat(android) add logcat helper script --- android/scripts/logcat.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 android/scripts/logcat.sh diff --git a/android/scripts/logcat.sh b/android/scripts/logcat.sh new file mode 100755 index 000000000..c7e9ab2bd --- /dev/null +++ b/android/scripts/logcat.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +PKG_NAME=${1:-org.jitsi.meet} +APP_PID=$(adb shell ps | grep $PKG_NAME | awk '{print $2}') + +if [[ -z "$APP_PID" ]]; then + echo "App is not running" + exit 1 +fi + +exec adb logcat --pid=$APP_PID