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

Commit 91493f28 authored by Sahil Sonar's avatar Sahil Sonar 💬
Browse files

flash: factory.common: Move check_unlock_status check early

parent 10512fda
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -190,13 +190,13 @@ flash_factory() {
  # If only one device is found $sn will store its serial number
  find_device

  # Check if the device is properly unlocked
  check_unlock_status

  if [ "${USE_FASTBOOTD}" = "true" ]; then
    switch_to_fastbootd
  fi

  # Check if the device is properly unlocked
  check_unlock_status

  # Flash the device
  flash_device