Skip to main content

firebreak

firebreak unlocks and roots an Echo Dot (2nd Generation), an Echo (2nd Generation) or an Echo Dot (3rd Generation) over USB, or returns it to stock. Run it again with another target to move the device. A stopped run picks up where it left off.

Quick start

Install firebreak's prerequisites. Then plug your Echo into your computer, and run:

uvx firebreak@latest unlock

On Windows, run uvx --managed-python firebreak@latest unlock instead, as Windows says. Follow any instructions that may appear.

Install

firebreak needs adb and fastboot from Android platform-tools, and uv, which runs firebreak from PyPI.

macOS

These commands use Homebrew. Without it, download Google's platform-tools.

brew install --cask android-platform-tools uv
brew install libusb               # for an Echo Dot (3rd Generation)

Linux

These commands are for Debian and Ubuntu. Run firebreak without sudo.

sudo apt install adb fastboot curl libusb-1.0-0
curl -LsSf https://astral.sh/uv/install.sh | sh

These udev rules let your own user open the Echo in each of its USB modes, so firebreak needs no sudo. A run that cannot open the Echo prints the same commands.

sudo groupadd -f plugdev
sudo tee /etc/udev/rules.d/51-echo-dot.rules >/dev/null <<'EOF'
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0660", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee2", MODE="0660", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d001", MODE="0660", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c01", MODE="0660", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="0003", MODE="0660", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="201c", MODE="0660", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="0003", MODE="0660", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1949", ATTRS{idProduct}=="2007", MODE="0660", GROUP="plugdev", TAG+="uaccess"
EOF
sudo udevadm control --reload
sudo udevadm trigger
sudo usermod -aG plugdev "$USER"
adb kill-server

Then log in again, so your shell has the plugdev group.

Windows

winget install Google.PlatformTools
winget install astral-sh.uv
cd $env:TEMP
curl.exe -fo fastboot.cab https://catalog.s.download.windowsupdate.com/d/msdownload/update/driver/drvs/2016/10/20940218_0ae8695c01fb84d1fdea5c9a04baf336ec5b1ba7.cab
curl.exe -fo mtk.cab https://catalog.s.download.windowsupdate.com/d/msdownload/update/driver/drvs/2016/07/20896845_fdc6bb5aa9a9bac99adf85d931d6c21d1130a96e.cab
curl.exe -fLo UsbDk.msi https://github.com/daynix/UsbDk/releases/download/v1.00-22/UsbDk_1.0.22_x64.msi
curl.exe -fLo libusb.7z https://github.com/libusb/libusb/releases/download/v1.0.30/libusb-1.0.30.7z
mkdir -Force fastboot, mtk
expand -F:* fastboot.cab fastboot
expand -F:* mtk.cab mtk
pnputil /add-driver fastboot\tplink_winusb.inf /install
pnputil /add-driver mtk\cdc-acm.inf /install
$d = "$env:LOCALAPPDATA\Programs\libusb"
mkdir -Force $d
tar -xf libusb.7z -C $d VS2022/MS64/dll/libusb-1.0.dll
Remove-Item -Recurse fastboot.cab, mtk.cab, fastboot, mtk
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$d\VS2022\MS64\dll", "User")
Start-Process msiexec -Wait -ArgumentList "/i $env:TEMP\UsbDk.msi /qn"
Remove-Item UsbDk.msi

Then open a new administrator PowerShell, so it has the new PATH, and run firebreak:

uvx --managed-python firebreak@latest unlock

Windows on ARM, Windows 11 25H2 and Windows older than 11 23H2 have limits: see Windows in the troubleshooting guide.

Usage

uvx firebreak@latest --help prints this:

usage: firebreak [-h] [--credits] [--no-update-check] [--verbose] [--version]
                 COMMAND ...

Change the firmware on an Echo Dot (2nd Generation), an Echo (2nd
Generation) or an Echo Dot (3rd Generation) over USB: unlock it, or return it
to stock. It discovers what state the Echo is in and moves it toward the
target.

positional arguments:
  COMMAND            the command to run, one of those listed below

options:
  -h, --help         show this help message and exit
  --credits          show acknowledgement of those whose work firebreak is
                     built upon and exit
  --no-update-check  do not ask PyPI whether a newer firebreak exists
  --verbose          print each adb and fastboot command, its exit status and
                     the time, and each state the Echo reaches
  --version          show program's version number and exit

commands for the Echo Dot (2nd Generation):
  stock [BUILD]
      Amazon's Fire OS BUILD, 8349 when left out, which erases the whole
      Dot.
  unlock [TARGET], where TARGET is one of:
    fireos6, the default
        boot-root.zip's root adb on Fire OS 6 8349, installed over an older
        Fire OS 6, or over Fire OS 5.5.5.4 through Amazon's bridge build
        4315, if need be, which keeps the Dot's setup; with --factory-reset,
        Fire OS 6 8349 with TWRP 3.7.0, with the Dot erased.
    fireos5
        rooted Fire OS 5.5.5.4 on amonet v1.1.0, with TWRP 3.7.0_9-bboe2.

commands for the Echo Dot (3rd Generation):
  stock [BUILD]
      Amazon's Fire OS BUILD, 8349 when left out, which erases the whole
      Echo and locks it again.
  unlock [TARGET], where TARGET is one of:
    fireos6, the default
        boot-root.zip's root adb on Fire OS 6 8349, installed over an older
        Fire OS 6 if need be, which keeps the Echo's setup; with
        --factory-reset, Fire OS 6 8349, with the Echo erased.

commands for the Echo (2nd Generation):
  stock [BUILD]
      Amazon's Fire OS BUILD, 8349 when left out, which erases the whole
      Echo.
  unlock [TARGET], where TARGET is one of:
    fireos6, the default
        boot-root.zip's root adb on Fire OS 6 8349, installed over an older
        Fire OS 6 if need be, which keeps the Echo's setup; with
        --factory-reset, Fire OS 6 8349, with the Echo erased.

Run it again with another of these to move the Echo there.

commands that reach one entry point and stop there:
  reboot
      start the Echo's firmware, as an ordinary power-on does. It reboots
      an Echo in its TWRP or its fastboot, and leaves one that already
      runs its firmware alone. An Echo held in its bootrom needs a power
      cycle, and it says so. It writes nothing.
  fastboot
      start the Echo's fastboot, whichever bootloader it holds. It reboots
      an Echo that answers adb, and asks for the button gesture where it
      cannot. It writes nothing.
  twrp
      start the Echo's TWRP. On an unlocked Echo it restarts into the
      recovery already there and writes nothing, and says what to do where
      that is not a TWRP. A locked Echo has to be unlocked first, which
      erases it, so that one is asked about.
  bootrom
      hold the Echo in its bootrom, where amonet's payload can reach the
      eMMC with no firmware running. It asks before it clears boot0, which
      is what leaves an Echo startable from its bootrom alone. An Echo
      that shows no light cannot be reached this way: `firebreak short` is
      for that one.
  short
      hold the bootrom of an Echo that shows no light, by shorting its
      test point. It says where to short, waits for the bootrom, says when
      the short may come off, and leaves amonet's payload holding it. It
      writes nothing, and --device picks whose test point to describe.

other commands:
  backup [DIRECTORY]
      copy every partition of the Echo's eMMC, its boot areas and both
      copies of its partition table into DIRECTORY, and write backup.json,
      which says how to put each byte back. A partition that begins with
      an image from an OTA firebreak can download names that image instead
      of copying it. It starts the Echo's TWRP to read them, which unlocks
      a locked Echo first and asks before that.
  builds
      list every build `stock` takes for each Echo, newest first, with its
      Fire OS version. It needs no Echo.
  report
      print what the Echo and this computer are, and the Echo's partition
      table, for a support request. It starts the Echo's recovery to read
      them and writes no partition.
  restore DIRECTORY
      put back every byte a backup read, from DIRECTORY, onto the Echo it
      was read from. It rebuilds each partition first, downloading the
      OTAs the backup names, and checks each against the backup before it
      writes anything. It asks before it writes, and leaves the Echo in
      its TWRP.
  survey OTA [OTA ...]
      read each Amazon OTA zip for the tables in docs/devices.md. It needs
      no Echo.
  write-test
      write a known pattern over the Echo's cache partition and read it
      back, which tells a failing eMMC from a failing USB cable because
      nothing crosses USB. It leaves a fresh empty filesystem there, or
      says it could not.

Run `firebreak COMMAND --help` for what that command takes.

adb after an unlock

An unlocked Echo answers root adb over USB and, on Fire OS 6, over Wi-Fi on port 5555. unlock lets in only the computer that ran it: the key in that computer's ~/.android/adbkey.pub. Any other computer sees the Echo as unauthorized. From the computer that ran the unlock:

adb connect ECHO-IP:5555
adb shell

Keep ~/.android/adbkey. Without it, adb cannot reach rooted Fire OS from any computer. TWRP is not locked, so to move to another computer, or after losing the key, run firebreak unlock from that computer. It asks for the button gesture, and the install it does from TWRP lets in that computer's key in place of the old one. On Fire OS 5 that install needs --factory-reset, which erases the Echo's setup: the move that keeps it starts only from a Fire OS 5 that lets in the computer's key.

Documentation

  • docs/troubleshooting.md: USB and cable problems, Windows limits, an Echo Dot (2nd Generation) or Echo (2nd Generation) with no light, and an Echo rooted by an older firebreak.
  • docs/unlocking.md: why each step is there.
  • docs/measurements.md: the ring at each step, so you can tell where a run has got to.

Reporting a problem

When a run fails, run uvx firebreak@latest report. Then go to #firebreak-support in the 0x7E Labs Discord and paste both the output of the run that failed and what report prints. report writes no partition.

Credits

firebreak automates work that other people did first.

  • xyz wrote amonet, a MediaTek bootrom exploit. firebreak's bootrom and payload clients follow its protocol.
  • k4y0z made the first port of amonet to the Echo Dot (2nd Generation).
  • Rortiz2 continued that port, released it with TWRP, and keeps its XDA thread. Rortiz2 also wrote amonet-radar and kamakiri-donut, the unlocks for the Echo (2nd Generation) and the Echo Dot (3rd Generation). The bboe TWRP is a fork of their TWRP tree. Rortiz2 takes support for that work through PayPal, Ko-fi and GitHub Sponsors.
  • AntiEngineer helped find the pins and bring up UART on a Dot.
  • topjohnwu wrote Magisk, which roots Fire OS 5.
  • Andy Goetz described how to short the eMMC bus at the passives beside R60.
  • mtkclient, by bkerler, agrees with two of firebreak's bootrom addresses.
  • ftvdb keeps an archive of Fire OS builds.

Licence

firebreak uses the BSD 2-Clause licence, in LICENSE.txt. This repository contains no Amazon code, and firebreak is not affiliated with, endorsed by, or supported by Amazon.

Metadata

Release files for firebreak 1.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for firebreak 1.4.4
File Size Uploaded Provenance Actions
firebreak-1.4.4.tar.gz 496.1 kB With provenance Details for firebreak-1.4.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for firebreak 1.4.4
File Interpreter ABI Platform Actions
firebreak-1.4.4-py3-none-any.whl Python 3 none any Details for firebreak-1.4.4-py3-none-any.whl

Total release size: 678.7 kB

Release files / firebreak-1.4.4.tar.gz

Download URL firebreak-1.4.4.tar.gz
Size 496.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5b674006dac81b2df29b95f885a0bb8d42c31f423541209d401fae68495797f3
BLAKE2b-256 checksum
How to use checksums
6f5552cf63fad4d03d762be760a759a40402bdab38bc72146c471f4d2ca6d196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / firebreak-1.4.4-py3-none-any.whl

Download URL firebreak-1.4.4-py3-none-any.whl
Size 182.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0699221ac0a417464f0672d1848ddbb173e32d247907701e20bf525702b4cf9c
BLAKE2b-256 checksum
How to use checksums
03cfe22a071fe8ddab7fec92bfa3bf731f671916221965f9a58301dc9a2c473a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for firebreak 1.4.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for firebreak-1.4.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page