emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/android ccef1ff072e: Document another misfeature of Android


From: Po Lu
Subject: feature/android ccef1ff072e: Document another misfeature of Android
Date: Wed, 3 May 2023 23:06:43 -0400 (EDT)

branch: feature/android
commit ccef1ff072ef0eaac085aeffc7321dcf1fae2f0f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Document another misfeature of Android
    
    * doc/emacs/android.texi (Android Environment): Describe how to
    turn off process killing.
---
 doc/emacs/android.texi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]