Skip to content

Instantly share code, notes, and snippets.

@Megh-Rana
Last active November 2, 2024 10:18
Show Gist options
  • Select an option

  • Save Megh-Rana/6172c5b35eb39277d3cb3432d331766f to your computer and use it in GitHub Desktop.

Select an option

Save Megh-Rana/6172c5b35eb39277d3cb3432d331766f to your computer and use it in GitHub Desktop.
tissot build script
#!/bin/bash
# Thanks to @Lafactorial for the initial script :D
rm -rf .repo/local_manifests
# Initialize repo with specified manifest
repo init --depth=1 -u https://github.com/ProjectEverest/manifest -b 14 --git-lfs
# Clone local_manifests repository
git clone https://github.com/meghs-playground/local_manifest --depth 1 -b cr-14 .repo/local_manifests
# Removals
rm -rf device/xiaomi/tissot device/xiaomi/msm8953-common build/make
# Sync the repositories
repo sync -c -j$(nproc --all) --no-clone-bundle --no-tags --optimized-fetch --prune --force-sync
# Set up build environment
source build/envsetup.sh
# Do Bringup!
cd device/xiaomi/tissot
mv lineage_tissot.mk everest_tissot.mk
sed -i 's/lineage_tissot-ap1a/everest_tissot/g' AndroidProducts.mk
sed -i 's/lineage/everest/g' AndroidProducts.mk
sed -i 's/lineage/everest/g' everest_tissot.mk
mv overlay-lineage overlay-everest
sed -i 's/overlay-lineage/overlay-everest/g' device.mk
croot
cd device/xiaomi/msm8953-common
mv overlay-lineage overlay-everest
sed -i 's/overlay-lineage/overlay-everest/g' msm8953.mk
croot
export EVEREST_MAINTAINER=Meghthedev
export TARGET_SUPPORTS_BLUR=false
export EVEREST_UDFPS_ANIMATIONS=false
export WITH_GAPPS=false
export WITH_GMS=false
# Lunch configuration
lunch everest_tissot-userdebug
# Build the rom!
mka bacon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment