Last active
November 30, 2021 14:31
-
-
Save davigamer987/7f58332ce12c64797781864739cbe0f0 to your computer and use it in GitHub Desktop.
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 | |
mkdir android;cd android | |
echo "enter rom manifest thing here u idot (with branch):" | |
read x | |
echo "pls enter rom vendor name sur: " | |
read v | |
echo "Initiating repo!" | |
repo init -u ${x} | |
cd .repo;mkdir local_manifests;cd local_manifests | |
wget https://raw.githubusercontent.com/davigamer987/local_manifests/main/TP1803/A12-Lineage.xml | |
cd .. | |
cd .. | |
echo "Starting repo sync!" | |
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags | |
ls vendor/ | |
cd device/nubia/TP1803 | |
mv lineage_TP1803.mk ${v}_TP1803.mk | |
sed -i "s+lineage+$v+g" ${v}_TP1803.mk | |
sed -i "s+lineage+$v+g" AndroidProducts.mk | |
FILE=$android_dir/$v/config/common.mk | |
if [[ -f "$FILE" ]]; then | |
sed -i "s+common_full_phone.mk+common.mk+g" ${v}_TP1803.mk | |
fi | |
cd .. | |
cd .. | |
cd .. | |
# TP1803 Android 12 patches | |
sed -i "s+android.hardware.power-ndk_platform+android.hardware.power-V1-ndk_platform+g" hardware/qcom-caf/sm8150/audio/hal/Android.mk | |
cd $android_dir | |
. build/envsetup.sh | |
lunch ${v}_TP1803-userdebug | |
mka -j$(nproc --all) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment