Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
23 views

save input and output data has passed in adb

i want save all input and output commands has executed in adbd I tried to pull adbd file in sbin folder and extract it to modify and Implement of the idea to write a few lines for create file and do ...
0
votes
0answers
55 views

Why can't I see my mobile device on DevTools while running adb on a Docker container?

I'm trying to debug an app (or simply inspect pages in the Chrome browser) on my mobile device and I'm trying to use docker containers for housing adb. Everything goes well while starting up the adb ...
0
votes
1answer
371 views

Use awk on an Android command

I have an Android command whose output is as follows: $adb shell "head -20 /d/dma_buf/bufinfo" Dma-buf Objects: size flags mode count exp_name buf ...
2
votes
0answers
41 views

How to run adb in initramfs?

Seem my hook is work(sometime first run is failed but again run is seem no any library problem), Seem lack socket support in initramfs?my system is debian 9.Seem normal debian system provide socket ...
0
votes
0answers
56 views

Restrict access to android device

When an android device is connected to linux PC n number of users can access it with adb command. Can we lock the device for one user and free it after usage? At present if user 1 issues adb reboot, ...
0
votes
2answers
89 views

Dealing with adb devices

I recently started using the adb command line utility tool and what I'm trying to do is to extract all of the images from a folder on my android device. I've tried the command below with no success. ...
2
votes
2answers
244 views

run command on script in alphabetical order

I am trying to set the timestamp of a bunch of files on my android device using adb shell. For one reason or another running touch with a specific provided timestamp does not work. In addition file ...
1
vote
2answers
5k views

How can I evaluate the result of an adb shell command?

For example, I want to check if a directory exists on the phone. R=$(adb shell 'ls /mnt/; echo $?' | tail -1); $ echo $R 0 $ if [ "$R" -ne 0 ]; then echo "Path doesn't exist"; else echo "Path ...
2
votes
2answers
2k views

How to install adb on Ubuntu from download

I have a desktop computer running Ubuntu 16.04. This computer does not have an internet connection (I am at work and this is not a work computer). I have been able to use a Wifi tether app using my ...
0
votes
1answer
2k views

Android Studio: Running application in emulator not working

Yesterday I downloaded Android Studio for my Debian Testing system. I wanted to run a HelloWorld application (just a blank activity) but weren't able to run it. With adb I can install it without ...
1
vote
1answer
2k views

Uninstall Android Studio + SDK

I am using linux arch. I installed android according to ArchWiki. I uninstalled every skd component and android studio using pacman -Rs. Also, I removed every hidden folder in the home directory that ...
1
vote
3answers
8k views

how to debug adb insufficient permission case

a long time ago, i wrote a udev rule for adb with my phone (device) by setting a group. Everything was OK until some things changed recently: device rom udev packet adb packet now i get under ...
7
votes
2answers
4k views

Android studio on FreeBSD

I would like to know that is it possible to use Android studio in FreeBSD ? I tried to run it but I couldn't.I installed IntelliJ from ports but there was no option to select the Android SDK.
1
vote
1answer
515 views

Linux mint freezes after clicking on run button in android studio

I have installed android studio in linux mint 18.1. Every thing is working file but whenever I'm clicking on run app button it freezes completely after that I need to restart laptop. My spec is ...
1
vote
1answer
891 views

Connect ZTE Android Phone to Linux (Fedora) for USB debugging and file transfer

I just got a new ZTE Phone and I'm trying to connect it to my PC via USB. I'm running Fedora 24 and mostly need to connect the phone for USB file transfer as well as app development using Android ...
-3
votes
1answer
351 views

In shell, what does “./directory” command means?

I'm trying to install busybox on my tab. I copied the busybox binaries to my tab, went to its location, then printed "./busybox", enter. message appeared: "can't execute: is a directory" It looks like ...
1
vote
1answer
62 views

Android device unable to connect wifi

Though I have specified, key_mgmt as WPA-PSK, the device reads it as none. Is there any problem in device? if yes how can it be rectified. I also used these commands to give device information about ...
1
vote
2answers
744 views

Android device is stopped getting detected in linux

My motorola android mobile was getting detected initially in linux mint 17.3 . Then I was using it for android studio where mobile is getting detected and could do testing android app via my mobile. ...
1
vote
1answer
3k views

How to pull database file from physically connected android device

I am trying to copy WeChat database file called EnMicroMsg.db so I can view it in SQLite browser. With my Nexus 7 tablet rooted and physically connected, the usb debugging checked I ran the following ...
2
votes
0answers
271 views

ADB doesn't recognize a Samsung GT-I9000

I've connected the phone via USB. The phone is rooted, USB debugging is enabled and ADB has root access. The system is a vanilla Debian 8.3.0. lsusb: [...] Bus 002 Device 004: ID 04e8:685e Samsung ...
9
votes
2answers
3k views

Is it possible to fake a specific path for a process?

I'm trying to run ADB on a linux server with multiple users where I am not root (to play with my android emulator). The adb daemon writes its logs to the file /tmp/adb.log which unfortunately seems to ...
0
votes
0answers
1k views

How to write a script with Android Debug Bridge command in it

I am trying to write a script to automate some testing, and the fist step is connect to my device and update the /lib/modules/ directory with the recent version of a device driver on my host. That is ...
3
votes
1answer
938 views

adb pull not accepting a variable as source, gives *' does not exist..* error

I'm trying to use $EXTERNAL_STORAGE in the adb pull command. I noticed that the variable has its scope defined in Android only and so it would not work successfully in adb pull $EXTERNAL_STORAGE/...
3
votes
1answer
1k views

Setting up adb for user access

I recently purchased an Android phone (my first). This is probably not relevant to the question, but it is a Micromax Canvas Hue AQ5000, running Android 4.4.2. I want to access the phone from my ...
0
votes
2answers
811 views

tcpdump filter expression breaks via adb

I installed tcpdump on my Android tablet and am running commands from a root adb shell. I'm working from the tcpdump man page examples, specifically this one: To print all IPv4 HTTP packets to and ...
3
votes
1answer
5k views

How to keep running a process in Android when disconnecting adb terminal? command “nohup” not found

I'm trying to analyze the reason for random reboots of my phone (see here). Therefore I wanted to record the logcat and kernel messages till the restart to see the logs even after the usb disconnects, ...
1
vote
1answer
292 views

How do I allow non-root access to Nexus 7 2013 LTE (deb) over adb and fastboot?

I need to access my Nexus 7 2013 LTE (deb) over adb and fastboot, but it seems that it's required to be root to be able to run the adb server to be able to access the device due to USB rules. How can ...