Closed axet closed 8 years ago
Is there an Android device you know of, that doesn't have route or ip, but does have ping?
Also it looks like the commands to ping might not be correct -- see my comment in your CL.
I'm not yet happy about a solution. On my android phone it works only when I use wifi connection and it stuck for a 1 second with no result while I'm on mobile data.
And yes I did test it booth -t 1 && -t 0 works on my phone and route table are empty (may be all devices with android 6.0 have no correct route table). My device Nexus 5, it have route table, but it missing default route.
Google documentation says we should use RouteInfo... lets me dig for a day...
Seems not worth it. I can't ensure gateway have been detected with any option:
And I do not like ping timeout issue. So. I'll close pull request, and keep changes in my tree. Feel free to merge manually.
Thanks for trying!
Not every android has proper route table. But for some it works. Also I add ping discover. Not sure if it is good idea :) Not every routers ppp connections respond to ping -t 0.