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

Commit e2e67314 authored by frankpreel's avatar frankpreel
Browse files
parent 0f94a17a
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -159,12 +159,10 @@ export class Controller {
                let gotoStep = "";
                if (cmd.partition) {
                    try {
                        console.log(">>>", cmd.partition);
                        if (cmd.partition.startsWith("goto_")) {
                            gotoStep = cmd.partition.substring(5);
                            console.log(">>>>",gotoStep);
                            WDebug.log("goto step", gotoStep);
                            isUnlocked = await this.deviceManager.getUnlocked('unlocked');
                            console.log(">>>>>",isUnlocked);
                        } else {
                            isUnlocked = await this.deviceManager.getUnlocked(cmd.partition);
                        }
@@ -189,11 +187,10 @@ export class Controller {
                    } else { // Goto the maned step.
                        do {
                            this.currentIndex++;
                            console.log(this.steps[this.currentIndex]);
                            WDebug.log("Bypass step", this.steps[this.currentIndex].name);
                        } while (this.steps[this.currentIndex].name == gotoStep);
                            WDebug.log("Bypass step", this.steps[this.currentIndex].name + " " + (this.steps[this.currentIndex].name == gotoStep));
                        } while ( !(this.steps[this.currentIndex].name == gotoStep) );
                        this.currentIndex--;
                    }
                        
                }
                return true;
            case Command.CMD_TYPE.lock:
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
    {
      "mode": "bootloader",
      "id": "connect-bootloader",
      "command": ["connect bootloader", "flashing unlock"],
      "command": ["connect bootloader", "flashing unlock goto_flashing"],
      "needUserGesture": true
    },
    {
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
    {
      "mode": "bootloader",
      "id": "connect-bootloader",
      "command": ["connect bootloader", "flashing unlock"],
      "command": ["connect bootloader", "flashing unlock goto_flashing"],
      "needUserGesture": true
    },
    {