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: master babe6a5e948 1/2: Introduce a new TRAMP method `androidsu' Date: Mon, 26 Feb 2024 18:54:42 +0800 Message-ID: <875xyb5wct.fsf@yahoo.com> References: <170892805989.23297.10872025500935567738@vcs2.savannah.gnu.org> <20240226061420.EF1D4C00231@vcs2.savannah.gnu.org> <875xybtxq0.fsf@gmx.de> <87a5nn61k7.fsf@yahoo.com> <87r0gzpopy.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="6270"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 26 11:55:54 2024 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 1reYeI-0001Up-SU for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Feb 2024 11:55:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reYdm-0005sY-Bt; Mon, 26 Feb 2024 05:55:22 -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 1reYdk-0005lx-TF for emacs-devel@gnu.org; Mon, 26 Feb 2024 05:55:21 -0500 Original-Received: from sonic313-56.consmr.mail.ne1.yahoo.com ([66.163.185.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reYdh-0004iX-7Y for emacs-devel@gnu.org; Mon, 26 Feb 2024 05:55:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1708944913; bh=XGg6jreCoFWSpPd+Tap/Vcr/+tDLUiRG/kH3TRJTtGU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=rptbQfee79JnJ0akkMRF2GyLFdeMGT5YNz1yeeiwwroftpX37f3XHZwpOzivep0rJrsUkG0cQccxdpDsgTZkgjvNg9sCgIPW31DossBCBh2htGIhT/yk8kUPn8GB4Tyva147mMQesclhWF1f7BQpgxPyukbmPVpHva1fehU7ITH0+Mj7reKxdYgtxWhJq6wonx6uDfd2PWoZgMoVPggrzyjZiMVZmyqwyTb5HC+aAZjilAIocxC456YlWSsBzwxCzTbUdtZJlpIf7seikej85+kmE7NUTeN/+VgC7qwOFHM1DZPiztBkPbLr6h5rPamm9pGiIux9i+rjPGivI8tg1w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1708944913; bh=Bk0VHKuBbfzrfxlsKtT8sPRJ3wRY2zuCGVDKp91b/0F=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=LAlmRE51qlUOwH68+YOacUC2CmMZditBxfYNJCypxnHGeyfo0PvyQoJlR/jjhOLS42KNQkD9VPjjs2hYmIwiPw6wPGe8N3K6E1UePKwvNya6/GWIrpa76/0h/X0KevShewUaH5bdAuxD8M5SebO6QirFEuDit5DNK7l4kXsbMcreWdTwBumbokRoMCRMxzNmlyOu7CFWw2+RLo51e2Zop1XdKqfJ6JGHuDn++5bnxOIOtKE4OUEQ4YE12HTyLZRfzOshUrn4DBTJiNx09b14pP5upQ+l4HwSvrid14K/vKtT6/6+lgcGXyUYspqoL35fOJ4xzIqImVyl2m/kcus8sQ== X-YMail-OSG: Mt3nOh8VM1lzXVzs0IMHUQRrQfJWWMLoZmKrUpkWOpV9ixAplB5QIUglPciZwqp xBso.UTb3wXKu7e_G_XJXB1RxBWnjaWVJgnmKcZHhmNMkDT.bDft1QDYuhGte72ct.DPuglhcX5x PXxoBVHCPCJPdpnEyyyuUAvgpWyMDakee72zDxuiVW_2DwL5XdfvkXjviff7vbRs0foqM.lW2nrZ 81pyKSqVvB_CaOlGb9QE0iWEqOVtG3ZbVbSyzVMsjZCGUJwofpcMGGMJ1JM3zsxZJ0wWq.YwCH9o YYpLyjhTlOJGWDEtBiFGhvZRvspnq9scUAHMRR8sjFt0z211gZb1CpD1nwqMXErUDYfbMNnUz_t3 1Xy87ohsckZSpOnpSg83tbXV13sEqvO.MO5PdEWw5rtuOdvWvpGthnZH5yg7VCtaSgTQxf3a8Zxg OGnq7YkS.2jHvxYvFuJo1NQluL7saSRmclhQ2noN3XpYTjUuIJbTFRIV84XD8daRDGGUKDH2YQtV 1Ko1R8oyDxdTZ.DmDQqHI4NVllphv3ZwIETP0IWk0u6FsztDP7Q8xQhQhwila.Dkr2sY7OAFbeAi sg_fJUSEAXg3j8ZXWA3b0bo4iVpSCF3taiGPEmw_AUuLXru9g6PKr2s44Rp_r0kTHWFvvdrt1WtM wj3W.2V.bWXpyndj3JuXzCP4ImEY1QfyBV5maaFRcfHykh2_E7kx00hCrUcK9YJS.z4M2i4NdC89 aHdo6FGpskfyL.QTzYYm7OGaNeomxxq2h3fOT411GDAgnMlGtmxDkgH0_0sBXQtFNZkjgWkv3cl7 dt5c4Ob6N_42cMDAj1wKDSSDpbPAjMW0GNH4Bh326I X-Sonic-MF: X-Sonic-ID: 26ca8c15-5d5f-4187-95a0-5b6518844b54 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Mon, 26 Feb 2024 10:55:13 +0000 Original-Received: by hermes--production-sg3-6dc75bc8fb-6dxcw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ab1ffd95a8b5a85fe20e10f454e0875e; Mon, 26 Feb 2024 10:55:08 +0000 (UTC) In-Reply-To: <87r0gzpopy.fsf@gmx.de> (Michael Albinus's message of "Mon, 26 Feb 2024 10:19:21 +0100") X-Mailer: WebService/1.1.22103 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.31; envelope-from=luangruo@yahoo.com; helo=sonic313-56.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:316555 Archived-At: Michael Albinus writes: > FWIW, after a very very first look on your code I'm even not convinced > we need a new Tramp backend for what you want to achieve. Perhaps not, but at the very minimum a replacement for: ;; Android su binaries contact a background service to ;; obtain authentication; during this process, input ;; received is discarded, so input cannot be ;; guaranteed to reach the root shell until its prompt ;; is displayed. (with-current-buffer (process-buffer p) (tramp-wait-for-regexp p tramp-connection-timeout "#[[:space:]]*$")) will be required during connection setup. Thanks.