mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Remove more blobs, delete old patches
This commit is contained in:
parent
a5d3a9a8b4
commit
d39c8339b9
6 changed files with 6 additions and 255 deletions
|
@ -2,7 +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
|
||||
#TODO: Automate TimeKeep replacing, Clean init*.rc files, Create TWRP version, Remove more variants
|
||||
|
||||
#
|
||||
#Device Status (Tested under LineageOS 14.1)
|
||||
|
@ -137,6 +137,10 @@ export base;
|
|||
deblobDevice() {
|
||||
devicePath=$1;
|
||||
cd $base$devicePath;
|
||||
if [ -f Android.mk ]; then
|
||||
sed -i 's/$(PLAYREADY_SYMLINKS)//' Android.mk; #Don't ship Microsoft Playready (DRM) firmware
|
||||
sed -i 's/$(WV_SYMLINKS)//' Android.mk; #Don't ship Google Widevine (DRM) firmware
|
||||
fi;
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
sed -i 's/BOARD_USES_QCNE := true/BOARD_USES_QCNE := false/' BoardConfig.mk; #Disable CNE
|
||||
fi;
|
||||
|
@ -148,7 +152,7 @@ deblobDevice() {
|
|||
if ! grep -q "drm.service.enabled=false" system.prop; then echo "drm.service.enabled=false" >> system.prop; fi; #Disable DRM server
|
||||
fi;
|
||||
rm -rf data-ipa-cfg-mgr; #Remove the second half of IPACM
|
||||
rm -rf libshimwvm; #Remove the Widevine compatibility module
|
||||
rm -rf libshimwvm; #Remove the Google Widevine (DRM) compatibility module
|
||||
if [ -f setup-makefiles.sh ]; then
|
||||
awk -i inplace '!/'$blobs'/' *proprietary*.txt; #Remove all blob references from blob manifest
|
||||
sh -c "cd $base$devicePath && ./setup-makefiles.sh"; #Update the makefiles
|
||||
|
|
|
@ -106,7 +106,6 @@ rm core/res/res/values/config.xml.orig core/res/res/values/strings.xml.orig core
|
|||
#
|
||||
enter "device/motorola/clark"
|
||||
enableDexPreOpt
|
||||
patch -p1 < $patches"android_device_motorola_clark/0004-Remove_Widevine.patch" #Removes Google Widevine and disables the DRM server
|
||||
|
||||
enter "kernel/motorola/msm8992"
|
||||
patch -p1 < $patches"android_kernel_motorola_msm8992/0001-OverUnderClock.patch" #a57: 1.82Ghz -> 2.01Ghz, a53 1.44Ghz -> 1.63Ghz, 384Mhz -> 300Mhz =+1.14Ghz TODO: Enable by default
|
||||
|
@ -114,7 +113,6 @@ patch -p1 < $patches"android_kernel_motorola_msm8992/0002-MMC_Tweak.patch" #Impr
|
|||
|
||||
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"
|
||||
#patch -p1 < $patches"android_kernel_oneplus_msm8974/0001-OverUnderClock.patch" #300Mhz -> 268Mhz, 2.45Ghz -> 2.88Ghz =+1.72Ghz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue