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

Unverified Commit f806a03e authored by Danny Lin's avatar Danny Lin
Browse files

docs: Update docs

parent 7b3816e6
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ fastboot protocol.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line188">line 188</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line186">line 186</a>
            </span>
        </p>
    
@@ -611,7 +611,7 @@ depending on the bootloader's payload size limit.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line472">line 472</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line481">line 481</a>
            </span>
        </p>
    
@@ -888,7 +888,7 @@ Equivalent to `fastboot update name.zip`.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line563">line 563</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line572">line 572</a>
            </span>
        </p>
    
@@ -1041,7 +1041,7 @@ does not exist.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line305">line 305</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line314">line 314</a>
            </span>
        </p>
    
@@ -1307,7 +1307,7 @@ reconnect.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line448">line 448</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line457">line 457</a>
            </span>
        </p>
    
@@ -1460,7 +1460,7 @@ This is in raw fastboot format, not AOSP fastboot syntax.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line283">line 283</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line292">line 292</a>
            </span>
        </p>
    
@@ -1710,7 +1710,7 @@ Does not handle raw images, flashing, or splitting.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line403">line 403</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line412">line 412</a>
            </span>
        </p>
    
@@ -1885,7 +1885,7 @@ regardless of whether the connected USB device matches the previous one.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line168">line 168</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line166">line 166</a>
            </span>
        </p>
    
@@ -1987,7 +1987,7 @@ Returns immediately if no device is connected.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line143">line 143</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line141">line 141</a>
            </span>
        </p>
    
+13 −4
Original line number Diff line number Diff line
@@ -202,15 +202,13 @@ export class FastbootDevice {
            await this.device.claimInterface(0); // fastboot
        } catch (error) {
            // Propagate exception from waitForConnect()
            let rejected = false;
            if (this._connectReject !== null) {
                this._connectReject(error);
                this._connectResolve = null;
                this._connectReject = null;
                rejected = true;
            }

            if (rethrowErrors &amp;&amp; rejected) {
            if (rethrowErrors) {
                throw error;
            }
        }
@@ -310,7 +308,18 @@ export class FastbootDevice {
            navigator.usb.addEventListener("connect", async (event) => {
                common.logDebug("USB device connected");
                this.device = event.device;

                // Check whether waitForConnect() is pending and save it for later
                let hasPromiseReject = this._connectReject !== null;
                try {
                    await this._validateAndConnectDevice(false);
                } catch (error) {
                    // Only rethrow errors from the event handler if waitForConnect()
                    // didn't already handle them
                    if (!hasPromiseReject) {
                        throw error;
                    }
                }
            });

            this._registeredUsbListeners = true;
+4 −4
Original line number Diff line number Diff line
@@ -567,7 +567,7 @@ This can be indexed by the action argument in FactoryFlashCallback.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line542">line 542</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line551">line 551</a>
            </span>
        </p>
    
@@ -715,7 +715,7 @@ This can be indexed by the action argument in FactoryFlashCallback.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line354">line 354</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line363">line 363</a>
            </span>
        </p>
    
@@ -815,7 +815,7 @@ user action.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line153">line 153</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line151">line 151</a>
            </span>
        </p>
    
@@ -915,7 +915,7 @@ user action.
        <p class="tag-source">
            <a href="fastboot.js.html" class="button">View Source</a>
            <span>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line533">line 533</a>
                <a href="fastboot.js.html">fastboot.js</a>, <a href="fastboot.js.html#line542">line 542</a>
            </span>
        </p>