Subject: bug#64445: 30.0.50; Android: Emacs cannot access /storage/emulated/0 although other apps can

From: Po Lu <[email-masked]>
Date: Sat, 19 Aug 2023 08:13:58 +0800

Milan Zamazal <[email-masked]> writes:

> Just in case someone else reads this: It’s actually
> android-request-directory-access.

Right, sorry.

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

Yes, it is.  Symlinks to and from /content/storage are alas unsupported,
as that directory is provided by a system service written in Java, which
is not cognizant of symlinks.  (Google adamantly asserts this service is
the One True Way for Android programs to access external storage.)

> I haven't tested this, do you want me to test it?

Several others have already done so, so that isn't necessary.  But it's
the thought that counts.