From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Zamazal Newsgroups: gmane.emacs.bugs 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 Message-ID: <871qhohziz.fsf@zamazal.org> References: <87zg4c92l4.fsf@zamazal.org> <87a5wcsdpg.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16036"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: 64445@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 04 10:07:29 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qGb4L-0003ut-0U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Jul 2023 10:07:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGb3z-000759-No; Tue, 04 Jul 2023 04:07:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGb3u-00071U-In for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 04:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGb3u-0000z3-0V for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 04:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGb3t-0000q1-Rk for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 04:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Milan Zamazal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Jul 2023 08:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64445 X-GNU-PR-Package: emacs Original-Received: via spool by 64445-submit@debbugs.gnu.org id=B64445.16884579653154 (code B ref 64445); Tue, 04 Jul 2023 08:07:01 +0000 Original-Received: (at 64445) by debbugs.gnu.org; 4 Jul 2023 08:06:05 +0000 Original-Received: from localhost ([127.0.0.1]:34940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGb2y-0000oo-MR for submit@debbugs.gnu.org; Tue, 04 Jul 2023 04:06:05 -0400 Original-Received: from petrel.zamazal.org ([37.205.9.215]:43464 helo=zamazal.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGb2u-0000oH-Nk for 64445@debbugs.gnu.org; Tue, 04 Jul 2023 04:06:03 -0400 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=zamazal.org; s=ed25519; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=n34+dY2YEYJ6CXd+5PY8p9eTyxZFT1OQjJ9kHHadqbs=; b=h3kFGhx6VgsxQK+8e0K7jAF2NR jcfNb5UyDBTLbfj6gyHjec6CUd53h3PP+lfpEDciTZ8kKbxFPkhxB7U6t5Cg==; Original-Received: from cst-prg-100-231.cust.vodafone.cz ([46.135.100.231] helo=finch) by zamazal.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qGb2q-0005df-1r; Tue, 04 Jul 2023 10:05:57 +0200 In-Reply-To: <87a5wcsdpg.fsf@yahoo.com> (Po Lu's message of "Tue, 04 Jul 2023 08:49:31 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264565 Archived-At: >>>>> "PL" =3D=3D Po Lu writes: PL> Milan Zamazal 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 =E2=80=9CPermission denied=E2=80=9D. 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 =E2=80=9CStorage=E2=80=9D permission as reported by th= e system. >>=20 >> 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=E2=80=99t find it= also >> anywhere else), I don=E2=80=99t 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=E2=80=99t 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=E2=80=99t 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 =E2=80=98find -name "*emacs*"=E2=80=99 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=E2=80=99s an = Emacs bug. Please tell me if there is anything I can do to help identifying the cause of the problem.