A
A
Artem Komarov2016-03-01 18:33:55
Android
Artem Komarov, 2016-03-01 18:33:55

On Linux, adb -d only prints help but doesn't access the device, why?

I'm trying to debug an application on a device:

[email protected] ~/projects/vanback $ adb devices
List of devices attached 
Zera F	device
[email protected] ~/projects/vanback $ adb -d Zera F install platforms/android/build/outputs/apk/android-debug.apk
Android Debug Bridge version 1.0.31

 -a                            - directs adb to listen on all interfaces for a connection
 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
...

those. instead of installing the application on the phone, adb spits out its help for me... Everything you need is installed (Build Tools, System Images, etc...)
Linux dev 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21: 30:01 UTC 2014 i686 i686 i686 GNU/Linux Mint 17
Any ideas?
PS Debugging a hybrid application, so I only need to catch JavaScript errors and logs. Are there other ways?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
aol-nnov, 2016-03-01
@m0sk1t

> Any ideas?
of course there are ideas!
for example, you use adb not in the way that its developers planned, and it unobtrusively once again shows you a reference.
For example, if "directs command to the only connected USB device" so why after -d some kind of "Zera F" - what is it and why is it there ?!
and in general, if you have one device connected, you can do it without any -d. just adb install /path/to/file.apk

I
Ilya Pavlovsky, 2016-03-01
@TranE91

what does adb devices show?
perhaps the problem is that you did not enable the debug mod on the phone and it cannot connect

T
Timohius, 2016-03-04
@TIMOHIUS

1.You have one phone, so specifying the serial number is not necessary
2.Run adb install platforms/android/build/outputs/apk/android-
debug.apk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question