This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vendorsetup.sh
41 lines (27 loc) · 2.07 KB
/
vendorsetup.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
git clone --depth 1 https://github.com/burhancodes/package_apps_MyUIWidgets packages/apps/MyUIWidgets
git clone --depth 1 https://github.com/burhancodes/package_apps_MotoClock packages/apps/MotoClock
git clone --depth 1 https://github.com/burhancodes/packages_apps_MotoCalendar packages/apps/MotoCalendar
git clone --depth 1 https://github.com/burhancodes/package_apps_micalculator packages/apps/MiCalculator
git clone --depth 1 https://github.com/burhancodes/packages_apps_GoogleCamera_8.1 packages/apps/GoogleCamera_8.1
git clone --depth 1 https://github.com/burhancodes/packages_apps_CustomPackageInstaller packages/apps/CustomPackageInstaller
git clone --depth 1 https://github.com/burhancodes/vendor_lmodroid_lancelot vendor/xiaomi/lancelot
git clone --depth 1 https://github.com/burhancodes/BlackSapphire -b 14 kernel/xiaomi/mt6768
cd kernel/xiaomi/mt6768
curl -LSs "https://github.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
cd ../../..
rm -rf device/mediatek/sepolicy_vndr
git clone --depth 1 https://github.com/Burhanverse/android_device_mediatek_sepolicy_vndr -b lineage-20 device/mediatek/sepolicy_vndr
rm -rf hardware/mediatek
git clone --depth 1 https://github.com/Burhanverse/android_hardware_mediatek -b lineage-20 hardware/mediatek
# HACK: telephony: Conditionally force enable LTE_CA
rm -rf frameworks/base
git clone --depth 1 https://github.com/burhancodes/frameworks_base -b thirteen frameworks/base
# Settings: Add a toggle to force LTE_CA
rm -rf packages/apps/Settings
git clone --depth 1 https://github.com/burhancodes/packages_apps_Settings -b thirteen packages/apps/Settings
echo -e "Applying patches..."
# Media: Import codecs/omx changes from t-alps-q0.mp1-V9.122.1
git -C "frameworks/av" am <<<"$(curl -sL "https://github.com/ArrowOS/android_frameworks_av/commit/1fb1c48309cf01deb9e3f8253cb7fa5961c25595.patch")"
# stagefright: remove HW_TEXTRUE usage from SurfaceMediaSource
git -C "frameworks/av" am <<<"$(curl -sL "https://github.com/ArrowOS/android_frameworks_av/commit/a727c1f68fd30c8e6a4068db9dc26670d4a78f6c.patch")"
echo -e "Patch applied successfully."