1 首先找到這個網站http://git.android-x86.org/? p=platform/frameworks/base.git;a=commitdiff;h=73c8442658704e5749c5fc6fd6f93c15fcf1d7c6#patch1
2 下載 http://android-x86.googlecode.com/files/0001-merge-ethernet-support-to-eclair.patch
3 然後進入frameworks/目錄,並將patch複製到些目錄下,然後打上補丁
patch -p1 < ../0001-merge-ethernet-support-to-eclair.patch
4 然後make,會錯誤
frameworks/base/ethernet/java/android/net/ethernet/IEthernetManager.aidl:19: couldn't find import for class android.net.ethernet.EthernetDevInfo此時在build/core/pathmap.mk檔案中修改FRAMEWORKS_BASE_SUBDIRS全域變數的賦值,即加上我們的ethernet路徑。因為FRAMEWORKS_BASE_SUBDIRS變數是用來聲明並告訴編譯系統需要編譯的java aidl檔案的檔案夾路徑。5 再make,會提示You have tried to change the API from what has been previously released in VRD2e an SDK.Please fix the errors listed above,前面是關於6.xml或者7.xml的錯誤,此時找到xml並更改,將TYPE_WIFI的value改為2和另外的一個的value也改為2.6 再make,此時就應該可以,在我們的frameworks層就多了ethernet的api了。