From 53e351ec18bc3ebc3a74d2ff3e994ed62ba5b491 Mon Sep 17 00:00:00 2001 From: Nicolas Gelot Date: Mon, 17 Feb 2025 11:36:33 +0100 Subject: [PATCH 1/2] Fix sideload for A14 recovery Based on a tcpdump from adb client the MAX_PAYLOAD size sent was 0x10000 `sideload-host-1686972035:65536`. So we patched accordingly the sideload with this value. The previous one was too big so it explains the failure we had. Ref: https://gitlab.e.foundation/e/devices/eos-installer/-/issues/1 --- app/src/controller/device/recovery.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/controller/device/recovery.class.js b/app/src/controller/device/recovery.class.js index 0dc7b3c..898cb47 100644 --- a/app/src/controller/device/recovery.class.js +++ b/app/src/controller/device/recovery.class.js @@ -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 -- GitLab From 8dc8f728b4eba5c88fdf3047a3aea77f4763572a Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Wed, 30 Oct 2024 16:23:42 +0530 Subject: [PATCH 2/2] webinstaller: Add Pixel 8 (shiba) --- app/public/resources/shiba.json | 89 +++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 app/public/resources/shiba.json diff --git a/app/public/resources/shiba.json b/app/public/resources/shiba.json new file mode 100644 index 0000000..f40c91f --- /dev/null +++ b/app/public/resources/shiba.json @@ -0,0 +1,89 @@ +{ + "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" + } + ] +} -- GitLab