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
0 votes
0 answers
12 views

Nextcloud randomly stops working on Ubuntu Server

Let me start this off by saying I am a Linux newbie. I recently installed nextcloud on a spare laptop I had lying around. I followed this guide [https://www.youtube.com/watch?v=2OsNGj2n2zc&...
user avatar
0 votes
0 answers
6 views

External display repeatedly loses connection when adb is runnning

I am currently working on a project which requires me to attach to a Smartphone, connected via USB, using adb (android debug bridge). Somehow, once the adb bridge is online my 3rd display keeps losing ...
user avatar
0 votes
0 answers
53 views

I have the adb and fastboot binaries in usr/bin and in bin and I want to delete all of platform-tools to start from 0

I have had installed in my ubuntu 20 the android-tools-adb android-tools-fastboot from the package. I found out that they were outdated , so I have try to download the latest one from Android. I delte ...
user avatar
  • 43
2 votes
2 answers
1k 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 ...
user avatar
0 votes
0 answers
586 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....
user avatar
  • 2,242
0 votes
0 answers
789 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
user avatar
1 vote
2 answers
2k 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?
user avatar
0 votes
0 answers
274 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 ...
user avatar
0 votes
0 answers
70 views

adb devices not showing up after update to hirsute hippo 21.04

I was running groovy gorilla and everything worked fine. Then after I upgraded to hirsute hippo 21.04 my phone (oneplus 7 pro) no longer shows up in adb. when running the command adb devices the ...
user avatar
1 vote
0 answers
159 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 ...
user avatar
  • 111
0 votes
0 answers
129 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 ...
user avatar
1 vote
1 answer
1k 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. ...
user avatar
  • 2,489
2 votes
0 answers
997 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 ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
1 vote
0 answers
317 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 ...
user avatar
0 votes
2 answers
517 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 ...
user avatar
  • 1,003
1 vote
1 answer
449 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, ...
user avatar
  • 21
0 votes
0 answers
1k 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 ...
user avatar
2 votes
0 answers
556 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 ...
user avatar
0 votes
0 answers
2k 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 ...
user avatar
  • 163
3 votes
1 answer
763 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? ...
user avatar
  • 157
0 votes
1 answer
896 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 ...
user avatar
3 votes
1 answer
1k 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 ...
user avatar
  • 164
0 votes
1 answer
2k 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 ...
user avatar
7 votes
2 answers
18k 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: ...
user avatar
0 votes
0 answers
1k 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
1k 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 ...
user avatar
1 vote
0 answers
385 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 ...
user avatar
2 votes
0 answers
553 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 ...
user avatar
1 vote
1 answer
5k 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 ...
user avatar
  • 11
4 votes
2 answers
13k 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 ...
user avatar
  • 965
1 vote
1 answer
2k 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 ...
user avatar
0 votes
1 answer
1k views

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 ...
user avatar
30 votes
5 answers
26k 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 ...
user avatar
3 votes
2 answers
12k 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 ...
user avatar
  • 357
0 votes
0 answers
1k 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 ...
user avatar
  • 211
-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 ...
user avatar
0 votes
0 answers
430 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 ...
user avatar
  • 43
3 votes
3 answers
32k 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?
user avatar
80 votes
14 answers
134k 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 ...
user avatar
  • 1,028
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 ...
user avatar
2 votes
1 answer
9k 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 ...
user avatar
0 votes
0 answers
418 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 ...
user avatar
1 vote
2 answers
8k 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: ...
user avatar
  • 119
0 votes
1 answer
353 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 ...
user avatar
  • 13
0 votes
0 answers
205 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 ...
user avatar
  • 101
1 vote
0 answers
58 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-...
user avatar
0 votes
1 answer
860 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 ...
user avatar
  • 31
3 votes
4 answers
15k 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....
user avatar
  • 131
34 votes
8 answers
124k views

ADB device list doesn't show phone

I've recently installed adb and fastboot: apt-get install android-tools-adb android-tools-fastboot After the installation finished, I connected my device and ran the following command: $ adb ...
user avatar