RESTRICT AUTOMERGE FRP bypass defense in App battery usage page am: 23b88e0724 am: eae022088f

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/28550763

Change-Id: I223966ef871fa55ecc5a53643f0479327978fe33
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yiling Chuang
2024-08-02 17:17:47 +00:00
committed by Automerger Merge Worker
2 changed files with 10 additions and 0 deletions

View File

@@ -293,6 +293,11 @@ public class AdvancedPowerUsageDetail extends DashboardFragment implements
}
}
@Override
protected boolean shouldSkipForInitialSUW() {
return true;
}
@Override
public void onPause() {
super.onPause();

View File

@@ -895,4 +895,9 @@ public class AdvancedPowerUsageDetailTest {
verifyNoInteractions(mBackupManager);
}
@Test
public void shouldSkipForInitialSUW_returnTrue() {
assertThat(mFragment.shouldSkipForInitialSUW()).isTrue();
}
}