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.

1 vote
1 answer
182 views

Adb is giving an undefined symbol: libusb_get_ssplus_usb_device_capability_descriptor error, and I am unsure how to solve this?

I am trying to run adb, in order to backup my android device. I installed android tools via dnf (sudo dnf install android-tools), but adb is giving a symbol error, specifically: adb: symbol lookup ...
Brendan Mesters's user avatar
0 votes
1 answer
91 views

Connect QEMU to host via USB

I am trying to connect the host PC to the guest over USB, however QEMU has many features to connect emulated devices like mice but I need raw USB. My VM is running android x86 and I want to be able to ...
Player_X_YT's user avatar
-1 votes
1 answer
338 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
  • 107k
0 votes
1 answer
91 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
1 answer
689 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
565 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
  • 651
-1 votes
1 answer
2k 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
322 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
2k 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
66 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
701 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
6k 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
1 vote
1 answer
222 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
  • 11
0 votes
0 answers
1k 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,846
0 votes
1 answer
6k 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