Updater: Allow toggling A/B perf mode

Change-Id: I380a39bf6008b341c8005ac548d42d2413d0d643
This commit is contained in:
TheScarastic
2018-06-12 15:10:04 +05:30
committed by Luca Stefani
parent 5a93f3f91a
commit 608789ff36
7 changed files with 41 additions and 0 deletions

View File

@@ -525,4 +525,11 @@ public class UpdaterController {
public boolean isWaitingForReboot(String downloadId) {
return ABUpdateInstaller.isWaitingForReboot(mContext, downloadId);
}
public void setPerformanceMode(boolean enable) {
if (!Utils.isABDevice()) {
return;
}
ABUpdateInstaller.getInstance(mContext, this).setPerformanceMode(enable);
}
}