Navigation Menu

Skip to content

philikon/b2g-js-ril

 
 

Repository files navigation

b2g-js-ril

This repository houses the JavaScript code for accessing the android radio interface layer (RIL) protocol. Using this project, along with the b2g-dialer-daemon (http://www.github.com/kmachulis-mozilla/b2g-dialer-daemon), on top of the gonk backend of B2G, the phone radio can be accessed from a desktop instance of Firefox for testing and development.

Development notes

Running tests

Using the ‘js’ interpreter executable from a Firefox build:

js test.js

Port forwarding

To forward the socket on the phone to the desktop (for desktop development), you first need to get rilproxy to expose it as such, rather than exposing it to Gecko:

adb shell $ touch /data/local/rilproxyd $ ps <look for rilproxyd_pid> $ kill <rilproxyd_pid>

Now on the desktop, run the following command:

adb forward tcp:6200 localreserved:rilproxyd

Interactive testing in Firefox

This directory can be installed as a Firefox add-on. Simply drop a proxy file (https://developer.mozilla.org/en/Setting_up_extension_development_environment#Firefox_extension_proxy_file) called ‘b2g-js-ril@mozilla.org’ into your profile’s ‘extension’ dir. Then open the testing page at ‘chrome://ril/content/test.html’ which is able to connect to the forwarded socket, thus mimicking the RIL IPC thread, and run the RIL worker code.

About

Dev repo and test bed for the B2G JS RIL (canonical location is mozilla-central!)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.7%
  • Python 9.3%