Fix per app performance profiles

This commit is contained in:
Tad 2017-07-03 03:34:13 -04:00
parent 38dada1aef
commit dd09109ddd
3 changed files with 202 additions and 217 deletions

View File

@ -0,0 +1,196 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Automatic power profile management per app.
Each item should list the fully-qualified activity
name and the power profile id, separated by a comma. -->
<!-- 0: Power Save, 3: Efficiency, 1: Balanced, 4: Quick, 2: Performance -->
<string-array name="config_auto_perf_activities" translatable="false">
<!-- FOSS Apps -->
<item>acr.browser.lightning.*,1</item>
<item>at.bitfire.davdroid.*,0</item>
<item>be.uhasselt.privacypolice.*,0</item>
<item>br.usp.ime.retrobreaker.*,3</item>
<item>ch.blinkenlights.android.vanilla.*,3</item>
<item>ch.logixisland.anuto.*,3</item>
<item>com.a5corp.weather.*,0</item>
<item>com.aaronjwood.portauthority.*,1</item>
<item>com.anddevw.getchromium.*,4</item>
<item>com.android.calculator2.*,0</item>
<item>com.android.calendar.*,0</item>
<item>com.android.contacts.*,3</item>
<item>com.android.deskclock.*,0</item>
<item>com.android.dialer.*,1</item>
<item>com.android.documentsui.*,3</item>
<item>com.android.gallery3d.*,3</item>
<item>com.android.keepass.*,3</item>
<item>com.android.settings.*,3</item>
<item>com.catchingnow.tinyclipboardmanager.*,0</item>
<item>com.commit451.gitlab.*,1</item>
<item>com.cyanogenmod.eleven.*,3</item>
<item>com.darshancomputing.BatteryIndicatorPro.*,3</item>
<item>com.dosse.chromiumautoupdater.*,4</item>
<item>com.dozingcatsoftware.bouncy.*,3</item>
<item>com.fsck.k9.*,1</item>
<item>com.github.pires.obd.reader.*,3</item>
<item>com.github.yeriomin.yalpstore.*,1</item>
<item>com.google.android.gms.*,3</item>
<item>com.google.zxing.client.android.*,3</item>
<item>com.grarak.kerneladiutor.*,3</item>
<item>com.jbirdvegas.mgerrit.*,3</item>
<item>com.jefftharris.passwdsafe.*,3</item>
<item>com.mitzuli.*,1</item>
<item>com.morlunk.mumbleclient.*,3</item>
<item>com.nextcloud.android.beta.*,3</item>
<item>com.nononsenseapps.feeder.*,3</item>
<item>com.nutomic.syncthingandroid.*,1</item>
<item>com.orgzly.*,3</item>
<item>com.pandoroid.*,3</item>
<item>com.physphil.android.unitconverterultimate.*,0</item>
<item>com.reddyetwo.hashmypass.app.*,3</item>
<item>com.saibotd.bitbeaker.*,1</item>
<item>com.shatteredpixel.shatteredpixeldungeon.*,3</item>
<item>com.simplemobiletools.gallery.*,3</item>
<item>com.stoutner.privacybrowser.standard.*,1</item>
<item>com.termux.*,3</item>
<item>com.twistedplane.sealnote.*,3</item>
<item>com.vonglasow.michael.satstat.*,3</item>
<item>com.xargsgrep.portknocker.*,0</item>
<item>com.yassirh.digitalocean.*,3</item>
<item>com.yubico.yubioath.*,3</item>
<item>com.zeapo.pwdstore.*,3</item>
<item>cz.martykan.forecastie.*,0</item>
<item>de.danoeh,antennapod.*,3</item>
<item>de.baumann.sieben.*,0</item>
<item>de.blinkt.openvpn.*,3</item>
<item>de.schildbach.wallet.*,1</item>
<item>de.srlabs.snoopsnitch.*,3</item>
<item>de.tobiasbielefeld.solitaire.*,0</item>
<item>dev.ukanth.ufirewall.*,3</item>
<item>dk.jens.backup.*,4</item>
<item>eu.faircode.netguard.*,1</item>
<item>eu.siacs.conversations.*,3</item>
<item>fly.speedmeter.grub.*,3</item>
<item>free.rm.skytube.oss.*,1</item>
<item>im.vector.alpha.*,1</item>
<item>info.guardianproject.orfox.*,1</item>
<item>info.guardianproject.pixelknot.*,4</item>
<item>io.github.benoitduffez.cupsprint.*,3</item>
<item>io.github.hidroh.materialistic.*,3</item>
<item>jp.forkhub.*,1</item>
<item>me.ccrama.redditslide.*,1</item>
<item>me.johnmh.boogdroid.*,3</item>
<item>me.zeeroooo.materialfb.*,1</item>
<item>net.i2p.android.router.*,1</item>
<item>net.minetest.minetest.*,4</item>
<item>net.nightwhistler.pageturner.*,0</item>
<item>net.nullsum.audinaut.*,3</item>
<item>net.osmand.plus.*,4</item>
<item>org.adaway.*,4</item>
<item>org.asdtm.goodweather.*,0</item>
<item>org.billthefarmer.diary.*,0</item>
<item>org.blockinger.game.*,3</item>
<item>org.bottiger.podcast.*,3</item>
<item>org.cipherdyne.fwknop2.*,0</item>
<item>org.connectbot.*,3</item>
<item>org.csploit.android.*,4</item>
<item>org.cyanogenmod.audiofx.*,3</item>
<item>org.cyanogenmod.snap.*,1</item>
<item>org.documentfoundation.libreoffice.*,1</item>
<item>org.eehouse.android.xw4.*,3</item>
<item>org.fdroid.fdroid.*,1</item>
<item>org.fedorahosted.freeotp.*,0</item>
<item>org.fitchfamily.android.gsmlocation.*,4</item>
<item>org.fitchfamily.android.wifi_backend.*,3</item>
<item>org.floens.chan.*,3</item>
<item>org.gateshipone.malp.*,3</item>
<item>org.gnu.icecat.*,1</item>
<item>org.indywidualni.fblite.*,3</item>
<item>org.isoron.uhabits.*,3</item>
<item>org.jak_linux.dns66.*,1</item>
<item>org.kiwix.kiwixmobile.*,1</item>
<item>org.ligi.survivalmanual.*,0</item>
<item>org.lineageos.jelly.*,1</item>
<item>org.lineageos.recorder.*,1</item>
<item>org.linphone.*,1</item>
<item>org.lumicall.android.*,1</item>
<item>org.mariotaku.twidere.*,1</item>
<item>org.microg.nlp.backend.ichnaea.*,3</item>
<item>org.microg.nlp.backend.nominatim.*,0</item>
<item>org.mozilla.fennec_fdroid.*,1</item>
<item>org.ppsspp.ppsspp.*,4</item>
<item>org.primftpd.*,3</item>
<item>org.proninyaroslav.libretorrent.*,1</item>
<item>org.quantumbadger.redreader.*,3</item>
<item>org.schabi.etherwake.*,0</item>
<item>org.schabi.newpipe.*,1</item>
<item>org.secuso.privacyfriendlyactivitytracker.*,3</item>
<item>org.secuso.privacyfriendlynetmonitor.*,3</item>
<item>org.secuso.privacyfriendlynotes.*,0</item>
<item>org.secuso.privacyfriendlysudoku.*,0</item>
<item>org.smssecure.smssecure.*,3</item>
<item>org.sufficientlysecure.keychain.*,1</item>
<item>org.sufficientlysecure.localcalendar.*,0</item>
<item>org.sufficientlysecure.viewer.*,3</item>
<item>org.tasks.*,3</item>
<item>org.telegram.messenger.*,1</item>
<item>org.thoughtcrime.securesms.*,1</item>
<item>org.torproject.android.*,3</item>
<item>org.totschnig.myexpenses.*,3</item>
<item>org.transdroid.full.*,0</item>
<item>org.videolan.vlc.*,1</item>
<item>org.wikipedia.*,3</item>
<item>org.xbmc.kodi.*,1</item>
<item>org.xbmc.kore.*,3</item>
<item>protect.card_locker.*,0</item>
<item>tk.jordynsmediagroup.simpleirc.fdroid.*,0</item>
<!-- Proprietary Apps -->
<item>com.a1dev.sdbench.*,2</item>
<item>com.amazon.kindle.*,3</item>
<item>com.amazon.mp3.*,3</item>
<item>com.antutu.ABenchMark.*,2</item>
<item>com.antutu.benchmark.full.*,2</item>
<item>com.apple.android.music.*,3</item>
<item>com.aurorasoftworks.quadrant.ui.standard.*,2</item>
<item>com.authy.authy.*,3</item>
<item>com.facebook.mlite.*,3</item>
<item>com.facebook.orca.*,1</item>
<item>com.futuremark.dmandroid.application.*,2</item>
<item>com.futuremark.pcmark.android.benchmark.*,2</item>
<item>com.google.android.apps.fireball.*,1</item>
<item>com.google.android.apps.googlevoice.*,3</item>
<item>com.google.android.apps.maps.*,1</item>
<item>com.google.android.apps.photos.*,1</item>
<item>com.google.android.apps.tachyon.*,1</item>
<item>com.google.android.apps.translate.*,1</item>
<item>com.google.android.apps.youtube.music.*,1</item>
<item>com.google.android.music.*,3</item>
<item>com.google.android.talk.*,1</item>
<item>com.google.android.youtube.*,1</item>
<item>com.netflix.mediaclient.*,1</item>
<item>com.pandora.android.*,3</item>
<item>com.passmark.pt_mobile.*,2</item>
<item>com.primatelabs.geekbench.*,2</item>
<item>com.rightware.BasemarkOSII.*,2</item>
<item>com.snapchat.android.*,1</item>
<item>com.soundcloud.android.*,3</item>
<item>com.spotify.music.*,3</item>
<item>com.squareup.*,1</item>
<item>com.whatsapp.*,3</item>
<item>eu.chainfire.cfbench.*,2</item>
</string-array>
</resources>

View File

@ -1,212 +0,0 @@
From bf751ddb83109faeeffebe85363ce8edd00fc6f6 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Sun, 2 Jul 2017 23:28:25 -0400
Subject: [PATCH] Per App Performance Profiles
Change-Id: Ifcfa1738bcd823973db317f7d34eb57a1fd31856
---
.../internal/PerformanceManagerService.java | 2 +-
cm/res/res/values/config.xml | 173 +++++++++++++++++++++
2 files changed, 174 insertions(+), 1 deletion(-)
diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/PerformanceManagerService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/PerformanceManagerService.java
index 378050e..fd9db05 100644
--- a/cm/lib/main/java/org/cyanogenmod/platform/internal/PerformanceManagerService.java
+++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/PerformanceManagerService.java
@@ -218,7 +218,7 @@ public class PerformanceManagerService extends CMSystemService {
}
float weight = Float.valueOf(profileWeights[i]);
mProfiles.put(profileIds[i], new PerformanceProfile(profileIds[i],
- weight, profileNames[i], profileDescs[i], shouldUseOptimizations(weight)));
+ weight, profileNames[i], profileDescs[i], true));
}
}
diff --git a/cm/res/res/values/config.xml b/cm/res/res/values/config.xml
index a85365f..d517ea7 100644
--- a/cm/res/res/values/config.xml
+++ b/cm/res/res/values/config.xml
@@ -43,7 +43,180 @@
<!-- Automatic power profile management per app.
Each item should list the fully-qualified activity
name and the power profile id, separated by a comma. -->
+ <!-- 0: Power Save, 3: Efficiency, 1: Balanced, 4: Quick, 2: Performance -->
<string-array name="config_auto_perf_activities" translatable="false">
+ <!-- FOSS Apps -->
+ <item>acr.browser.lightning.*,1</item>
+ <item>at.bitfire.davdroid.*,0</item>
+ <item>be.uhasselt.privacypolice.*,0</item>
+ <item>br.usp.ime.retrobreaker.*,3</item>
+ <item>ch.blinkenlights.android.vanilla.*,3</item>
+ <item>ch.logixisland.anuto.*,3</item>
+ <item>com.a5corp.weather.*,0</item>
+ <item>com.aaronjwood.portauthority.*,1</item>
+ <item>com.anddevw.getchromium.*,4</item>
+ <item>com.android.calculator2.*,0</item>
+ <item>com.android.calendar.*,0</item>
+ <item>com.android.contacts.*,3</item>
+ <item>com.android.deskclock.*,0</item>
+ <item>com.android.dialer.*,1</item>
+ <item>com.android.documentsui.*,3</item>
+ <item>com.android.gallery3d.*,3</item>
+ <item>com.android.keepass.*,3</item>
+ <item>com.android.settings.*,3</item>
+ <item>com.catchingnow.tinyclipboardmanager.*,0</item>
+ <item>com.commit451.gitlab.*,1</item>
+ <item>com.cyanogenmod.eleven.*,3</item>
+ <item>com.darshancomputing.BatteryIndicatorPro.*,3</item>
+ <item>com.dosse.chromiumautoupdater.*,4</item>
+ <item>com.dozingcatsoftware.bouncy.*,3</item>
+ <item>com.fsck.k9.*,1</item>
+ <item>com.github.pires.obd.reader.*,3</item>
+ <item>com.github.yeriomin.yalpstore.*,1</item>
+ <item>com.google.android.gms.*,3</item>
+ <item>com.google.zxing.client.android.*,3</item>
+ <item>com.grarak.kerneladiutor.*,3</item>
+ <item>com.jbirdvegas.mgerrit.*,3</item>
+ <item>com.jefftharris.passwdsafe.*,3</item>
+ <item>com.mitzuli.*,1</item>
+ <item>com.morlunk.mumbleclient.*,3</item>
+ <item>com.nextcloud.android.beta.*,3</item>
+ <item>com.nononsenseapps.feeder.*,3</item>
+ <item>com.nutomic.syncthingandroid.*,1</item>
+ <item>com.orgzly.*,3</item>
+ <item>com.pandoroid.*,3</item>
+ <item>com.physphil.android.unitconverterultimate.*,0</item>
+ <item>com.reddyetwo.hashmypass.app.*,3</item>
+ <item>com.saibotd.bitbeaker.*,1</item>
+ <item>com.shatteredpixel.shatteredpixeldungeon.*,3</item>
+ <item>com.simplemobiletools.gallery.*,3</item>
+ <item>com.stoutner.privacybrowser.standard.*,1</item>
+ <item>com.termux.*,3</item>
+ <item>com.twistedplane.sealnote.*,3</item>
+ <item>com.vonglasow.michael.satstat.*,3</item>
+ <item>com.xargsgrep.portknocker.*,0</item>
+ <item>com.yassirh.digitalocean.*,3</item>
+ <item>com.yubico.yubioath.*,3</item>
+ <item>com.zeapo.pwdstore.*,3</item>
+ <item>cz.martykan.forecastie.*,0</item>
+ <item>de.danoeh,antennapod.*,3</item>
+ <item>de.baumann.sieben.*,0</item>
+ <item>de.blinkt.openvpn.*,3</item>
+ <item>de.schildbach.wallet.*,1</item>
+ <item>de.srlabs.snoopsnitch.*,3</item>
+ <item>de.tobiasbielefeld.solitaire.*,0</item>
+ <item>dev.ukanth.ufirewall.*,3</item>
+ <item>dk.jens.backup.*,4</item>
+ <item>eu.faircode.netguard.*,1</item>
+ <item>eu.siacs.conversations.*,3</item>
+ <item>fly.speedmeter.grub.*,3</item>
+ <item>free.rm.skytube.oss.*,1</item>
+ <item>im.vector.alpha.*,1</item>
+ <item>info.guardianproject.orfox.*,1</item>
+ <item>info.guardianproject.pixelknot.*,4</item>
+ <item>io.github.benoitduffez.cupsprint.*,3</item>
+ <item>io.github.hidroh.materialistic.*,3</item>
+ <item>jp.forkhub.*,1</item>
+ <item>me.ccrama.redditslide.*,1</item>
+ <item>me.johnmh.boogdroid.*,3</item>
+ <item>me.zeeroooo.materialfb.*,1</item>
+ <item>net.i2p.android.router.*,1</item>
+ <item>net.minetest.minetest.*,4</item>
+ <item>net.nightwhistler.pageturner.*,0</item>
+ <item>net.nullsum.audinaut.*,3</item>
+ <item>net.osmand.plus.*,4</item>
+ <item>org.adaway.*,4</item>
+ <item>org.asdtm.goodweather.*,0</item>
+ <item>org.billthefarmer.diary.*,0</item>
+ <item>org.blockinger.game.*,3</item>
+ <item>org.bottiger.podcast.*,3</item>
+ <item>org.cipherdyne.fwknop2.*,0</item>
+ <item>org.connectbot.*,3</item>
+ <item>org.csploit.android.*,4</item>
+ <item>org.cyanogenmod.audiofx.*,3</item>
+ <item>org.cyanogenmod.snap.*,1</item>
+ <item>org.documentfoundation.libreoffice.*,1</item>
+ <item>org.eehouse.android.xw4.*,3</item>
+ <item>org.fdroid.fdroid.*,1</item>
+ <item>org.fedorahosted.freeotp.*,0</item>
+ <item>org.fitchfamily.android.gsmlocation.*,4</item>
+ <item>org.fitchfamily.android.wifi_backend.*,3</item>
+ <item>org.floens.chan.*,3</item>
+ <item>org.gateshipone.malp.*,3</item>
+ <item>org.gnu.icecat.*,1</item>
+ <item>org.indywidualni.fblite.*,3</item>
+ <item>org.isoron.uhabits.*,3</item>
+ <item>org.jak_linux.dns66.*,1</item>
+ <item>org.kiwix.kiwixmobile.*,1</item>
+ <item>org.ligi.survivalmanual.*,0</item>
+ <item>org.lineageos.jelly.*,1</item>
+ <item>org.lineageos.recorder.*,1</item>
+ <item>org.linphone.*,1</item>
+ <item>org.lumicall.android.*,1</item>
+ <item>org.mariotaku.twidere.*,1</item>
+ <item>org.microg.nlp.backend.ichnaea.*,3</item>
+ <item>org.microg.nlp.backend.nominatim.*,0</item>
+ <item>org.mozilla.fennec_fdroid.*,1</item>
+ <item>org.ppsspp.ppsspp.*,4</item>
+ <item>org.primftpd.*,3</item>
+ <item>org.proninyaroslav.libretorrent.*,1</item>
+ <item>org.quantumbadger.redreader.*,3</item>
+ <item>org.schabi.etherwake.*,0</item>
+ <item>org.schabi.newpipe.*,1</item>
+ <item>org.secuso.privacyfriendlyactivitytracker.*,3</item>
+ <item>org.secuso.privacyfriendlynetmonitor.*,3</item>
+ <item>org.secuso.privacyfriendlynotes.*,0</item>
+ <item>org.secuso.privacyfriendlysudoku.*,0</item>
+ <item>org.smssecure.smssecure.*,3</item>
+ <item>org.sufficientlysecure.keychain.*,1</item>
+ <item>org.sufficientlysecure.localcalendar.*,0</item>
+ <item>org.sufficientlysecure.viewer.*,3</item>
+ <item>org.tasks.*,3</item>
+ <item>org.telegram.messenger.*,1</item>
+ <item>org.thoughtcrime.securesms.*,1</item>
+ <item>org.torproject.android.*,3</item>
+ <item>org.totschnig.myexpenses.*,3</item>
+ <item>org.transdroid.full.*,0</item>
+ <item>org.videolan.vlc.*,1</item>
+ <item>org.wikipedia.*,3</item>
+ <item>org.xbmc.kodi.*,1</item>
+ <item>org.xbmc.kore.*,3</item>
+ <item>protect.card_locker.*,0</item>
+ <item>tk.jordynsmediagroup.simpleirc.fdroid.*,0</item>
+ <!-- Proprietary Apps -->
+ <item>com.a1dev.sdbench.*,2</item>
+ <item>com.amazon.kindle.*,3</item>
+ <item>com.amazon.mp3.*,3</item>
+ <item>com.antutu.ABenchMark.*,2</item>
+ <item>com.antutu.benchmark.full.*,2</item>
+ <item>com.apple.android.music.*,3</item>
+ <item>com.aurorasoftworks.quadrant.ui.standard.*,2</item>
+ <item>com.authy.authy.*,3</item>
+ <item>com.facebook.mlite.*,3</item>
+ <item>com.facebook.orca.*,1</item>
+ <item>com.futuremark.dmandroid.application.*,2</item>
+ <item>com.futuremark.pcmark.android.benchmark.*,2</item>
+ <item>com.google.android.apps.fireball.*,1</item>
+ <item>com.google.android.apps.googlevoice.*,3</item>
+ <item>com.google.android.apps.maps.*,1</item>
+ <item>com.google.android.apps.photos.*,1</item>
+ <item>com.google.android.apps.tachyon.*,1</item>
+ <item>com.google.android.apps.translate.*,1</item>
+ <item>com.google.android.apps.youtube.music.*,1</item>
+ <item>com.google.android.music.*,3</item>
+ <item>com.google.android.talk.*,1</item>
+ <item>com.google.android.youtube.*,1</item>
+ <item>com.netflix.mediaclient.*,1</item>
+ <item>com.pandora.android.*,3</item>
+ <item>com.passmark.pt_mobile.*,2</item>
+ <item>com.primatelabs.geekbench.*,2</item>
+ <item>com.rightware.BasemarkOSII.*,2</item>
+ <item>com.snapchat.android.*,1</item>
+ <item>com.soundcloud.android.*,3</item>
+ <item>com.spotify.music.*,3</item>
+ <item>com.squareup.*,1</item>
+ <item>com.whatsapp.*,3</item>
+ <item>eu.chainfire.cfbench.*,2</item>
</string-array>
<!-- Default value for proximity check on screen wake
--
2.13.2

View File

@ -111,7 +111,7 @@ sed -i 's/ext.androidBuildVersionTools = "24.0.3"/ext.androidBuildVersionTools =
enter "packages/apps/FDroid"
patch -p1 < $patches"android_packages_apps_FDroid/0001.patch" #Enable privigled module
patch -p1 < $patches"android_packages_apps_FDroid/0002-Repos.patch" #Add IzzySoft and microG repos
patch -p1 < $patches"android_packages_apps_FDroid/0002-Repos.patch" #Add IzzySoft, microG, and Eutopia repos
enter "packages/apps/FDroidPrivilegedExtension"
patch -p1 < $patches"android_packages_apps_FDroidPrivilegedExtension/0002-Release_Key.patch" #Change to release key
@ -149,22 +149,23 @@ patch -p1 < $patches"android_packages_inputmethods_LatinIME/0001-Voice.patch" #R
enter "system/core"
cat /tmp/ar/hosts >> rootdir/etc/hosts #Merge in our HOSTS file
patch -p1 < $patches"android_system_core/0001-Harden_Mounts.patch" #Harden mounts with nodev/noexec/nosuid
#patch -p1 < $patches"android_system_core/0002-Harden_Network.patch" #Harden network via sysctls
#patch -p1 < $patches"android_system_core/0002-Harden_Network.patch" #Harden network via sysctls FIXME: Tethering
enter "system/netd"
patch -p1 < $patches"android_system_netd/0001-Harden_Network.patch"; #Harden network via iptables
#enter "system/netd"
#patch -p1 < $patches"android_system_netd/0001-Harden_Network.patch"; #Harden network via iptables FIXME: Tethering
enter "vendor/cm"
awk -i inplace '!/50-cm.sh/' config/common.mk; #Make sure our hosts is always used
patch -p1 < $patches"android_vendor_cm/0001-SCE.patch" #Include our extras such as MicroG and F-Droid
cp $patches"android_vendor_cm/sce.mk" config/sce.mk
cp $patches"android_vendor_cm/config.xml" overlay/common/vendor/cmsdk/cm/res/res/values/config.xml; #Per app performance profiles
sed -i 's/CM_BUILDTYPE := UNOFFICIAL/CM_BUILDTYPE := dos/' config/common.mk; #Change buildtype
sed -i 's/messaging/Silence/' config/telephony.mk; #Replace AOSP Messaging app with Silence
enter "vendor/cmsdk"
git fetch https://review.lineageos.org/LineageOS/cm_platform_sdk refs/changes/21/148321/14 && git cherry-pick FETCH_HEAD #network traffic
patch -p1 < $patches"cm_platform_sdk/0001-PAPP.patch"; #Per app performance profiles
cp $patches"cm_platform_sdk/profile_default.xml" cm/res/res/xml/profile_default.xml; #Replace default profiles with *way* better ones
sed -i 's/shouldUseOptimizations(weight)/true/' cm/lib/main/java/org/cyanogenmod/platform/internal/PerformanceManagerService.java;
#
#END OF ROM CHANGES
#