[Samsung Gear 2] biktor_gj:
aaaaargggg.

Hosts file is fine, it's the bluetooth library which silently crashes.

Anyway, I have USB networking in a functional state. It can ping the outside world, resolve DNS queries etc. I did the 'reverse tethering' approach, and enabled rndis in the USB config for the watch. I also added a tiny script to setup the IP address and a default route. all that is working fine, but it d o e s n ' t work in the 'clockwork' side of things:

I/CheckinTask( 651): Sending checkin request (1487 bytes)
E/clockwork_proxy_native( 114): Cannot find uid for tcp connection from 10.42.0
.2:57430 to 216.58.209.238:443
D/ClockworkProxy( 725): TCP connection requested by uid=-1
D/ClockworkProxy( 725): TCP connection is not from a google app, closing it...
E/CheckinTask( 651): SSL error, attempting time correction: javax.net.ssl.SSLEx
ception: Connection closed by peer
E/clockwork_proxy_native( 114): Cannot find uid for tcp connection from 10.42.0
.2:38051 to 216.58.209.238:80
D/ClockworkProxy( 725): TCP connection requested by uid=-1
D/ClockworkProxy( 725): TCP connection is not from a google app, closing it...
D/dalvikvm( 651): GC_CONCURRENT freed 353K, 8% free 5958K/6448K, paused 6ms+4ms
, total 40ms
E/clockwork_proxy_native( 114): Cannot find uid for tcp connection from 10.42.0
.2:60279 to 216.58.209.238:80
D/ClockworkProxy( 725): TCP connection requested by uid=-1
D/ClockworkProxy( 725): TCP connection is not from a google app, closing it...
E/CheckinTask( 651): Checkin failed: https://android.clients.google.com/checkin
(request #0): java.net.SocketException: recvfrom failed: ECONNRESET (Connection
reset by peer)
E/GKI_LINUX( 707): ##### ERROR : timer_thread: tick delayed > 5 slots (-7223814

AAaand the proxy cuts off the connection while doing the checkin. Why? God knows.

Thread.setContextClassLoader(getClass().getClassLoader());
E/clockwork_proxy_native( 114): Cannot find uid for tcp connection from 10.42.0.2:37914 to 216.58.208.78:443
D/ClockworkProxy( 528): TCP connection requested by uid=-1
D/ClockworkProxy( 528): TCP connection is not from a google app, closing it...
E/clockwork_proxy_native( 114): Cannot find uid for tcp connection from 10.42.0.2:33705 to 216.58.208.78:443
D/ClockworkProxy( 528): TCP connection requested by uid=-1
D/ClockworkProxy( 528): TCP connection is not from a google app, closing it...
E/CheckinTask( 630): SSL error, attempting time correction: javax.net.ssl.SSLException: Connection closed by peer
I/AuthdNetTimeProvider( 630): Attempting to get network time from https://android.clients.google.com/checkin
E/clockwork_proxy_native( 114): Cannot find uid for tcp connection from 10.42.0.2:50137 to 216.58.208.78:443
D/ClockworkProxy( 528): TCP connection requested by uid=-1
D/ClockworkProxy( 528): TCP connection is not from a google app, closing it...
[B]E/clockwork_proxy_native( 114): Cannot find uid for tcp connection from 10.42.0.2:40660 to 216.58.208.78:443
D/ClockworkProxy( 528): TCP connection requested by uid=-1
D/ClockworkProxy( 528): TCP connection is not from a google app, closing it...[/B]
E/CheckinTask( 630): Checkin failed: https://android.clients.google.com/checkin (request #0): javax.net.ssl.SSLExc