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

Commit cd64910f authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Merge branch 'dev/fix-sideload-for-a14' into 'main'

Fix sideload for A14 recovery

See merge request !35
parents 57523e0a 8dc8f728
Loading
Loading
Loading
Loading
+89 −0
Original line number Diff line number Diff line
{
  "android": 14,
  "steps": [
    {
      "command": ["reboot bootloader", "delay 5"]
    },
    {
      "id": "connect-bootloader",
      "command": ["connect bootloader", "flashing unlock unlocked"],
      "needUserGesture": true
    },
    {
      "id": "unlocking-pixel",
      "needUserGesture": true,
      "command": ["delay 15", "connect bootloader"]
    },
    {
      "id": "flashing",
      "command": [
        "flash dtbo dtbo.img",
        "flash boot boot.img",
        "flash vendor_boot recovery.img",
        "flash vendor_kernel_boot vendor_kernel_boot.img"
      ]
    },
    {
      "id": "bootloader-to-recovery-manually",
      "needUserGesture": true
    },
    {
      "id": "format-device",
      "needUserGesture": true
    },
    {
      "id": "go-to-apply-update",
      "needUserGesture": true
    },
    {
      "id": "sideload",
      "command": "sideload pixel-8-rom.zip"
    },
    {
      "id": "sideload-ended",
      "needUserGesture": true
    },
    {
      "id": "connect-bootloader",
      "command": [
        "connect bootloader",
        "erase avb_custom_key",
        "flash avb_custom_key pkmd_pixel.bin",
        "flashing lock unlocked"
      ],
      "needUserGesture": true
    },
    {
      "id": "locking-pixel",
      "needUserGesture": true
    },
    {
      "id": "murena-workspace-account",
      "needUserGesture": true
    },
    {
      "id": "installation-complete"
    }
  ],
  "folder": [
    {
      "name": "pixel-8-recovery.img",
      "path": "https://images.ecloud.global/official/shiba/recovery-IMG-e-latest-u-official-shiba.zip",
      "unzip": true,
      "mapping": {
        "^dtbo.*img$": "dtbo.img",
        "^boot.*img$": "boot.img",
        "^recovery.*img$": "recovery.img",
        "^vendor_kernel_boot.*img$": "vendor_kernel_boot.img"
      }
    },
    {
      "name": "pixel-8-rom.zip",
      "path": "https://images.ecloud.global/official/shiba/e-latest-u-official-shiba.zip"
    },
    {
      "name": "pkmd_pixel.bin",
      "path": "https://images.ecloud.global/official/pkmd_pixel.bin"
    }
  ]
}
+1 −1
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ export class Recovery extends Device {
  async adbOpen(blob) {
    const decoder = new TextDecoder();

    const MAX_PAYLOAD = 0x40000; // This value commes from adb C function
    const MAX_PAYLOAD = 0x10000;
    const fileSize = blob.size;
    const service = `sideload-host:${fileSize}:${MAX_PAYLOAD}`; //sideload-host:1381604186:262144