>>964の問題は、
https://community.aidlux.com/postDetail/593#%E7%A6%81%E7%94%A8%E6%9D%80%E6%AD%BB%E8%99%9A%E8%BF%9B%E7%A8%8B
を参考に解決した。
android12以降ではadbでmax_phantom_processesというものがあるらしい。初期では、

adb shell "/system/bin/dumpsys activity settings | grep max_phantom_processes"

で設定値を確認できる。初期値はAndroid 12で32だった
これをmax_phantom_processesで設定できる最大値の2147483647に設定すれば実質的に実行可能プロセス数が無限になって自動キルを無効にできる
コマンドは、

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

で設定できる
使用後は、

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

と初期値に戻しておく。
adbはtermuxを挟んでワイヤレスデバッグで打つと便利
adb接続はよくあるadb pairでいけた