1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 19:10:37 -08:00

* doc/emacs/android.texi (Android Environment): Improve doc.

This commit is contained in:
Po Lu 2023-05-02 21:13:42 +08:00
parent c47716f95b
commit f4a5e6d0e5

View file

@ -276,14 +276,22 @@ documents, so your mileage may vary.
@cindex call-process, Android
@vindex android-use-exec-loader
Android 10 and later versions of the system also prohibit Emacs
itself from running executables inside the app data directory. On
these systems, Emacs normally applies a workaround; however, this
workaround requires running all sub-processes in another subprocess,
and applying process tracing to all executables, which may prove to be
problematic for various different reasons. In that case, the
workaround can be disabled by changing the variable
@code{android-use-exec-loader} to @code{nil}.
Android 10 and later also prohibit Emacs itself from running
executables inside the app data directory, obstensibly for security
readers. On these systems, Emacs normally applies a workaround;
however, this workaround requires running all sub-processes through
another subprocess which implements an executable loader and applies
process tracing to all its children, which may prove to be problematic
for various different reasons. In that case, the workaround can be
disabled by changing the variable @code{android-use-exec-loader} to
@code{nil}.
When this workaround is in effect, process IDs retrieved through the
@code{process-id} function will be that of the executable loader
process; its child will belong to the same process group as the
loader. As a result, @code{interrupt-process}, and other related
functions will work correctly, but using the process ID returned by
@code{process-id} for other purposes will not.
@section Running Emacs in the background
@cindex emacs killed, android