-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup2.sh
47 lines (42 loc) · 2.15 KB
/
setup2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
echo -e "number of cores?"
nproc --all
cd mywork
mkdir aosp
cd aosp
apt install -y curl
echo "setting time"
apt-get update && DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get install -y tzdata
echo "done now moving forward"
echo -e "Installing tools"
sudo apt install -y \
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 \
apt install -y openjdk-8-jdk apache2 bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev 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 python libncurses5
echo git clone https://github.com/dustxyz/scripts
echo cd scripts
echo chmod +x setup/android_build_env.sh
echo bash setup/android_build_env.sh
echo cd ..
echo "install repo"
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
echo "done time sync"
echo "Repo sync"
repo init -u git://github.com/LineageOS/android.git -b lineage-18.1
echo "repo init done"
repo sync -c --force-sync --no-clone-bundle --no-tags
echo "just to check everything is synced we do re sync"
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
echo "resync done"
echo take some rest this script will handle rest