diff --git a/res/values/strings.xml b/res/values/strings.xml
index 0911727..c29f391 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -128,6 +128,8 @@
Disabled.
AB performance mode
Increase priority of the update process. Might influence normal usage when an update is in progress.
+ AB wake lock
+ Keep the CPU awake when installing an update. Makes updating fast even if the screen is off
Couldn\'t flash that file
Select ZIP file
File
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 412e010..5d8eeb3 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -26,6 +26,12 @@
android:persistent="false"
android:title="@string/ab_perf_mode_title"
android:summary="@string/ab_perf_mode_summary_new" />
+
UpdateService.PREF_AUTO_DOWNLOAD_CHECK);
@@ -186,6 +196,9 @@ public class SettingsFragment extends PreferenceFragment implements
} else if (preference.equals(mABPerfMode)) {
mConfig.setABPerfModeCurrent((boolean) newValue);
return true;
+ } else if (preference.equals(mABWakeLock)) {
+ mConfig.setABWakeLockCurrent((boolean) newValue);
+ return true;
} else if (preference.equals(mShowInfo)) {
mConfig.setShowInfo((boolean) newValue);
return true;
diff --git a/src/eu/chainfire/opendelta/UpdateService.java b/src/eu/chainfire/opendelta/UpdateService.java
index 6343094..cdcba00 100644
--- a/src/eu/chainfire/opendelta/UpdateService.java
+++ b/src/eu/chainfire/opendelta/UpdateService.java
@@ -1490,6 +1490,10 @@ public class UpdateService extends Service implements OnNetworkStateListener,
return mConfig;
}
+ public PowerManager.WakeLock getWakeLock() {
+ return mWakeLock;
+ }
+
public void setFlashFilename(String flashFilename) {
setFlashFilename(flashFilename, false);
}