Android Question USB-C Ethernet adapter configuration

Alessandro71

Well-Known Member
Licensed User
Longtime User
i'm working with an USB-C Ethernet adapter to setup a point-to-point IP connection between a phone and a server.
i'm using a Samsung phone.
as soon as the USB-C adapter is plugged-in, the "Ethernet" item in the Network Settings page become selected (it's under the VPN and Private DNS settings)
i can set a static IP for the ethernet port here (i can't use the default DHCP setting), but it also requires me to set a gateway and a DNS.
it doesn't let me confirm the setting if i don't put values in the gateway and DNS fields.
in my setup, both are not-existent, so i'd like to leave them blank.

now i have 2 questions:
1) is this a limit of the Samsung interface? is there anyone with a different phone (ideally a Pixel) and an USB-C Ethernet adapter that can verify this?
2) assuming it's an Android (not a brand-specific issue), where can i submit an enhancement/bugfix request to Google for allowing such a configuration?

as a side note, the ethernet configuration on iOS devices allows for empty gateway and DNS fields, which is a perfectly legal TCP/IP configuration.
 

drgottjr

Expert
Licensed User
Longtime User
no such settings for pixel (i have 4, 6 and 7). they're hidden. dhcp does its thing, and that's it. for android, you need a 3rd party app.
 
Upvote 0

Alessandro71

Well-Known Member
Licensed User
Longtime User
Thanks for sharing.
i must assume that not all phone models allows for Ethernet connections.
or maybe they quietly accept it, but only in DHCP mode, which is not suitable for point-to-point custom connections.
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
well, android does require a compatible ethernet adapter. but that's the least of your worries. "Since Android 9, Google has strictly enforced restrictions on non-SDK interfaces. Because EthernetManager remains a hidden system API (@hide), any attempt to bypass this via reflection will trigger a NoSuchMethodException or a security crash on API 36. Furthermore, standard apps lack the system privileges required to invoke its management features"...
 
Last edited:
Upvote 0

Alessandro71

Well-Known Member
Licensed User
Longtime User
well, android does require a compatible ethernet adapter. but that's the least of your worries. "Since Android 9, Google has strictly enforced restrictions on non-SDK interfaces. Because EthernetManager remains a hidden system API (@hide), any attempt to bypass this via reflection will trigger a NoSuchMethodException or a security crash on API 36. Furthermore, standard apps lack the system privileges required to invoke its management features"...
Indeed I’m not going to configure it via app.
it must be configured by the user
 
Upvote 0
Top