Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name services and DNS don't work for cctools sessions #6

Open
GoogleCodeExporter opened this issue Aug 10, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

Started with "ssh htc-one-s -p22022":

# id
uid=10205 gid=10205 groups=1015,1028,3003

# ./gethostbyname-example www.google.com
Host name lookup failure: host 'www.google.com'


Started with "adb shell":

$ id
uid=2000(shell) gid=2000(shell) 
groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw
),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)

# ./gethostbyname-example www.google.com            
Host www.google.com : 
 Officially:    www.google.com
 Aliases:   
 Type:      AF_INET
 Address:   173.194.113.84
 Address:   173.194.113.81
 Address:   173.194.113.80
 Address:   173.194.113.83
 Address:   173.194.113.82


$ ls -ln /dev/socket/                                          
srw-rw---- 1002     1002              2014-01-17 10:29 dbus
srw-rw---- 0        1000              2014-01-17 10:29 displayd
srw-rw---- 0        3003              2014-01-17 10:29 dnsproxyd
srw-rw---- 2000     1007              2014-01-17 10:29 htc_dk
srw-rw---- 2000     1007              2014-01-17 10:29 htc_dlk
srw------- 1000     1000              2014-01-17 10:29 installd
srw-rw-rw- 0        0                 2014-01-17 10:29 keystore
srw-rw---- 0        1000              2014-01-17 10:29 mdns
srw-rw-rw- 0        1000              2014-01-17 10:29 mpctl
srw-rw---- 0        1000              2014-01-17 10:29 mpdecision
srw-rw---- 0        1000              2014-01-17 10:29 netd
srw-rw-rw- 0        0                 2014-01-17 10:29 property_service
drwxrwx--- 1001     1001              2014-01-17 10:29 qmux_radio
srw-rw---- 0        1001              2014-01-17 10:29 rild
srw-rw---- 1001     1000              2014-01-17 10:29 rild-debug
srw-rw---- 0        1009              2014-01-17 10:29 vold
srw-rw---- 1010     1010              2014-01-17 10:30 wpa_wlan0
srw-rw---- 0        1000              2014-01-17 10:29 zygote

Original issue reported on code.google.com by [email protected] on 17 Jan 2014 at 10:36

Attachments:

@GoogleCodeExporter
Copy link
Author

I'm not sure but I think CCTolls requires 
android.permission.ACCESS_NETWORK_STATE

BTW, connectbot shell session show uids and gids properly and DNS is also 
available.

Original comment by [email protected] on 17 Jan 2014 at 6:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant