From owner-freebsd-usb@freebsd.org Tue Nov 20 09:32:20 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E2361107753 for ; Tue, 20 Nov 2018 09:32:20 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B02882B10 for ; Tue, 20 Nov 2018 09:32:19 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [132.174.172.2] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1gP2OG-0005RS-VP for freebsd-usb@freebsd.org; Tue, 20 Nov 2018 10:32:16 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id wAK9WGNb002878 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 20 Nov 2018 10:32:16 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id wAK9WGr1002877 for freebsd-usb@freebsd.org; Tue, 20 Nov 2018 10:32:16 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Tue, 20 Nov 2018 10:32:15 +0100 From: Matthias Apitz To: freebsd-usb@freebsd.org Subject: Re: Android Debug Bridge (adb) on FreeBSD && smartphone BQ E4.5 Message-ID: <20181120093215.GA2789@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: freebsd-usb@freebsd.org References: <20181120054609.GA2728@c720-r314251> <1e7ba4e7-a8ef-b51c-8a2b-fdabf4d37a32@selasky.org> <20181120080620.GA22119@sh4-5.1blu.de> <560aee91-f5b9-94bd-60f3-86f10aa6aab5@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <560aee91-f5b9-94bd-60f3-86f10aa6aab5@selasky.org> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 132.174.172.2 X-Rspamd-Queue-Id: 8B02882B10 X-Spamd-Result: default: False [1.48 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de]; HAS_XOIP(0.00)[]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mail.unixarea.de]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; IP_SCORE(-0.00)[country: DE(-0.01)]; RCVD_IN_DNSWL_LOW(-0.10)[101.4.254.178.list.dnswl.org : 127.0.5.1]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.02)[-0.018,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.03)[0.026,0]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[unixarea.de]; NEURAL_SPAM_SHORT(0.18)[0.181,0]; R_SPF_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2018 09:32:20 -0000 El día martes, noviembre 20, 2018 a las 09:09:24a. m. +0100, Hans Petter Selasky escribió: > > Of course. And it worked with the same cable on an Ubuntu 18.10 laptop > > out of the box. On start on the device popped up a message box and asking > > if I want to allow this connection. I ack'ed and had the shell prompt in > > the xterm where I started 'adb shell'. > > > > Did you run adb as root? > Yes. > Maybe you need to add some VID/PID via the environment. Works with my phone. > > What does "adb devices -l" output? Yesterday and today morning it produced an empty list. Now it works. In the root xterm, where I start the 'adb start-server' it says now n addition to: ... adb I 2592 100164 usb_libusb.cpp:399] check_device(): Probing usb device 2a47:0c02 adb I 2592 100164 usb_libusb.cpp:418] check_device(): Device bus: 0, address: 4 adb I 2592 100164 usb_libusb.cpp:259] check_usb_interface(): Interface have not 2 endpoints, ignoring adb I 2592 100164 usb_libusb.cpp:280] check_usb_interface(): Forced Android interface protocol v.1 adb I 2592 100164 usb_libusb.cpp:280] check_usb_interface(): Forced Android interface protocol v.1 adb I 2592 100164 usb_libusb.cpp:288] check_usb_interface(): Device: 2a47:0c02 iclass: ff, isclass: 42, iproto: 1 ep: 83/2-> adb I 2592 100164 usb_libusb.cpp:298] matches adb I 2592 100164 usb_libusb.cpp:314] check_usb_interfaces(): Interface 1 of 2a47:0c02 matches Android device adb I 2592 100164 usb_libusb.cpp:473] check_device(): Device matches Android interface adb I 2592 100164 usb_libusb.cpp:327] register_device(): Registering 0x7fffffffda20 [JU000143] as USB transport adb I 2592 100164 transport.cpp:1012] transport: 0x802428000 init'ing for usb_handle 0x8024250c0 (sn='JU000143') adb I 2592 100164 transport_usb.cpp:85] transport: usb adb I 2592 100164 transport.cpp:591] transport: JU000143 registered adb I 2592 100164 usb_libusb.cpp:614] usb_init(): finished adb I 2592 100164 transport_local.cpp:315] transport: local client init adb I 2592 100164 adb_auth_host.cpp:431] adb_auth_init adb I 2592 100164 adb_auth_host.cpp:292] home '/root' adb I 2592 100164 adb_auth_host.cpp:322] user key '/root/.android/adbkey' adb I 2592 100164 adb_auth_host.cpp:265] read_key '/root/.android/adbkey' adb I 2592 100164 fdevent.cpp:152] fdevent_install (fdevent 14 A) adb I 2592 100164 fdevent.cpp:198] fdevent_set: (fdevent 14 AR), events = 1 * daemon started successfully * and in the unpriv xterm it says: $ adb devices -l List of devices attached JU000143 device ugen0.4 product:krillin model:Aquaris_E4_5_Ubuntu_Edition device:krillin $ adb shell phablet@ubuntu-phablet:~$ I don't know why it works now, but not yesterday and today morning with the same installation, same device. Only the cable is now different. I will check at home with the cable I used this morning. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub October, 7 -- The GDR was different: Peace instead of Bundeswehr and wars, Druschba instead of Nazis, to live instead of to survive.