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

Unverified Commit 3eeb9b07 authored by Danny Lin's avatar Danny Lin
Browse files

dist: build

parent 13fe5379
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -7945,16 +7945,19 @@ const BOOT_CRITICAL_IMAGES = [
    "boot",
    "dt",
    "dtbo",
    "init_boot",
    "pvmfw",
    "recovery",
    "vbmeta_system",
    "vbmeta_vendor",
    "vbmeta",
    "vendor_boot",
    "vendor_kernel_boot",
];
// Less critical images to flash after boot-critical ones
const SYSTEM_IMAGES = [
    "odm",
    "odm_dlkm",
    "product",
    "system_ext",
    "system",
@@ -8591,6 +8594,22 @@ class FastbootDevice {
        }
        logDebug(`Flashed ${partition} with ${splits} split(s)`);
    }
    /**
     * Boot the given Blob on the device.
     * Equivalent to `fastboot boot boot.img`.
     *
     * @param {Blob} blob - The Blob to retrieve data from.
     * @param {FlashProgressCallback} onProgress - Callback for flashing progress updates.
     * @throws {FastbootError}
     */
    async bootBlob(blob, onProgress = (_progress) => { }) {
        logDebug(`Booting ${blob.size} bytes image`);
        let data = await readBlobAsBuffer(blob);
        await this.upload("boot.img", data, onProgress);
        logDebug("Booting payload...");
        await this.runCommand("boot");
        logDebug(`Booted ${blob.size} bytes image`);
    }
    /**
     * Flash the given factory images zip onto the device, with automatic handling
     * of firmware, system, and logical partitions as AOSP fastboot and
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

Loading