mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-01-13 00:19:27 -05:00
Tweaks
This commit is contained in:
parent
f1610855dd
commit
636b09403e
@ -197,11 +197,11 @@ deblobDevice() {
|
|||||||
sed -i 's/property_set("persist.rcs.supported", ".");/property_set("persist.rcs.supported", "1");/' init/init_*.cpp;
|
sed -i 's/property_set("persist.rcs.supported", ".");/property_set("persist.rcs.supported", "1");/' init/init_*.cpp;
|
||||||
fi;
|
fi;
|
||||||
rm -f rootdir/etc/init.qti.ims.sh #Remove IMS startup script
|
rm -f rootdir/etc/init.qti.ims.sh #Remove IMS startup script
|
||||||
#rm -rf telephony/ims; #Remove IMS
|
#rm -rf telephony/ims; #Remove ims-common
|
||||||
rm -rf IMSEnabler; #Remove IMS compatibility module
|
rm -rf IMSEnabler; #Remove IMS compatibility module
|
||||||
rm -rf data-ipa-cfg-mgr; #Remove IPACM
|
rm -rf data-ipa-cfg-mgr; #Remove IPACM
|
||||||
rm -rf libshimwvm; #Remove Google Widevine compatibility module
|
rm -rf libshimwvm; #Remove Google Widevine compatibility module
|
||||||
if [ -f setup-makefiles.sh ]; then
|
if [ -f setup-makefiles.sh ]; then #FIXME: This breaks some devices using shared device trees (eg. osprey) when removing blobs that are listed in Android.mk of vendor repositories
|
||||||
awk -i inplace '!/'$blobs'/' *proprietary*.txt; #Remove all blob references from blob manifest
|
awk -i inplace '!/'$blobs'/' *proprietary*.txt; #Remove all blob references from blob manifest
|
||||||
sh -c "cd $base$devicePath && ./setup-makefiles.sh"; #Update the makefiles
|
sh -c "cd $base$devicePath && ./setup-makefiles.sh"; #Update the makefiles
|
||||||
fi;
|
fi;
|
||||||
@ -232,7 +232,7 @@ echo "vendor/lib/libcneapiclient.so" >> device/oneplus/bacon/proprietary-files-q
|
|||||||
find device -maxdepth 2 -mindepth 2 -type d -exec bash -c 'deblobDevice "$0"' {} \; #Deblob all device directories
|
find device -maxdepth 2 -mindepth 2 -type d -exec bash -c 'deblobDevice "$0"' {} \; #Deblob all device directories
|
||||||
find vendor -name "*vendor*.mk" -type f -exec bash -c 'deblobVendor "$0"' {} \; #Deblob all makefiles
|
find vendor -name "*vendor*.mk" -type f -exec bash -c 'deblobVendor "$0"' {} \; #Deblob all makefiles
|
||||||
deblobVendors; #Deblob entire vendor directory
|
deblobVendors; #Deblob entire vendor directory
|
||||||
#rm -rf vendor/codeaurora/telephony/ims; #Remove IMS
|
#rm -rf vendor/codeaurora/telephony/ims; #Remove ims-common
|
||||||
rm -rf frameworks/av/drm/mediadrm/plugins/clearkey; #Remove Clearkey
|
rm -rf frameworks/av/drm/mediadrm/plugins/clearkey; #Remove Clearkey
|
||||||
#
|
#
|
||||||
#END OF DEBLOBBING
|
#END OF DEBLOBBING
|
||||||
|
@ -8,10 +8,8 @@
|
|||||||
#Prepare a build
|
#Prepare a build
|
||||||
#repo sync -j24 --force-sync && sh ../../Scripts/LAOS-14.1_Patches.sh && source ../../Scripts/Generic_Deblob.sh && source build/envsetup.sh && export ANDROID_HOME="/home/tad/Android/SDK" && export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m" && export OTA_PACKAGE_SIGNING_KEY=../../Signing_Keys/releasekey && export SIGNING_KEY_DIR=../../Signing_Keys
|
#repo sync -j24 --force-sync && sh ../../Scripts/LAOS-14.1_Patches.sh && source ../../Scripts/Generic_Deblob.sh && source build/envsetup.sh && export ANDROID_HOME="/home/tad/Android/SDK" && export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m" && export OTA_PACKAGE_SIGNING_KEY=../../Signing_Keys/releasekey && export SIGNING_KEY_DIR=../../Signing_Keys
|
||||||
|
|
||||||
#Generate a signed userdebug build with root
|
|
||||||
#export WITH_SU=true && brunch clark && brunch bacon && brunch mako
|
|
||||||
#Generate a signed user build
|
#Generate a signed user build
|
||||||
#brunch lineage_clark-user && brunch lineage_bacon-user && brunch lineage_mako-user
|
#brunch lineage_clark-user && brunch lineage_bacon-user && brunch lineage_mako-user && brunch lineage_hammerhead-user && brunch lineage_shamu-user && brunch lineage_bullhead-user && brunch lineage_angler-user && brunch lineage_flo-user && brunch lineage_marlin-user
|
||||||
|
|
||||||
#
|
#
|
||||||
#START OF PREPRATION
|
#START OF PREPRATION
|
||||||
@ -25,7 +23,7 @@ ANDROID_HOME="/home/tad/Android/SDK"
|
|||||||
mkdir -p /tmp/ar
|
mkdir -p /tmp/ar
|
||||||
cd /tmp/ar
|
cd /tmp/ar
|
||||||
wget https://spotco.us/hosts -N #XXX: Hosts is built from non-commercial use files, switch to /hsc for release
|
wget https://spotco.us/hosts -N #XXX: Hosts is built from non-commercial use files, switch to /hsc for release
|
||||||
wget https://github.com/Ranks/emojione/raw/master/assets/fonts/emojione-android.ttf -N #XXX: Requires attribuition
|
wget https://github.com/Ranks/emojione/raw/master/extras/fonts/emojione-android.ttf -N #XXX: Requires attribuition
|
||||||
|
|
||||||
#Accept all SDK licences, not normally needed but Gradle managed apps fail without it
|
#Accept all SDK licences, not normally needed but Gradle managed apps fail without it
|
||||||
mkdir -p "$ANDROID_HOME/licenses"
|
mkdir -p "$ANDROID_HOME/licenses"
|
||||||
|
Loading…
Reference in New Issue
Block a user