User:Clouserw/Flashing

< User:Clouserw
Revision as of 22:18, 15 October 2014 by Clouserw (talk | contribs)
Draft-template-image.png THIS PAGE IS A WORKING DRAFT Pencil-emoji U270F-gray.png
The page may be difficult to navigate, and some information on its subject might be incomplete and/or evolving rapidly.
If you have any questions or ideas, please add them as a new topic on the discussion page.

There is some confusion over how to flash a device so I wanted to make a wiki page we could use with best practices *for Marketplace devs*. I'm doing it in my namespace because Andy wants to put it in the official docs sometime.

So...

I have a Flame. I want to flash the latest trunk build.

Plug your phone into your USB cable. If you run `adb devices` you should see a device ID. If you don't say something on IRC as you'll need to do that before anything below works.

Run the right kernel

There are base builds (this is "gonk"), which is your kernel and such, and there are FirefoxOS builds which we run on top of that base build. Flames shipped with a base build on an old Android kernel (v123) which we don't support anymore. Let's make sure we're running the new v180 build. Here are easy directions. Note that you will lose everything on the device when you do this.

Once you are running v180 you don't need to do this step again until we update to a new kernel (probably a year or two).

Run the right FirefoxOS build

   git clone https://github.com/Mozilla-TWQA/B2G-flash-tool
   cd B2G-flash-tool
   ./flash_pvt.py --help
   # Shallow flash an engineering build off the master branch onto the Flame v180 device.  In theory you won't lose anything...
   ./flash_pvt.py -d flame-kk -v mozilla-central --eng -g -G --keep_profile

Enable dev/stage certificates

Enable the checkbox: Settings -> Developer -> Use Marketplace reviewer certs