FRP bypass defense in App battery usage page
Before the setup flow completion, don't allow the app info page in App battery usage to be launched. Bug: 327748846 Test: atest SettingsRoboTests + manual test - factory reset + launch app battery usage app info via ADB during Setup -> verify app closes Flag : EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:419a6a907902a12a0f565c808fa70092004d6686) Merged-In: I486820ca2afecc02729a56a3c531fb931c1907d0 Change-Id: I486820ca2afecc02729a56a3c531fb931c1907d0
This commit is contained in:
parent
94ea022aa1
commit
27475bacd7
2 changed files with 10 additions and 0 deletions
|
|
@ -268,6 +268,11 @@ public class AdvancedPowerUsageDetail extends DashboardFragment
|
|||
mLogStringBuilder = new StringBuilder("onResume mode = ").append(mOptimizationMode);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldSkipForInitialSUW() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
|
|
|
|||
|
|
@ -441,4 +441,9 @@ public class AdvancedPowerUsageDetailTest {
|
|||
TimeUnit.SECONDS.sleep(1);
|
||||
verifyNoInteractions(mMetricsFeatureProvider);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldSkipForInitialSUW_returnTrue() {
|
||||
assertThat(mFragment.shouldSkipForInitialSUW()).isTrue();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue