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.

47 questions
10
votes
2 answers

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 be hard-coded into ADB and this situation is not…
gluk47
  • 238
  • 2
  • 9
7
votes
2 answers

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.
abc
  • 73
  • 1
  • 3
4
votes
1 answer

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, which is probably earlier than the restart?! So…
xuiqzy
  • 47
  • 1
  • 6
3
votes
2 answers

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 don't face this issue when using Windows 10 with…
Syed Adil
  • 31
  • 3
3
votes
2 answers

Why can't install the weixin apk in my debian?

I have installed anbox. anbox version anbox 0.0~git20181014-1~bpo9+1-Debian Have a try to install an apk after downloading weixin7013android1640.apk. adb install weixin7013android1640.apk * daemon not running. starting it now on port 5037 * *…
showkey
  • 79
  • 23
  • 67
  • 128
3
votes
1 answer

Remove extra blank lines from CMD adb shell, when redirected to file

I am outputting results from an android shell command to a file, with MS-windows cmd via ADB.exe. It outputs the correct results, but I am getting an extra line between each result. It looks normal in interactive cmd (without extra lines), but…
PadreD727
  • 33
  • 4
3
votes
1 answer

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/Pictures/Screenshots/ ~/. Of course, I can write an…
Firelord
  • 342
  • 1
  • 17
3
votes
1 answer

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 computer, currently running Debian wheezy. ADB was…
Faheem Mitha
  • 34,649
  • 32
  • 119
  • 183
2
votes
1 answer

Error while executing adb shell command

adb shell am broadcast -a com.test.app --es command "STOP" --es filename "sample 1.01.49 7-09-1380(01).apk" I am trying to broadcast intent using the above adb command, where sample 1.01.49 7-09-1380(01).apk is the file that I would like to…
Anonymous
  • 21
  • 3
2
votes
0 answers

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 support by man systemd.socekt.5. if I use…
illiterate
  • 953
  • 7
  • 22
2
votes
2 answers

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 globbing is not working on the android busybox…
Scorb
  • 604
  • 3
  • 12
  • 25
2
votes
2 answers

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 exists"; fi : integer expression expected Path…
ka3ak
  • 1,235
  • 4
  • 18
  • 30
2
votes
2 answers

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 phone on a laptop running Ubuntu but I installed…
GBG
  • 121
  • 1
  • 4
2
votes
1 answer

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 Studio. There is a connection-mode on the phone that…
mattu
  • 143
  • 1
  • 6
2
votes
0 answers

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 Electronics Co., Ltd GT-I9100 Phone [Galaxy S II]…
boolean.is.null
  • 2,413
  • 6
  • 18
  • 23
1
2 3 4