This article provides information about using Firefox OS on a Nexus 4, including Flashing Firefox OS onto your device.
Installing Firefox OS on your Nexus 4
This section provides instructions for flashing Firefox OS onto your Nexus 4 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
- Download the nexus-4-kk.zip build.
- Unzip the file, and ensure that
flash.batis available inside theb2g-distrofolder. (Note: theflash.batfile is currently missing; until this is added to the build, you can grab it from https://github.com/nhirata/flash-batch.) - If your Nexus 4 is on, turn it off.
- Connect your Nexus 4 to your computer via a USB cable.
- Turn on the nexus 4 by tapping the power button, and then immediately hold the volume down button until you see "Restart bootloader" displayed on the screen.
- Double-click the
flash.batfile.
Flashing Firefox OS on Mac/Linux
- Download the nexus-4-kk.zip build.
- Unzip the file, and ensure that
flash.shis available inside theb2g-distrofolder. - Connect your Nexus 4 to your computer via a USB cable.
- Open your terminal and enter the directory that
flash.shis located in — e.g:cd nexus-4-kk/b2g-distro. - Enter the command
adb devicesto ensure the device is found. (See the adb command setup for help and troubleshooting information.) - Enter the command
chmod +x ./flash.shto make the flash script executable. - Enter the command
./flash.shto proceed with the installation.
When the process is complete, your phone should reboot into Firefox OS.