-
Notifications
You must be signed in to change notification settings - Fork 0
/
vendorsetup.sh
31 lines (25 loc) · 1.08 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
#!/usr/bin/bash
#
# Copyright (C) 2024 Vladimir `rifux` Blinkov
#
# SPDX-License-Identifier: Apache-2.0
#
# Vendor
echo 'Cloning Vendor Tree...'
git clone -b V816.0.24.7.28.DEV https://codeberg.org/rifux/proprietary_vendor_xiaomi_socrates vendor/xiaomi/socrates
# Kernel
echo 'Cloning Kernel Tree...'
git clone -b fourteen https://github.com/rifux/android_kernel_xiaomi_sm8550 kernel/xiaomi/sm8550
git clone -b lineage-21 https://github.com/rifux/android_kernel_xiaomi_sm8550-modules kernel/xiaomi/sm8550-modules
git clone -b lineage-21 https://github.com/rifux/android_kernel_xiaomi_sm8550-devicetrees kernel/xiaomi/sm8550-devicetrees
# Hardware
echo 'Cloning hardware/xiaomi...'
git clone -b lineage-21 https://github.com/LineageOS/android_hardware_xiaomi hardware/xiaomi
# MIUI camera
echo 'Cloning vendor/xiaomi/socrates-camera'
git clone -b V816.0.24.7.28.DEV https://codeberg.org/rifux/android_vendor_xiaomi_socrates-camera vendor/xiaomi/socrates-camera
# KernelSU
echo 'Fetching kernel/xiaomi/sm8550/KernelSU'
cd kernel/xiaomi/sm8550
git submodule init && git submodule update KernelSU
cd ../../..