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

Commit 4667b7be authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

envsetup: Make installboot work in recovery mode too

 * Needs a change to adb to allow waiting for recovery

Change-Id: Ia90645513f46bcb5f20b7c74c55ef15842710d3d
parent cfaf7daa
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1354,9 +1354,8 @@ function installboot()
    adb start-server
    adb root
    sleep 1
    adb wait-for-device
    adb remount
    adb wait-for-device
    adb wait-for-online shell mount /system 2>&1 > /dev/null
    adb wait-for-online remount
    if (adb shell cat /system/build.prop | grep -q "ro.cm.device=$CM_BUILD");
    then
        adb push $OUT/boot.img /cache/
@@ -1398,9 +1397,8 @@ function installrecovery()
    adb start-server
    adb root
    sleep 1
    adb wait-for-device
    adb remount
    adb wait-for-device
    adb wait-for-online shell mount /system 2>&1 >> /dev/null
    adb wait-for-online remount
    if (adb shell cat /system/build.prop | grep -q "ro.cm.device=$CM_BUILD");
    then
        adb push $OUT/recovery.img /cache/