Skip to main content

Questions tagged [adb]

Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.

-3 votes
0 answers
59 views

Why can't I move a directory in a shell created by `adb shell`? [duplicate]

I enter a shell on Android by sudo adb shell Now I want to move a directory (of files) in Android into another, but why does it fail $ mv english/ ../mydata/ ...
Tim's user avatar
  • 103k
-1 votes
1 answer
98 views

What is this permission problem with adb?

I would like to transfer files between a phone (Harmony 2.0.0) and a Linux laptop with USB connection between them. I try to use adb by following https://www.reddit.com/r/linuxquestions/comments/...
Tim's user avatar
  • 103k
0 votes
1 answer
38 views

Displays a user input pop-up on the Android screen

Currently I'm interested in Bash and also the Android phone I have... I'm wondering if there is a way to display popup as text input on the android screen and then receive data from that user-...
TuanHaxor's user avatar
0 votes
0 answers
253 views

usbip does not work with USB Debugging in Android phone

I want to connect a Samsung Android phone to a remote server over usbip and then build an Android application located on the server device to the phone to do some testing. I came accross the usbip ...
aebosnak's user avatar
0 votes
1 answer
354 views

How to create ADB Gadget configuration?

I am reading the Gadget Configuration Documentation. I am also using a working Android device to reference and copy configurations in /config/usb_gadget/g1. I am now booting an initramfs and trying to ...
Bret Joseph's user avatar
0 votes
3 answers
243 views

How to make 'adb shell' to read /etc/profile or other configuration files?

I am working on an embedded Linux system (kernel-5.10.24), and it uses ash from busybox as /bin/sh. The system support login from serial console and adb shell from PC. Now I found the shell started ...
wangt13's user avatar
  • 443
-1 votes
1 answer
806 views

xxx.sh: : not found

I'm debugging a shell script and coming across this error. I have no idea what's going on with my script. #!/system/bin/sh function SetEQ(){ prefFile='/mnt/media_rw/6633-3539/tmpFiles/com.smp....
preachers's user avatar
  • 151
0 votes
0 answers
164 views

Can't enable IPv4 forwarding via adb shell

I've got a rooted Android phone and am trying to enable IPv4 forwarding via adb shell. If I do host$ adb shell phone$ su -c "echo 1 > /proc/sys/net/ipv4/ip_forward" then it works just ...
August Vrubel's user avatar
0 votes
1 answer
1k views

Using grep to extract IP through adb shell

I'm trying to create a one-line, platform-independent solution for finding the local IP address of a Android device with adb shell and grep (the internal grep on my android device). I have a solution ...
Xevion's user avatar
  • 103
1 vote
1 answer
50 views

HISTTIMEFORMAT messed up adb

I set up earlier this month HISTTIMEFORMAT cause I needed to see the time on some of the commands I previously used. However, I most likely messed something up with those commands, because every time ...
G. Rann's user avatar
  • 113
0 votes
1 answer
548 views

Service takes more than a minute to close

I have a Linux based device which is running certain services on boot-up, however one of them seems to be taking over a minute to close as I run adb shell shutdown -h now command. Is there a way to ...
xyf's user avatar
  • 141
3 votes
3 answers
4k views

Fastboot recognizes device but unable to flash (stuck with no output) on Ubuntu based systems

I'm trying to flash a custom ROM on my Android smartphone using fastboot on the Ubuntu based Pop!_OS. When trying to flash the recovery, the command does not output anything and is stuck. However I ...
Syed Adil's user avatar
0 votes
1 answer
171 views

Is there any way to delete this garbled folder on a Android device?

*****************The main content of the question A few months ago, I accidentally disconnected the device during the execution of the adb push instruction and left a folder with more than 30 GB of ...
Xinge's user avatar
  • 1
0 votes
0 answers
873 views

How to scan for the Pegasus spyware with Debian/KDE & Android: getting " [mvt.android.modules.adb.base] Unable to connect to the device over USB."

On my Debian11/KDE machine I ran pip3 install mvt --user then I enabled developer options on my Android smartphone (via tapping on the build-number a few times), enabled USB debugging on it, connected ...
mYnDstrEAm's user avatar
  • 4,398
0 votes
1 answer
5k views

./shell.sh: line 6: [: =~: binary operator expected

I'm trying to execute the following shell script, where I'm trying to keep executing a command in an infinite loop and until the output is not equal to a certain substring checkDeviceStatus=$(adb ...
Amr Kamel's user avatar
  • 121

15 30 50 per page