Code Monkey home page Code Monkey logo

rilproxy's Introduction

Utilities for B2G RIL Connection

This repo contains utilities for forwarding the rild socket connection out to non radio account owned processes.

rilproxy's People

Contributors

dhylands avatar ferjm avatar jaoo avatar michaelwu avatar qdot avatar rvandermeulen avatar tdz avatar vicamo avatar vvuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rilproxy's Issues

Extract event documentation from ril.h

It'd be nice to turn the event documentation in ril.h into a wiki page or something so we can match the events to Gecko hooks. Need to figure out where to centralise the information (wiki on this project? B2G mozilla wiki?) then actually do it.

Figure out how to get libbinder and libcutil into gecko builds

If we're going to use android libs, we need to figure out exactly how we're going to build against libbinder (for Parcel), libcutils (for some dependencies of libbinder), libaudio (for audio stuff), etc... These are all located in the B2G tree at the moment.

Hangup Phone

We can dial, but we can't hang up. We should probably be able to hang up.

Figure out basic gecko event transactions

Once we have a simple I/O loop so we don't drop events, we need to figure out how we'll route events into gecko. @benturner is in charge of the gecko side of this, so we'll need to talk to him about how callbacks (or whatever method is decided to use) should look.

Document logcat/strace output for phone dialing

Using a regular old android phone, run

  • strace -p (rild pid) -f
  • logcat -b radio

And add the output to documentation. This'll give us a way to hand trace the steps needed in dialing. This is only to the point of getting the phone ringing, not interested in pickup/hangup yet.

Unhardcode paths in cmake

The CMake project here is still just for the edification of @kmachulis-mozilla, but since other people may be using it, it'd probably be best to remove the hardcoded paths. Just create a single B2G location configuration variable and use that for the INCLUDE/LINK setups.

Figure out how to turn microphone on/off

Microphones are helpful when you want to talk to someone. Figure out how to turn it on/off. Doesn't need to directly correlate to events, just need information

Create parcel daemon for accessing speaker/mic

Create something similar to rild for setting the speaker/mic via libmedia, so we can change settings via outside means. Having this means we can test the full phone flow from the desktop (by exposing more sockets in b2g-dialer-forward or a similar utility)

Figure out how to turn speaker on/off

Speakers are pretty important to phones. Figure out what is needed to turn speaker on/off during calls. Doesn't need to directly correlate to events, just need information

Rename b2g-dialer-daemon

It's not specific to b2g or the dialer per se, just a proxy for the ril socket. IMHO this name is actively confusing.

I suspect this might evolve to contain ril-specific state, not remain a dumb socket proxy, so something like rilproxy might be descriptive going forward. If all the state we might need to reload after a gecko crash, e.g., is queryable from rild, then this can remain a dumb proxy and we might want to use a standard tool.

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please see Mozilla-GitHub-Standards or email [email protected].

(Message COC001)

Document phone initialization on socket connect

When connecting to the socket, the phone sends some unsolicited information (phone type, gsm info, etc...). We should figure out exactly what is required of the protocol to go from socket connection to a stable, idle phone state.

Create simple I/O loop for socket events and forward to network

Create a simple poll() based loop to make sure we read/write all the events, even if we don't do anything with them. rild gets angry if you drop events.

Once we can get these events, forward them to a network socket so we can connect via adb forward. This will allow us to develop phone RIL on desktop m-c, so we don't have to forward to the device every time we make a change to the RIL code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.