How to keep an ODROID device connectable via adb?
For the scope of the project at that time there were two measures that helped:


Installing SSHelper to add SSH support (can use SSH instead of adb and restart adb daemon in case it gets locked)
Hacky, but a background service could be used to periodically reset adb connections: this could cause trouble depenending on what commands need to run and for how long