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

all: add support for Android #8020

Closed
gopherbot opened this issue May 18, 2014 · 6 comments
Closed

all: add support for Android #8020

gopherbot opened this issue May 18, 2014 · 6 comments
Milestone

Comments

@gopherbot
Copy link

by FelixAbleitner:

go version: go version go1.2.1 linux/amd64

1. compile a Go program with GOARCH=arm, GOOS=linux and GOARM=7 that uses
"net.ResolveUDPAddr("udp", someServer)"
2. put it onto an Android device and execute it using shell (only works in internal
memory afaik)

What happened?
err is set to "error reading DNS config: open /etc/resolv.conf: no such file or
directory"

What should have happened instead?
Go should resolve the address

Please provide any additional information below.
This is because /etc/resolv.conf does not exist on Android. Instead, the DNS can be
retrieved using the shell with command "getprop net.dns1".

I'm also open for any workarounds (that don't involve a complete alternative dns
implementation/library).
@mikioh
Copy link
Contributor

mikioh commented May 19, 2014

Comment 1:

Labels changed: added repo-main, release-none.

@davecheney
Copy link
Contributor

Comment 2:

I believe this issue has been addressed. We have support for android/arm in the std lib
and a passing builder on the dashboard.

Labels changed: added release-go1.4, removed release-none.

Status changed to Fixed.

@gopherbot
Copy link
Author

Comment 3 by FelixAbleitner:

Great, thanks :)

@minux
Copy link
Member

minux commented Jul 16, 2014

Comment 4:

Not yet. at least the net and os/user packages still need android specific
handling.

Status changed to Accepted.

@gopherbot
Copy link
Author

Comment 5:

CL https://golang.org/cl/142200044 mentions this issue.

@crawshaw
Copy link
Member

crawshaw commented Oct 6, 2014

Comment 6:

We have a working builder, so I am marking this as fixed. The intended android support
from the Go team assumes the use of cgo, as we have to use the Android NDK linker to
build Android apps.
I have filed issue #8877 and issue #8878 to track cgo-less net support and os/user support.

Status changed to Fixed.

@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants