Eh bien, il y a beaucoup de choses à faire. Une bonne information de la recherche Google Android Porting groupe pour Ethernet là-bas, par exemple: https://groups.google.com/forum/#!searchin/android-porting/ethernet|sort:relevance/android-porting/DWg67cTX5BE/3aPtzeZpBAAJ
Voici comment vous pouvez commencer ...
Activer le pilote Ethernet correct dans votre noyau Linux, par exemple:
CONFIG_USB_USBNET=y
CONFIG_USB_NET_CDC_EEM=y
Ajouter les éléments suivants au produit fichier .mk
:
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
Activer le renouvellement DHCP et IP dans init.rc
:
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL -f dhcpcd.conf
class main
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
class main
disabled
oneshot
Mise à jour frameworks/base/core/res/res/values/config.xml
pour inclure des informations sur Ethernet pour la connectivité dans networkAttributes
chaîne-gamme ajouter:
<item>"ethernet,9,9,2,-1,true"</item>
MISE À JOUR: Ce lien peut être utile aussi bien https://github.com/gxben/aosp-ethernet
je suis intéressé aussi, s'il vous plaît gardez-moi au courant. –