mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
|
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
|
||
|
|