Connected Devices/Projects/Project Tablet: Difference between revisions

Jump to navigation Jump to search
Added device build instructions
(Added screenshot of development environment)
(Added device build instructions)
Line 69: Line 69:
The source code for an early prototype of the tablet UI can be found in an [https://github.com/mozilla-b2g/gecko-tablet experimental branch of Gecko on GitHub].
The source code for an early prototype of the tablet UI can be found in an [https://github.com/mozilla-b2g/gecko-tablet experimental branch of Gecko on GitHub].


=== Building the Prototype ===
=== Building for Desktop ===
You can run and debug the prototype tablet chrome on a desktop PC using [https://wiki.mozilla.org/Mulet Mulet] as a development environment. Building Mulet is much the same as [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build building Firefox] so you'll need to make sure you have all the Firefox build pre-requisites installed.
You can run and debug the prototype tablet chrome on a desktop PC using [https://wiki.mozilla.org/Mulet Mulet] as a development environment. Building Mulet is much the same as [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build building Firefox] so you'll need to make sure you have all the Firefox build pre-requisites installed.


Line 99: Line 99:


  $ ./mach run -profile profile -chrome chrome://b2g/content/shell.html
  $ ./mach run -profile profile -chrome chrome://b2g/content/shell.html
=== Building for Device ===
You can also build the prototype for the Sony Xperia Z2 Tablet (both WiFi and LTE versions). To do this you can use the B2G build system with a special "project-tablet" configuration which builds the lower levels of AOSP with Project Tablet's Gecko on top, leaving out the Gaia layer of B2G.
In order to flash the Z2 tablet it needs to be running Android Lollipop (e.g. Firmware version 23.4.A.1.264). Marshmallow may work but if you try to build on top of Kit Kat your build won't boot. There are several ways of upgrading the tablet including OTA updates from Sony, Sony's [http://support.sonymobile.com/global-en/tools/xperia-companion/ Xperia Companion] software or [http://flashtool.net/ Flashtool]. See Sony's instructions on how to [http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/ unlock the bootloader] on the tablet before flashing your own images.
See the [https://github.com/mozilla-b2g/B2G/blob/master/README.md B2G build documentation] for full build instructions, but the main steps are:
$ git clone https://github.com/mozilla-b2g/B2G.git
$ ./config.sh project-tablet
$ ./build.sh
$ ./flash.sh
('''Note:''' For the LTE version of the Z2 tablet use "project-tablet-lte" instead of "project-tablet". The project-tablet build will work on the LTE device but may be unstable).
If you need any help, feel free to ask us in IRC.


== Contacts ==
== Contacts ==
Confirmed users
394

edits

Navigation menu