Skip to content

build: expand section about development images #1173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions static/build.html
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,41 @@ <h3><a href="#faster-builds-for-development-use-only">Faster builds for developm
signing the build with release keys would be testing that functionality and it makes a
lot more sense to test it with proper signing keys rather than the default public test
keys.</p>

<p><i>NOTE: The fastboot commands used here expect that you are running them in a shell where <i>source build/envsetup.sh</i> has been executed in.</i></p>

<p><i>You may also set the ANDROID_PRODUCT_OUT environment variable manually.</i></p>

<p>To flash those images:</p>

<pre>fastboot flashall</pre>

<p>If you want to flash -userdebug or -user images, please note that these have the ability to change the active slot on boot failure, and it is recommended
to update and switch to the other slot, so the rollback mechanism does not break anything.</p>

<pre>fastboot flashall --slot=other --set-active=other</pre>

<p>When the firmware for your device gets updated, it may be necessary to update both the radio (modem firmware) and bootloader partitions.</p>

<p>To do so safely, use the below script <i>(NOTE: the commands are repeated on purpose):</i></p>

<p>This uses the same logic as the install image to ensure not bricking your device.</p>

<pre>
fastboot flash --slot=other bootloader
fastboot --set-active=other
fastboot reboot-bootloader

fastboot flash --slot=other bootloader
fastboot --set-active=other
fastboot reboot-bootloader

fastboot snapshot-update cancel

fastboot flash radio --slot=other
fastboot flash radio
fastboot reboot-bootloader
</pre>
</section>

<section id="generating-release-signing-keys">
Expand Down