From 8825835fc56bcf508610e85e6efca204919b1792 Mon Sep 17 00:00:00 2001 From: Tad Date: Sun, 18 Jun 2017 11:16:46 -0400 Subject: [PATCH] Add function to enable GLONASS and remove Dirac blobs --- Scripts/Generic_Deblob.sh | 3 +++ Scripts/LAOS-14.1_Patches.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/Scripts/Generic_Deblob.sh b/Scripts/Generic_Deblob.sh index 6c5b0d32..bf4ab4ed 100755 --- a/Scripts/Generic_Deblob.sh +++ b/Scripts/Generic_Deblob.sh @@ -57,6 +57,9 @@ export base; #Diagnostics [Qualcomm] blobs=$blobs"|[/]diag[/]|diag_callback_client|diag_dci_sample|diag_klog|diag_mdlog|diag_mdlog-getlogs|diag_mdlog-wrap|diag[/]mdm|diag_qshrink4_daemon|diag_socket_log|diag_uart_log|drmdiagapp|ibdrmdiag.so|ssr_diag|test_diag"; + #Dirac (Audio Effects) [Dirac] + blobs=$blobs"|diracmobile.config|libDiracAPI_SHARED.so|libdirac.so"; + #Discretix (DRM/HDCP) [Discretix Technologies] blobs=$blobs"|discretix|DxHDCP.cfg|dxhdcp2.b00|dxhdcp2.b01|dxhdcp2.b02|dxhdcp2.b03|dxhdcp2.mdt|libDxHdcp.so"; diff --git a/Scripts/LAOS-14.1_Patches.sh b/Scripts/LAOS-14.1_Patches.sh index def564f8..ccfabd85 100755 --- a/Scripts/LAOS-14.1_Patches.sh +++ b/Scripts/LAOS-14.1_Patches.sh @@ -46,6 +46,14 @@ disableDexPreOpt() { sed -i 's/WITH_DEXPREOPT := true/WITH_DEXPREOPT := false/' BoardConfig.mk; echo "Disabled dexpreopt"; } + +enableGlonass() { + #GLONASS + sed -i 's/#A_GLONASS_POS_PROTOCOL_SELECT/A_GLONASS_POS_PROTOCOL_SELECT/' gps.conf gps/gps.conf configs/gps.conf || true; + sed -i 's/A_GLONASS_POS_PROTOCOL_SELECT = 0/A_GLONASS_POS_PROTOCOL_SELECT = 15/' gps.conf gps/gps.conf configs/gps.conf || true; + sed -i 's/A_GLONASS_POS_PROTOCOL_SELECT=0/A_GLONASS_POS_PROTOCOL_SELECT=15/' overlay/frameworks/base/core/res/res/values-*/*.xml || true; + echo "Enabled GLONASS"; +} # #END OF PREPRATION # @@ -167,15 +175,18 @@ cp $patches"cm_platform_sdk/profile_default.xml" cm/res/res/xml/profile_default. # enter "device/motorola/clark" enableDexPreOpt +enableGlonass enter "device/oneplus/bacon" enableDexPreOpt +enableGlonass enter "kernel/oneplus/msm8974" 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 enter "device/lge/mako" disableDexPreOpt #bootloops +enableGlonass patch -p1 < $patches"android_device_lge_mako/0001-Enable_LTE.patch" #Enable LTE support (Requires LTE hybrid modem to be flashed) #enter "kernel/lge/mako"