From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhoucm1 Subject: Re: enable adbd over tcp in terminal before surfaceflinger Date: Tue, 1 Aug 2017 10:57:59 +0800 Message-ID: <6d3fa1b3-f35e-5c4b-e860-e293fc86e51c@amd.com> References: <1500459483-5795-1-git-send-email-cwhuang@linux.org.tw> <1500459483-5795-2-git-send-email-cwhuang@linux.org.tw> <037de989-41b8-22aa-fe1a-1070bd800211@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1394602305==" Return-path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0051.outbound.protection.outlook.com [104.47.32.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id D4A3C6E063 for ; Tue, 1 Aug 2017 03:31:09 +0000 (UTC) In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Chih-Wei Huang , Maling list - DRI developers List-Id: dri-devel@lists.freedesktop.org --===============1394602305== Content-Type: multipart/alternative; boundary="------------21B25709C8299733057D8CBC" Content-Language: en-US --------------21B25709C8299733057D8CBC Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit + dri-devel, maybe other guys know it. On 2017年08月01日 00:15, Chih-Wei Huang wrote: >> I want to enable tcp adb in terminal before surfaceflinger, since in some >> cases, adb cannot connect over tcp if surfaceflinger crash or dead off. >> I have tried several things: >> Android7 doesn't have netcfg and dhcpcd binary, so I pushed these two >> commands to system. >> with 'netcfg eth0 up' and 'netcfg eth0 dhcp', I can get IP address, but >> client cannot connect to this ip(time out). >> >> and when running 'netcfg eth0 dhcp', the terminal will output failed log >> "action 'dhcp' failed (Network is unreachable)". >> >> What do you think of it? Is there a know method to enable tcp adb in >> terminal without depending on framework? > Honestly speaking I didn't try that. > I'll give a try later. --------------21B25709C8299733057D8CBC Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit

+ dri-devel, maybe other guys know it.


On 2017年08月01日 00:15, Chih-Wei Huang wrote:
I want to enable tcp adb in terminal before surfaceflinger, since in some
cases, adb cannot connect over tcp if surfaceflinger crash or dead off.
I have tried several things:
 Android7 doesn't have netcfg and dhcpcd binary, so I pushed these two
commands to system.
with 'netcfg eth0 up' and 'netcfg eth0 dhcp', I can get IP address, but
client cannot connect to this ip(time out).

and when running 'netcfg eth0 dhcp', the terminal will output failed log
"action 'dhcp' failed (Network is unreachable)".

What do you think of it? Is there a know method to enable tcp adb in
terminal without depending on framework?
Honestly speaking I didn't try that.
I'll give a try later.

--------------21B25709C8299733057D8CBC-- --===============1394602305== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1394602305==--