mozilla

Revision 465699 of Using the App Manager

  • 리비전 슬러그: Mozilla/Firefox_OS/Using_the_App_Manager
  • 리비전 제목: Using the App Manager
  • 리비전 아이디: 465699
  • 제작일시:
  • 만든이: jryans
  • 현재 리비전인가요? 아니오
  • 댓글

리비전 내용

The Firefox App Manager lets you install apps from your computer to a WebApp capable device (Firefox OS), and debug any running app.

WARNING: Work in progress (both code and documentation). Tracking bugs: Firefox OS 1.2, and later. Firefox App Manager is available in Firefox 26. The device must run at least Firefox OS 1.2. Questions? Ask paul on IRC (#developers).

Known bugs:

Demo:

Configuring the device

  1. Enable remote debugging in Firefox OS:
    Settings -> Device Information -> More Information -> Developer -> Remote Debugging [x]
  2. Disable phone lock. When the phone is locked, it's doesn't accept any connection (won't be necessary once bug 912898 gets fixed):
    Settings -> Phone Lock -> Lock Screen [ ]
  3. Plug the device to your computer
  4. Enable port forwarding. On your computer, type:
    adb forward tcp:6000 tcp:6000

    or (in the most recent builds)

    adb forward tcp:6000 localfilesystem:/data/local/debugger-socket
  5. Change prefs.js (won't be necessary once bug 913959 is fixed):
    $ adb shell
    root@android:/ # stop b2g
    root@android:/ # echo 'user_pref("devtools.debugger.enable-content-actors", true);' >> /data/b2g/mozilla/{profileName}.default/prefs.js
    root@android:/ # start b2g
    root@android:/ # exit
    

Start the App Manager

In Firefox Desktop, in about:config, set devtools.appmanager.enabled to true.

In Tools > Web Developer, select App Manager

Apps panel

From here, you can import an existing app form your computer, validate it, install it and debug it.

Device panel

Installed Apps

From here, you can start an installed app and debug it.

Permissions

List of permissions in the device.

리비전 소스

<p>The Firefox App Manager lets you install apps from your computer to a WebApp capable device (Firefox OS), and debug any running app.</p>
<p>WARNING: Work in progress (both code and documentation). Tracking bugs: <a href="https://bugzilla.mozilla.org/showdependencytree.cgi?id=912913&amp;hide_resolved=1" title="https://bugzilla.mozilla.org/showdependencytree.cgi?id=912913&amp;hide_resolved=1">Firefox OS 1.2</a>, and <a href="https://bugzilla.mozilla.org/buglist.cgi?quicksearch=component%3A%22App%20Manager%22&amp;list_id=7838998" title="https://bugzilla.mozilla.org/buglist.cgi?quicksearch=component%3A%22App%20Manager%22&amp;list_id=7838998">later</a>. Firefox App Manager is available in <strong>Firefox 26</strong>. The device must run at least <strong>Firefox OS 1.2</strong>. Questions? Ask <em>paul</em> on IRC (#developers).</p>
<h4 id="Known_bugs.3A">Known bugs:</h4>
<ul>
  <li><span class="summ" id="912646"><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=912646" title="NEW ---; assigned to jryans@gmail.com; Target: ---"><b>912646:</b> <span class="summ_text">Closing app toolbox causes phone to disconnect</span></a></span></li>
  <li><span class="summ"><span class="summ" id="912213"><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=912213" title="NEW ---; assigned to jryans@gmail.com; Target: ---"><b>912213:</b> <span class="summ_text">Trying to debug some system apps breaks further debug attempts (browser restart required)</span></a></span></span></li>
</ul>
<h4 id="Demo.3A">Demo:</h4>
<p><iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/2S-tpAQ6ap4/?feature=player_detailpage" width="640"></iframe></p>
<h2 id="Configuring_the_device">Configuring the device</h2>
<ol>
  <li>Enable remote debugging in Firefox OS:
    <pre>
Settings -&gt; Device Information -&gt; More Information -&gt; Developer -&gt; Remote Debugging [x]</pre>
  </li>
  <li>Disable phone lock. When the phone is locked, it's doesn't accept any connection (won't be necessary once bug 912898 gets fixed):
    <pre>
Settings -&gt; Phone Lock -&gt; Lock Screen [ ]</pre>
  </li>
  <li>Plug the device to your computer</li>
  <li>Enable port forwarding. On your computer, type:
    <pre>
adb forward tcp:6000 tcp:6000</pre>
    <p>or (in the most recent builds)</p>
    <pre>
adb forward tcp:6000 localfilesystem:/data/local/debugger-socket</pre>
  </li>
  <li>Change <code>prefs.js</code> (won't be necessary once bug 913959 is fixed):
    <pre>
$ adb shell
root@android:/ # stop b2g
root@android:/ # echo 'user_pref("devtools.debugger.enable-content-actors", true);' &gt;&gt; /data/b2g/mozilla/{profileName}.default/prefs.js
root@android:/ # start b2g
root@android:/ # exit
</pre>
  </li>
</ol>
<h2 id="Start_the_App_Manager">Start the App Manager</h2>
<p>In Firefox Desktop, in about:config, set devtools.appmanager.enabled to true.</p>
<p>In Tools &gt; Web Developer, select App Manager</p>
<h2 id="Apps_panel">Apps panel</h2>
<p>From here, you can import an existing app form your computer, validate it, install it and debug it.</p>
<h2 id="Device_panel">Device panel</h2>
<h3 id="Installed_Apps">Installed Apps</h3>
<p>From here, you can start an installed app and debug it.</p>
<h3 id="Permissions">Permissions</h3>
<p>List of permissions in the device.</p>
현재 리비전 복원