Ubuntu9.10下获取Android源码
《Ubuntu9.10下获取Android源码》由会员分享,可在线阅读,更多相关《Ubuntu9.10下获取Android源码(5页珍藏版)》请在装配图网上搜索。
1、Ubuntu9.10下获取Android源码首先根据首先需要安装开发环境,需要如下包: Required Packages: Git 1.5.4 or newerand the GNU Privacy Guard. JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with Override./只能用JDK5,JDK6不能兼容Override flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (option
2、al), build-essential, zip, curl. $ sudo apt-get installgit-core gnupgsun-java5-jdkflex bison gperflibsdl-dev libesd0-devlibwxgtk2.6-dev build-essential zipcurl libncurses5-dev zlib1g-dev You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflo
3、ws, etc./这个是帮你寻找内存漏洞,堆溢出,数组越界溢出的工具$ sudo apt-get install valgrindUbuntu9.10的安装源已经没有JDK5了,所以需要用到9.04的安装源修改etcaptsources.list把9.04的源:deb main restricted universe multiversedeb-src main restricted universe multiversedeb main restricted universe multiversedeb-src main restricted universe multiversedeb m
4、ain restricted universe multiversedeb-src main restricted universe multiversedeb main restricted universe multiversedeb-src main restricted universe multiverseupdate之后,用sudo apt-get install sun-java5-jdk 即可像以往一样安装java 1.5安装后的基本设置:sudo update-alternatives -config javasudo update-java-alternatives -s
5、java-1.5.0-sun这时候再用java -version就能看到java 1.5已经正常工作了接下来就是安装repoTo install, initialize, and configure Repo, follow these steps:1. Make sure you have a/bindirectory in your home directory, and check to be sure that this bin directory is in your path: $ cd $ mkdir bin $ echo $PATH2. Download thereposcri
6、pt and make sure it is executable:$ curl http:/android.git.kernel.org/repo /bin/repo $ chmod a+x /bin/repo初始化repo1. Create an empty directory to hold your working files:$ mkdir mydroid$ cd mydroid2. Runrepo inittobring down the latest version of Repo with all its most recent bug fixes. You must spec
7、ify a URL for the manifest:$ repo init-u git:/android.git.kernel.org/platform/manifest.git 1. If you would like to check out a branch other than master, specify it with -b, like:$ repo init-u git:/android.git.kernel.org/platform/manifest.git -b cupcake3. When prompted, configure Repo with your real
8、name and email address. If you plan to submit code, use an email address that is associated with aGoogle account.A successful initialization will end with a message such as repoinitialized in /mydroidYour client directory should now contain a.repodirectory where files such as the manifest will be ke
9、pt.获取代码To pull down files to your working directory from the repositories as specified in the default manifest, run $ repo syncFor more aboutrepo syncand other Repo commands, seeUsing Repo and Git.The Android source files will be located in your working directory under theirprojectnames.验证代码Load the
10、 following public key into your GnuPG key database. The key is used to sign annotated tags that represent releases. $ gpg -importthen paste the key(s) below, and press Control-D to end the input and process the keys. After importing the keys, you can verify any tag with $ git tag -vtagnamekey 9AB10E
11、78: The Android Open Source Project -BEGIN PGP PUBLIC KEY BLOCK-Version: GnuPG v1.4.2.2 (GNU/Linux)mQGiBEnnWD4RBACt9/h4v9xnnGDou13y3dvOx6/t43LPPIxeJ8eX9WB+8LLuROSVlFhpHawsVAcFlmi7f7jdSRF+OvtZL9ShPKdLfwBJMNkU66/TZmPewS4m782ndtw78tR1cXb197Ob8kOfQB3A9yk2XZ4ei4ZC3i6wVdqHLRxABdncwu5hOF9KXwCgkxMDu4PVgChaA
12、JzTYJ1EG+UYBIUEAJmfearb0qRAN7dEoff0FeXsEaUA6U90sEoVks0ZwNj96SA8BL+a1OoEUUfpMhiHyLuQSftxisJxTh+2QclzDviDyaTrkANjdYY7p2cq/HMdOY7LJlHaqtXmZxXjjtw5Uc2QG8UY8aziU3IE9nTjSwCXeJnuyvoizl9/I1S5jU5SA/9WwIps4SC84ielIXiGWEqq6i6/sk4I9q1YemZF2XVVKnmI1F4iCMtNKsR4MGSa1gA8s4iQbsKNWPgp7M3a51JCVCu6l/8zTpA+uUGapw4tWCp4o
13、0dpIvDPBEa9b/aF/ygcR8mh5hgUfpF9IpXdknOsbKCvM9lSSfRciETykZc4wrRCVGhlIEFuZHJvaWQgT3BlbiBTb3VyY2UgUHJvamVjdCA8aW5pdGlhbC1jb250cmlidXRpb25AYW5kcm9pZC5jb20+iGAEExECACAFAknnWD4CGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRDorT+BmrEOeNr+AJ42Xy6tEW7r3KzrJxnRX8mij9z8tgCdFfQYiHpYngkI2t09Ed+9Bm4gmEO5Ag0ESedYRBAIAKVW1
14、JcMBWvV/0Bo9WiByJ9WJ5swMN36/vAlQN4mWRhfzDOk/Rosdb0csAO/l8Kz0gKQPOfObtyYjvI8JMC3rmi+LIvSUT9806UphisyEmmHv6U8gUb/xHLIanXGxwhYzjgeuAXVCsv+EvoPIHbY4L/KvP5x+oCJIDbkC2b1TvVk9PryzmE4BPIQL/NtgR1oLWm/uWR9zRUFtBnE411aMAN3qnAHBBMZzKMXLWBGWE0znfRrnczI5p49i2YZJAjyX1P2WzmScK49CV82dzLo71MnrF6fj+Udtb5+OgTg7Cow+8PRa
15、TkJEW5Y2JIZpnRUq0CYxAmHYX79EMKHDSThf/8AAwUIAJPWsB/MpK+KMs/s3r6nJrnYLTfdZhtmQXimpoDMJg1zxmL8UfNUKiQZ6esoAWtDgpqt7Y7sKZ8laHRARonte394hidZzM5nb6hQvpPjt2OlPRsyqVxw4c/KsjADtAuKW9/d8phbN8bTyOJo856qg4oOEzKG9eeF7oaZTYBy33BTL0408sEBxiMior6b8LrZrAhkqDjAvUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmU
16、tkBszwoG1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOGvytOX6KjKVzKOSsfJQhN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+BmrEOeCUOAJ9qmR0lEXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KLM=Wi5D-END PGP PUBLIC KEY BLOCK-编译代码To build the files, runmakefrom within your working directory: $ cd /mydroid $ makeIf your build fails, complaining about a missing run-java-tool, try setting the ANDROID_JAVA_HOME env var to $JAVA_HOME before making. E.g., $ export ANDROID_JAVA_HOME=$JAVA_HOME
- 温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。