Compile Android source code in Ubuntu9.10

Source: Internet
Author: User
Tags wubi
1: Ubuntu is installed. Because the current computer basically has a DVD or CD drive, I recommend you download the Ubuntu CD or DVD image from the Internet and then install it on your own, there are many ways to install Ubuntu9.10 and Windows dual systems on the Internet, mainly in two ways: 1 is to use wubi to install, this method is the simplest, the most silly, but the disadvantage is, linux partitions can be seen in Windows, and some linux partitions are replaced by Windows.

1: Install Ubuntu 9.10

Since most computers now have DVD or CD-based optical drives, we recommend that you download Ubuntu 9.10 CD or DVD images from the Internet and then install them on your own, there are many ways to install Ubuntu 9.10 and Windows dual systems from hard disks on the Internet, mainly in two ways: 1. Use wubi for installation. This installation method is the simplest and most foolish, however, the disadvantage is that linux partitions can be seen in Windows environments, which may cause linux to be deleted from Windows. 2. Use grub to modify the boot guide, so as to install the dual-system, but the method described on the Internet that uses this method has been tested many times and is rarely successful.

You can use the hard disk partitioning tool to separate unused hard disk space before the dial-up is installed. For Windows 7, you can use the built-in hard disk management tool to delete the original partition volume, separate an unused hard disk space for Ubuntu 9.10, start the system with a CD, and start the installation, you must install Ubuntu 9.10 to a previously unavailable location when selecting the Ubuntu 9.10 installation location. After the installation is complete, the dual-system can be started smoothly.

2: Download the Android source code

Open the terminal and use apt-get install to install the git-core and curl packages respectively.

Create a directory for storing andoridSrc and create a bin directory in it.

Mkdir andoridSrc

Cd andoridSrc

Mkdir bin

Cd bin

Curl http://android.git.kernel.org/repo> repo

Sudo chmod a + x repo

Then, create a source code storage directory android under the andoridSrc directory.

Mkdir android

Cd android

../Bin/repo init-u git: // android.git.kernel.org/platform/manifest.git

Related Article

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.