From: Milan Zamazal <pdm@zamazal.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 64445@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 19:17:51 +0200 [thread overview]
Message-ID: <87fs4gcls0.fsf@zamazal.org> (raw)
In-Reply-To: <878ra9gf8o.fsf@yahoo.com> (Po Lu's message of "Fri, 18 Aug 2023 12:13:11 +0800")
>>>>> "PL" == Po Lu <luangruo@yahoo.com> 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’s 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
next prev parent reply other threads:[~2023-08-18 17:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-03 20:12 bug#64445: 30.0.50; Android: Emacs cannot access /storage/emulated/0 although other apps can Milan Zamazal
2023-07-04 0:49 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-04 8:05 ` Milan Zamazal
2023-07-04 8:30 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-04 8:50 ` Milan Zamazal
2023-07-05 0:42 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-05 7:41 ` Milan Zamazal
2023-07-05 7:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-05 9:44 ` Milan Zamazal
2023-07-05 12:21 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-05 13:35 ` Milan Zamazal
2023-07-06 0:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-06 7:30 ` Milan Zamazal
2023-08-18 4:13 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-18 17:17 ` Milan Zamazal [this message]
2023-08-19 0:13 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fs4gcls0.fsf@zamazal.org \
--to=pdm@zamazal.org \
--cc=64445@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.