android 的ethernet frameworks層移植

來源:互聯網
上載者:User

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了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.