all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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: Tue, 04 Jul 2023 10:05:56 +0200	[thread overview]
Message-ID: <871qhohziz.fsf@zamazal.org> (raw)
In-Reply-To: <87a5wcsdpg.fsf@yahoo.com> (Po Lu's message of "Tue, 04 Jul 2023 08:49:31 +0800")

>>>>> "PL" == Po Lu <luangruo@yahoo.com> writes:

    PL> Milan Zamazal <pdm@zamazal.org> writes:
    >> On my Onyx e-ink reader, running probably some version of Android
    >> 10, I cannot access the external directory (either /sdcard or
    >> /storage/emulated/0) due to “Permission denied”.  I understand
    >> the Android system may not be cooperating, but e.g. Termux
    >> running on the same device can access /storage/emulated/0, after
    >> running termux-setup-storage, happily.  Both Emacs and Termux
    >> have the same “Storage” permission as reported by the system.
    >> 
    >> The Emacs version is 2023-07-03 from SourceForge.

    PL> As described by the Emacs manual, you should allow Emacs ``all
    PL> files access''.  This option is usually found in a section
    PL> titled special app access in Settings.

    >> Sorry for not providing the automatically gathered information
    >> but due to the permission problem above and the fact that the
    >> Emacs directory seems to be completely invisible, even when the
    >> device is connected via USB (all the other apps are present in
    >> /Android/data, but Emacs is not there and I couldn’t find it also
    >> anywhere else), I don’t know how to share anything from the Emacs
    >> on the device with the outer world.

    PL> Emacs's home directory is its ``internal app storage''
    PL> directory.  Android is distributed with a file manager that
    PL> should be able to display this directory in its hamburger icon
    PL> menu.

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).

- 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.

- 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.

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.





  reply	other threads:[~2023-07-04  8:05 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 [this message]
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
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=871qhohziz.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.