• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS phone guide
  5. Nexus 5

Nexus 5

In This Article
  1. Installing Firefox OS on your Nexus 5
    1. General
    2. Flashing Firefox OS on Windows
    3. Flashing Firefox OS on Mac/Linux

This article provides information about using Firefox OS on a Nexus 5, including Flashing Firefox OS onto your device.

Installing Firefox OS on your Nexus 5

This section provides instructions for flashing Firefox OS onto your Nexus 5 device.

General

All users should have adb and fastboot working.  If you do not have adb and fastboot, you can download and install them as part of the Android SDK.

Windows Users should also install the Google USB Drivers. Download the USB drivers, and follow the installation instructions.

Flashing Firefox OS on Windows

  1. Download the nexus-5-l.zip build.
  2. Unzip the file, and ensure that flash.bat is available inside the b2g-distro folder. (Note: the flash.bat file is currently missing; until this is added to the build, you can grab it from https://github.com/nhirata/flash-batch.)
  3. Connect your Nexus 5 to your computer via a USB cable.
  4. Make sure that the device is on, and that adb mode is enabled (Firefox OS: Settings > Developer > ADB and DevTools; Android: Settings > Developer options > USB debugging.)
  5. Double-click the flash.bat file.

Flashing Firefox OS on Mac/Linux

  1. Download the nexus-5-l.zip build.
  2. Unzip the file, and ensure that flash.sh is available inside the b2g-distro folder.
  3. Connect your Nexus 5 to your computer via a USB cable.
  4. Open your terminal and enter the directory that flash.sh is located in — e.g: cd nexus-5-l/b2g-distro.
  5. Enter the command adb devices to ensure the device is found. (See the adb command setup for help and troubleshooting information.)
  6. Enter the command chmod +x ./flash.sh to make the flash script executable.
  7. Enter the command ./flash.sh to proceed with the installation.

When the process is complete, your phone should reboot into Firefox OS.

Document Tags and Contributors

Tags: 
  • B2G
  • Firefox OS
  • flashing
  • Installing
  • Nexus 5
 Contributors to this page: chrisdavidmills, nhirata, pdol
 Last updated by: chrisdavidmills, Feb 27, 2017, 3:02:13 AM
See also
  1. Build and install
    1. Build and install overview
    2. B2G OS build process summary
    3. Build prerequisites
    4. Preparing for your first build
    5. Building B2G OS
    6. B2G installer add-on
    7. Building B2G OS for Flame on Mac OS X
    8. Choosing how to run Gaia or B2G OS
    9. Compatible Devices
    10. Installing B2G OS on a mobile device
    11. Creating and applying B2G OS update packages
    12. Building and installing FOTA community builds
    13. B2G build variables reference sheet
  2. Porting B2G OS
    1. Porting overview
    2. Porting basics
    3. Porting on CyanogenMod
  3. Developing Gaia
    1. Developing Gaia overview
    2. Running the Gaia codebase
    3. Run Gaia on desktop using Mulet
    4. Understanding the Gaia codebase
    5. Making Gaia code changes
    6. Testing Gaia code changes
    7. Submitting a Gaia patch
    8. Gaia build system primer
    9. Different ways to run Gaia
    10. Make options reference
    11. Gaia tools reference
  4. B2G OS APIs