From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Zamazal Newsgroups: gmane.emacs.bugs Subject: bug#64445: 30.0.50; Android: Emacs cannot access /storage/emulated/0 although other apps can Date: Fri, 18 Aug 2023 19:17:51 +0200 Message-ID: <87fs4gcls0.fsf@zamazal.org> References: <87zg4c92l4.fsf@zamazal.org> <87a5wcsdpg.fsf@yahoo.com> <871qhohziz.fsf@zamazal.org> <87lefwqdsy.fsf@yahoo.com> <87ttukgiwh.fsf@zamazal.org> <871qhnp4sd.fsf@yahoo.com> <87pm56g5zl.fsf@zamazal.org> <87lefuokkt.fsf@yahoo.com> <87h6qig0ag.fsf@zamazal.org> <878rbuo8fq.fsf@yahoo.com> <877crefpm2.fsf@zamazal.org> <87pm55nayf.fsf@yahoo.com> <87ttuhbioq.fsf@zamazal.org> <878ra9gf8o.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4834"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64445@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 18 19:18:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qX377-00013y-DI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Aug 2023 19:18:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qX36p-0003BD-UP; Fri, 18 Aug 2023 13:18:03 -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 1qX36o-0003B2-AI for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 13:18:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qX36o-0000pU-07 for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 13:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qX36o-0001UT-8V for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 13:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Milan Zamazal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Aug 2023 17:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64445 X-GNU-PR-Package: emacs Original-Received: via spool by 64445-submit@debbugs.gnu.org id=B64445.16923790775716 (code B ref 64445); Fri, 18 Aug 2023 17:18:02 +0000 Original-Received: (at 64445) by debbugs.gnu.org; 18 Aug 2023 17:17:57 +0000 Original-Received: from localhost ([127.0.0.1]:48628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qX36j-0001U8-Ck for submit@debbugs.gnu.org; Fri, 18 Aug 2023 13:17:57 -0400 Original-Received: from petrel.zamazal.org ([37.205.9.215]:38278 helo=zamazal.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qX36h-0001Tx-Oz for 64445@debbugs.gnu.org; Fri, 18 Aug 2023 13:17:56 -0400 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=zamazal.org; s=ed25519; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=R5aFrJsVB4+ukgpahXPJBG+ktRo6g02RVyIu+IIgi8k=; b=zXziAulTTnruyp4UDf/PYx5BJS FKUyIoewJpcVD+2FsAlV3LV11bvPI9rB3g3UKmoN6uu+3A54hxU5Xc1h0xCA==; Original-Received: from ip-77-48-47-2.net.vodafone.cz ([77.48.47.2] helo=finch) by zamazal.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qX36d-001UnQ-2O; Fri, 18 Aug 2023 19:17:53 +0200 In-Reply-To: <878ra9gf8o.fsf@yahoo.com> (Po Lu's message of "Fri, 18 Aug 2023 12:13:11 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267773 Archived-At: >>>>> "PL" =3D=3D Po Lu writes: PL> While I never did manage to locate the cause of this bug, two PL> new workarounds for it are now possible. PL> The first is to type: PL> M-x android-request-storage-access Just in case someone else reads this: It=E2=80=99s actually android-request-directory-access. PL> and select the ``internal storage'' directory from the file PL> manager dialog displayed. It will then appear under: PL> /content/storage/com.android.externalstorage* It works for me, thank you! PL> Mind that this form of file access is somewhat slow due to inept PL> programming by the Android developers: PL> https://issuetracker.google.com/u/1/issues/293494717 PL> which they have dismissed, since they are evidently incapable of PL> attaining even the most elementary levels of reading PL> comprehension, and consequent of being implemented in Java, PL> files within /content/storage will be inaccessible to PL> subprocesses. Hmm, not very nice. Another annoyance is the `primary:' component in the storage path as Android doesn't like colons in paths and e.g. symlinking such a directory doesn't work. Is this name imposed by Android? PL> The second is to install Termux-enabled builds (see the README PL> in the Sourceforge repository for further details), in which PL> case any permissions you grant Termux will also be extended to PL> cover Emacs. I haven't tested this, do you want me to test it? Thanks, Milan