From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 16:30:21 +0800 Message-ID: <87lefwqdsy.fsf@yahoo.com> References: <87zg4c92l4.fsf@zamazal.org> <87a5wcsdpg.fsf@yahoo.com> <871qhohziz.fsf@zamazal.org> Reply-To: Po Lu 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="24749"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64445@debbugs.gnu.org To: Milan Zamazal Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 04 10:31:25 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 1qGbRU-0006JM-U7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Jul 2023 10:31:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGbRB-0007Ur-Dj; Tue, 04 Jul 2023 04:31:05 -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 1qGbR8-0007UC-5y for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 04:31: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 1qGbR7-0006AQ-U9 for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 04:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGbR7-0001Xb-PG for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 04:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Jul 2023 08:31: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.16884594385889 (code B ref 64445); Tue, 04 Jul 2023 08:31:01 +0000 Original-Received: (at 64445) by debbugs.gnu.org; 4 Jul 2023 08:30:38 +0000 Original-Received: from localhost ([127.0.0.1]:34987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGbQj-0001Wv-Ot for submit@debbugs.gnu.org; Tue, 04 Jul 2023 04:30:38 -0400 Original-Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:43062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGbQg-0001WZ-Pq for 64445@debbugs.gnu.org; Tue, 04 Jul 2023 04:30:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688459428; bh=KjM2VY4gAIRfonlb/y2wtF1YQTL/kbqy5hNH+vht0N8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=USHKR/xlY5r88zfNr56RLsAuHjzupak8/weaxLrXbvrRRgqZTtrnxI/LCKqxtbdS0pNiEPGVf8AqTIO/Gami6FvA/XmR/ufSIPBiNnI1P0v1das7KvDLhPH7GuZGVvfbl8d4w5dt66EXcfI6f9NYmVTHX1IOgp6vmat6ZShp1JKqu6ko86ssWfgdQbzqJwdJSH8ZjzOlo6xdErHiX0Our1Wp54MMHSsgILaozydeODdCqjR5bpFYpooIvIFX16esNtP9jLIRZqHyROGHq2DMA+ewXJSfLKPklnlVSdSQe+CxjaoaxlVOUajWeVwOowVBnRNgpGXirCUAE/o+fHr6AQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688459428; bh=AaLsu4IoHfeqpOK1XsaVNhhZpW3W+QPDr9Rz95LC/I+=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=GEN7l0LImUpzuLEMSyM11oQidAI5Ev0Di/S5qwjoo7hUlsq3HSajp8pGYo2ygcFeWJENgIfOcW/I/59HXr5RIIfvJGlWNxxazeNQONS0d/YDquZNk3zsVC+fqVr9bv8zXXnqCKNmOIc9UfuusroG+ZLB8nQQNhlol3MWeKqXYcQlF6oYK1wfUpw1rN4UDLIJSgUj9CbdR0Jn6jB/3ij1YWeALlkbSVjZQwWx07bEEMwf5Go3ubf8nufaGqhF6WYT3BdXXCkvMcTBVYswc1LY7qDxX5b17AAZkwUzummvEL3oRRoDec7GfeHIWOFtnenTPVrjTPPRPWk5Wgp2NJbf2A== X-YMail-OSG: KcOSsBkVM1kDEblzY.7TXOOYAliIFnhT2aSPaCH1TfxwhYY38G_vqervbrEZ_kz o6NdxcCSvWAL6Tr5uRR2QxPianXTq3m4wUohj1.CtNs8F33ZnkmJK72iOuFs2zSh_pEFQlEFEeag Q.rGQi077XXMcIbi28wfntwcIld5g9imJTfgCbrgSLGShvII4dpEm26QtgWztNZc2qeSXoZwRYke QU.h_lOnDSJOkLTpGjIu2Y1x5042DHyi0nvOwNer17J8uT0eMN3CeJqHjsq3DthY_Wzx4tsvzfdZ KcRoWkvqPbre2_U8TQEL5wCmg8M9.r3V63SoCxu.sEGwIpZ_hiUkl6VpnYSKSVtiZ6LepeZqZG2L EI9k3B9Wm.edrkkPcB9woID7c.18Ru4C18A84Ks2aC6BfRxnZhpox8O1f3pXbS4ffue1l38tTurN .9xyQzr5zhRW19ODVRmy8KgHYvW5B9vefC2Y2xJFGTqOOaOin2uKc1D7zo77tdtiozyVZxErMXXY w4vkxf1P7txWKraR6wH.aKOtSyeSDP0whoJ0Xw0k3yeraYlo4GT2Wczx7XmHc8SgrseZmFvfEZQq uPoy7WJD15ry8hMdGcWgMtVyFX_hO_6YstCMjrtlxeCV0HqciHS3yIQ2fiIVCqIFF8NtBsWCcFCz VaLSkA_dAvRd3pt5R771j0waSLGA5U7t0omd6PhXWWDzgnDpSoranzIaZQQ_yKHDT2Z4l6_vWPOq jg8d2a.c4_d11bOTbhlDrloTmks.6SeMRIE4YYfXyz_NpBbPPEnbFjZu3aCU_ZZu2y.teRCdjmQd TviqHW.PJVt4V19TyGTipeE.vaxEjlwN1EliunGsFg X-Sonic-MF: X-Sonic-ID: bfaf5db4-c6e0-4776-8dd5-3ae7204dd155 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Tue, 4 Jul 2023 08:30:28 +0000 Original-Received: by hermes--production-sg3-67fd64777-kvs8m (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2a7a0a2e61b31235b6d52bb706057ae9; Tue, 04 Jul 2023 08:30:25 +0000 (UTC) In-Reply-To: <871qhohziz.fsf@zamazal.org> (Milan Zamazal's message of "Tue, 04 Jul 2023 10:05:56 +0200") X-Mailer: WebService/1.1.21612 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:264566 Archived-At: Milan Zamazal writes: > 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). Termux targets Android 9.0, while Emacs targets Android 13. On newer systems, this means that Emacs needs additional permissions to access the external directory. > - 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. Emacs does not ask for permissions upon startup like other Android programs do; I think that is somewhat rude. > - 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 t= he *.apk I > installed Emacs from. Again, the directories of other applications > are visible. Android unfortunately does not allow mounting application home directories using USB. > 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 a= n Emacs > bug. Please tell me if there is anything I can do to help identifying > the cause of the problem. Would you please try to determine the precise version of Android that is installed? The Storage permission is not sufficient on Android 11 and later, where you must also grant Emacs ``All Files Access'' through Settings. Thanks.