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

From: Milan Zamazal <[email-masked]>
Date: Wed, 05 Jul 2023 09:41:34 +0200

>>>>> "PL" == Po Lu <[email-masked]> writes:

    PL> When you try to access /sdcard from within Emacs, are any lines
    PL> containing:

    PL>   avc: ... denied ...

    PL> printed in an Async Shell Command buffer running `logcat'?

Yes:

  W org.gnu.emacs: type=1400 audit(0.0:910): avc: denied { read } for
  comm=456D616373206D61696E2074687265 name="/" dev="dm-0" ino=2
  scontext=u:r:untrusted_app:s0:c157,c256,c512,c768
  tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0