From: Po Lu Date: Thu, 4 May 2023 03:06:18 +0000 (+0800) Subject: Document another misfeature of Android X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ccef1ff072ef0eaac085aeffc7321dcf1fae2f0f;p=emacs.git Document another misfeature of Android * doc/emacs/android.texi (Android Environment): Describe how to turn off process killing. --- diff --git a/doc/emacs/android.texi b/doc/emacs/android.texi index 1f609b4ecb0..f2bcc50df23 100644 --- a/doc/emacs/android.texi +++ b/doc/emacs/android.texi @@ -293,6 +293,20 @@ 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. + In addition, Android 12 also terminates subprocesses which are +consuming CPU while Emacs itself is in the background. The system +determines which processes are consuming too much CPU in intervals of +five minutes, and terminates the process that has consumed the most +CPU time. + + Android 12.1 and Android 13 provide an option to disable this +behavior; to use it, enable ``USB debugging'' (@pxref{Android +Startup}) connect the Android system to another computer, and run: + +@example +$ adb shell "settings put global settings_enable_monitor_phantom_procs false" +@end example + @section Running Emacs in the background @cindex emacs killed, android @cindex emacs in the background, android