49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
|
#!/bin/bash
|
||
|
|
||
|
echo "Patches"
|
||
|
cp LeOS/platform_testing.patch platform_testing
|
||
|
cd platform_testing
|
||
|
git apply *.patch
|
||
|
cd ..
|
||
|
|
||
|
# hosts
|
||
|
cp LeOS/hosts system/core/rootdir/etc/
|
||
|
|
||
|
echo 'LOS stats'
|
||
|
rm packages/apps/LineageParts/res/xml/anonymous_stats.xml
|
||
|
rm packages/apps/LineageParts/res/xml/preview_data.xml
|
||
|
rm -R packages/apps/LineageParts/src/org/lineageos/lineageparts/lineagestats/
|
||
|
|
||
|
echo 'LatinIME'
|
||
|
tar -xf LeOS/LatinIME-20TD.tar.xz -C packages/inputmethods/
|
||
|
|
||
|
echo 'SetupWizard'
|
||
|
cd packages/apps
|
||
|
git clone https://github.com/LeOS-GSI/SetupWizard.git
|
||
|
cd ../..
|
||
|
|
||
|
|
||
|
cp patches/texte.txt ./texte.sh
|
||
|
bash texte.sh
|
||
|
echo "Supl"
|
||
|
cd device/google/
|
||
|
grep -RiIl 'supl.google.com' | xargs sed -i 's/supl.google.com/supl.grapheneos.org/g'
|
||
|
cd ../..
|
||
|
cd vendor/hardware_overlay/
|
||
|
grep -RiIl 'supl.google.com' | xargs sed -i 's/supl.google.com/supl.grapheneos.org/g'
|
||
|
cd ../..
|
||
|
cd hardware
|
||
|
grep -RiIl 'supl.google.com' | xargs sed -i 's/supl.google.com/supl.grapheneos.org/g'
|
||
|
cd ..
|
||
|
cd cts/tests/location/location_gnss/src/android/location/cts/gnss/
|
||
|
grep -RiIl 'supl.google.com' | xargs sed -i 's/supl.google.com/supl.grapheneos.org/g'
|
||
|
cd ../../../../../../../../..
|
||
|
cd frameworks/base
|
||
|
grep -RiIl 'supl.google.com' | xargs sed -i 's/supl.google.com/supl.grapheneos.org/g'
|
||
|
cd ../..
|
||
|
|
||
|
|
||
|
mkdir images
|
||
|
|
||
|
bash all.sh
|