bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64445: 30.0.50; Android: Emacs cannot access /storage/emulated/0 alt


From: Milan Zamazal
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
User-agent: Gnus/5.13 (Gnus v5.13)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]