Answer the question
In order to leave comments, you need to log in
Is it possible to write an analogue of my command from Linux to Powershell?
Please help me to convert the command from Linux to Powershell.
adb devices | grep -w "device" | cut -f 1 | xargs -I{} -n1 -P30 adb -s {} install some.apk
This command collects a list of serials of connected android devices, passes them as arguments, and multipaths passes these arguments to adb. As a result, some.apk is installed immediately on all connected devices.
I can't do it on Windows using Powershell.
Many thanks to all who are interested!
Answer the question
In order to leave comments, you need to log in
Something like
Adb devices | select-object -skip 1 | foreach-object -parallel {
$id=$_ -replace '\s+device'
Adb -s $id install some.apk
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question