inside a .bat file: @adb shell "dumpsys activity activities | grep ResumedActivity"@adb shell ...
From a linux (WSL) host adb shell su -c "tcpdump -U -w - " | "C:\Program Files\Wireshark\Wires...
Example of a script to run LLDB on remote android server, receives an argument - process name (ca...