mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-08-01 19:06:21 -04:00
Initial commit, long overdue
This commit is contained in:
commit
c0083c1519
292 changed files with 951990 additions and 0 deletions
31
Patches/OLD/Battery-Power-Saver-Tweak.patch
Normal file
31
Patches/OLD/Battery-Power-Saver-Tweak.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
From ba175c7252b77fc25384bf76957434193800a8f6 Mon Sep 17 00:00:00 2001
|
||||
From: Tad <tad@spotco.us>
|
||||
Date: Wed, 4 Nov 2015 23:14:54 -0500
|
||||
Subject: [PATCH] Dont enable battery saver when switching to power save perf
|
||||
profile
|
||||
|
||||
Change-Id: If011b0ad5b8aeb825b741671908ef548ec95d951
|
||||
---
|
||||
.../core/java/com/android/server/power/PowerManagerService.java | 6 +-----
|
||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/power/PowerManagerService.java b/services/core/java/com/android/server/power/PowerManagerService.java
|
||||
index 4b2ce36..a4bd55b 100644
|
||||
--- a/services/core/java/com/android/server/power/PowerManagerService.java
|
||||
+++ b/services/core/java/com/android/server/power/PowerManagerService.java
|
||||
@@ -3421,11 +3421,7 @@ public final class PowerManagerService extends SystemService
|
||||
public boolean setPowerProfile(String profile) {
|
||||
mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null);
|
||||
final long ident = Binder.clearCallingIdentity();
|
||||
- try {
|
||||
- setLowPowerModeInternal(PowerManager.PROFILE_POWER_SAVE.equals(profile));
|
||||
- } finally {
|
||||
- Binder.restoreCallingIdentity(ident);
|
||||
- }
|
||||
+ Binder.restoreCallingIdentity(ident);
|
||||
return mPerformanceManager.setPowerProfile(profile);
|
||||
}
|
||||
|
||||
--
|
||||
2.6.2
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue