repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-10.0.0_r41
1.首先下载repo:
a)终端运行 git clone git://codeaurora.org/tools/repo.git
b)mkdir ~/bin
c)拷贝repo 到~/bin下面,修改repo权限,chmod a+x ~/bin/repo
d)修改repo
将REPO_URL='git://android.git.kernel.org/tools/repo.git'改成:REPO_URL='git://codeaurora.org/tools/repo.git'
2.高通源码查找
打开https://wiki.codeaurora.org/xwiki/bin/QAEP/release,找到想要下载的代码的 Manifest(比如:LA.HB.1.5.2-05010-8x96.0.xml)
3.下载高通源码
以msm8996为例:
a)终端运行 repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.HB.1.5.2-05010-8x96.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
b)repo sync
init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.8.12.2.r1-02200-QCS8250.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
termal配置
https://blog.csdn.net/zhangyongfeiyong/article/details/52885897
windows安装ubutun
https://blog.csdn.net/qq_33200967/article/details/71950921
安装jdk
sudo apt-get install openjdk-8-jdk
sudo apt-get install libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib
sudo apt-get install -y git flex bison gperf build-essential libncurses5-dev:i386
sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
sudo apt-get install dpkg-dev libsdl1.2-dev libesd0-dev
sudo apt-get install git-core gnupg flex bison gperf build-essential
sudo apt-get install zip curl zlib1g-dev gcc-multilib g++-multilib
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32ncurses5-dev x11proto-core-dev libx11-dev
sudo apt-get install libgl1-mesa-dev libxml2-utils xsltproc unzip m4
sudo apt-get install lib32z-dev ccache
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-10.0.0_r47
换清华原
https://www.jianshu.com/p/2bcf5eca5fbc
解决报错
https://blog.csdn.net/weixin_46439193/article/details/105140587
gpg问题官方解释
https://source.android.com/source/downloading.html