Skip to content

Instantly share code, notes, and snippets.

@kleo
Last active July 29, 2024 16:47
Show Gist options
  • Save kleo/1008589dd76f0614969bbc226feae0cf to your computer and use it in GitHub Desktop.
Save kleo/1008589dd76f0614969bbc226feae0cf to your computer and use it in GitHub Desktop.
enable and disable phantom process killer via adb

Disable phantom process killer

https://github.com/KitsunedFox/termux-monet?tab=readme-ov-file#phantom-process-killer

$ adb shell /system/bin/device_config set_sync_disabled_for_tests persistent

$ adb shell /system/bin/device_config put activity_manager max_phantom_processes 2147483647

$ adb shell /system/bin/settings put global settings_enable_monitor_phantom_procs false

Enable phantom process killer

https://www.reddit.com/r/termux/comments/11tkms8/comment/jcjuldr/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

$ adb shell /system/bin/device_config set_sync_disabled_for_tests none

$ adb shell /system/bin/device_config put activity_manager max_phantom_processes 32

$ adb shell /system/bin/settings put global settings_enable_monitor_phantom_procs true 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment