Compile cyanogen's Rom by yourself

Source: Internet
Author: User
I used the ROM of CM 4.1.11.1 for some time in HTC G2. It feels good except occasionally (twice a day .. Is it also called occasional ?) Besides the acore error, it is nice to have others, including fast speed.

There is an idea to pull down his code. If you have any problems or some interesting features, you can download and compare the code to see the implementation, and then start Google resources, it is best to compile the Rom.

Current work records
1. Find the code repository. Note that the cyanogen Code is based on the dream machine and may need to be fine-tuned for the magic machine.
Thanks to cyanogen, he shared all his modifications online.
Http://github.com/cyanogen

And he has set a repo setting.
Http://github.com/cyanogen/android. here there is a readme, why do you have to go to another entire code tree?

2. After the code is ready, extract some closed-source items as he said.

To get all the proprietary binaries from your ADP1 device, run the
"extract-files.sh" script in the vendor/htc/dream-open directory.
This requires that you have the adb tool in your path and a
compatible system image on your ADP1 device (Android 1.6).

Well, everything except the htclogkernel (which should be irrelevant) cannot be found.

3. Create a buildspec. mk File

TARGET_PRODUCT:=aosp_dream
TARGET_BUILD_VARIANT:=eng
TARGET_BUILD_TYPE:=release

Then make it and find that the compilation is not successful.
The files in the vendor/HTC/sapphire-Open folder cannot be found. (I'm not sure if it's because I used the magic machine when exporting the previous data, so I need the magic opensource folder)
The directory is also found on the official git branch of Android. Copy the Directory and continue to make.

Then, the product aosp_dream... cannot be found. Check whether aosp_dream exists in the vendor/aosp/products/directory. Only aosp_dream_us
Change buildspec to aosp_dream_us and then make. Start normal Compilation

4. A compilation error occurs, indicating that the method does not overwrite the method of its parent class @ override.
When Google discovered that Java 5 thought that the override keyword could not be used to implement an interface and could only be used for inheritance, while Java 6 did not need to be so much.
So download Java 6 JDK, replace the default Java environment with update_java-alternatives-S, and re-make

5. According to the latest findings, exporting the failed htclogkernel from the mobile phone may cause compilation failure... Depressed ..

My wife urged me to do prenatal education .. Let's look at this question tomorrow.

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.