Fix android livesync

* Fix broken usb livesync
* Fix livesync to old version of companion
* Fix livesync to new version of companion 
(not a merge stopper) It is more self-contained (an imho a better style) to use the forEach's callback with 3 arguments and use them instead of changing the external to the callback array as a side effect.