Last active
June 5, 2024 02:41
-
-
Save yucellmustafa/065567600d691921eae52213fae71966 to your computer and use it in GitHub Desktop.
Build Rom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone https://github.com/yucellmustafa/android_device_xiaomi_toco -b lineage-21 device/xiaomi/toco | |
git clone https://github.com/LineageOS/android_device_xiaomi_sm6150-common -b lineage-21 device/xiaomi/sm6150-common | |
git clone https://github.com/yucellmustafa/android_kernel_xiaomi_sm6150 -b lineage-21 kernel/xiaomi/sm6150 | |
git clone https://github.com/yucellmustafa/proprietary_vendor_xiaomi_toco -b lineage-21 vendor/xiaomi/toco | |
git clone https://github.com/xiaomi-sm6150/proprietary_vendor_xiaomi_sm6150-common -b lineage-21 vendor/xiaomi/sm6150-common | |
git clone https://gitlab.com/yucellmustafa/vendor_xiaomi_miuicamera -b leica-5.0 vendor/xiaomi/miuicamera | |
git clone https://github.com/LineageOS/android_hardware_xiaomi -b lineage-21 hardware/xiaomi | |
git clone https://github.com/yucellmustafa/vendor_lineage-priv_keys -b lineage-21 vendor/lineage-priv/keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo dnf clean metadata | |
sudo dnf update | |
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y | |
sudo dnf groupinstall 'Administration Tools' 'C Development Tools and Libraries' 'Development Tools' 'System Tools' 'Development Libraries' | |
sudo dnf -y install gperf pngcrush schedtool openssl xz lzma java-1.8.0-openjdk java-1.8.0-openjdk-devel libxml2 libxml2-devel.* gtk3 gtk3-devel.* SDL-* SDL2.* SDL2-* ncurses.* ncurses-* zlibrary-devel.* zlibrary.* readline-devel.* readline.* perl-FindBin openssl libxcrypt-compat git-lfs rsync |
Matrixx Flags
MATRIXX_MAINTAINER := yucellmustafa
MATRIXX_CHIPSET := SDM730
MATRIXX_BATTERY := 5260mAh
MATRIXX_DISPLAY := 1080x2340
TARGET_BOOT_ANIMATION_RES := 1080
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install Repo tool
mkdir ~/.local/bin
PATH=~/.local/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.local/bin/repo
chmod a+x ~/.local/bin/repo
Initializing Repo
repo init -u https://github.com/LineageOS/android.git -b lineage-21.0 --git-lfs --depth 1
repo init -u https://github.com/Evolution-XYZ/manifest -b udc --git-lfs --depth 1
repo init -u https://github.com/crdroidandroid/android.git -b 14.0 --git-lfs --depth 1
repo init -u https://github.com/ProjectMatrixx/android.git -b 14.0 --git-lfs --depth 1
repo sync -c --no-clone-bundle --optimized-fetch --prune --force-sync -j$(nproc --all)
Compile
. build/envsetup.sh
brunch toco
or
lunch lineage_toco-ap1a-userdebug
m bacon
Other
m installclean
m bootimage
m recoveryimage
git push force
git clone <repo 1>
git branch <branch 1>
git switch <branch 1>
git push <repo 2> -f
Note:
zram size:
sudo sed -i 's/8192/16384/' /usr/lib/systemd/zram-generator.conf
performance:
echo performance | sudo tee /sys/bus/cpu/devices/cpu*/cpufreq/scaling_governor
cpu monitor:
watch -n 0.1 "cat /sys/bus/cpu/devices/cpu*/cpufreq/{scaling_cur_freq,scaling_governor}"