[B&R] avoid to backup & restore app which is in the PowerSaveWhitelistExceptIdle
This reverts commit 9de5fe158d
.
Reason for revert: revert it too based on ag/16048452
Change-Id: I97ffcfcbc37fb4a99e66213023b95af759d1ed3e
This commit is contained in:
@@ -263,9 +263,7 @@ public final class BatteryBackupHelper implements BackupHelper {
|
||||
private boolean isSystemOrDefaultApp(String packageName) {
|
||||
final PowerAllowlistBackend powerAllowlistBackend = getPowerAllowlistBackend();
|
||||
return powerAllowlistBackend.isSysAllowlisted(packageName)
|
||||
|| powerAllowlistBackend.isDefaultActiveApp(packageName)
|
||||
// Optimize mode only for app which is in the allow list not idle app.
|
||||
|| powerAllowlistBackend.isAllowlistedExceptIdle(packageName);
|
||||
|| powerAllowlistBackend.isDefaultActiveApp(packageName);
|
||||
}
|
||||
|
||||
private List<ApplicationInfo> getInstalledApplications() {
|
||||
|
Reference in New Issue
Block a user