From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: xiliuya via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61385: 30.0.50; android eshell cannot executable file under ~/ directory Date: Fri, 10 Feb 2023 20:49:58 +0800 Message-ID: <87sffdwugy.fsf@aliyun.com> References: <74B87616-449F-40E7-A0B3-42883B1AA91A@aliyun.com> <875yca46bq.fsf@yahoo.com> <87cz6ixhs8.fsf@aliyun.com> <87o7q13hwt.fsf@yahoo.com> Reply-To: xiliuya Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26899"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.14; emacs 29.0.60 Cc: 61385@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 10 17:59:16 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 1pQWjz-0006rQ-El for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Feb 2023 17:59:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQWjq-0004Ky-Uf; Fri, 10 Feb 2023 11:59:06 -0500 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 1pQWjn-000470-SH for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 11:59:04 -0500 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 1pQWjn-000468-Il for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 11:59:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQWjn-0001WH-Ex for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 11:59:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: xiliuya Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 16:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61385 X-GNU-PR-Package: emacs Original-Received: via spool by 61385-submit@debbugs.gnu.org id=B61385.16760483265772 (code B ref 61385); Fri, 10 Feb 2023 16:59:03 +0000 Original-Received: (at 61385) by debbugs.gnu.org; 10 Feb 2023 16:58:46 +0000 Original-Received: from localhost ([127.0.0.1]:37998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQWjU-0001Uy-Mg for submit@debbugs.gnu.org; Fri, 10 Feb 2023 11:58:46 -0500 Original-Received: from out30-85.freemail.mail.aliyun.com ([115.124.30.85]:48010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQSwF-0002wk-CX for 61385@debbugs.gnu.org; Fri, 10 Feb 2023 07:55:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aliyun.com; s=s1024; t=1676033730; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; bh=57TbNLzrziQTjGGf32Hy+n3x36zjumQhxT+N95iDCVE=; b=frIfcuM75A3q56DpCNVyJDtrAB6FTNfe01ACvtcuui4XGkc/Al+dCQNGXeyrF5lb1UMxBfEQQSdBPVIql10ZISmXvb6d1kVU8ByZLrsxSwRXlGvYZQB+BVsFyXT4hjPics8Duok6LPk6ybAgkdhKditDIF2V94w4hxCyh3/7LNw= X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1072498|-1; CH=green; DM=|CONTINUE|false|; DS=CONTINUE|ham_system_inform|0.176318-0.00178579-0.821896; FP=0|0|0|0|0|-1|-1|-1; HT=ay29a033018045192; MF=xiliuya@aliyun.com; NM=1; PH=DS; RN=2; RT=2; SR=0; TI=SMTPD_---0VbKVS1._1676033726; Original-Received: from xiliuya-pc(mailfrom:xiliuya@aliyun.com fp:SMTPD_---0VbKVS1._1676033726) by smtp.aliyun-inc.com; Fri, 10 Feb 2023 20:55:27 +0800 In-reply-to: <87o7q13hwt.fsf@yahoo.com> X-Mailman-Approved-At: Fri, 10 Feb 2023 11:58:43 -0500 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:255296 Archived-At: Po Lu writes: > xiliuya writes: > >> Po Lu writes: >> >>> xiliuya writes: >>> >>>> --text follows this line-- >>>> >>>> My operation is as follows: >>>> 1. cp /system/bin/sh . >>>> 2. chmod 755 sh >>>> 3. ./sh >>>> 4. libandroid-emacs.so: /data/data/org.gnu.emacs/files/sh: Permission >>>> denied >>> >>> This is described under (emacs)Android Environment. On Android, system >>> security policy prevents launching executables from read-write >>> directories. >>> >>> Free versions of Android allow you to obtain access as the super user. >>> In that case, run: >>> >>> C-x C-f /su:/data/data/org.gnu.emacs/files RET >>> >>> and run the binary as the super user instead. >> >> I see. I found another alternative is to modify AndroidManifest.xml: >> >> - android:targetSdkVersion="33"/> >> + android:targetSdkVersion="28"/> > > The Android developers say they will progressively block applications > targeting older SDK versions from being installed, so that is not a real > long-term option. Yes, that only solves a small part of the problem. Super users are more convenient. -- xiliuya :)