mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Per app performance profiles, disable time replacement, drop vs985
PAPPv2 only took 4 years, amirite?
This commit is contained in:
parent
d94f40ec4c
commit
46aa453a5e
@ -154,11 +154,6 @@
|
||||
<project name="LineageOS/android_device_asus_Z00T" path="device/asus/Z00T" remote="github" />
|
||||
<project name="LineageOS/android_kernel_asus_msm8916" path="kernel/asus/msm8916" remote="github" />
|
||||
|
||||
<!-- LG G3 (vs985) -->
|
||||
<project path="device/lge/g3-common" name="LineageOS/android_device_lge_g3-common" remote="github" />
|
||||
<project path="device/lge/vs985" name="LineageOS/android_device_lge_vs985" remote="github" />
|
||||
<project path="kernel/lge/g3" name="LineageOS/android_kernel_lge_g3" remote="github" />
|
||||
|
||||
<!-- Moto G 3rd Gen (osprey) -->
|
||||
<project path="device/motorola/msm8916-common" name="LineageOS/android_device_motorola_msm8916-common" remote="github" />
|
||||
<project path="device/motorola/osprey" name="LineageOS/android_device_motorola_osprey" remote="github" />
|
||||
|
195
Patches/LineageOS-14.1/cm_platform_sdk/0001-PAPP.patch
Normal file
195
Patches/LineageOS-14.1/cm_platform_sdk/0001-PAPP.patch
Normal file
@ -0,0 +1,195 @@
|
||||
From afec965282704a1ab20a0fe08ba684e42e45d7db Mon Sep 17 00:00:00 2001
|
||||
From: Tad <tad@spotco.us>
|
||||
Date: Sat, 1 Jul 2017 19:52:42 -0400
|
||||
Subject: [PATCH] Per App Performance Profiles
|
||||
|
||||
Change-Id: I5e3812a6d99f07c73cba448d2e84a3b4f03eaf0b
|
||||
---
|
||||
cm/res/res/values/config.xml | 170 +++++++++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 170 insertions(+)
|
||||
|
||||
diff --git a/cm/res/res/values/config.xml b/cm/res/res/values/config.xml
|
||||
index a85365f..75b3950 100644
|
||||
--- a/cm/res/res/values/config.xml
|
||||
+++ b/cm/res/res/values/config.xml
|
||||
@@ -43,7 +43,177 @@
|
||||
<!-- 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, 1: Efficiency, 2: Balanced, 3: Quick, 4: Performance -->
|
||||
<string-array name="config_auto_perf_activities" translatable="false">
|
||||
+ <!-- FOSS Apps -->
|
||||
+ <item>acr.browser.lightning.*,2</item>
|
||||
+ <item>at.bitfire.davdroid.*,0</item>
|
||||
+ <item>be.uhasselt.privacypolice.*,0</item>
|
||||
+ <item>br.usp.ime.retrobreaker.*,1</item>
|
||||
+ <item>ch.blinkenlights.android.vanilla.*,1</item>
|
||||
+ <item>ch.logixisland.anuto.*,1</item>
|
||||
+ <item>com.a5corp.weather.*,0</item>
|
||||
+ <item>com.aaronjwood.portauthority.*,2</item>
|
||||
+ <item>com.anddevw.getchromium.*,3</item>
|
||||
+ <item>com.android.calculator2.*,0</item>
|
||||
+ <item>com.android.calendar.*,0</item>
|
||||
+ <item>com.android.contacts.*,1</item>
|
||||
+ <item>com.android.deskclock.*,0</item>
|
||||
+ <item>com.android.dialer.*,2</item>
|
||||
+ <item>com.android.documentsui.*,1</item>
|
||||
+ <item>com.android.gallery3d.*,1</item>
|
||||
+ <item>com.android.keepass.*,1</item>
|
||||
+ <item>com.android.settings.*,1</item>
|
||||
+ <item>com.catchingnow.tinyclipboardmanager.*,0</item>
|
||||
+ <item>com.commit451.gitlab.*,2</item>
|
||||
+ <item>com.darshancomputing.BatteryIndicatorPro.*,1</item>
|
||||
+ <item>com.dosse.chromiumautoupdater.*,3</item>
|
||||
+ <item>com.dozingcatsoftware.bouncy.*,1</item>
|
||||
+ <item>com.fsck.k9.*,2</item>
|
||||
+ <item>com.github.pires.obd.reader.*,1</item>
|
||||
+ <item>com.github.yeriomin.yalpstore.*,2</item>
|
||||
+ <item>com.google.android.gms.*,1</item>
|
||||
+ <item>com.google.zxing.client.android.*,1</item>
|
||||
+ <item>com.grarak.kerneladiutor.*,1</item>
|
||||
+ <item>com.jbirdvegas.mgerrit.*,1</item>
|
||||
+ <item>com.jefftharris.passwdsafe.*,1</item>
|
||||
+ <item>com.mitzuli.*,2</item>
|
||||
+ <item>com.morlunk.mumbleclient.*,1</item>
|
||||
+ <item>com.nextcloud.android.beta.*,1</item>
|
||||
+ <item>com.nononsenseapps.feeder.*,1</item>
|
||||
+ <item>com.nutomic.syncthingandroid.*,2</item>
|
||||
+ <item>com.orgzly.*,1</item>
|
||||
+ <item>com.pandoroid.*,1</item>
|
||||
+ <item>com.physphil.android.unitconverterultimate.*,0</item>
|
||||
+ <item>com.reddyetwo.hashmypass.app.*,1</item>
|
||||
+ <item>com.saibotd.bitbeaker.*,2</item>
|
||||
+ <item>com.shatteredpixel.shatteredpixeldungeon.*,1</item>
|
||||
+ <item>com.simplemobiletools.gallery.*,1</item>
|
||||
+ <item>com.stoutner.privacybrowser.standard.*,2</item>
|
||||
+ <item>com.termux.*,1</item>
|
||||
+ <item>com.twistedplane.sealnote.*,1</item>
|
||||
+ <item>com.vonglasow.michael.satstat.*,1</item>
|
||||
+ <item>com.xargsgrep.portknocker.*,0</item>
|
||||
+ <item>com.yassirh.digitalocean.*,1</item>
|
||||
+ <item>com.yubico.yubioath.*,1</item>
|
||||
+ <item>com.zeapo.pwdstore.*,1</item>
|
||||
+ <item>cz.martykan.forecastie.*,0</item>
|
||||
+ <item>de.baumann.sieben.*,0</item>
|
||||
+ <item>de.blinkt.openvpn.*,1</item>
|
||||
+ <item>de.schildbach.wallet.*,2</item>
|
||||
+ <item>de.srlabs.snoopsnitch.*,1</item>
|
||||
+ <item>de.tobiasbielefeld.solitaire.*,0</item>
|
||||
+ <item>dev.ukanth.ufirewall.*,1</item>
|
||||
+ <item>dk.jens.backup.*,3</item>
|
||||
+ <item>eu.faircode.netguard.*,2</item>
|
||||
+ <item>eu.siacs.conversations.*,1</item>
|
||||
+ <item>fly.speedmeter.grub.*,1</item>
|
||||
+ <item>free.rm.skytube.oss.*,2</item>
|
||||
+ <item>im.vector.alpha.*,2</item>
|
||||
+ <item>info.guardianproject.orfox.*,2</item>
|
||||
+ <item>info.guardianproject.pixelknot.*,3</item>
|
||||
+ <item>io.github.benoitduffez.cupsprint.*,1</item>
|
||||
+ <item>io.github.hidroh.materialistic.*,1</item>
|
||||
+ <item>jp.forkhub.*,2</item>
|
||||
+ <item>me.ccrama.redditslide.*,2</item>
|
||||
+ <item>me.johnmh.boogdroid.*,1</item>
|
||||
+ <item>me.zeeroooo.materialfb.*,2</item>
|
||||
+ <item>net.i2p.android.router.*,2</item>
|
||||
+ <item>net.minetest.minetest.*,3</item>
|
||||
+ <item>net.nightwhistler.pageturner.*,0</item>
|
||||
+ <item>net.nullsum.audinaut.*,1</item>
|
||||
+ <item>net.osmand.plus.*,3</item>
|
||||
+ <item>org.adaway.*,3</item>
|
||||
+ <item>org.asdtm.goodweather.*,0</item>
|
||||
+ <item>org.billthefarmer.diary.*,0</item>
|
||||
+ <item>org.blockinger.game.*,1</item>
|
||||
+ <item>org.cipherdyne.fwknop2.*,0</item>
|
||||
+ <item>org.connectbot.*,1</item>
|
||||
+ <item>org.csploit.android.*,3</item>
|
||||
+ <item>org.cyanogenmod.audiofx.*,1</item>
|
||||
+ <item>org.cyanogenmod.snap.*,2</item>
|
||||
+ <item>org.documentfoundation.libreoffice.*,2</item>
|
||||
+ <item>org.eehouse.android.xw4.*,1</item>
|
||||
+ <item>org.fdroid.fdroid.*,2</item>
|
||||
+ <item>org.fedorahosted.freeotp.*,0</item>
|
||||
+ <item>org.fitchfamily.android.gsmlocation.*,3</item>
|
||||
+ <item>org.fitchfamily.android.wifi_backend.*,1</item>
|
||||
+ <item>org.floens.chan.*,1</item>
|
||||
+ <item>org.gateshipone.malp.*,1</item>
|
||||
+ <item>org.gnu.icecat.*,2</item>
|
||||
+ <item>org.indywidualni.fblite.*,1</item>
|
||||
+ <item>org.isoron.uhabits.*,1</item>
|
||||
+ <item>org.jak_linux.dns66.*,2</item>
|
||||
+ <item>org.kiwix.kiwixmobile.*,2</item>
|
||||
+ <item>org.ligi.survivalmanual.*,0</item>
|
||||
+ <item>org.lineageos.jelly.*,2</item>
|
||||
+ <item>org.lineageos.recorder.*,2</item>
|
||||
+ <item>org.linphone.*,2</item>
|
||||
+ <item>org.lumicall.android.*,2</item>
|
||||
+ <item>org.mariotaku.twidere.*,2</item>
|
||||
+ <item>org.microg.nlp.backend.ichnaea.*,1</item>
|
||||
+ <item>org.microg.nlp.backend.nominatim.*,0</item>
|
||||
+ <item>org.mozilla.fennec_fdroid.*,2</item>
|
||||
+ <item>org.ppsspp.ppsspp.*,3</item>
|
||||
+ <item>org.primftpd.*,1</item>
|
||||
+ <item>org.proninyaroslav.libretorrent.*,2</item>
|
||||
+ <item>org.quantumbadger.redreader.*,1</item>
|
||||
+ <item>org.schabi.etherwake.*,0</item>
|
||||
+ <item>org.schabi.newpipe.*,2</item>
|
||||
+ <item>org.secuso.privacyfriendlyactivitytracker.*,1</item>
|
||||
+ <item>org.secuso.privacyfriendlynetmonitor.*,1</item>
|
||||
+ <item>org.secuso.privacyfriendlynotes.*,0</item>
|
||||
+ <item>org.secuso.privacyfriendlysudoku.*,0</item>
|
||||
+ <item>org.smssecure.smssecure.*,1</item>
|
||||
+ <item>org.sufficientlysecure.keychain.*,2</item>
|
||||
+ <item>org.sufficientlysecure.localcalendar.*,0</item>
|
||||
+ <item>org.sufficientlysecure.viewer.*,1</item>
|
||||
+ <item>org.tasks.*,1</item>
|
||||
+ <item>org.telegram.messenger.*,2</item>
|
||||
+ <item>org.thoughtcrime.securesms.*,2</item>
|
||||
+ <item>org.torproject.android.*,1</item>
|
||||
+ <item>org.totschnig.myexpenses.*,1</item>
|
||||
+ <item>org.transdroid.full.*,0</item>
|
||||
+ <item>org.videolan.vlc.*,2</item>
|
||||
+ <item>org.wikipedia.*,1</item>
|
||||
+ <item>org.xbmc.kodi.*,2</item>
|
||||
+ <item>org.xbmc.kore.*,1</item>
|
||||
+ <item>protect.card_locker.*,0</item>
|
||||
+ <item>tk.jordynsmediagroup.simpleirc.fdroid.*,0</item>
|
||||
+ <!-- Proprietary Apps -->
|
||||
+ <item>com.a1dev.sdbench.*,4</item>
|
||||
+ <item>com.amazon.kindle.*,1</item>
|
||||
+ <item>com.amazon.mp3.*,1</item>
|
||||
+ <item>com.antutu.ABenchMark.*,4</item>
|
||||
+ <item>com.antutu.benchmark.full.*,4</item>
|
||||
+ <item>com.apple.android.music.*,1</item>
|
||||
+ <item>com.aurorasoftworks.quadrant.ui.standard.*,4</item>
|
||||
+ <item>com.authy.authy.*,1</item>
|
||||
+ <item>com.facebook.mlite.*,1</item>
|
||||
+ <item>com.facebook.orca.*,2</item>
|
||||
+ <item>com.futuremark.dmandroid.application.*,4</item>
|
||||
+ <item>com.futuremark.pcmark.android.benchmark.*,4</item>
|
||||
+ <item>com.google.android.apps.fireball.*,2</item>
|
||||
+ <item>com.google.android.apps.googlevoice.*,1</item>
|
||||
+ <item>com.google.android.apps.maps.*,2</item>
|
||||
+ <item>com.google.android.apps.photos.*,2</item>
|
||||
+ <item>com.google.android.apps.tachyon.*,2</item>
|
||||
+ <item>com.google.android.apps.translate.*,2</item>
|
||||
+ <item>com.google.android.apps.youtube.music.*,2</item>
|
||||
+ <item>com.google.android.music.*,1</item>
|
||||
+ <item>com.google.android.talk.*,2</item>
|
||||
+ <item>com.google.android.youtube.*,2</item>
|
||||
+ <item>com.netflix.mediaclient.*,2</item>
|
||||
+ <item>com.pandora.android.*,1</item>
|
||||
+ <item>com.passmark.pt_mobile.*,4</item>
|
||||
+ <item>com.primatelabs.geekbench.*,4</item>
|
||||
+ <item>com.rightware.BasemarkOSII.*,4</item>
|
||||
+ <item>com.snapchat.android.*,2</item>
|
||||
+ <item>com.soundcloud.android.*,1</item>
|
||||
+ <item>com.spotify.music.*,1</item>
|
||||
+ <item>com.squareup.*,2</item>
|
||||
+ <item>com.whatsapp.*,1</item>
|
||||
+ <item>eu.chainfire.cfbench.*,4</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Default value for proximity check on screen wake
|
||||
--
|
||||
2.13.2
|
||||
|
@ -159,7 +159,7 @@ export base;
|
||||
#Time Service [Qualcomm]
|
||||
#Requires that https://github.com/LineageOS/android_hardware_sony_timekeep be included in repo manifest
|
||||
#blobs=$blobs"|libtime_genoff.so"; #XXX: Breaks radio
|
||||
blobs=$blobs"|libTimeService.so|time_daemon|TimeService.apk";
|
||||
#blobs=$blobs"|libTimeService.so|time_daemon|TimeService.apk";
|
||||
|
||||
#Venus (Hardware Video Decoding) [Qualcomm]
|
||||
#blobs=$blobs"|venus.b00|venus.b01|venus.b02|venus.b03|venus.b04|venus.mbn|venus.mdt";
|
||||
@ -201,6 +201,7 @@ deblobDevice() {
|
||||
if [ "${PWD##*/}" == "flo" ] || [ "${PWD##*/}" == "mako" ] || [ "${PWD##*/}" == "kona-common" ] || [ "${PWD##*/}" == "n5110" ] || [ "${PWD##*/}" == "smdk4412-common" ] || [ "${PWD##*/}" == "hdx-common" ] || [ "${PWD##*/}" == "thor" ] || [ "${PWD##*/}" == "flounder" ]; then #Some devices don't need/like TimeKeep
|
||||
replaceTime="false";
|
||||
fi;
|
||||
replaceTime="false"; #Temp disable replacement
|
||||
if [ -f Android.mk ]; then
|
||||
#Some devices store these in a dedicated firmware partition, others in /system/vendor/firmware, either way the following are just symlinks
|
||||
#sed -i '/ALL_DEFAULT_INSTALLED_MODULES/s/$(CMN_SYMLINKS)//' Android.mk; #Remove CMN firmware
|
||||
|
@ -165,6 +165,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/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
|
||||
#
|
||||
#END OF ROM CHANGES
|
||||
|
Loading…
Reference in New Issue
Block a user