GNU bug report logs -
#79120
30.1; Emacs android can't execute programs in /system/bin (127)
Previous Next
Full log
View this message in rfc822 format
> From: Theia <theia.j.ware <at> gmail.com>
> Date: Mon, 28 Jul 2025 13:16:15 -0700
>
> With a fresh app install on Android 15+:
> 1. Launch emacs
> 2. M-x term, RET
> 3. Error is written in buffer *terminal*:
>
> Process terminal exited abnormally with code 127
>
> When I first started using emacs on android I assumed this was normal
> and immediately jumped to using emacs with termux. However, a number
> of built-in packages (term, tramp, etc) assume that /system/bin/sh (or
> other programs) are executable. I'm guessing this is some change in
> security on Android's part, but it's unclear to me the exact issue.
>
> I've tested this on my phone and in an emulator. I acquired the package
> for this test from f-droid.
>
> For what it is worth, /system/bin/sh can be called from termux on
> Android 15+, so there must be some way to get it to work.
Po Lu, could you perhaps look into this?
This bug report was last modified 4 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.