mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
More fixes
This commit is contained in:
parent
d9f56cc8ff
commit
f6fc3918aa
@ -1,4 +1,4 @@
|
||||
Last Updated: 10/19/2017
|
||||
Last Updated: 10/21/2017
|
||||
Credits: https://divestos.xyz/pages/about.html
|
||||
Recommended Apps: https://divestos.xyz/pages/apps.php
|
||||
|
||||
@ -22,6 +22,7 @@ General Changes
|
||||
- MicroG
|
||||
- GmsCore, GsfProxy, and FakeStore are included by default
|
||||
- Settings
|
||||
- Added an option to lower screen resolution to (marginally) increase battery life
|
||||
- Changed default quick tiles
|
||||
- Disabled "Instant Apps"
|
||||
- Increased animation speed
|
||||
|
@ -1,9 +1,9 @@
|
||||
From f2bcdb23270812840f2ff4bdab22a711a8b89045 Mon Sep 17 00:00:00 2001
|
||||
From 661b40435f4b761e0a24687653b10b519d43eaa7 Mon Sep 17 00:00:00 2001
|
||||
From: Tad <tad@spotco.us>
|
||||
Date: Sat, 21 Oct 2017 00:36:49 -0400
|
||||
Date: Sat, 21 Oct 2017 09:09:48 -0400
|
||||
Subject: [PATCH] Reduced Resolution Feature 2/2
|
||||
|
||||
Change-Id: Ie6245ae8ac97aaa05fb52106d1356122e2587b80
|
||||
Change-Id: I9111d55f0127151ee3a7530aa071e7e3298a4cc9
|
||||
---
|
||||
core/java/android/os/IPowerManager.aidl | 3 +
|
||||
core/java/android/os/PowerManager.java | 32 +++++++++
|
||||
@ -80,7 +80,7 @@ index bbafb5662cd..e0c71a044a5 100644
|
||||
|
||||
public abstract int getFeature(int featureId);
|
||||
diff --git a/services/core/java/com/android/server/power/PowerManagerService.java b/services/core/java/com/android/server/power/PowerManagerService.java
|
||||
index 55d0809ee4e..76a275db073 100644
|
||||
index 55d0809ee4e..24f9425898f 100644
|
||||
--- a/services/core/java/com/android/server/power/PowerManagerService.java
|
||||
+++ b/services/core/java/com/android/server/power/PowerManagerService.java
|
||||
@@ -29,6 +29,7 @@ import android.content.IntentFilter;
|
||||
@ -111,7 +111,7 @@ index 55d0809ee4e..76a275db073 100644
|
||||
private final Context mContext;
|
||||
private final ServiceThread mHandlerThread;
|
||||
private final PowerManagerHandler mHandler;
|
||||
+ private final IWindowManager mWm;
|
||||
+ private IWindowManager mWm;
|
||||
|
||||
private LightsManager mLightsManager;
|
||||
private BatteryManagerInternal mBatteryManagerInternal;
|
||||
|
@ -1,14 +1,14 @@
|
||||
From fcfd534bd46ee9bb96dd6da068671647d500ec4d Mon Sep 17 00:00:00 2001
|
||||
From a1e8c666a77d575c8d78a0d1269b3d06a7cb5d41 Mon Sep 17 00:00:00 2001
|
||||
From: Tad <tad@spotco.us>
|
||||
Date: Sat, 21 Oct 2017 00:38:33 -0400
|
||||
Date: Sat, 21 Oct 2017 09:05:09 -0400
|
||||
Subject: [PATCH] Reduced Resolution Feature 1/2
|
||||
|
||||
Change-Id: I6209ebf286aab5a4342255fa6defb8331650d1b2
|
||||
Change-Id: I925a23e61ebf3ce06dc78898952085d87ad10410
|
||||
---
|
||||
res/values/strings.xml | 3 +++
|
||||
res/xml/perf_profile_settings.xml | 5 +++++
|
||||
.../cyanogenmod/cmparts/power/PerfProfileSettings.java | 16 ++++++++++++++++
|
||||
3 files changed, 24 insertions(+)
|
||||
res/values/strings.xml | 3 +++
|
||||
res/xml/perf_profile_settings.xml | 6 ++++++
|
||||
.../cyanogenmod/cmparts/power/PerfProfileSettings.java | 17 +++++++++++++++++
|
||||
3 files changed, 26 insertions(+)
|
||||
|
||||
diff --git a/res/values/strings.xml b/res/values/strings.xml
|
||||
index 21b8b78..1fee482 100644
|
||||
@ -25,23 +25,24 @@ index 21b8b78..1fee482 100644
|
||||
<string name="auto_power_save_summary_on">Automatically enable power save mode at %s battery</string>
|
||||
<string name="auto_power_save_summary_off">Do not enable power save mode automatically</string>
|
||||
diff --git a/res/xml/perf_profile_settings.xml b/res/xml/perf_profile_settings.xml
|
||||
index 3585cb7..870e393 100644
|
||||
index 3585cb7..ce99c6c 100644
|
||||
--- a/res/xml/perf_profile_settings.xml
|
||||
+++ b/res/xml/perf_profile_settings.xml
|
||||
@@ -29,6 +29,11 @@
|
||||
android:summary="@string/power_save_summary"
|
||||
@@ -34,6 +34,12 @@
|
||||
android:title="@string/auto_power_save_title"
|
||||
android:persistent="false" />
|
||||
|
||||
+ <SwitchPreference
|
||||
+ android:key="reduce_resolution"
|
||||
+ android:title="@string/reduce_resolution_title"
|
||||
+ android:summary="@string/reduce_resolution_summary" />
|
||||
+ android:summary="@string/reduce_resolution_summary"
|
||||
+ android:persistent="false" />
|
||||
+
|
||||
<ListPreference
|
||||
android:key="auto_power_save"
|
||||
android:title="@string/auto_power_save_title"
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
diff --git a/src/org/cyanogenmod/cmparts/power/PerfProfileSettings.java b/src/org/cyanogenmod/cmparts/power/PerfProfileSettings.java
|
||||
index ec2138d..2773df3 100644
|
||||
index ec2138d..5fdc8f1 100644
|
||||
--- a/src/org/cyanogenmod/cmparts/power/PerfProfileSettings.java
|
||||
+++ b/src/org/cyanogenmod/cmparts/power/PerfProfileSettings.java
|
||||
@@ -56,11 +56,13 @@ public class PerfProfileSettings extends SettingsPreferenceFragment
|
||||
@ -66,15 +67,16 @@ index ec2138d..2773df3 100644
|
||||
mPerAppProfilesPref = (SwitchPreference) findPreference(KEY_PER_APP_PROFILES);
|
||||
|
||||
mPowerManager = (PowerManager) getSystemService(Context.POWER_SERVICE);
|
||||
@@ -124,6 +127,7 @@ public class PerfProfileSettings extends SettingsPreferenceFragment
|
||||
@@ -124,6 +127,8 @@ public class PerfProfileSettings extends SettingsPreferenceFragment
|
||||
updateAutoPowerSaveValue();
|
||||
mAutoPowerSavePref.setOnPreferenceChangeListener(this);
|
||||
mPowerSavePref.setOnPreferenceChangeListener(this);
|
||||
+ mReduceResolutionPref.setOnPreferenceChangeListener(this);
|
||||
+ updateReduceResolutionValue();
|
||||
}
|
||||
|
||||
|
||||
@@ -245,6 +249,14 @@ public class PerfProfileSettings extends SettingsPreferenceFragment
|
||||
@@ -245,6 +250,14 @@ public class PerfProfileSettings extends SettingsPreferenceFragment
|
||||
final int level = Integer.parseInt((String) newValue);
|
||||
Global.putInt(getContentResolver(), Global.LOW_POWER_MODE_TRIGGER_LEVEL, level);
|
||||
updateAutoPowerSaveSummary(level);
|
||||
@ -89,7 +91,7 @@ index ec2138d..2773df3 100644
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -262,6 +274,10 @@ public class PerfProfileSettings extends SettingsPreferenceFragment
|
||||
@@ -262,6 +275,10 @@ public class PerfProfileSettings extends SettingsPreferenceFragment
|
||||
PartsUpdater.notifyChanged(getActivity(), getPreferenceScreen().getKey());
|
||||
}
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
base="/mnt/Drive-1/Development/Other/Android_ROMs/Build/LineageOS-14.1/";
|
||||
export base;
|
||||
|
||||
echo "Deblobbing..."
|
||||
|
||||
#
|
||||
#START OF BLOBS ARRAY
|
||||
#
|
||||
@ -365,3 +367,5 @@ ln -s . etc/etc;
|
||||
ln -s . framework/framework;
|
||||
ln -s . priv-app/priv-app;
|
||||
cd $base;
|
||||
|
||||
echo "Deblobbing complete!"
|
||||
|
Loading…
Reference in New Issue
Block a user