GNU bug report logs - #64445
30.0.50; Android: Emacs cannot access /storage/emulated/0 although other apps can

Previous Next

Package: emacs;

Reported by: Milan Zamazal <pdm <at> zamazal.org>

Date: Mon, 3 Jul 2023 20:13:02 UTC

Severity: normal

Found in version 30.0.50

Full log


View this message in rfc822 format

From: Po Lu <luangruo <at> yahoo.com>
To: Milan Zamazal <pdm <at> zamazal.org>
Cc: 64445 <at> debbugs.gnu.org
Subject: bug#64445: 30.0.50; Android: Emacs cannot access /storage/emulated/0 although other apps can
Date: Fri, 18 Aug 2023 12:13:11 +0800
While I never did manage to locate the cause of this bug, two new
workarounds for it are now possible.

The first is to type:

  M-x android-request-storage-access

and select the ``internal storage'' directory from the file manager
dialog displayed.  It will then appear under:

  /content/storage/com.android.externalstorage*

Mind that this form of file access is somewhat slow due to inept
programming by the Android developers:

  https://issuetracker.google.com/u/1/issues/293494717

which they have dismissed, since they are evidently incapable of
attaining even the most elementary levels of reading comprehension, and
consequent of being implemented in Java, files within /content/storage
will be inaccessible to subprocesses.

The second is to install Termux-enabled builds (see the README in the
Sourceforge repository for further details), in which case any
permissions you grant Termux will also be extended to cover Emacs.




This bug report was last modified 1 year and 306 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.