-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmistos.sh
More file actions
44 lines (34 loc) · 1.38 KB
/
mistos.sh
File metadata and controls
44 lines (34 loc) · 1.38 KB
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
#!/bin/bash
rm -rf .repo/local_manifests/
# Local TimeZone
sudo rm -rf /etc/localtime
sudo ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
# Rom source repo
repo init --depth=1 -u https://github.com/Project-Mist-OS/manifest.git -b 16 --git-lfs
echo "=================="
echo "Repo init success"
echo "=================="
# Clone local_manifests repository
git clone -b mistos https://github.com/israfilbd/local_manifests .repo/local_manifests
echo "============================"
echo "Local manifest clone success"
echo "============================"
# Sync the repositories
/opt/crave/resync.sh
echo "============================"
# Export
export BUILD_USERNAME=ij-israfil
export BUILD_HOSTNAME=crave
export WITH_GMS=true
export TARGET_USES_MINI_GAPPS=true
echo "======= Export Done ======"
# Mic Fix
echo ">>> Applying frameworks/base patch..." && cd frameworks/base && (git log --oneline | grep -q "dt2w\|DT2W\|double.*tap" || (wget -O temp.patch "https://github.com/ij-project/frameworks_base_evox/commit/c49d293.patch" && (git apply temp.patch && git add . && git commit -m "Apply DT2W patch" || echo "Patch conflicts detected, continuing build...") && rm -f temp.patch)) && cd ../.. && echo ">>> Frameworks/base patch process completed!"
# Set up build environment
source build/envsetup.sh
echo "====== Envsetup Done ======="
# Lunch
mistify RMX1901 user
echo "============="
# Build rom
mist b