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

Commit 60588af8 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "envsetup: syswrite - wait after rooting"

parents 735320a9 7275a19b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1096,12 +1096,12 @@ function qpid() {
#
# Easy way to make system.img/etc writable
function syswrite() {
  adb wait-for-device && adb root || return 1
  adb wait-for-device && adb root && adb wait-for-device || return 1
  if [[ $(adb disable-verity | grep -i "reboot") ]]; then
      echo "rebooting"
      adb reboot && adb wait-for-device && adb root || return 1
      adb reboot && adb wait-for-device && adb root && adb wait-for-device || return 1
  fi
  adb wait-for-device && adb remount || return 1
  adb remount || return 1
}

# coredump_setup - enable core dumps globally for any process