Merge "[B&R] avoid to backup & restore app which is in the PowerSaveWhitelistExceptIdle" into sc-v2-dev am: b62c1e8142
am: f488cf5416
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15892826 Change-Id: I69fa32b26f7674366be9fa4b0807d9b0fe2c54a4
This commit is contained in:
@@ -263,7 +263,9 @@ public final class BatteryBackupHelper implements BackupHelper {
|
||||
private boolean isSystemOrDefaultApp(String packageName) {
|
||||
final PowerAllowlistBackend powerAllowlistBackend = getPowerAllowlistBackend();
|
||||
return powerAllowlistBackend.isSysAllowlisted(packageName)
|
||||
|| powerAllowlistBackend.isDefaultActiveApp(packageName);
|
||||
|| powerAllowlistBackend.isDefaultActiveApp(packageName)
|
||||
// Optimize mode only for app which is in the allow list not idle app.
|
||||
|| powerAllowlistBackend.isAllowlistedExceptIdle(packageName);
|
||||
}
|
||||
|
||||
private List<ApplicationInfo> getInstalledApplications() {
|
||||
|
Reference in New Issue
Block a user