mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Remove msm8992 overclock, fix IMS,, fix credits, update changelog, and general cleanup
This commit is contained in:
parent
926f6a5c41
commit
b49d739e89
7 changed files with 19 additions and 583 deletions
|
@ -3,12 +3,12 @@
|
|||
|
||||
#Goal: Remove as many proprietary blobs without breaking core functionality
|
||||
#Outcome: Increased battery/performance/privacy/security, Decreased ROM size
|
||||
#TODO: Clean init*.rc files, Create TWRP version, Modularize, Remove more variants
|
||||
#TODO: Clean init*.rc files, Modularize, Remove more variants
|
||||
|
||||
#
|
||||
#Device Status (Tested under LineageOS 14.1 and 11.0)
|
||||
#Device Status (Tested under LineageOS 14.1)
|
||||
#
|
||||
#Fully Functional: bacon, clark, mako
|
||||
#Functioning as Expected: bacon, clark, mako
|
||||
|
||||
base="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/";
|
||||
export base;
|
||||
|
@ -89,17 +89,13 @@ export base;
|
|||
blobs=$blobs"|iop|libqc-opt.so|libqti-iop-client.so|libqti-iop.so|QPerformance.jar";
|
||||
|
||||
#IMS (VoLTE/Wi-Fi Calling) [Qualcomm]
|
||||
#TODO: Deeply consider the security benefit of always being able to utilize LTE's superior encryption against the benefit from having fewer blobs
|
||||
#TODO: Test on a carrier that has phased out 2G (such as AT&T)
|
||||
#XXX: This is a *VERY* aggressive change and will most likely be disabled in the future
|
||||
#XXX: Logcat is spammed with ~6 lines every 15 seconds by ims-common during calls
|
||||
#blobs=$blobs"|ims.apk|ims.xml|lib-imscamera.so|libimsmedia_jni.so"; #IMS (Core)
|
||||
blobs=$blobs"|imscmlibrary.jar|imscmservice|imscm.xml|imsdatadaemon|imsqmidaemon|imssettings.apk|lib-imsdpl.so|lib-imsqimf.so|lib-imsSDP.so|lib-imss.so|lib-imsvt.so|lib-imsxml.so"; #IMS
|
||||
#blobs=$blobs"|ims.apk|ims.xml|libimsmedia_jni.so"; #IMS (Core)
|
||||
blobs=$blobs"|imscmlibrary.jar|imscmservice|imscm.xml|imsdatadaemon|imsqmidaemon|imssettings.apk|lib-imsdpl.so|lib-imscamera.so|lib-imsqimf.so|lib-imsSDP.so|lib-imss.so|lib-imsvt.so|lib-imsxml.so"; #IMS
|
||||
blobs=$blobs"|ims_rtp_daemon|lib-rtpcommon.so|lib-rtpcore.so|lib-rtpdaemoninterface.so|lib-rtpsl.so"; #RTP
|
||||
blobs=$blobs"|lib-dplmedia.so|librcc.so|libvcel.so|libvoice-svc.so|qti_permissions.xml|volte_modem[/]"; #Misc.
|
||||
|
||||
#IPA (Internet Packet Accelerator) [Qualcomm]
|
||||
#XXX: This is actually open source (excluding -diag), but doesn't seem that benefical and has been shown vulnerable before
|
||||
#This is actually open source (excluding -diag), but doesn't seem that benefical and has been shown vulnerable before
|
||||
#blobs=$blobs"|ipacm";
|
||||
blobs=$blobs"|ipacm-diag";
|
||||
#makes=$makes"|ipacm|IPACM_cfg.xml";
|
||||
|
@ -116,7 +112,7 @@ export base;
|
|||
makes=$makes"|com.motorola.cameraone.xml";
|
||||
|
||||
#Performance [Qualcomm]
|
||||
#blobs=$blobs"|msm_irqbalance"; #TODO: Try and replace this with vanilla irqbalance
|
||||
#blobs=$blobs"|msm_irqbalance";
|
||||
#New devices don't seem to hotplug cores without this
|
||||
#I tried to replace this with showp1984's msm_mpdecision, but the newer kernels simply don't have the mach_msm dependencies that are needed
|
||||
#blobs=$blobs"|mpdecision|libqti-perfd-client.so|perfd|perf-profile0.conf|perf-profile1.conf|perf-profile2.conf|perf-profile3.conf|perf-profile4.conf|perf-profile5.conf";
|
||||
|
@ -150,8 +146,6 @@ export base;
|
|||
|
||||
#Time Service [Qualcomm]
|
||||
#XXX: Requires that https://github.com/LineageOS/android_hardware_sony_timekeep be included in repo manifest
|
||||
#XXX: This is another aggressive change and might be disabled in the future
|
||||
#XXX: Time seems to be set properly with these blobs removed without Sony TimeKeep, so there may be more shenanigans here unless thats just NTP
|
||||
#blobs=$blobs"|libtime_genoff.so"; #XXX: Breaks radio
|
||||
blobs=$blobs"|libTimeService.so|time_daemon|TimeService.apk";
|
||||
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#!/bin/bash
|
||||
#Copyright (c) 2015-2017 Spot Communications, Inc.
|
||||
|
||||
#TODO: Aggressive Doze (Verify Extended Doze First), Failed Unlock Shutdown, Optimized build flags, Optimized toolchain, Ship Chromium and Offline Calendar, Wallpaper
|
||||
|
||||
#Delete Everything
|
||||
#repo forall -c 'git add -A && git reset --hard' && rm -rf build external/noto-fonts external/sqlite frameworks/base packages/apps/CMParts packages/apps/FakeStore packages/apps/FDroid packages/apps/FDroidPrivilegedExtension packages/apps/GmsCore packages/apps/GsfProxy packages/apps/IchnaeaNlpBackend packages/apps/SetupWizard system/core vendor/cm frameworks/opt/net/ims packages/apps/Settings out
|
||||
#repo forall -c 'git add -A && git reset --hard' && rm -rf packages/apps/GmsCore out
|
||||
|
||||
#Prepare a build
|
||||
#repo sync -j20 --force-sync && sh ../../Scripts/LAOS-14.1_Patches.sh && source ../../Scripts/Generic_Deblob.sh && source build/envsetup.sh && export ANDROID_HOME="/home/$USER/Android/Sdk" && export ANDROID_JACK_VM_ARGS="-Xmx6144m -Xms512m -Dfile.encoding=UTF-8 -XX:+TieredCompilation" && export JACK_SERVER_VM_ARGUMENTS="${ANDROID_JACK_VM_ARGS}" && GRADLE_OPTS=-Xmx2048m && export KBUILD_BUILD_USER=emy && export KBUILD_BUILD_HOST=dosbm
|
||||
|
@ -25,6 +23,7 @@ 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/emojione/emojione/raw/master/extras/fonts/emojione-android.ttf -N #XXX: Requires attribuition
|
||||
wget https://patch-diff.githubusercontent.com/raw/TheMuppets/proprietary_vendor_oneplus/pull/81.patch -N
|
||||
|
||||
#Accept all SDK licences, not normally needed but Gradle managed apps fail without it
|
||||
mkdir -p "$ANDROID_HOME/licenses"
|
||||
|
@ -34,7 +33,6 @@ echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/a
|
|||
enter() {
|
||||
echo "================================================================================================"
|
||||
dir=$1;
|
||||
#project=${$dir//'/'/'_'}; #TODO: Add project conversion, to simplify patching
|
||||
cd $base$dir;
|
||||
echo "[ENTERING] "$dir;
|
||||
git add -A && git reset --hard;
|
||||
|
@ -143,7 +141,7 @@ sed -i 's/CM_BUILDTYPE := UNOFFICIAL/CM_BUILDTYPE := dos/' config/common.mk; #Ch
|
|||
|
||||
enter "vendor/cmsdk"
|
||||
git fetch https://review.lineageos.org/LineageOS/cm_platform_sdk refs/changes/21/148321/12 && git cherry-pick FETCH_HEAD #network traffic
|
||||
cp $patches"cm_platform_sdk/profile_default.xml" cm/res/res/xml/profile_default.xml; #Replace default profiles with *way* better ones
|
||||
cp $patches"cm_platform_sdk/profile_default.xml" cm/res/res/xml/profile_default.xml; #Replace default profiles with *way* better ones #TODO: 2G/3G -> LTE
|
||||
#
|
||||
#END OF ROM CHANGES
|
||||
#
|
||||
|
@ -154,11 +152,11 @@ cp $patches"cm_platform_sdk/profile_default.xml" cm/res/res/xml/profile_default.
|
|||
enter "device/motorola/clark"
|
||||
enableDexPreOpt
|
||||
|
||||
enter "kernel/motorola/msm8992"
|
||||
patch -p1 < $patches"android_kernel_common_msm8992/0001-OverUnderClock.patch" #a57: 1.82Ghz -> 2.01Ghz, a53 1.44Ghz -> 1.63Ghz, 384Mhz -> 300Mhz =+1.14Ghz TODO: Enable by default
|
||||
patch -p1 < $patches"android_kernel_common_msm8992/0002-MMC_Tweak.patch" #Improves MMC performance
|
||||
enter "vendor/oneplus"
|
||||
git am /tmp/ar/81.patch #OSS Camera HAL
|
||||
|
||||
enter "device/oneplus/bacon"
|
||||
git fetch https://review.lineageos.org/LineageOS/android_device_oneplus_bacon refs/changes/82/158782/5 && git cherry-pick FETCH_HEAD #OSS Camera HAL
|
||||
enableDexPreOpt
|
||||
|
||||
enter "kernel/oneplus/msm8974"
|
||||
|
@ -177,16 +175,8 @@ patch -p1 < $patches"android_kernel_lge_hammerhead/0001-OverUnderClock.patch" #2
|
|||
enter "kernel/moto/shamu"
|
||||
patch -p1 < $patches"android_kernel_moto_shamu/0001-OverUnderClock.patch" #300Mhz -> 35Mhz, 2.64Ghz -> 2.88Ghz =+0.96Ghz
|
||||
|
||||
enter "kernel/lge/bullhead"
|
||||
patch -p1 < $patches"android_kernel_common_msm8992/0001-OverUnderClock.patch" #a57: 1.82Ghz -> 2.01Ghz, a53 1.44Ghz -> 1.63Ghz, 384Mhz -> 300Mhz =+1.14Ghz TODO: Enable by default
|
||||
patch -p1 < $patches"android_kernel_common_msm8992/0002-MMC_Tweak.patch" #Improves MMC performance
|
||||
|
||||
enter "kernel/motorola/msm8916"
|
||||
patch -p1 < $patches"android_kernel_motorola_msm8916/0001-Overclock.patch" #1.36Ghz -> 1.88Ghz =+ 2.07Ghz
|
||||
|
||||
enter "kernel/nextbit/msm8992"
|
||||
patch -p1 < $patches"android_kernel_common_msm8992/0001-OverUnderClock.patch" #a57: 1.82Ghz -> 2.01Ghz, a53 1.44Ghz -> 1.63Ghz, 384Mhz -> 300Mhz =+1.14Ghz TODO: Enable by default
|
||||
patch -p1 < $patches"android_kernel_common_msm8992/0002-MMC_Tweak.patch" #Improves MMC performance
|
||||
#
|
||||
#END OF DEVICE CHANGES
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue