Questions tagged [adb]

Questions relating to the Android Debug Bridge (ADB) command-line utility, a debugging tool for developers offered by Google.

Filter by
Sorted by
Tagged with
1 vote
1 answer
700 views

ADB Issues for Ubuntu 22.04 (Only 2023 solutions please.)

So, when I boot my android device (normally) and type adb devices it show up. But if I adb reboot bootloader and try adb devices again nothing shows. Everything I've tried leads me right back to this ...
DaeDae311's user avatar
0 votes
0 answers
2k views

How to fix '* failed to start daemon error: cannot connect to daemon' on Linux ubuntu

I had to install the adb tools on my Linux ubuntu with the command line but when I execute the command adb devices, I have this return in my terminal : uriel@uriel-linux-ubuntu:~$ adb devices List of ...
Uriel's user avatar
  • 1
0 votes
1 answer
110 views

Android adb server makes Ubuntu desktop stutter

My environment is Ubuntu 20.04, NVidia driver 470.103.01 (recommended), and Android SDK 33 When I start adb server by running some adb commands, the UI, mouse and other things starts to lag and ...
Dovod Dovodov's user avatar
0 votes
1 answer
2k views

Cannot download files on WSL "Permission Denied" "Cannot write to [...] (Success)"

Im trying to install Bazelisk on WSL but when I try to download it typing: "wget https://github.com/bazelbuild/bazelisk/releases/download/v1.15.0/bazelisk-linux-amd64" a message shows up ...
Alejandro Olivares's user avatar
1 vote
1 answer
9k views

Android studio 2021.2.1 ADB and Emulator Issue

I'm trying to run my react-native project on android studio 2021.2.1 (Latest) on my Ubuntu 22.04 LTS. When I execute the command yarn run android It throws me this error: info JS server already ...
Maruf's user avatar
  • 13
4 votes
3 answers
7k views

fastboot doesn't work anymore in Ubuntu 21.10?

I'm having trouble flashing my smartphone via fastboot. The smartphone in fastboot-mode is recognized: sudo fastboot devices BH905FBU9E fastboot but flashing results in no reaction until the usb ...
pheidrias's user avatar
0 votes
0 answers
1k views

Anbox: Failed to connect to dbus ubuntu 21.04

I just installed anbox on ubuntu 21.04 using snap: snap install --devmode --beta anbox However if I try to run anbox, for example: /snap/bin/anbox launch --package=org.anbox.appmgr --component=org....
student's user avatar
  • 2,302
0 votes
0 answers
2k views

scrcpy is not working showing ERROR: "adb push" returned with value 1

I install scrcpy and sudo snap install scrcpy https://snapcraft.io/scrcpy at first it was working fine.after a certain time it throws this error ERROR: "adb push" returned with value 1
Mosfeq Anik's user avatar
6 votes
2 answers
7k views

adb command not found after installed it

I have install adb from terminal. But when I type "adb version" it's not found. Can anyone help me about this problem?
Syah Hakam's user avatar
0 votes
0 answers
434 views

android studio emulator adb problem

I'm installing android studio for the first time on ubuntu machine OS: Ubuntu Studio 20.04.2 CPU: 4 cores, G3, core i5, 1500 RAM: 8GB BOIS: HP v2.90 PC and when I try to start the emulator I find ...
Abd-Elaziz Sharaf's user avatar
1 vote
0 answers
273 views

fastboot in ubuntu sometimes works somtimes doesn't

I'm having this really strange issues with fastboot in Ubuntu. In Windows 10 everything works fine. Sometimes fastboot works and I can boot/flash recovery image I'm creating for my phone. But ...
MSX's user avatar
  • 111
0 votes
0 answers
260 views

Ubuntu 20.04 just stopped reading my android device via usb

I have an android device that I am using for debug purposes, I disconnected it and tried to reconnect it but It just stopped being read. my computer recognizes the devise for a split second then drops ...
bihire boris's user avatar
1 vote
1 answer
4k views

how to use grep and sed on adb logcat

I'm currently using grep in combination with adb logcat (android console api). Now I want to edit every line on the fly using sed in a pipe. However when using sed after grep the output becomes empty. ...
mcExchange's user avatar
  • 3,088
2 votes
0 answers
2k views

How to unpack and read android ABD file system image file on 20.04 LTS

One of the "editors/moderators(?)" of this list insists that I start with: Begin with file samsung-a51-5g.adb. Edit your question to add the info, don't respond in comments. – waltinator 1 ...
Yasha Karant's user avatar
1 vote
1 answer
9k views

adb devices not visisble within windows subsystem(WSL)

When I run adb devices from poweshell of windows I see list of atached devices. But when I run adb devices from within windows subsystem(ubuntu 18.04) I see nothing. How can I fix it? I need to run ...
Alexandra larosa's user avatar
1 vote
0 answers
627 views

Android device connection problems

Problem On fresh system reboot, I can see the ADB device. But if I reboot the device, it does not show up any more. At this point, I can get it back to working by either 1) rebooting the system (which ...
hollaholl's user avatar
0 votes
2 answers
1k views

Why did systemd decide to start adb

I have an Ubuntu 20.04.1 LTS system. This system, has NEVER had an Android device connected to it, via USB. Still, to my surprise, I see that adb is running: # ps -efa | grep adb bram 72062 ...
Bram's user avatar
  • 2,449
1 vote
1 answer
1k views

ADB doesn't detect any device [closed]

After some time, I found that my previously working ADB no longer recognized any device. My phone did not pop up the window asking to verify the computer when I connected it. Restarting the server, ...
Sesqic's user avatar
  • 21
0 votes
0 answers
2k views

ADB not detecting device (but Windows does detect it)

I have a galaxy A7-2016 running Lineage OS 17.1 and i want to access it using ADB. When I use adb on windows, my phone it showing up however, adb seems to not be working on my computer running Ubuntu ...
cl.ement05's user avatar
2 votes
0 answers
821 views

"cp: cannot create regular file" inside snap

I have been trying to use scrcpy wirelessly but facing issue adb server version (41) doesn't match this client (39); killing... So I decide to copy adb used by Android Sdk to scrcpy but face this ...
Harshal Dhone's user avatar
0 votes
0 answers
3k views

ADB / Android Studio not recognizing my physical device?

In Android Studio, the list of devices and emulators doesn't list my physical device when I plug it in (Google Pixel 2). I've tried adding the device ID found w/ lsusb to the ~/.android/adb_usb.ini as ...
saricDen's user avatar
  • 213
3 votes
1 answer
1k views

No application launcher for scrcpy [closed]

I installed scrcpy snap in my ubuntu 20.04. but I can't find such application in my applications menu. I have to open the terminal for running it. Is it possible to create a launcher for running it? ...
Arjun VK's user avatar
  • 187
0 votes
1 answer
1k views

ADB Ubuntu 18.04 Does Nothing

I am trying to use adb on Ubuntu 18.04, but when I use any command, other than "adb version" it drops to the next line and does nothing. I have tried with and without sodo. Android Debug Bridge ...
talkinggoat's user avatar
3 votes
1 answer
2k views

adb completely freezes system

Whenever I utilize any (except for --version) adb command (adb devices, for instance), my system completely freezes and I have to reboot. My laptop is a Lenovo B50-30 running a (relatively) fresh ...
Luatic's user avatar
  • 164
0 votes
1 answer
3k views

Why adb and fastboot command not included in Android SDK?

In Windows, adb command is already included with Android SDK when install Android Studio. In Ubuntu, after I installed Android Studio, I cannot use adb command instead it said that i have to install ...
Alauddin's user avatar
8 votes
3 answers
39k views

user in plugdev group; are your udev rules wrong or error: insufficient permissions for device: udev requires plugdev group membership?

I encountered error like "(user in plugdev group; are your udev rules wrong?", After googled, I found some key refers: Ref 1. Set up a device for development from Android Developer; Ref 2. Solved: ...
Shanksiscool's user avatar
0 votes
0 answers
2k views

"adb devices" and "lsusb" not showing device via USB-C but is showing up by USB 3 and 2

My Android device is not showing up when I type adb devices or lsusb when connected via USB-C, but it does show up and works fine when using a regular USB 2 or 3 cable. Any ideas what might be wrong ...
user avatar
-1 votes
1 answer
2k views

ADB mkdir permission denied

I am trying to run AVS-SDK (Alexa) SampleApp on an Android Device On UBUNTU. I have opened two terminals, in first terminal i am obtaining the root access for the android device using ADB. Following ...
KarmaCoding's user avatar
1 vote
0 answers
808 views

Mount an image created by adb pull /dev/block/mmcblk*: "wrong fs type"

With the command below, I thought I had rescued the content of my broken Android phone: adb pull /dev/block/mmcblk0p28 mmcblk0p28.img Unfortunately my attempt to mount it on Ubuntu fails: sudo ...
Nicolas Raoul's user avatar
3 votes
0 answers
789 views

ADB will only recognize devices once per USB port

So I am trying to connect to my phone via ADB and this normally works. But once I disconnect the device and connect it again to the same USB port ADB won't find the device. According to lsusb it is ...
Handelsüblicher Klaus's user avatar
1 vote
1 answer
6k views

adb can't detect Genymotion device

I create an Android device in Genymotion : Custom Phone Android 4.4-API 19, and the device run well. But when I try 'adb devices, it is empty below 'List of devices attached' 'Use custom Android SDK ...
luckin's user avatar
  • 11
4 votes
2 answers
17k views

Can't create file: Read-only file system

I was trying to recover files from android phone using adb shell and test disk. But I am getting a read only filesystem error, even though the permissions to write is granted to the user. adb devices ...
Praveen's user avatar
  • 1,015
1 vote
1 answer
3k views

Mirror broken android to Linux?

I'm fairly inexperienced with Linux and have a very difficult situation. My last cellphone's screen cracked, got water damaged and now has a dead screen. It's a newer phone (Galaxy A8) and it still ...
Tyler Stockdale's user avatar
0 votes
1 answer
2k views

adb - unable to connect to <ip-address:port>: No route to host

I was trying to connect my phone with adb over wi-fi (I did tcpip to 5555), but not working since I bought a new router. It works fine when using my other phone as a hotspot. I was trying to ping to ...
Ritam Chakraborty's user avatar
31 votes
5 answers
29k views

AdbCommandRejectedException: insufficient permissions for device: user in plugdev group; are your udev rules wrong?

Five days ago I installed Android Studio on a fully updated Ubuntu 2018.04, used the wizard to create an example app, pressed the "Run" button and it ran perfectly on my Android device connected via ...
Nicolas Raoul's user avatar
3 votes
2 answers
13k views

What'sApp installed on anbox on ubuntu 17.10 doesn't work – probably it can't acces the internet

I installed anbox with whatsapp on my ubuntu computer just as explained here. I started whatsapp an typed in my phone number. By the way, my phone is no smartphone and that's why I need whatsapp on ...
Asqiir's user avatar
  • 417
0 votes
0 answers
2k views

how to connect or uninstall ubuntu touch?

I installed ubuntu touch in my Xperia Z1 following the wiki https://wiki.ubuntu.com/Touch/Devices/minato everything was gone fine but after I started the phone the touchscreen doen't work and stay in ...
m3asmi's user avatar
  • 326
-2 votes
1 answer
1k views

Why doesn't Anbox work on my laptop (running Ubuntu 17.04)?

Running adb install f.apk produces an error: amdhadul@amdhadul-NSU:~/Downloads$ adb install f.apk The program 'adb' can be found in the following packages: * adb * android-tools-adb Try: sudo apt ...
Sudu Sh Bash's user avatar
0 votes
0 answers
436 views

ADB device list doesn't show BackBarry priv

I have Uninstalled and reinstalled ADB. I made sure debug mode was enabled in dev options. And that its on file transfer. I don't get a propped for enabling debug mode on my device. The notification ...
HAL9000's user avatar
  • 43
3 votes
3 answers
42k views

Trying to install android-tools-adb and getting unable to locate package

I wasn't able to install these packages when I used sudo apt-get install android-tools-adb I get unable to locate package android-tools-adb Can you help, please?
maburke2's user avatar
85 votes
14 answers
165k views

adb no permissions on Ubuntu 17.04

When i try: $ adb devices i get the result: List of devices attached ???????????? no permissions what is the problem? tried on an Ubuntu 16.04 machine and it worked perfectly. tried an 7.1.1 ...
Nadav Tasher's user avatar
  • 1,078
15 votes
0 answers
13k views

How to add Google Play support in Anbox? [closed]

I know it's a relatively new and unstable application but I figured if anyone has suffered through the issue and solved it then they can help me too. Anbox does't come with Google Services, As Google ...
Sumeet Deshmukh's user avatar
3 votes
1 answer
10k views

NO_MATCHING_ABIS error when installing *some* Android apps in Anbox

Since Anbox currently does not come packaged with an app store, the only way to install applications is through ADB as follows: adb install /path/to/file.apk I have been able to successfully install ...
Sumeet Deshmukh's user avatar
0 votes
0 answers
590 views

Ubuntu Touch- Problem with unlocking bootloader using adb

I was following this tutorial and I've got problem in rebooting the device in bootloader mode. I have found another way to get there power + volume up but adb does not see my device then. Step I'm ...
capi1500's user avatar
1 vote
2 answers
9k views

Library not found in Android Studio

I am using Android Studio in Ubuntu 16.04. I tried to run (bundle exec rake run_acceptance_tests) with my emulator in Android Studio (tests), but when I run it I get the following error message: ...
Morozov's user avatar
  • 119
0 votes
1 answer
391 views

Aquaris E4.5 Ubuntu Edition adb unauthorized after recovery

Here is my problem: Lately I had a problem with my BQ Aquaris E4.5 Ubuntu Edition that had me reinitialize it to factory settings. Now it works aproperly but I can't use adb. I have Ubuntu 16.04 LTS ...
bsl's user avatar
  • 13
0 votes
0 answers
235 views

GT-I9506 / Fastboot

In order to install Ubuntu on my Android Device I need to do some configuration before, I use Ubuntu on my Machine, I installed adb and fastboot installed with repository, I'm actually installing ...
axel7083's user avatar
  • 101
1 vote
0 answers
61 views

Non-trivial ADB issue

I have XPS 9550, and previously I successfully connect Nexus 5 to this host. but now I've got Pixel with Usb3 cable. and it's not in list of connected devices (in Ubuntu, Windows works) veon@veon-...
Andrew Matiuk's user avatar
0 votes
1 answer
934 views

Adb does not recognize my HTC one m8 [closed]

I know about 51-android.rules file. I have created it manually. Here it is: #HTC SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0664", GROUP="plugdev" Then I restarted udev and still adb does not ...
Dexxrey's user avatar
  • 31
3 votes
5 answers
19k views

Google Pixel not picked up by "adb devices"

I've tried everything I can find anywhere. From lsusb: Bus 002 Device 021: ID 18d1:4ee6 Google Inc. From dmsg: [ 3609.392038] usb 2-1: new SuperSpeed USB device number 21 using xhci_hcd [ 3609....
Cruncher's user avatar
  • 131