All Questions
129
questions
0
votes
1
answer
41
views
Fix install adb on macOS
PCs-MacBook-Pro:platform-tools pc$ pip3 install adbCollecting adbUsing cached adb-1.3.0-py3-none-any.whlCollecting libusb1>=1.0.16 (from adb)Using cached libusb1-3.1.0-py3-none-any.whl.metadata (15 ...
0
votes
2
answers
692
views
Getting IMEI with adb command from device on Android 14
I'm using command:
adb shell "service call iphonesubinfo 1 s16 com.android.shell | cut -c 52-66 | tr -d '.[:space:]'"
It was working fine on Android 13, but now it gives partly broken IMEI, ...
1
vote
0
answers
283
views
Failure to disable animations: cmd: Failure calling service settings: Broken pipe (32)
This is an issue that keeps happening on my remote builds using Azure Devops, less then 10% of the time but often enough to be a problem. After successfully starting three Android emulators, I run a ...
0
votes
1
answer
1k
views
Trying to modify /system/build.prop we are getting Permission denied
After running from Termux this:
$ adb shell su 0 "mount -o rw,remount /"
$ adb shell su 0 "echo net.hostname=XXXXXX >> /system/build.prop"
we are getting
/system/bin/sh: can'...
2
votes
2
answers
97
views
Bash / JQ - cant assign pull string and assign variable
I am trying to write a script that will allow me to pull a command from a json file and use it in the script
Here is the data.json
"play_music": {
"name": "...
0
votes
1
answer
45
views
How do I print certain text for a specific IP address from a file and repeat the process for multiple texts and IP addresses?
I'm automating the process of customizing multiple boxes/devices. The following bash script reads IP address from a file called device_ips.txt -> connects to one device -> runs the adb commands -...
0
votes
1
answer
767
views
How to filter and redirect adb logcat output to a file in real-time?
I'm currently capturing Android logs using the following command:
adb logcat > ~/Desktop/logcat.txt
After stopping the log capture, I filter the logs with:
cat ~/Desktop/logcat.txt | grep "...
1
vote
0
answers
1k
views
How does scrcpy sync the clipboard?
When I copy something to my clipboard on my computer and press CTRL+V in the scrcpy screen, it paste the very thing to my Android device I just copied to the clipboard on my computer. For automation ...
1
vote
2
answers
153
views
ADB process blocks when starting background process ADVANCED
So I was reading this post on how to run sleep in background via ADB shell:
ADB process blocks when starting background process
There is something more advanced I want to do with this, where I want to ...
0
votes
1
answer
355
views
How to simulate user input when writing bash script on a shell device [duplicate]
I am writing a script to automate a large number of steps needed for provisioning an android device. However, I am having a trouble with one particular step. There is a command that I have to run on ...
0
votes
0
answers
73
views
Bash script doesn't function as intented on usb connection
I have written a bash script which starts a tcpip port and connects my device to my laptop for wireless debugging. This is the script at /bin/device_added.sh:
#!/bin/bash
adb shell ip -f inet addr ...
2
votes
1
answer
573
views
adb shell command not working inside a bash script
I am trying to write a bash script which when run can find the ip address of the device connected through usb. The bash script which is doing this:
#!/usr/bin/bash
ip=$(adb shell 'sudo ip -f inet ...
0
votes
0
answers
373
views
How to execute commands inside adb shell for she'll script
#!/bin/bash
echo
adb shell wpa_cli list_n all
sleep 2
echo
adb shell am broadcast -a amazon.speech.ROUTE_DIRECTIVE --es directive '{"directive": {"header": {"namespace": ...
0
votes
0
answers
28
views
Execute multiple adb shell command in bash script [duplicate]
I am building a bash script for recursively copy files from the Android data folder using adb shell command. The code is like
touch2() { mkdir -p "$(dirname "$1")" && touch ...
1
vote
2
answers
654
views
Get the exact value from android getprop
I wish to get specific value of properties from adb command getprop
To get specific value I use:
adb shell getprop ro.product.display_name
adb shell getprop ro.bootloader
adb shell getprop ro.serialno
...