All Questions
Tagged with adb batch-file
97
questions
0
votes
0
answers
80
views
Get Output of an ADB command into a variable in Batch/CMD
so I have this piece of code;
adb shell for i in $(seq 0 10); do h=`cat /sys/class/thermal/thermal_zone$i/type`; t=`cat /sys/class/thermal/thermal_zone$i/temp`; echo "$h : $t C"; done;
...
0
votes
3
answers
323
views
How to create a bat file for running executable in ADB shell that takes in further user input
I am new to writing bat files and currently, I am creating a bat file to access the adb shell and run an executable inside it. For example, I want to run HelloWorld.exe which is inside the adb shell. ...
0
votes
2
answers
109
views
sql select statement over adb
I would like to have a batch file that runs a select statement over adb and returns the found rows.
This is the command that I use in my batch file:
adb shell "su -c sqlite3 /data/user_de/0/com....
0
votes
1
answer
83
views
How to use Windows batch file to create a Txt file on a sony device SD card
I am trying to automate a txt file to be created and installed to an android phone.
Hi, I have created a batch file to automate a script, setting up a Sony device. The script works fine and is great, ...
1
vote
1
answer
815
views
How to display my device Infomation on cmd(using adb)
I want make batch file using adb and prompt
For instance: I need Huawei P40 info from batch:
P40
Model : ANA-AN00
OS : 12
Build Type : User
Build Number : P40Blahblahblah
sdk version : blahblah
like ...
0
votes
1
answer
350
views
Is it possible to run multiple scripts in a .bat file and other CMD line commands?
I am trying to set a crontab task to run multiple scripts / commands over night.
I created a .bat and set it to start by running a python script.. then it should sleep a few and run other commands, ...
0
votes
1
answer
629
views
.BAT to install apps by dragging them into CMD
I am trying to make a .bat file where it goes to a location and then executes 2 commands.
First one id ADB Devices which works fine but second one ADB install requires the .apk file to work. Now i ...
-1
votes
1
answer
776
views
How to use ADB in a Batch file to open a Windows File Explorer window
I'm trying to run a bat that will open a specified folder from an android device using ADB in Windows. For the life of me I have searched and hacked my way through to nowhere (my search skills are ...
0
votes
0
answers
230
views
su daemon command stuck in batch file
I'm rooting AVD by batch script. in my case batch script stuck on daemon command. how do I run "adb -e shell su --daemon&" from a batch file? the command acts like an editor in the ...
0
votes
1
answer
2k
views
assign adb output to a variable in batch script [duplicate]
im using adb shell commands to check if my devices' screen is on or not
adb shell dumpsys power | find "mWakefulness="
if the screen is off this command returns mWakefulness=Asleep
what i ...
-2
votes
1
answer
516
views
Operate multiple devices using ADB commands
I'd like to assign the output of adb to multiple variables so multiple devices can be controlled at once.
adb devices
then CMD will display
List of devices attached
xxyyzz device
aabbccdd ...
1
vote
1
answer
707
views
How does echo off and on are executes in same batch script?
How does echo off and on working in the following script and what if we want to use echo off at some places of batch script let's say outside loops and echo on inside loops how should we do that
If ...
1
vote
1
answer
1k
views
How can we copy all the apps from android(adb) to PC using Batch scripting?
myapps.txt - contains the list of all packages found through adb shell pm list packages > myapps.txt
package:com.flipkart.android
package:com.android.certinstaller
package:com.android....
-1
votes
3
answers
213
views
batch file: Parse string after substring occurence, not delimeter
I have and batch file script shows me output of adb utility.
FOR /F "skip=1 delims=~" %%x IN ('adb devices -l') DO echo %%x
2 output lines
0123456789ABCDEF device product:java_joyplus_qb7 ...
0
votes
1
answer
2k
views
Is possible to set an adb command as a variable in batch?
i tried to set a variable equal to an adb command but it doesn't work, here is the code
set ten=10
set nine=9
set eight_1=8.1
set eight=8
set seven=7
set version = "adb shell getprop ro.build.version....