File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # SPDX-License-Identifier: GPL-3.0-or-later
3+ # (c) CyberJalagam <jaishnavprasad@disroot.org>
4+
5+ import os
6+ import sys
7+ print (" ==========================================" )
8+ print (" Android ROM Environment setup " )
9+ print (" ==========================================" )
10+ n=input(" Press Y to Continue, N to Exit: " )
11+ if (n == " Y" ) or (n == " y" ):
12+ print(" Installing essential packages" )
13+ os.system(" sudo apt-get instal adb autoconf automake axel bc bison build-essential ccache clang cmake expat fastboot flex g++ g++-multilib gawk gcc gcc-multilib git gnupg gperf htop imagemagick lib32ncurses5-dev lib32z1-dev libtinfo5 libc6-dev libcap-dev libexpat1-dev libgmp-dev '^liblz4-.*' '^liblzma.*' libmpc-dev libmpfr-dev libncurses5-dev libsdl1.2-dev libssl-dev libtool libxml2 libxml2-utils '^lzma.*' lzop maven ncftp ncurses-dev patch patchelf pkg-config pngcrush pngquant python2.7 python-all-dev re2c schedtool squashfs-tools subversion texinfo unzip w3m xsltproc zip zlib1g-dev lzip libxml-simple-perl apt-utils -y" )
14+ print(" Installing repo" )
15+ os.system(' sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo' )
16+ os.system(' sudo chmod a+rx /usr/local/bin/repo' )
17+ print(" Build environment is complete!" )
18+ else:
19+ print(" Thank you for using this script!, Run again if you wish to." )
You can’t perform that action at this time.
0 commit comments