Skip to main content

What is it?

Android 12 introduced the Phantom Process Monitor — it aggressively kills background processes. Your OpenClaw gateway and Termux sessions are at risk. Symptom:

Step 1 — Enable Developer Options

Go to Settings → About Phone → tap Build Number 7 times.

Step 2 — Enable USB Debugging

Settings → Developer Options → USB Debugging. Connect phone to PC.

Step 3 — Run ADB commands (on PC)

Step 4 — Verify

This setting persists across reboots. One-time setup.

Fix via Wireless ADB (No USB cable, Android 11+)

  1. Go to Settings → Developer Options → Wireless Debugging
  2. Note the IP:Port shown
  3. In Termux:

Fix via Shizuku

Shizuku provides ADB-level access without a PC. Install from Play Store, activate, then run the commands via a Shizuku-compatible terminal.

tmux as a failsafe

Always run inside tmux — even if the terminal window dies, the tmux session survives: