GNU bug report logs -
#61385
30.0.50; android eshell cannot executable file under ~/ directory
Previous Next
Reported by: xiliuya <xiliuya <at> aliyun.com>
Date: Thu, 9 Feb 2023 09:36:02 UTC
Severity: normal
Found in version 30.0.50
Done: xiliuya <xiliuya <at> aliyun.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
xiliuya <xiliuya <at> aliyun.com> writes:
> Po Lu <luangruo <at> yahoo.com> writes:
>
>> xiliuya <xiliuya <at> aliyun.com> 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.
This bug report was last modified 2 years and 88 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.