Once you've built Boot to Gecko for a supported mobile device, you can install it. This article will guide you through the process.
Note: The first time you flash your phone, it must have Android 4 (Ice Cream Sandwich) installed. The process will not work correctly otherwise. Once you've done your first install of B2G, however, you can simply update on top of it.
Note: For reference devices (ex: Flame), it's possible to skip building the whole image from scratch. See this guide for more information.
- Everyone knows about Mozilla’s Firefox browser which is available for computers as well as all major mobile platforms. You can use it to block Ads on Android devices. Mozilla has launched Firefox OS 2.5 Developer Preview for Android devices worldwide. Now Android users will be able to take a test drive on this newly launched.
- Jan 28, 2017 Both Android OS and Firefox OS are linux phone operating systems, so if no one before you did it, you can port the Android OS for your Firefox phone. But you probably need to unlock the bootloader and install a custom recovery.
Installing ADB
On OSX
Download the FireFox OS 2.5 →To download Go to the Official Mozilla Firefox OS 2.5 link from here. →Click the button in the middle of the page, namely “Get The Android App”. Safely install Firefox OS 2.5 on Android devices without Root. Step By Step Guide. First download the.
If you have homebrew on OSX:
Otherwise, download the Android Developer Tools and add the binaries to your PATH.
On Ubuntu
Flashing your phone
To flash everything to your phone, simply connect your phone and type:
That's it. The B2G you've currently got built will flash onto your device.
Note that If you are updating across revisions with significant Gaia changes, you might need also do:
This will wipe all of your data stored in Gaia, but also clear out obsolete Gaia settings and prefs so that you'll boot into a 'clean' Gaia. In theory
./flash.sh
should do this already, but for some devices (e.g. hamachi) ./flash.sh
only flashes a subset of modules (./flash.sh -f
will force flash everything.)Configuring the udev rule for your device
On Linux, if you get this,
![For For](/uploads/1/2/6/0/126011928/163607103.jpg)
that probably means that you haven't added a udev rule for the fastboot device, which is not the same as the one for adb. (Though it also might just mean you need to run ./flash.sh with sudo) You can get the USB vendor ID by running
lsusb
now, but typically it's Google's: 18d1, so adding this line in your /etc/udev/rules.d/51-android.rules
would work:Note: If you get a very helpful
libusb
error '-3' on Linux, it means you need to be root to have the needed access to the USB device. Run the script again using sudo
.Note 2: If you have an Unagi or a Geeksphone Keon phone, you need two lines like this - one for the original phone vendor's ID, and one for Google's.
Special notes for Hamachi, Helix, and Leo devices
If your phone is a hamachi, helix or leo device, the ./flash.sh script will now default to flashing only gecko and gaia. It is recommended that you flash with the OEM as a base build to get the firmware and the gonk layers and then flash the gecko and gaia on top. If you want to flash using the images, there is an override flash where you can ./flash.sh -f and it will use the image files to flash your device.
Special notes for the Samsung Galaxy S2
Firefox Android Download Location
If your phone is a Galaxy S2 and you are using heimdall 1.3.2 (the latest version; use
heimdall version
to check), you may see an alarming error 'FACTORYFS upload failed!' followed by 'Heimdall flashing failed' and some additional information. This is actually a success condition, and you can ignore the advice.To get rid of this strange behavior, grab a source copy of heimdall, downgrading to the 1.3.1 release ('
git checkout fbbed42c1e5719cc7a4dceeba098981f19f37c06
'), then compile it according to the README
, then install that to make the error go away. However, this isn't strictly necessary.Note: the image size may not a problem. see the next tip
All versions of heimdall are unable to flash a system.img larger than 100MB. Do:
to see how big yours is. If it's too large, ask in IRC for advice; there are ways to do it in two stages.
The argument of heimdall command may not work and result in fail when trying to flash. You'll need to change it in the ./flash.sh script, the argument must be in uppercase (l.185) :
Added step for the Samsung Galaxy S2
If you're flashing onto the Galaxy S2, there is an additional step to follow. Gaia does not get flashed automatically by the
flash.sh
script; you'll need to also do:Flashing specific partitions to fastboot phones
You can flash specific partitions to fastboot phones (that is, any phone other than the Samsung Galaxy S2). For example:
WARNING: flashing user (at least) may delete your user-specific data (contacts, etc.).
Updating specific modules
You can update specific components of B2G by specifying their names when flashing. For example:
In order to update only one application you can use BUILD_APP_NAME environment variable:
If your phone is not for developer (you aren't interested on test apps and/or require optimization), you can update gaia using:
![Operating system for android Operating system for android](/uploads/1/2/6/0/126011928/919346512.jpg)
Next steps
At this point, your phone should be running Boot to Gecko! It's time to experiment, write some code, test, or do some debugging!
Note: A helpful usage tip: if your build of B2G starts up with the lock screen requesting a pass code to unlock the phone, the default code is 0000.
Os For Android Free Download
Troubleshooting
Here are a some tips for what to do if your device doesn't work right after installing B2G, or updating it to a new version
Android Os Software Download
If the UI doesn't start up
If you update your phone and the user interface doesn't start up, you can reset it to clear out out-of-date configuration and the like. This may bring it back to life, but note that it may also delete your user-specific data (contacts, etc.). Here's how:
If you want change from developer to production mode
WARNING: reset-gaia may delete your user-specific data (contacts, etc.).
Firefox Download Mobile
'image is too large' error message on ./flash.sh execution
Firefox Browser For Android Download
It might mean that you phone needs to be rooted first before flashing it. As b2g needs to be written on root partition, your phone needs to be rooted in order to install it.