-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsync
executable file
·19 lines (15 loc) · 1.11 KB
/
sync
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
MANIFEST=git://github.com/ArrowOS/android_manifest.git
BRANCH=arrow-11.0
mkdir -p /tmp/rom
cd /tmp/rom
sudo apt-get install wget -y
# Repo init command, that -device,-mips,-darwin,-notdefault part will save you more time and storage to sync, add more according to your rom and choice. Optimization is welcomed! Let's make it quit, and with depth=1 so that no unnecessary things.
repo init --no-repo-verify --depth=1 -u "$MANIFEST" -b "$BRANCH" -g default,-device,-mips,-darwin,-notdefault
git config --global user.name ItsVixano
git config --global user.email vixanonew@gmail.com
# Sync source with -q, no need unnecessary messages, you can remove -q if want! try with -j30 first, if fails, it will try again with -j8
repo sync -c --no-clone-bundle --no-tags --optimized-fetch --prune --force-sync -j$(nproc --all) || repo sync -c --no-clone-bundle --no-tags --optimized-fetch --prune --force-sync -j8
git clone https://github.com/henloscape/device_xiaomi_lava -b arrow-11 device/xiaomi/lava
git clone https://github.com/Redmi-MT6768/android_vendor_xiaomi_lava vendor/xiaomi/lava
bash device/xiaomi/lava/vendorsetup.sh