Making RescueParty reboot and factory reset synchronous.
PackageWatchdog.dump() waits on a lock which is held when RescueParty attempts remediation, making the dump not use the lock in those cases.
Bug: 328203835
Change-Id: I69aa3ef11a435d10479b8a63060699ff01647ebc
Test: presubmit
Flag: android.crashrecovery.flags.synchronous_reboot_in_rescue_party
diff --git a/packages/CrashRecovery/aconfig/flags.aconfig b/packages/CrashRecovery/aconfig/flags.aconfig
index 52e0cbb..c6c49e0 100644
--- a/packages/CrashRecovery/aconfig/flags.aconfig
+++ b/packages/CrashRecovery/aconfig/flags.aconfig
@@ -39,3 +39,10 @@
bug: "289203818"
is_fixed_read_only: true
}
+
+flag {
+ name: "synchronous_reboot_in_rescue_party"
+ namespace: "modularization"
+ description: "Makes reboot and factory reset synchronous in RescueParty"
+ bug: "328203835"
+}
\ No newline at end of file