142 lines
3.3 KiB
Bash
142 lines
3.3 KiB
Bash
#!/bin/bash
|
|
git clone https://github.com/AndyCGYan/lineage_build_unified lineage_build_unified -b lineage-19.1
|
|
git clone https://github.com/AndyCGYan/lineage_patches_unified lineage_patches_unified -b lineage-19.1
|
|
|
|
echo 'patch build bot and run it'
|
|
cp LeOS/bot.patch lineage_build_unified/
|
|
cd lineage_build_unified
|
|
git apply bot.patch
|
|
cd ..
|
|
bash lineage_build_unified/buildbot_unified.sh treble 64B
|
|
|
|
mkdir images
|
|
|
|
echo 'Bootanimation'
|
|
cp LeOS/android-logo-mask1a.png frameworks/base/core/res/assets/images/android-logo-mask.png
|
|
cp LeOS/android-logo-shine.png frameworks/base/core/res/assets/images/android-logo-shine.png
|
|
rm device/phh/treble/bootanimation.zip
|
|
rm -R vendor/lineage/bootanimation/
|
|
rm device/phh/treble/phh.mk
|
|
|
|
|
|
echo 'background'
|
|
cp LeOS/default_wallpaper.png frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.png
|
|
cp LeOS/default_wallpaper.png frameworks/base/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.png
|
|
cp LeOS/default_wallpaper.png frameworks/base/core/res/res/drawable-sw720dp-nodpi/default_wallpaper.png
|
|
cp LeOS/default_wallpaper.png frameworks/base/tests/HwAccelerationTest/res/drawable/default_wallpaper.png
|
|
rm -R vendor/lineage/overlay/common/frameworks/base/core/res/res/drawable*
|
|
|
|
echo 'Fonts'
|
|
cp LeOS/Roboto-Regular.ttf external/roboto-fonts/
|
|
cp LeOS/RobotoStatic-Regular.ttf external/roboto-fonts/
|
|
|
|
echo 'EasterEgg'
|
|
rm -R frameworks/base/packages/EasterEgg
|
|
|
|
echo 'remove apps'
|
|
rm -R packages/apps/AudioFX
|
|
rm -R packages/apps/Eleven
|
|
rm -R packages/apps/Camera2
|
|
rm -R packages/apps/Contacts
|
|
rm -R packages/apps/DeskClock
|
|
rm -R packages/apps/Etar
|
|
rm -R packages/apps/Dialer
|
|
rm -R packages/apps/ExactCalculator
|
|
rm -R packages/apps/Gallery2
|
|
rm -R packages/apps/FlipFlap
|
|
rm -R packages/apps/Messaging
|
|
rm -R packages/apps/Jelly
|
|
rm -R vendor/partner_gms/
|
|
rm -R packages/apps/UniversalMediaPlayer
|
|
rm -R packages/apps/HTMLViewer
|
|
rm -R packages/apps/Recorder
|
|
rm -R packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/fcm
|
|
|
|
echo 'LeOS apps'
|
|
tar -xf LeOS/prebuiltapks.tar.xz -C prebuilts/
|
|
|
|
echo 'webview'
|
|
tar -xf LeOS/bromite-webview.tar.xz -C external
|
|
cd external/bromite-webview
|
|
bash update.sh
|
|
cd ../..
|
|
|
|
echo 'a-gps'
|
|
cd vendor/hardware_overlay
|
|
grep -RiIl 'supl.three.com' | xargs sed -i 's/supl.three.com/supl.three.com/g'
|
|
cd ../..
|
|
|
|
echo 'hosts'
|
|
cp LeOS/hosts system/core/rootdir/etc/
|
|
|
|
echo 'firebase mods'
|
|
cp LeOS/firebase-messaging-21.0.1.aar external/firebase-messaging/libs/
|
|
cp LeOS/play-services-cloud-messaging-16.0.0.aar external/firebase-messaging/libs/
|
|
|
|
echo 'overlays'
|
|
tar -xf LeOS/overlay.tar.xz -C vendor
|
|
cp LeOS/vendor_hardware-overlay.patch vendor/hardware_overlay
|
|
cd vendor/hardware_overlay
|
|
git apply *.patch
|
|
cd ../..
|
|
|
|
echo 'encoder'
|
|
mkdir vendor/LeOS
|
|
tar -xf LeOS/encoder.tar.xz -C vendor/LeOS
|
|
|
|
echo 'sas-creator'
|
|
tar -xf LeOS/sas-creator.tar.xz -C .
|
|
|
|
echo 'scripts'
|
|
tar -xf LeOS/scripts.tar.xz -C .
|
|
cp LeOS/leos.mk device/phh/treble
|
|
|
|
cp LeOS/leos.mk device/phh/treble
|
|
|
|
echo 'Patches'
|
|
tar -xf LeOS/patches.tar.xz
|
|
bash patches/apply.sh leos
|
|
|
|
cp LeOS/platform_testing.patch platform_testing/
|
|
cd platform_testing/
|
|
git apply *.patch
|
|
cd ..
|
|
|
|
echo 'generate Scripts'
|
|
cd device/phh/treble
|
|
bash generate.sh lineage
|
|
cd ../../../
|
|
|
|
echo 'Texte'
|
|
cp LeOS/texte.sh .
|
|
bash texte.sh
|
|
rm texte.sh
|
|
|
|
export RELAX_USES_LIBRARY_CHECK=true
|
|
|
|
bash arm64S.sh
|
|
|
|
mv sas-creator/*.img images
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|