From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Milan Zamazal <pdm@zamazal.org>
Cc: 64445@debbugs.gnu.org
Subject: bug#64445: 30.0.50; Android: Emacs cannot access /storage/emulated/0 although other apps can
Date: Tue, 04 Jul 2023 16:30:21 +0800 [thread overview]
Message-ID: <87lefwqdsy.fsf@yahoo.com> (raw)
In-Reply-To: <871qhohziz.fsf@zamazal.org> (Milan Zamazal's message of "Tue, 04 Jul 2023 10:05:56 +0200")
Milan Zamazal <pdm@zamazal.org> writes:
> The device is an e-ink reader with a highly customized environment. It
> doesn’t have the standard settings manager, nor the standard file
> manager. All I can say is that:
>
> - Emacs has the same storage permission as the other applications that
> can access the storage without any problems (e.g. Termux or a
> third-party file manager).
Termux targets Android 9.0, while Emacs targets Android 13. On newer
systems, this means that Emacs needs additional permissions to access
the external directory.
> - I had to enable the permission manually, Emacs didn’t ask for it
> itself (unlike e.g. the file manager does). I also tried to reboot
> the device, the permission is still there but Emacs cannot access the
> storage.
Emacs does not ask for permissions upon startup like other Android
programs do; I think that is somewhat rude.
> - When I mount the device storage on my desktop computer via USB and run
> ‘find -name "*emacs*"’ on it, the only thing found is the *.apk I
> installed Emacs from. Again, the directories of other applications
> are visible.
Android unfortunately does not allow mounting application home
directories using USB.
> As no other application I use on the device (e.g. several applications I
> installed from F-Droid) suffers from the storage access problems nor
> requires anything unusual to access the storage, I believe it’s an Emacs
> bug. Please tell me if there is anything I can do to help identifying
> the cause of the problem.
Would you please try to determine the precise version of Android that is
installed? The Storage permission is not sufficient on Android 11 and
later, where you must also grant Emacs ``All Files Access'' through
Settings.
Thanks.
next prev parent reply other threads:[~2023-07-04 8:30 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 [this message]
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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lefwqdsy.fsf@yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=64445@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
--cc=pdm@zamazal.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).