Summer

Summer

Termux 解决 [Process completed (signal 9)] 错误

135
2023-11-29
Termux 解决 [Process completed (signal 9)] 错误

由于Google在Android12L开始加入了最大进程数限制🫠,这样导致我们在Termux中运行proot容器时会出现 Process completed (signal 9) - press Enter 的错误,那么我们就把这玩意关掉吧。😀

无 Root

Android12L~Android14

adb shell "settings put global settings_enable_monitor_phantom_procs false"

Android12

adb shell "/system/bin/device_config set_sync_disabled_for_tests persistent; /system/bin/device_config put activity_manager max_phantom_processes 2147483647"

有 Root

Android12L~Android14

su -c "settings put global settings_enable_monitor_phantom_procs false"

Android12

su -c "/system/bin/device_config set_sync_disabled_for_tests persistent; /system/bin/device_config put activity_manager max_phantom_processes 2147483647"