This commit is contained in:
Tad 2017-05-02 19:07:26 -04:00
parent f1610855dd
commit 636b09403e
2 changed files with 5 additions and 7 deletions

View File

@ -197,11 +197,11 @@ deblobDevice() {
sed -i 's/property_set("persist.rcs.supported", ".");/property_set("persist.rcs.supported", "1");/' init/init_*.cpp;
fi;
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 data-ipa-cfg-mgr; #Remove IPACM
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
sh -c "cd $base$devicePath && ./setup-makefiles.sh"; #Update the makefiles
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 vendor -name "*vendor*.mk" -type f -exec bash -c 'deblobVendor "$0"' {} \; #Deblob all makefiles
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
#
#END OF DEBLOBBING

View File

@ -8,10 +8,8 @@
#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
#Generate a signed userdebug build with root
#export WITH_SU=true && brunch clark && brunch bacon && brunch mako
#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
@ -25,7 +23,7 @@ ANDROID_HOME="/home/tad/Android/SDK"
mkdir -p /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://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
mkdir -p "$ANDROID_HOME/licenses"