Skip to content

Instantly share code, notes, and snippets.

@walkman2021
Last active April 6, 2023 16:46
sudo apt-get install repo
mkdir -p ~/.bin
PATH="${HOME}/.bin:${PATH}"
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+rx ~/.bin/repo
echo 'export PATH=~/bin:$PATH' >> ~/.bashrc
#Для андроид 12 нужен openjdk 8:
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo apt-get install openjdk-7-jdk
#Далее устанавливаем необходимые пакеты:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip maven schedtool
# сменить питон на 2
echo 'alias py2="rm ~/bin/python*; sudo ln -s /usr/bin/python2 ~/bin/python && sudo ln -s /usr/bin/python2-config ~/bin/python-config"' >> ~/.bashrc
# git login
sudo apt install git
git config --global user.name "walkman2021"
git config --global user.email "walkman2021@gmail.com"
#Создаем папку для исходников omnirom
mkdir ~/twrp12
cd ~/twrp12
repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1
repo sync
Compile
cd ~/twrp12
export ALLOW_MISSING_DEPENDENCIES=true # export USE_NINJA=false # export LC_ALL=C
. build/envsetup.sh
lunch twrp_S96Pro-eng
make -j5 recoveryimage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment