Skip to content

Instantly share code, notes, and snippets.

@Megh-Rana
Last active April 19, 2024 03:09
Show Gist options
  • Select an option

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

Select an option

Save Megh-Rana/c0838d3587d621a49da75b18055bdc3c to your computer and use it in GitHub Desktop.
mi439 build script
#!/bin/bash
# Init Alphadroid Source
repo init --depth=1 -u https://github.com/HorizonDroidLab/manifest.git -b 14 --git-lfs
# Clone local manifest
rm -rf .repo/local_manifests
git clone https://github.com/Meghthedev/local_manifests .repo/local_manifests
# Sync the repos
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags --optimized-fetch --prune
# Set up the build environment
source build/envsetup.sh
# Alphadroid Specific Flags
export WITH_GMS=true
export TARGET_ENABLE_BLUR=true
export HORIZON_MAINTAINER=meghthebot
# Lunch
lunch aosp_Mi439-ap1a-userdebug
# Make the rom!
mka bacon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment