Skip to content

Instantly share code, notes, and snippets.

View ryunosukem's full-sized avatar

Ryu ryunosukem

View GitHub Profile
@ryunosukem
ryunosukem / auto_data_enable.sh
Created May 9, 2026 09:28
AdChecker Pixel auto-recovery for mobile data after rotation
#!/data/data/com.termux/files/usr/bin/bash
# Pixel 5a auto data recovery script.
# rotation で GCE worker から `svc data enable` が届かない時の保険:
# Pixel 自身が 30 秒ごとに mobile_data 状態を見て OFF なら ON に戻す。
LOG="$HOME/auto_data.log"
adb start-server >/dev/null 2>&1
adb connect localhost:5555 >/dev/null 2>&1
while true; do