USB to Ethernet adapter on Android 6.0 or later

729 views
Skip to first unread message

Mark

unread,
Apr 6, 2017, 8:52:50 PM4/6/17
to android-porting
Hi

I need to use an USB to Ethernet adapter on Android, with Loliipop5.1.1.  I can just plug in the USB to Ethernet adapter, it will create network interface usbnet0, I can connect to internet. But with the latest Android 6.0.1 , when I plugin USB to Ethernet adaptor, no interface created, no ip, can't connect to internet, it seems like something is missing, any idea how to setup for USB to Ethernet adapter in Android 6.0.1 image?

Also  to setup ip manually from she'll, I can ping Google.com, but I still can't see Ethernet connected in UI settings screen, so there is no internet from any Java apps, any ideas on how to fix it?

Thanks in advance
--Mark

Amit Pundir

unread,
Apr 10, 2017, 10:01:13 AM4/10/17
to donm...@gmail.com, android-porting
Check your device overlay options. See if "networkAttributes" support
ethernet to begin with.

Regards,
Amit Pundir

>
> Thanks in advance
> --Mark
>
> --
> --
> unsubscribe: android-porti...@googlegroups.com
> 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 android-porti...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Mark

unread,
Apr 11, 2017, 11:35:24 PM4/11/17
to android-porting, donm...@gmail.com
Thanks Amit

In my overlay\frameworks\base\core\res\res\values\config.xml  I do have :

    <string-array translatable="false" name="networkAttributes">
        <item>"ethernet,9,9,9,-1,true"</item>
        <item>"wifi,1,1,1,-1,true"</item>
    </string-array>

What's the next thing to check?
Reply all
Reply to author
Forward
0 new messages