1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 05:17:39 +03:00
This commit is contained in:
Anton Afanasyeu
2026-05-18 12:17:05 +02:00
parent 5bc968e419
commit 9b1afec032
12 changed files with 123 additions and 39 deletions

View File

@@ -1,3 +1,21 @@
#!/bin/sh
adb shell run-as com.foxx.androidcast ls files/session_stats/
adb shell run-as com.foxx.androidcast cat files/session_stats/session_*.json
#!/bin/bash
DEVICES_LIST="$(adb devices -l)"
echo "${DEVICES_LIST}"
filter_out() {
local -n dev_string=${1}
[[ ${dev_string} =~ List* ]] && dev_string=""
return 0
}
echo "${DEVICES_LIST}" | while IFS= read -r DEV; do
SERIAL="$(echo "${DEV}" | awk '{print $1}')"
filter_out SERIAL
[ -z "${SERIAL}" ] && continue
# echo "Device: ${DEV}"
# echo "Serial: ${SERIAL}"
adb -s "${SERIAL}" shell run-as com.foxx.androidcast ls files/session_stats/
adb -s "${SERIAL}" shell run-as com.foxx.androidcast cat files/session_stats/session_*.json
done