Hi Nexus 4 users,
First some disclaimers.
- I, the compiler of these images, have no affiliation with Mozilla. These are not official images, and nothing I say should be interpretted as being “official” in any way.
- As far as I personally am concerned, if you decide to flash your device, you are doing so at your own risk.
- B2G OS is not ready for use as a primary phone OS. The images shared here for those early birds who are interested in trying things out in their current state. You may find that the resulting system is not functional.
Blobfree build
Here’s a link for a blobfree build of B2G OS for the Nexus 4 (mako). A blobfree build doesn’t have any non-free binary blobs in it, so it’s not able to run by itself. The idea is that you should be able to use the B2G Installer to install this onto a device that already has the blobs. This image is untested, so I’m afraid I have no idea whether it works, and I haven’t tried using the B2G Installer either, so I can’t help you there.
The build is based on KitKat, so in order to use it your phone would need to have KitKat installed (otherwise you will have the wrong binary blobs). Also, my understanding is that the B2G installer will completely wipe your phone, so you should back-up anything important before trying this route. Please be aware once again that this build is not really usable as a day-to-day phone OS.
Flashable ROM
This is a completely unsupported ROM which you may be able to install using ClockworkMod or TWRP (I have installed it myself using MultiROM). Please note that Mozilla does not support the use of MultiROM. If you want help from Mozilla, you should use the B2G Installer (see above).
Building your own ROM
You can make your own ROM like the one above following the standard build instructions on MDN with the following changes. Please note once again that Mozilla does not support this.
Firstly, add these lines to your .userconfig
(the “random settings” aren’t strictly necessary):
# This line tells the build system to put the boot image in the FOTA file
export B2G_FOTA_PARTS="/boot:boot.img"
# This makes sure gaia is included in the FOTA build
export VARIANT=userdebug
# These are some other random settings that seem to work well on the Nexus 4
export PRODUCTION=1 #to have a user build
export GAIA_DEV_PIXELS_PER_PX=2
export REMOTE_DEBUGGER=1
export MOZILLA_OFFICIAL=0
export ENABLE_DEFAULT_BOOTANIMATION=true
export BOOTANIMATION_ASSET_SIZE=720p
You then build the gecko-update-fota-full
target, instead of making a normal build, by executing
./build.sh gecko-update-fota-full
The ROM will end up at out/target/product/mako/fota/full/update.zip
; you can then use abd sideload
or whatever to install it.
If you find that the resulting system thinks that you have no SIM card installed when you do, it may be necessary to do the “Run Restorecon” option in your TWRP, etc.
Note again that B2G OS is not yet fully functional, so some of the issues you will experience are shared by all devices.