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 of Emacs Date: Fri, 23 Jun 2023 08:22:51 +0800 Message-ID: <87mt0ryqlg.fsf@yahoo.com> References: <83v8fnslfz.fsf@gnu.org> <83edmask4z.fsf@gnu.org> <5c02371a-3c42-de66-70b7-4ed0d88cc3fa@gutov.dev> <87cz1td0ku.fsf@yahoo.com> <87cz1ta5fr.fsf@telefonica.net> <87edm645yy.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22894"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 23 02:24:11 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 1qCUaw-0005jZ-Fk for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Jun 2023 02:24:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCUZx-0006gW-Vd; Thu, 22 Jun 2023 20:23:09 -0400 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 1qCUZw-0006gJ-BO for emacs-devel@gnu.org; Thu, 22 Jun 2023 20:23:08 -0400 Original-Received: from sonic314-21.consmr.mail.ne1.yahoo.com ([66.163.189.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCUZu-0000Nm-IB for emacs-devel@gnu.org; Thu, 22 Jun 2023 20:23:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687479783; bh=WV0CfOsPuwV6/YOw8C9pPrC+xaWvPHdoVNooAibknXY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=UJk0EaewNr6vjoFC+QFGvUzjcZRjRdYJqMAwWajb1Gg3IZQ4jqo1dy09zj3rv6WtXkA8JkfR9aoAQBcXWcDG64HEa2tomfqMkbhr3mditgPNH2MD+BrrR2wJczaDUmmEDjG45DKZwuKsx0NJhV8TAY3u2qowWeWoJfQlDEQy9e4KUQA/jF7jDgSNxxt+XzqAWafQ0yDz4zqrd6idHf2s9lWdSCwiDTt0nQ8YQcGFmNdN9pQ4jXZI+qbC4lipa/jMJZ+IqBEZV12bOhsVCjoOWrfSq2I0txSLYQ+mxzBOS93imWtIxUmpw2CZcWLuc63jODO9wKEpzxgWJkMvE2iJBQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687479783; bh=0gWWJaH+Q89Vy9tM0Jxcozkp6Tow6aex8+2FZeLIjxA=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ccGVWNRjKMvU7HN8KqAQp9TgVgS0/5M35bjsEZbiO259O4Gs6Eu6T3W4ms1O4DHdXbq6qHZ6L6TeGAk77RuFKUrLji8j8cJVSxa6zVhB3up+keUFf8wQxvXTrteSiZpHtJ/rzlPCLfgpFvfrbw/+ID+5F2+r+9ZPR0wVLOwNM3x6pkoqATLEAPUroOjGpP6n8pTwuA2sE5zCQHwUahaiIUBytDvKdgLSbQjpL7Cug66NLHhcANCbTjS/fqWkd8x8C3mHke4O9ktuyxm8RdA5DcsiyZ01k7t4kEmFhvZtMPExpIYhuWn4vF1JZiqpcgsEsSRFTEMhU3medyAgMXl+zg== X-YMail-OSG: neQe9TkVM1mgkK2ELtTdppgVuDYWdDoKlhk8RtuaTmIkRZtp0OCw1HCR3KEhBrU mV9juCy87yQFWzarQ3Hv7iT0AoSGf1dgRd.AWZGvhUNWFS29bRihUwWBlLlbOv8Psrlk_lnZmUEt 9fiHGdUazsZtG5nHsxKQII5w6BWdcmJ3X5zgq1tmPAAhKca0HQ0aXVNRzQ1NoW7QIx.rM3mv5mhO pxca_XRxefBwgmlYjdWiDCg3OTxrKa9PmSAsJvUHJwHua.nVBlmlBe.S62DNOg3eMj8O929vP.xd ELefQXDj.A848RAg17C4XWNn2rICDgEafeTEY97_bv_fHQsklObcRrFtv9cM_gY.wobSFtaLWhh3 W_tMQUyZvtHxPqgGfUAnscX944cT6Gc2fjvBwNPtnWJToCIy6O.NBoLiYL9.MmZlzuyyrALLg3.o JV3k4GQpjrIhb2UZLXtfvRiHnwieaNj5zh_aweTvIlND.raIrjkQr1dXNUOi0HwhHjDdZlpQwHOu ime40vw0s512XUg88gdiBlzrS0vBapWQCFasbX2_2iS.fryo5KpJWdOR5O_uCDsRRRUAbLS_FCzk lmS_k_qW4vqsjhxGdh4Pr3s1KkpIo_HUeUmW1CI3eeES32Eh4ADpl5KYRv1KwEC6Kote9ns9bsJ. RGzRkWlh8gzS9NFUyR8yo1.gHHvBxwG.UDJmYc10rF3hiTurg4JwNNasRd3Fqq.vGT0jq8BNxrES hBtCMw_9MrKzY9OlRC7pZm0As3WIu_7Et7L88sR.ApL3MgDNke6CrfpVu.8ZwgYdYLlS9z.FeKTe Spj00CLH93vB1likHVVE6IJHumAW86IADVhNEsMuZ_ X-Sonic-MF: X-Sonic-ID: a98f1429-a8f4-417c-bece-0a7482620254 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Fri, 23 Jun 2023 00:23:03 +0000 Original-Received: by hermes--production-sg3-748897c457-524hn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7299fcaebc95bbd4f37a5f587c09ffa1; Fri, 23 Jun 2023 00:22:57 +0000 (UTC) In-Reply-To: (Gregory Heytings's message of "Thu, 22 Jun 2023 22:49:51 +0000") X-Mailer: WebService/1.1.21557 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.147; envelope-from=luangruo@yahoo.com; helo=sonic314-21.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:307136 Archived-At: Gregory Heytings writes: > IOW, users will run Termux under Emacs instead of running Emacs under > Termux. (Yes, that's a simplified way of presenting things, but it's > the idea.) Termux (the terminal emulator) is not Termux, the package archive. > Concretely speaking, this means that the same programs will be > installed twice on the same device (which typically do not have a > large storage capacity): in the /data/data/com.termux directory, and > in the /data/data/org.gnu.emacs directory. > > Concretely speaking, this also means that all programs installed in > the /data/data/org.gnu.emacs directory need to be built from source, > either on the Android device itself (but they typically have slow > CPUs) or by cross-compiling them on a faster computer. The termux-packages repository provides several scripts which make this process trivial. The result is a `bootstrap-aarch64.zip' that only needs to be extracted within Emacs. > I've also looked at the "exec" subdirectory in the feature branch. > You may be aware that the hack you use there to circumvent Android's > "write xor execute" security policy has been rejected by the Termux > developers, and that in all likelihood that hole in Android's security > policy will be patched sooner or later. Using a userspace ELF loader cannot be ``patched'' by Android security policy as long as Android continues to allow ordinary user processes to trace their children, and thus read and write process memory and registers. If you want to argue over this, I ask you to first describe in detail the procedure used to execute binaries, and then how you propose to prevent it from being used, while keeping the ability to debug programs. Which, btw, is a solution Termux will have to adopt at some point, because in the future, Android will no longer allow applications targeting API level 29 to be installed.