HI, Allen I have tried on Android 4.4 device, don't need to update the Regex, it work. And on Andorid 5.0, seems the problem is that framework didn't use the usb0 as default interface, and it think it didn't connect to network. but ping yahoo.com is work in shell.
So I think we should set the default interface as usb0, but "resolver setdefaultif" didn't support in 5.0. I don't know how to set the default interface now. On Sunday, November 30, 2014 1:06:21 PM UTC+8, Allen Curtis wrote: > > I forgot to mention, the information provided was for JB. LP probably has > similar configuration files. > > On Thursday, November 27, 2014 9:43:45 AM UTC-8, [email protected] wrote: >> >> HI, Robert >> >> resolver setdefaultif <iface> has been removed on Android 5.0, how could >> we make it now. >> >> with seting the IP for USB0 and "resolver setnetdns <netId> <domains> >> <dns1> <dns2> ..." >> I could ping yahoo.com in shell, but could not surf the internet in >> Broswer/Apps, >> I also tried "network default set usb0", but not work too. >> Anything I missed? >> >> On Thursday, July 17, 2014 1:56:40 AM UTC+8, Robert Greenwalt wrote: >>> >>> you also need to set eth0 as your default for dns via >>> resolver setdefaultif <iface> >>> >>> >>> On Wed, Jul 16, 2014 at 10:37 AM, Allen Curtis < >>> [email protected]> wrote: >>> >>>> Hello Robert, >>>> >>>> I can ping the DNS server but nslookup fails. This is what I get. >>>> (Note: eth0 is actually usb0) >>>> >>>> root@sabresd_6dq:/ # ndc resolver setifdns eth0 192.168.10.40 >>>> 192.168.10.45 >>>> 200 0 Resolver command succeeded >>>> root@sabresd_6dq:/ # busybox nslookup yahoo.com >>>> Server: 0.0.0.0 >>>> Address 1: 0.0.0.0 >>>> >>>> nslookup: can't resolve 'yahoo.com' >>>> 1|root@sabresd_6dq:/ # ifconfig >>>> root@sabresd_6dq:/ # ifconfig eth0 >>>> eth0: ip 192.168.1.2 mask 255.255.255.0 flags [up broadcast running >>>> multicast] >>>> root@sabresd_6dq:/ # ping 192.168.10.40 >>>> PING 192.168.10.40 (192.168.10.40) 56(84) bytes of data. >>>> 64 bytes from 192.168.10.40: icmp_seq=1 ttl=126 time=12.4 ms >>>> 64 bytes from 192.168.10.40: icmp_seq=2 ttl=126 time=1.61 ms >>>> ^C >>>> --- 192.168.10.40 ping statistics --- >>>> 2 packets transmitted, 2 received, 0% packet loss, time 1001ms >>>> rtt min/avg/max/mdev = 1.618/7.044/12.470/5.426 ms >>>> root@sabresd_6dq:/ # ping 192.168.10.45 >>>> PING 192.168.10.45 (192.168.10.45) 56(84) bytes of data. >>>> 64 bytes from 192.168.10.45: icmp_seq=1 ttl=126 time=10.5 ms >>>> 64 bytes from 192.168.10.45: icmp_seq=2 ttl=126 time=9.54 ms >>>> >>>> >>>> >>> -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
