Port ethernet frameworks layer for Android

Source: Internet
Author: User

1 first find this websiteHttp://git.android-x86.org /? P = platform/frameworks/base. Git; A = commitdiff; H = 73c8442658704e5749c5fc6fd6f93c15fcf1d7c6 # patch1

2 downloadHttp://android-x86.googlecode.com/files/0001-merge-ethernet-support-to-eclair.patch

3. Go to the frameworks/directory, copy the patch to some directories, and install the patch.

Patch-P1 <../0001-merge-ethernet-support-to-eclair.patch

4. Then make will be wrong

Frameworks/base/Ethernet/Java/Android/NET/Ethernet/iethernetmanager. aidl: 19: Couldn't find import for class android.net. ethernet. ethernetdevinfo is in the build/CORE/pathmap. modify the value of the global variable frameworks_base_subdirs In the MK file, that is, add our Ethernet path. This is because the frameworks_base_subdirs variable is used to declare and tell the compiling system the directory path of the Java aidl file to be compiled. 5. Then, make will prompt you have tried to change the API from what has been previously released in vrd2e an SDK. please fix the errors listed above, which is about 6. XML or 7. XML error. In this case, find and change the XML file, change the value of type_wifi to 2, and change the value of another value to 2.6, and then make, ethernet APIs are added to our frameworks layer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.