日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > windows >内容正文

windows

安卓系统源码、内核下载

發(fā)布時(shí)間:2024/8/1 windows 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 安卓系统源码、内核下载 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

一、下載源碼

以下載源碼2.3.7版本為例

環(huán)境ubuntu14.04

1、安裝git

? ? ?sudo apt-get install git

? ? ?git --version? //查看版本

? ? ?git config --global user.name "zhangsan"? //設(shè)置用戶名

? ? ?git config --global user.email "zhangsan@163.com" //設(shè)置郵箱

? ? ?git config --list? //查看配置是否成功

2、在用戶目錄下面新建文件夾bin

3、PATH=~/bin:$PATH

? ? ?也就是讓環(huán)境變量包含用戶目錄下的bin文件夾

4、curl https://storage-googleapis.lug.ustc.edu.cn/git-repo-downloads/repo > ~/bin/repo

? ? ? 到~/bin下可以看到有個(gè)文件repo,輸入file repo可以看到文件的屬性是個(gè)python腳本

5、chmod a+x ~/bin/repo

6、vi ~/bin/repo

? ? 將里面的 REPO_URL 值改為?'https://gerrit-googlesource.lug.ustc.edu.cn/git-repo'

7、repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-2.3.1_r1

? ? ? 初始化repo,用的是清華源,可以將android-2.3.1改成自己想要的版本如android-x.x.x

8、repo sync

? ? ?網(wǎng)絡(luò)斷了或者卡住了可以中斷然后用這句可以恢復(fù)下載

結(jié)果:

?

二、下載內(nèi)核

? ? ?mkdir kernel //文件夾用來(lái)存放內(nèi)核

? ? ?cd kernel?

? ? ?git init //初始化代碼庫(kù)

? ? ?git clone https://aosp.tuna.tsinghua.edu.cn/android/kernel/goldfish.git

? ? ?cd goldfish

? ? ?git branch -a

? ? ?git checkout remotes/origin/android-goldfish-2.6.29//git庫(kù)可根據(jù)需求進(jìn)行替換,這里下載了模擬器內(nèi)核

? ? 如果git clone卡住很久不動(dòng),解決辦法端口修改為443,如下:

? ? cd ~/.ssh/

? ??vim config //新建config文件

? ? 在config文件中添加如下代碼:

? ? Host github.com? ?

? ?User "zhangsan@163.com"? ? //github上的注冊(cè)郵箱

? ?Hostname ssh.github.com??

? ?PreferredAuthentications publickey ?//采用公匙

? ?IdentityFile ~/.ssh/id_rsa ???//公匙文件路徑

? ?Port 443 ???????????//修改端口為443

? 保存退出再重新git clone
?


? ??
? ?
?

總結(jié)

以上是生活随笔為你收集整理的安卓系统源码、内核下载的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。