解除安卓12-13Termux 等应用被系统强制结束(错误码 9)“Phantom Process Killer” 的限制。

发布于 2025-08-16  71 次阅读


最近在使用一个Framework.jar对通知有限制的A13学习机时,发现无法通过通知栏授权shizuku等adb应用,于是寻找方法。

明明很简单的方法,却没多少资料,最后通过AI解决了。

你可以通过以下 ADB 命令来关闭此限制:

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 settings put global settings_enable_monitor_phantom_procs false

若使用甲壳虫adb工具:

/system/bin/device_config set_sync_disabled_for_tests persistent
/system/bin/device_config put activity_manager max_phantom_processes 2147483647
settings put global settings_enable_monitor_phantom_procs false

最后重启即可


若是一枝枯枝,终有开花的一天