关于android:安卓逆向-27

3次阅读

共计 1157 个字符,预计需要花费 3 分钟才能阅读完成。

装置 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

输出:

git config --global http.sslverify false
git config --global https.sslverify false

而后进去解压好的 aosp 文件夹 开始同步

cd ~/bin/aosp
repo sync
正文完
 0