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, 8149 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 the Fire OS 6 already installed, which
        keeps the Dot's setup; with --factory-reset, Fire OS 6 8149 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 the Fire OS 6 already installed, 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, 8149 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 the Fire OS 6 already installed, which
        keeps the Echo's setup; with --factory-reset, Fire OS 6 8149, 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.

Documentation

Reporting a problem

When a run fails, run uvx firebreak@latest report. Then go to #echo-support in the 0x7E Labs Discord and paste what it prints. It 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.
  • 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.1.1

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.1.1
File Size Uploaded Provenance Actions
firebreak-1.1.1.tar.gz 467.8 kB With provenance Details for firebreak-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 642.3 kB

Release files / firebreak-1.1.1.tar.gz

Download URL firebreak-1.1.1.tar.gz
Size 467.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ce0331a5f5b26925a200f21e57c0df6ceb71e1ea189e49e75dade8008f482e19
BLAKE2b-256 checksum
How to use checksums
5346c765ed890e9c2a7e0b8da548eb0227e286d9bb1cf475277bf73b3bfbfe00
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 11, 2026.

Transparency log

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

Download URL firebreak-1.1.1-py3-none-any.whl
Size 174.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c1bfc68e8d1a8ed2458c4d56a6d9eed5d31a64a5b458a8b75647f3cde6a475d
BLAKE2b-256 checksum
How to use checksums
e9a839f13e4ec053afbc29c8bd72691529f51f7d91ef4f573f6545adfde82310
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 11, 2026.

Transparency log

Security for firebreak 1.1.1

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.1.1.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 11, 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