From 3fffe19a2ab9f3f9244dce6647184e630e4f73ee Mon Sep 17 00:00:00 2001 From: Tad Date: Sat, 25 Feb 2017 11:26:01 -0500 Subject: [PATCH] Changes --- Scripts/Generic_Deblob.sh | 2 ++ Scripts/LAOS-14.1_Patches.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Scripts/Generic_Deblob.sh b/Scripts/Generic_Deblob.sh index 00e0edbc..dac2fc8d 100644 --- a/Scripts/Generic_Deblob.sh +++ b/Scripts/Generic_Deblob.sh @@ -2,6 +2,7 @@ #Goal: Remove as many proprietary blobs without breaking core functionality #Outcome: Increased battery/performance/privacy/security, Decreased ROM size +#TODO: Automate TimeKeep replacing, Clean Android.mk, Clean init*.rc files, Create TWRP version, Remove more variants # #Device Status (Tested under LineageOS 14.1) @@ -180,6 +181,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 frameworks/av/drm/mediadrm/plugins/clearkey; #Remove the rest of Clearkey DRM # #END OF DEBLOBBING # diff --git a/Scripts/LAOS-14.1_Patches.sh b/Scripts/LAOS-14.1_Patches.sh index 7f33a373..0fd1f1d0 100644 --- a/Scripts/LAOS-14.1_Patches.sh +++ b/Scripts/LAOS-14.1_Patches.sh @@ -42,6 +42,8 @@ enter() { enableDexPreOpt() { echo "WITH_DEXPREOPT := true" >> BoardConfig.mk } + +rm -rf packages/apps/GsfProxy/services-framework-proxy/build packages/apps/GmsCore/play-services-core/build # #END OF PREPRATION # @@ -117,7 +119,7 @@ enter "device/oneplus/bacon" enableDexPreOpt patch -p1 < $patches"android_device_oneplus_bacon/0001-Remove_DRM.patch" #Removes Microsoft PlayReady and Google Widevine -enter "kernel/oneplus/msm8974" #Consider switching to https://github.com/erorcun/android_kernel_oneplus_msm8974-3.10 +enter "kernel/oneplus/msm8974" #patch -p1 < $patches"android_kernel_oneplus_msm8974/0001-OverUnderClock.patch" #300Mhz -> 268Mhz, 2.45Ghz -> 2.88Ghz =+1.72Ghz patch -p1 < $patches"android_kernel_oneplus_msm8974/0001-OverUnderClock-EXTREME.patch" #300Mhz -> 268Mhz, 2.45Ghz -> 2.95Ghz =+2.02Ghz XXX: Not 100% stable under intense workloads