repo安装

下载repo

加入环境变量:

PATH=/mnt/share/cheji/source/bin/git-repo:$PATH

git安装

配置git

git config --global user.email "xxx@163.com"
git config --global user.name "xxx"

安装openssl依赖

sudo apt-get install openssl

安装Python3.11

下载Python3.11源码

编译

./configure --prefix=/usr/local/python3 --with-openssl=/usr/local/openssl --with-openssl-rpath=auto

安装

sudo make 
sudo make install

安装路径

/usr/local/python3/bin/python3

建立python3和pip3的软链

sudo ln -s /usr/local/python3/bin/python3 /usr/bin/python3
sudo ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

将python指向python3

sudo ln -s /usr/local/python3/bin/python3 /usr/bin/python

并将/usr/local/python3/bin加入PATH

创建脚本

sudo vim /etc/profile.d/python3.sh

脚本内容:

PATH=$PATH:$HOME/bin:/usr/local/python3/bin
export PATH

立即生效

source /etc/profile.d/python3.sh

下载与编译Android源码

安装7zip

sudo apt-get install p7zip-full

解压安卓源码

7z x Android-9.0.0_r1.7z