Category : adb

i have a script for adb batch and i’m having difficulty in checking version with batch command let this script: @echo off set sdkversioncheck=adb shell getprop ro.build.version.sdk set ver=28 if %sdkversioncheck% gtr %ver% (@echo "Greater Version") else (@echo "Lower Version") @pause >NUL i want this one to check the android version if device is plugged ..

Read more

So basiclly im trying to use this: int main() { system("adb kill-server n" "adb devices n" "adb start-server & n" "var=$(adb shell "pidof com.rok")n" "AFTER=`echo $var | sed ‘s/r//g’`n" "echo "$AFTER"n" "adb shell "kill -STOP $AFTER"n" "adb shell sleep 2n" "adb shell "kill -CONT $AFTER""); return 0; } thing is this works in Clion without ..

Read more