安卓逆向 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](https://img.it610.com/image/info9/843b908a0230494e9f85efdcc04fa553.jpg)
文章图片
【安卓逆向 27】输入:
git config --global http.sslverify false
git config --global https.sslverify false
然后进去解压好的aosp 文件夹 开始同步
cd ~/bin/aosp
repo sync
推荐阅读
- Mac安装Chromedriver
- MongoDB,Wondows下免安装版|MongoDB,Wondows下免安装版 (简化版操作)
- MAC安装Mongo
- 【Hadoop踩雷】Mac下安装Hadoop3以及Java版本问题
- 「按键精灵安卓版」关于全分辨率脚本的一些理解(非游戏app)
- react|react 安装
- VueX--VUE核心插件
- 《将来的你,一定会感谢现在战胜烦恼的自己-------第四章/第十一节/用逆向思维解除烦恼》
- python-安装sublime遇到异常
- typeScript入门基础介绍