From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Android port Date: Sun, 19 Feb 2023 18:55:02 +0800 Message-ID: <87o7ppj56h.fsf@yahoo.com> References: <912677799.460919.1676709333977@mail1.libero.it> <87zg9bjrfi.fsf@yahoo.com> <2083511697.508112.1676757486753@mail1.libero.it> <87mt5ajtbr.fsf@yahoo.com> <1002927807.523870.1676797315058@mail1.libero.it> <87wn4eez8j.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25369"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dov Grobgeld , Angelo Graziosi , "emacs-devel@gnu.org" To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 19 11:57:29 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pThNp-0006TT-2Z for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Feb 2023 11:57:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pThNc-0006Yv-3b; Sun, 19 Feb 2023 05:57:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pThNa-0006Yl-FM for emacs-devel@gnu.org; Sun, 19 Feb 2023 05:57:14 -0500 Original-Received: from sonic311-50.consmr.mail.ne1.yahoo.com ([66.163.188.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pThNZ-0007zH-0n for emacs-devel@gnu.org; Sun, 19 Feb 2023 05:57:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676804231; bh=1t4n7abnDuB9wxsfQ6Wk+a3U95B3NjIXEAX6oKPfCkE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=h+OHhZzXlxPUIJr/f6Sk3ljlbNMHalQ44KgEaDFIUl6W+hDOcLntQav3b3u3Na98V2LA61hsUHrmc2e3LAqO2EZhW/K/N66LKgKgqPlFtJ3P723lL2iztJ34nb0A90uOe+KbH7/QV1/CDJlDybCUUVVZK2krAJkEbTVrccpyu5YyZj6GgYcsKxo2FY1bwtRKPcUNVC+KEeeRYJ8Jc3j3mdlRaRJUQF2vKaF0s+YWA4Vv1vP+5nxDGHzLH/zUPNSx77uJfIspKRicd5MLRmMQiYHLmzMtGQnOJVEunklyY/S/8IFO+O2pzuNsuvwu5LYP1Sk9znQYXqxHY2k9ELzPMw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676804231; bh=2s7CxWg5TN3LH5pq2DJwzpkeaRrmISayXsd/xCR6R9Q=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=WU7EhGxKM61Y20J+bE0uDQGt9UO5Z6SeD3bKc3nm1bqCnCQhQURtAx3eL7CJPfitcA6b7cuNWNfIjvLPu7KA8lIsSpywarTE2lo31MgcxACAVSokBcULVHNR5RUc9yOFTQcqMuMqKCnqW2BeXvtTkzc5xOVkFEvD6oNy6nYwkzQ+FMp0oBBIy3Zm8zHKbIpiePUcrydOsLLkwzVRcZBXJqm2BmiyZvOpTUupJxCoEIFiRpfqk+p2N72/vbEG9jjreDR7kpoYiicTNBFvpoQ9Je/CfkZBC8gyObs0O0cpA/WRJa3IGH4oEN8tB+TbhHLtGLpoROrAv7+zxSot+giO8A== X-YMail-OSG: T2m90yUVM1lJCNbkvUtgimiLralX3qpAY4bImrUwgiH_7._QX368zsk6Xhtq1aw .FjiB7oz1DPruGLO4YB.xjLVeBWAeFJPmBaN9H6652aBO9qsZ_p5allp6UsC7IS3WmRuaSGc5FlE rFneUwmj7UeQx4fucukFdduq0QxKg1NZHizMELijx1W9.CKB3ftOC2U0l2HaNQwsYFueK9t3YDk5 BaZvYvheuTo5WRYqd4uaSxwMgkw6ypCgxNfvOtmXgWm0LTjfcFbDbiwGBOQORZ4._TI4iD9DT1ZK 43ySdc18mpFFNKRGkDcnzKhxz5gsJXcdD1sCmp3rFCX3GedtC3ciWwnW1HC.eQIbjLwPtx9kNxRC AkcpNw8Fb7qGSAe2Kc.nGrtbZFgfw.0uZNSdGl7YJc42rtrEqHXYg_P_ebEnin82aQOE3b4QhLrW 6MJWJjTC9AbkVq0RtwmT_krtuZSheqtU242UfQ3ERpeC2t.Mvh_8RMBajtlu8Li5yYJiSme5d6sE IMz7O1D9rmnYpwaA8SU9JehayPsEgPNhwsbI..ZqmaJNjhjUUHWBq1kJuQ4AvzNOcngkR20nIkM2 .WNf5ycnyuKJrnQl_tsEqoRv4poEvQce9IkhysBEJidAXzAzF4miJjrngk6157LExnz8OQ4RUosi 7UbFsJrLa1PoVKz7ZxASw7KVj4kQsGl8B.nTlbx0sE5T1LTX2unxvGjDTDf220mG3DCyN1AslT77 I3u.xypZjWyviErSVxmc4Xpd68wWSUKvrogCXEM6U8y7OosI2mqqICDtSXHtp.HJznvSMouiyYVV yaUYOyDUqV8zR1MIhwXzB7_AWUW_2BQ04hfJPugKsJ X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sun, 19 Feb 2023 10:57:11 +0000 Original-Received: by hermes--production-sg3-9fc5746c8-pz6sb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0b7dc7b942a4d77d15b73b722f1a9cbf; Sun, 19 Feb 2023 10:55:08 +0000 (UTC) In-Reply-To: <87wn4eez8j.fsf@gmx.de> (Michael Albinus's message of "Sun, 19 Feb 2023 11:17:00 +0100") X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.231; envelope-from=luangruo@yahoo.com; helo=sonic311-50.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303551 Archived-At: Michael Albinus writes: > Dov Grobgeld writes: > >> To use adb on Linux you need to do the following: >> >> 1. Enable debug mode on the android device. The way you do this >> depends on the device, but it typically involves tapping five to seven >> times on the system about kernel version. Look for it on the web. >> 2. After enabling debug mode looking for "USB debugging" on the device >> and turn it on. >> 3. Connect the android device to the computer by cable. >> 4. Run `adb shell` on your computer. This will fail to connect because >> of permissions. >> 5. On the android device you will get a popup asking whether you want >> to allow usb debugging from your computer. Confirm this. >> 6. Back in the computer terminal do a `killall adb` to remove the >> previous adb process (it installs itself as a server). And redo it. >> 7. You will now have a shell into your device. :-) >> >> You can use adb to copy files `adb push` and `adb pull` to the device. >> >> You can also use `adb logcat` and filter the output by regexps. > > In Emacs, there's also Tramp's "adb" method. If you have only one > Android device, you can access it via "C-x C-f /adb::" from your local > Emacs, running on Linux. > > The only missing feature is support of "adb logcat". Shall we add > something like this? If you run `logcat' from a directory in /adb::, it will work just as well as if you ran `adb logcat'.