GNU bug report logs - #79120
30.1; Emacs android can't execute programs in /system/bin (127)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Theia <theia.j.ware@HIDDEN>; dated Tue, 29 Jul 2025 05:16:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 79120 <at> debbugs.gnu.org:


Received: (at 79120) by debbugs.gnu.org; 29 Jul 2025 11:14:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 29 07:14:04 2025
Received: from localhost ([127.0.0.1]:60859 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ugiHT-0005AX-Pl
	for submit <at> debbugs.gnu.org; Tue, 29 Jul 2025 07:14:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55492)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ugiHR-00059X-5w
 for 79120 <at> debbugs.gnu.org; Tue, 29 Jul 2025 07:14:02 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ugiHL-0001VN-QQ; Tue, 29 Jul 2025 07:13:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Mq/zcC1jZglicen4TvOHHms/kbW5auLE88YPrqAw27k=; b=JF+JUUDLt23a
 CTHkQHEsKF2WLWAWeBig12wYUIz5YwHTBmzlBK+njO0DYj8N6U4h+8srSrB4tsGl13DhC7qMqnFji
 DN2g5NAT4dzoy4UIHlGQchO2RbUvGWk3NRP2pRK5CAyTTCwJh71tSvUfzdB1efFx2vzGsBeH7RzQr
 yLiHyeaR7tLvsqxUK+gq9mhgskObhJj76RRLVBy6T6Dkg1uN80bKi4lgcgYJoA+A8aQDXmWnb4A/X
 Lx5iYy33YC+gvdHFq/M2P+JgYGEIXocjLW6R5BSv3lVJfUrEDe56sfGiHpQXnqzE3ZkcggnlHaYRs
 9ag6LoXZZ2PFQq3YuEQnEA==;
Date: Tue, 29 Jul 2025 14:13:52 +0300
Message-Id: <86tt2vw8pb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Theia <theia.j.ware@HIDDEN>,
 Po Lu <luangruo@HIDDEN>, waylandthrowaway@HIDDEN
In-Reply-To: <CALfzfZ=eFH5PectWNOSuB1XVk7NHZkvZ4RhtvrcOzY7sPnKw_A@HIDDEN>
 (message from Theia on Mon, 28 Jul 2025 13:16:15 -0700)
Subject: Re: bug#79120: 30.1;
 Emacs android can't execute programs in /system/bin (127)
References: <CALfzfZ=eFH5PectWNOSuB1XVk7NHZkvZ4RhtvrcOzY7sPnKw_A@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79120
Cc: 79120 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Theia <theia.j.ware@HIDDEN>
> 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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79120; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Jul 2025 05:15:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 29 01:15:07 2025
Received: from localhost ([127.0.0.1]:59500 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ugcg6-0003jV-WE
	for submit <at> debbugs.gnu.org; Tue, 29 Jul 2025 01:15:07 -0400
Received: from lists.gnu.org ([2001:470:142::17]:48630)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <theia.j.ware@HIDDEN>)
 id 1ugUHH-0005aS-Qn
 for submit <at> debbugs.gnu.org; Mon, 28 Jul 2025 16:16:56 -0400
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 <theia.j.ware@HIDDEN>)
 id 1ugUGs-0005la-LH
 for bug-gnu-emacs@HIDDEN; Mon, 28 Jul 2025 16:16:39 -0400
Received: from mail-yb1-xb42.google.com ([2607:f8b0:4864:20::b42])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <theia.j.ware@HIDDEN>)
 id 1ugUGq-0001oK-77
 for bug-gnu-emacs@HIDDEN; Mon, 28 Jul 2025 16:16:29 -0400
Received: by mail-yb1-xb42.google.com with SMTP id
 3f1490d57ef6-e8e1ef181bcso874524276.3
 for <bug-gnu-emacs@HIDDEN>; Mon, 28 Jul 2025 13:16:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1753733786; x=1754338586; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=SHE+mkWOUmfIlHcX6Kre9pUPaFiA4Fr4JALsMMHPCVw=;
 b=iCICDtSPMvUSytLHzIPwcYePTVjiUZQoEnf+oMKDAwwixDf11ZuFsz+PIKMFsLjufN
 AgQJc1qoxhjhr0OFGliHzmQBz+r3qIAUbQSZ32MyAwmynoKL9Jgt4Drcmyifsf4HsVlY
 YKCH23+t6RRjv5O2HVK/6t/NViU8oPSRVtub1hUB3x4HRX1T+9iA7T1cAyxbC6Z7T674
 d/iF76CX/Bwqsb3sJpVorGkxB+RxS5kQ7y5MWDefYgh9C1+1pcTghxc0zYV+QVWQPLht
 dHzsNaeARNuGU3eG+pqGIa/FSC2uHtafnrnquZS6ijh/guCg482Qi5lK90iq3P+OtVJu
 F79Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1753733786; x=1754338586;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=SHE+mkWOUmfIlHcX6Kre9pUPaFiA4Fr4JALsMMHPCVw=;
 b=URHuyETzwHrlUlayTctZL+2ShTTMK0k3vvlAI5S1iKLzLqGLnVDtur7nUlYYioXA3N
 +Vty01aCNS/Bgxy5UW4TY+pwxqfLUoW0+53Mzta3CuZCLxYf9CwK0+jrobCnE9UQHTU9
 +eTJu34D0pzunIMkrwoHQ7RtnD+zWC9HyXyQN2jLW0LaJhSqwXHQMdSnuNeSTD652TqA
 JePss9m2DjKDI1qRaWzs9dnZCz7msVCBjohs05Kn/GfCa/QwxrWaK7oPfuevHiUguReP
 /axpGTMdWEDMrpbIjRyUyXf7YD7Pph3vnqbGVoGqres8XFFvhyW7ORpBdpqTIJHKWk0D
 gzPw==
X-Gm-Message-State: AOJu0YxpftqJaJtGzqg3/olnZt3xMrBdzCZbA8ZxXwZOOggxjCgoo8LZ
 KoqkRwCDCa+wkaJtwKAq4g2Oe9dTNB3RTFgh6VR50ZQnpnmqLM7J7NFEVaNL995HdMqki2wFlbG
 vC/fC06cqvcn73dutmXCVJeAxiP/KxgJ5Q4VZtK4jXg==
X-Gm-Gg: ASbGncuM2D9S6Y7E5+8QO4x7DZDdBxuS14ONqnF0TRS67qIrLqlYqt+mRTzKVsXuRYn
 ANSsGCcIX365HM9oh9VF9laVdicMw0KEJCN1Gdyv5yi6idzFogUeNpSsuSVIaQiyUIcrxauM9wE
 OaaD80fldwFrffZTdMydwAWLNECTSYcq+EfUtLPG63cWttmCIOnNZqS4am+1ctf7cdWmqHtKx7I
 iHYtmqKH2QMSgu//YuWTwUMVoh9Mbc055gDAF8=
X-Google-Smtp-Source: AGHT+IHZpRPB8cfePLsfU3gyWjeOiS8yT5tTfsY1tufz8R9gvGgTLPpE3Ej3V5SMDasPLpvY5KoOu3kfQtE2SK2tnEc=
X-Received: by 2002:a05:6902:13cf:b0:e8e:1a86:4190 with SMTP id
 3f1490d57ef6-e8e1a8643camr4246822276.30.1753733786066; Mon, 28 Jul 2025
 13:16:26 -0700 (PDT)
MIME-Version: 1.0
From: Theia <theia.j.ware@HIDDEN>
Date: Mon, 28 Jul 2025 13:16:15 -0700
X-Gm-Features: Ac12FXxjx7yjmqVJoBBV8hn5GZp4gPVcrIm8RhCVu0dZ9ZiUFKcArZMm3aJrM8Q
Message-ID: <CALfzfZ=eFH5PectWNOSuB1XVk7NHZkvZ4RhtvrcOzY7sPnKw_A@HIDDEN>
Subject: 30.1; Emacs android can't execute programs in /system/bin (127)
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::b42;
 envelope-from=theia.j.ware@HIDDEN; helo=mail-yb1-xb42.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 29 Jul 2025 01:15:05 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

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.


In GNU Emacs 30.1 (build 1, aarch64-unknown-linux-android22) of
 2025-02-27 built on bookworm
Repository revision: 8ac894e2246f25d2a2a97d866b10e6e0b0fede5a
Repository branch: HEAD
Windowing system distributor 'Google', version 35.0.0
System Description:
google/sdk_gphone64_x86_64/emu64xa:15/AE3A.240806.043/12960925:userdebug/dev-keys

Configured using:
 'configure --with-png=yes --with-webp=yes --with-gif=yes
 --with-jpeg=yes --with-xml2=yes --with-sqlite3=yes --with-gnutls=yes
 --with-tiff=yes --with-selinux=yes --with-modules=yes
 --with-tree-sitter=yes --with-imagemagick=no --with-lcms2=yes
 --with-mailutils= --with-pop=no-by-default --with-harfbuzz=yes
 --with-threads=yes --with-rsvg=yes --enable-check-lisp-object-type=
 'CFLAGS= -Werror=implicit-function-declaration''

Configured features:
GIF GMP GNUTLS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOMP THREADS TIFF TREE_SITTER WEBP ZLIB

Important settings:
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
term disp-table shell pcomplete ehelp comint subr-x ansi-osc ansi-color
ring rmc iso-transl tooltip cus-start cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
android-win term/common-win touch-screen ls-lisp tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads inotify android multi-tty
move-toolbar make-network-process emacs)

Memory information:
((conses 16 52478 20929) (symbols 48 6261 0) (strings 32 15983 2245)
 (string-bytes 1 365002) (vectors 16 11628)
 (vector-slots 8 122476 10946) (floats 8 27 2) (intervals 56 803 23)
 (buffers 992 14))




Acknowledgement sent to Theia <theia.j.ware@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79120; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 29 Jul 2025 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.