services/tests/servicestests/src/com/android/server/rollback/RollbackPackageHealthObserverTest.java
0 → 100644
+157
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Presently, the Android framework automatically rolls back Phonesky when it detects many crashes, either from Phonesky or another persistent service right after startup. We want to be able to request Phonesky rollbacks, but do not want the framework to automatically roll us back, only when GMS Core requests it should a rollback occur. In this change I have introduced a new deny automatic roll back list which contains Phonesky. Rollback manager will check if the failed package be rolled back automatically before rolling back. Test: Unit tests and manual test Bug: 259985211 Change-Id: I72940590e650c89fd59d6fc70fa2f7c2cea24de1