[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enable adb port in tramp adb
From: |
Michael Albinus |
Subject: |
Re: Enable adb port in tramp adb |
Date: |
Sat, 08 Nov 2014 13:38:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Ashi <address@hidden> writes:
> Hi, Michael,
Hi Zhongwei,
I've played a little bit with your patch.
> I've updated my patch. Add 2 more things:
> - if user provide port number in ADB USB mode, let tramp give error (I
> feel I haven't handled the error message correctly, need your review).
How do you detect, that adb runs in usb mode? I couldn't find a
respective adb command.
The only indication might be, that connections listed via "adb devices"
show a port number, or not. Devices without a port number might be
connected in usb mode.
> - if user doesn't provide port number in ADB TCP mode, let tramp find
> port number from "adb devices" for user.
That's OK. The listed port number shall be used than.
Could it be, that one could access a device twice, on different ports?
Furtheron, I found some other use cases which are not handled yet, I
believe. If a device is not listed in "adb devices", Tramp shall first
connect to that device with "adb connect device:port". Afterwards, Tramp
could access to this device via "adb -s device:port shell", as it does
already for usb devices.
And it looks, like adb does support also host names, not only ip
addresses. Look at my example (my Nexus 7 uses 192.168.0.141):
# nslookup 192.168.0.141
Server: 127.0.1.1
Address: 127.0.1.1#53
141.0.168.192.in-addr.arpa name = android-c05807abea645fdf.fritz.box.
# adb connect android-c05807abea645fdf:5555
connected to android-c05807abea645fdf:5555
# adb devices
List of devices attached
015d24bc55282409 device
android-c05807abea645fdf:5555 device
> But the tramp-test31-utf8 failed on my phone, which is passed on my
> develop board. I haven't looked into it yet.
No problem here, it passes.
> Best regards
> Zhongwei
Best regards, Michael.
- Re: Enable adb port in tramp adb, Michael Albinus, 2014/11/02
- Re: Enable adb port in tramp adb, Ashi, 2014/11/02
- Re: Enable adb port in tramp adb, Michael Albinus, 2014/11/03
- Re: Enable adb port in tramp adb, Ashi, 2014/11/03
- Re: Enable adb port in tramp adb, Michael Albinus, 2014/11/03
- Re: Enable adb port in tramp adb, Ashi, 2014/11/03
- Re: Enable adb port in tramp adb, Michael Albinus, 2014/11/03
- Re: Enable adb port in tramp adb, Ashi, 2014/11/03
- Re: Enable adb port in tramp adb, Michael Albinus, 2014/11/03
- Re: Enable adb port in tramp adb, Ashi, 2014/11/05
- Re: Enable adb port in tramp adb,
Michael Albinus <=
- Re: Enable adb port in tramp adb, Ashi, 2014/11/08
- Re: Enable adb port in tramp adb, Michael Albinus, 2014/11/09
- Re: Enable adb port in tramp adb, Ashi, 2014/11/09
- Re: Enable adb port in tramp adb, Ashi, 2014/11/10
- Re: Enable adb port in tramp adb, Michael Albinus, 2014/11/11
- Re: Enable adb port in tramp adb, Ashi, 2014/11/11
- Re: Enable adb port in tramp adb, Michael Albinus, 2014/11/13
- Re: Enable adb port in tramp adb, Ashi, 2014/11/17
- Re: Enable adb port in tramp adb, Michael Albinus, 2014/11/17
- Re: Enable adb port in tramp adb, Ashi, 2014/11/17