If you want to add Ethernet UI support , you need manually apply the attached patches in this file which is based on Android ICS and i.MX6.
About what the patches do, here is some comments:
By default, Android has no support for Ethernet UI. So if you want to add Ethernet UI , add Ethernet state tracker & Ethernet service & Ethernet manager & Ethernet monitor like WiFi. Meanwhile we need add Ethernet display support in status bar. Here this patch can solve it.
add package directory compile.
add UI logic in setting app.
add ConnectivityManager.TYPE_ETHERNET type support in download provider’s DownloadInfo.
After applying the above patches, you will get the following features:
Use imx6-ics-ethernet-v3.zip. It has updated and fixed the following issues compared with the previous two versions:
1. fix static IP not work issue.
2. fix dns using default 8.8.8.8 issue.
3. eth0 is the default interface, no longer need to choose it from the list.
4. dhcp is default mode. and if you are using static IP. After reboot, it will restore to dhcp again.
5. no need to edit dns again.
List the bug list for update.
If using ethernet as upstream type, you need to apply the attached fix-use-ethernet-as-upstream.patch.
For JB4.2.2 and JB4.3, we have written one apk for this. Anyone who is interested in this can get it.