Updater: Allow toggling A/B perf mode
Change-Id: I380a39bf6008b341c8005ac548d42d2413d0d643
This commit is contained in:
committed by
Luca Stefani
parent
5a93f3f91a
commit
608789ff36
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user