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

Ehernet UI in settings menu #71

Open
AlejandroPerezRuiz opened this issue Apr 6, 2017 · 8 comments
Open

Ehernet UI in settings menu #71

AlejandroPerezRuiz opened this issue Apr 6, 2017 · 8 comments

Comments

@AlejandroPerezRuiz
Copy link

I have a particular problem with Android 7 in rpi3. I have compiled Android 7 for my rpi3 and I only have the possibility to connect via ethernet, but I am using a switch witouth DHCP, so I need to put a static IP. However, there is no option in the settings to set a static IP for ethernet, is there any way to activate this option?

@gw0
Copy link

gw0 commented Apr 14, 2017

As a workaround, you may connect over ADB and manually setup the static IP with ip or ifconfig. If you have DHCP, it automatically connects.

@ikalkov
Copy link
Member

ikalkov commented Apr 14, 2017

@gw0, are you aware of the exact command format? I tried several approaches, but without a DHCP I can't ping in either direction. I have to admit, my experiences with networt setup are very limited.

@nikiwaibel
Copy link

it seems the latest android x86 has no ethernet gui settings either. for JB and ICS there was a patch: https://github.com/gxben/aosp-ethernet

@gw0
Copy link

gw0 commented Apr 18, 2017

@ikalkov Yes, now that I finally have a working build I can confirm that the standard Linux ip command is available. It works as it should, but Android 7 uses a more complex networking setup as usual, therefore one needs to specify the routing table to use. I connected over WiFi to get into ADB and used something commands like:

$ ip link set eth0 up
$ ip addr add 192.168.1.10/24 dev eth0
$ ip route add default via 192.168.1.1 dev eth0 table legacy_network

Where 192.168.1.10 is the IP address of RPi3 and 192.168.1.1 is your gateway (eg. router or forwarding server).

@nikiwaibel
Copy link

do we really have no patch for 7.1 that integrates the ethernet settings in the Settings.apk!? i found

@nikiwaibel
Copy link

nikiwaibel commented Apr 18, 2017

do we really have no patch for 7.1 that integrates the ethernet settings in the Settings.apk!? i found

it seems there is no ethernet settings in AOSP, lineageos and android-x86 :,-(

@gw0
Copy link

gw0 commented Apr 18, 2017

@ikalkov The above commands to manually configure an Ethernet interface (even without WiFi) work, but unfortunately DNS does not (browser says net::ERR_INTERNET_DISCONNECTED). To setup DNS the only command that worked for me:

$ ndc resolver setnetdns eth0 . 8.8.8.8 8.8.4.4

So theoretically if you put this commands into init.rc it would setup Ethernet networking at boot time.

@parinpatel
Copy link

@nikiwaibel Hi
Did you find any patch for adding "Ethernet UI in the settings menu" [Android 7.1.1]?

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

No branches or pull requests

5 participants