> ~。安卓逆向 27。" />

安卓逆向 27

安装git 并设置邮件和用户名

sudo apt-get install git git config --global user.email qin159358883@qq.com git config --global user.name "hengdi"

将~/bin加入到系统启动中,方便接下来使用repo
echo "PATH=~/bin:\$PATH" >> ~/.bashrc # 刷新bash source ~/.bashrc

安装curl
sudo apt-get install curl

安装 repo
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo ##### 给repo增加执行权限 chmod a+x ~/bin/repo

创建REPO_URL 这个变量
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo' # cat ~/bin/repo 在其中会发现调用这个变量,如果这个变量不存在,则会使用google的git链接速度很慢 cd ~/bin/aosp

修改 python 软连接
sudo ln -s /usr/bin/python3.8 /usr/bin/python

初始化仓库:
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-10.0.0_r17此时报错: fatal: 无法访问 'https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest/':server certificate verification failed. CAfile: none CRLfile: none manifests: sleeping 4.0 seconds before retrying fatal: 无法访问 'https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest/':server certificate verification failed. CAfile: none CRLfile: none fatal: cannot obtain manifest https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest

安卓逆向 27
文章图片

【安卓逆向 27】输入:
git config --global http.sslverify false git config --global https.sslverify false

然后进去解压好的aosp 文件夹 开始同步
cd ~/bin/aosp repo sync

    推荐阅读