adb over wifi always on
warning: could be dangerous cause adb remote connections seem without any password. consider protect that with some proxy.
turning on:
1 | setprop service.adb.tcp.port 5555 |
turning off:
1 | setprop service.adb.tcp.port -1 |
set things under /data/adb/services.d/
and make them executable
1 | mount -o remount,rw / |
create this under /system/etc/init.d/
1 | service adb_wifi_enable /system/bin/adb_wifi_enable.sh |