wifiadb

Re-enables Android Wireless debugging automatically after reboot.

On many devices (tested on ONN tablets, Android 16) the ROM clears the wireless-debugging switch at every boot, and there is no API a normal app can call to set it back — the flag is writable only by the Settings app itself. wifiadb is an accessibility service that taps the Wireless debugging Quick Settings tile shortly after boot, verifies the switch, then returns the device to the launcher. Lab utility, not a Play app.

Download

Install: adb install wifiadb-release.apk · Full hash: a34c8ab75e632d0caf6adbe74b4dff8be9fd91367b904f33fc974dbd15675f0e
Source and build notes: github.com/Jocala/wifiadb

Setup — once per device

  1. Enable the Quick Settings tile. Developer options → Quick settings developer tiles → Wireless debugging. The app taps this tile, so without it there is nothing to tap.
  2. Set the lock screen to None. A locked boot runs no user code, so nothing can heal it.
  3. Install the APK and enable the accessibility service. Open the app and tap Open accessibility settings, then switch wifiadb on.

No root and no special permission to provision — enabling the accessibility service is the entire setup. An accessibility service can operate the Settings UI, and on this ROM that is the only writer of the setting, so the app reads the flag back afterwards to confirm the tap took. Read the source before enabling: github.com/Jocala/wifiadb.

Verify

adb shell settings get global adb_wifi_enabled   # expect 1

Expected on a boot that needed fixing:

onServiceConnected enter
onServiceConnected receiver registered
ensure start cycle=false reason=service-connected
global adb_wifi_enabled isOn=false cycle=false
tile found checked=false needOffFirst=false
ensure finish ok=true turned on

Note: the heal lands within the first minute after boot, and the system log buffer turns over inside that same window — so if you have to scan for the new ADB port before you can connect, these lines are usually gone by the time you look. That is not a failure. The app's own status screen keeps the last result and its timestamp.

Notes

wifiadb 1.0 · source · lab utility, no tracking beyond site analytics