Changes

Jump to: navigation, search

Firefox OS/Stingray/SmartScreen/

2,579 bytes added, 03:07, 3 November 2014
Created page with " = Smart Screen = Smart Screen is comprised of smart-system, smart-home, app deck, device deck, tv deck, and dashboard. This document tells: how to run the smart-screen in Fi..."

= Smart Screen =

Smart Screen is comprised of smart-system, smart-home, app deck, device deck, tv deck, and dashboard. This document tells: how to run the smart-screen in Firefox Nightly and B2G

== Run in Firefox Nightly or B2G

=== clone the repo ===
Before building the code, we may need to clone the gaia repo with the following command:

git clone https://github.com/mozilla-b2g/gaia.git

=== build the code ===
The smart screen is a type of TV. We have to use GAIA_DEVICE_TYPE=tv to tell build script to build for TV:

GAIA_DEVICE_TYPE=tv make

If you had built other builds before, we should suggest you to clean the profile folder:

make clean

Please note we should have a folder called profile after the make finished and should have profile-debug if we also add DEBUG=1.

=== Run in Firefox Nightly ===
There were some issues in Firefox Nightly to prevent running Gaia in it in past few weeks. There is a new framework called [[Mulet]] which enables some missing modules for Firefox OS. We have to download the mulet enabled version, named firefox-36.0a1.en-US.xxxxxx, at:

http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-central/

It is easy to tell the difference between normal one or Mulet enabled one. We may find the default start-up path is chrome://b2g/content/shell.html . If you still get the empty search/url box, you are in normal firefox nightly.

The following is an example to run Smart Screen in Mulet:

/Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin -profile /Users/hchu/gaia/profile

==== Issues in Mulet ====

# There is an issue with Mulet Mac version. We may find the totally black screen after opened. Please press reload to start the loading of shell.html and adaptive web design.
# The window size of adaptive web design is not configurable with Mulet. We cannot enlarge the window size to TV size, like 1080P.

Please find more information at https://bugzilla.mozilla.org/show_bug.cgi?id=943878 .

=== Run in B2G Desktop ===
Running in B2G desktop is relative easy to Mulet. We may need to download the B2G desktop, named b2g-36.0a1.multi.xxxxxxx at:

http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-central/

Similar to mulet, we can run the Gaia in B2G desktop with the following command:

/Applications/B2G.app/Contents/MacOS/b2g-bin -screen 1920x1080 -profile /.../profile

==== Issues in B2G Desktop ===

# The default orientation of B2G desktop is portrait. But we may expect the default orientation is landscape in TV. So, we may have a portrait clock app in B2G desktop.
Confirm
209
edits

Navigation menu