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

Commit ebce8e63 authored by David Anderson's avatar David Anderson
Browse files

Fix SnapshotManager instantiation.

New() should be used instead of NewForFirstStageMount().

Bug: 168258606
Test: data wipe with VABC merge in progress
Change-Id: Idf2b01a504b577766da303091721764242e99a69
parent 0cd9a636
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ bool FinishPendingSnapshotMerges(Device* device) {
  }

  RecoveryUI* ui = device->GetUI();
  auto sm = SnapshotManager::NewForFirstStageMount();
  auto sm = SnapshotManager::New();
  if (!sm) {
    ui->Print("Could not create SnapshotManager.\n");
    return false;
@@ -57,7 +57,7 @@ bool CreateSnapshotPartitions() {
    return true;
  }

  auto sm = SnapshotManager::NewForFirstStageMount();
  auto sm = SnapshotManager::New();
  if (!sm) {
    // SnapshotManager could not be created. The device is still in a
    // consistent state and can continue with the mounting of the existing