Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65fd9470 authored by Elvira Khabirova's avatar Elvira Khabirova Committed by Krzysztof Wesolowski
Browse files

Display recovery reason in prompt_and_wipe_data

Display the passed --reason= on the recovery screen when showing
the prompt_and_wipe_data menu.

This can help speed up investigations of bug reports,
when it is not clear why the prompt_and_wipe_data screen
is being shown to the user.

Test: enter RescueParty on Cuttlefish
Bug: 280625942
Change-Id: Ia4d120e822c4d1f11e541f1df0fef203f22f811d
parent 4f8734ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -187,6 +187,7 @@ static InstallResult prompt_and_wipe_data(Device* device) {
    "If you continue to get this message, you may need to "
    "perform a factory data reset and erase all user data "
    "stored on this device.",
    "Reason: " + device->GetReason().value_or(""),
  };
  // clang-format off
  std::vector<std::string> wipe_data_menu_items {