0
From HTML5 to hardware
@janjongboom
Simonyi Conference, Budapest, April 15
Tuesday, April 15, 14
@janjongboom
Tuesday, April 15, 14
I’m Jan, live in Amsterdam. Work for Telenor on Mozilla products. Firefox OS contributo...
@janjongboom
Tuesday, April 15, 14
I’m Jan, live in Amsterdam. Work for Telenor on Mozilla products. Firefox OS contributo...
@janjongboom
Tuesday, April 15, 14
I’m Jan, live in Amsterdam. Work for Telenor on Mozilla products. Firefox OS contributo...
Tuesday, April 15, 14
Internet is normal for western world, but big part of the world doesnt have it.
Click Only 2.5 billi...
4,500,000,000
Tuesday, April 15, 14
Internet is normal for western world, but big part of the world doesnt have it.
Click ...
The web has everything
Information does not like to be locked down
Tuesday, April 15, 14
We want people to access the web,...
Affordable device to access the
internet
Tuesday, April 15, 14
So goal: affordable device that people can use to get on th...
Tuesday, April 15, 14
Meet Firefox OS
19,000 HUF
Tuesday, April 15, 14
First generation came out last year. Goes for about 19000 HUF here in Hungary (65 eur)
Tuesday, April 15, 14
Next generation is going to be lower. System requirements are four times as low as Android.
Great performance on cheap
hardware?
Tuesday, April 15, 14
So if we want to get great performance out of cheap hardware, h...
Tuesday, April 15, 14
Traditional model: Application -> VM (f.e. Dalvik on Android; .NET on Windows Phone, JavaScript in V...
Dalvik .NET V8
Tuesday, April 15, 14
Traditional model: Application -> VM (f.e. Dalvik on Android; .NET on Windows Phone, ...
Dalvik .NET V8
Apps Apps Apps
Tuesday, April 15, 14
Traditional model: Application -> VM (f.e. Dalvik on Android; .NET on ...
Most mobile OS’es
App
Tuesday, April 15, 14
VM on top of OS. Kernel is hardware dependent. But always two layers between A...
Most mobile OS’es
App VM
Tuesday, April 15, 14
VM on top of OS. Kernel is hardware dependent. But always two layers betwee...
Most mobile OS’es
App VM OS
Tuesday, April 15, 14
VM on top of OS. Kernel is hardware dependent. But always two layers bet...
Most mobile OS’es
App VM OS Kernel
Tuesday, April 15, 14
VM on top of OS. Kernel is hardware dependent. But always two lay...
Most mobile OS’es
App VM OS Kernel Hardware
Tuesday, April 15, 14
VM on top of OS. Kernel is hardware dependent. But alway...
Firefox OS
App
JS VM
Browser
Kernel Hardware
Tuesday, April 15, 14
Firefox OS only has one intermediate layer. The browser...
One application runtime
Browser runs directly on top of the kernel
Tuesday, April 15, 14
So browser directly on top of the...
Everything runs in browser
SMS, Payments, Marketplace
Tuesday, April 15, 14
System itself can’t take shortcuts. Everything...
Small Kernel
• Small Linux kernel
• Based on Android Open Source Project
• Contains Hardware Abstraction Layer
• Porting t...
Windows
Tuesday, April 15, 14
Makes it easier and light weight. Windows: 998 lines of calls to Win32 API on clipboard code.
Firefox OS
Tuesday, April 15, 14
Firefox OS: 200 lines, just have a var that holds the clipboard. Other stuff is IPC.
Application runtime
Tuesday, April 15, 14
Application runtime is done through iframes. Every application is iframe.
Window Manager
• Boot into HTML app (system)
• System is the window manager
• Applications are loaded in iframe
• iframes ...
remote=true
Tuesday, April 15, 14
It’s an iframe that points to a special URL that maps to a location on disk. But it has ...
Tuesday, April 15, 14
Automatic process isolation, and automatic user isolation. Security ftw.
Tuesday, April 15, 14
Automatic process isolation, and automatic user isolation. Security ftw.
Tracing down a SMS message
From HTML to the RIL
Tuesday, April 15, 14
All cool, but now let’s talk about some actual code....
I NEED AN ADULT!
Tuesday, April 15, 14
No clue what the RIL is? I’ll walk you through it.
Tuesday, April 15, 14
We’ll walk over what happens if you click Send, up until the moment it reaches the cell tower.
Gaia
Gecko
Gonk
User Interface
Browser engine
Kernel
Tuesday, April 15, 14
FFOS consists of three layers. Gaia, Gecko, Gonk
Gaia
• Frontend
• github.com/mozilla-b2g/gaia
• All system applications
• HTML/CSS/JS
• SMS app code under /apps/sms
(that...
index.html
Tuesday, April 15, 14
SMS app index.html has the button
thread_ui.js
Tuesday, April 15, 14
Button has click handler that goes to MessageManager. There is also a callback involved.
thread_ui.js
Tuesday, April 15, 14
Button has click handler that goes to MessageManager. There is also a callback involved.
thread_ui.js
Tuesday, April 15, 14
Button has click handler that goes to MessageManager. There is also a callback involved.
thread_ui.js
Tuesday, April 15, 14
Button has click handler that goes to MessageManager. There is also a callback involved.
thread_ui.js
Tuesday, April 15, 14
Button has click handler that goes to MessageManager. There is also a callback involved.
message_manager.js
Tuesday, April 15, 14
MessageManager makes a call to Gecko (under navigator object). Returns a DOMReque...
message_manager.js
Gecko!
Tuesday, April 15, 14
MessageManager makes a call to Gecko (under navigator object). Returns a D...
message_manager.js
Gecko!
Tuesday, April 15, 14
MessageManager makes a call to Gecko (under navigator object). Returns a D...
We need to go deeper!
Tuesday, April 15, 14
So let’s go into Gecko.
Gecko
• Browser engine
• Same as Firefox for Desktop / Android / etc.
• Runs directly on kernel (B2G)
Tuesday, April 15, 1...
nsIDOMMobileMessageManager.idl
(yeah, that’s long)
Tuesday, April 15, 14
Gecko has IDL files. These are shared by browser v...
nsIDOMMobileMessageManager.idl
(yeah, that’s long)
addEventListener
Tuesday, April 15, 14
Gecko has IDL files. These are sh...
nsIDOMMobileMessageManager.idl
(yeah, that’s long)
Tuesday, April 15, 14
Gecko has IDL files. These are shared by browser v...
MobileMessageManager.cpp
Could also be .jsm
Tuesday, April 15, 14
Inheritance chain. This is written in CPP.
MobileMessageManager.cpp
Could also be .jsm
Tuesday, April 15, 14
Inheritance chain. This is written in CPP.
MobileMessageManager.cpp
Tuesday, April 15, 14
JS values get boxed automatically. We create a new DOMRequest. See the gaia...
MobileMessageManager.cpp
Tuesday, April 15, 14
JS values get boxed automatically. We create a new DOMRequest. See the gaia...
MobileMessageManager.cpp
Tuesday, April 15, 14
JS values get boxed automatically. We create a new DOMRequest. See the gaia...
MobileMessageManager.cpp
Tuesday, April 15, 14
JS values get boxed automatically. We create a new DOMRequest. See the gaia...
MobileMessageManager.cpp
Tuesday, April 15, 14
Then in the same function we make a call to the SMS Service. This is platfo...
MobileMessageManager.cpp
Services are platform speci!c
Tuesday, April 15, 14
Then in the same function we make a call to t...
moz.build
Service injection at compile time
Tuesday, April 15, 14
This is the service injection in moz.build. Happens at c...
moz.build
Service injection at compile time
Tuesday, April 15, 14
This is the service injection in moz.build. Happens at c...
Tuesday, April 15, 14
Time to go DEEPER
Gonk
• Kernel
• Hardware Abstraction
• Think of the clipboard example
• Android code calls back to Android
• We can go str...
SmsService.cpp
Tuesday, April 15, 14
Get the radio interface layer. It’s the API to the chipset in the phone. And send SMS.
SmsService.cpp
Tuesday, April 15, 14
Get the radio interface layer. It’s the API to the chipset in the phone. And send SMS.
SmsService.cpp
Tuesday, April 15, 14
Get the radio interface layer. It’s the API to the chipset in the phone. And send SMS.
dom/system folder
Tuesday, April 15, 14
There are a bunch of platforms, they implement the services. In this case the RIL ...
nsIRadioInterfaceLayer.idl
Tuesday, April 15, 14
Also has IDL definitions.
nsIRadioInterfaceLayer.idl
Tuesday, April 15, 14
Also has IDL definitions.
nsIRadioInterfaceLayer.idl
Tuesday, April 15, 14
Also has IDL definitions.
RadioInterfaceLayer.js
Could also be .cpp
Tuesday, April 15, 14
RIL code has been written in javascript in this case. It d...
RadioInterfaceLayer.js
Could also be .cpp
Tuesday, April 15, 14
RIL code has been written in javascript in this case. It d...
RadioInterfaceLayer.js
Could also be .cpp
Tuesday, April 15, 14
RIL code has been written in javascript in this case. It d...
RadioInterfaceLayer.js
Tuesday, April 15, 14
Now dispatch to a worker. JS single-threaded. Can’t wait for the response fro...
RadioInterfaceLayer.js
Tuesday, April 15, 14
Now dispatch to a worker. JS single-threaded. Can’t wait for the response fro...
RadioInterfaceLayer.js
Tuesday, April 15, 14
Now dispatch to a worker. JS single-threaded. Can’t wait for the response fro...
Tuesday, April 15, 14
rilMessageToken is used to get the callbacks.
Tuesday, April 15, 14
rilMessageToken is used to get the callbacks.
Tuesday, April 15, 14
Something in between to shake up the audience.
ril_worker.js
Tuesday, April 15, 14
Now ril_worker talks to the actual hardware. Pretty simple stuff. Some options.
Mindig írni
byte az én RIL!
Tuesday, April 15, 14
I always write bytes to the RIL. RIL doesn’t understand JS or CPP. Only ...
ril_worker.js
Tuesday, April 15, 14
So now depending on protocol we talk, we dump bytes. SEND_SMS is 25, then some options...
ril_worker.js
Tuesday, April 15, 14
So now depending on protocol we talk, we dump bytes. SEND_SMS is 25, then some options...
ril_worker.js
Tuesday, April 15, 14
So now depending on protocol we talk, we dump bytes. SEND_SMS is 25, then some options...
ril_worker.js
Tuesday, April 15, 14
So now depending on protocol we talk, we dump bytes. SEND_SMS is 25, then some options...
Radio Interface Layer
• Proprietary
• Comes with chipset
• Trade secret
• Delivered to RIL? Done!
• See how it looks like?...
OMGAWESOME
Play around? I have devices with me.
Tuesday, April 15, 14
OMG AWESOME SHIT. All open source. I have some devic...
Thank you!
slideshare.net/janjongboom
Tuesday, April 15, 14
Thanks!
slideshare.net/janjongboom
Questions?
Tuesday, April 15, 14
Thanks!
Upcoming SlideShare
Loading in...5
×

From HTML5 to Hardware - Simonyi Conference Budapest April 15

550

Published on

Internals of Firefox OS. Process isolation, difference between Gonk/Gecko/Gaia. Tracing a call to the SMS service from the UI back to the RIL.

Published in: Internet, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
550
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "From HTML5 to Hardware - Simonyi Conference Budapest April 15"

  1. 1. From HTML5 to hardware @janjongboom Simonyi Conference, Budapest, April 15 Tuesday, April 15, 14
  2. 2. @janjongboom Tuesday, April 15, 14 I’m Jan, live in Amsterdam. Work for Telenor on Mozilla products. Firefox OS contributor & keyboard peer. I write code for Gaia and Gecko.
  3. 3. @janjongboom Tuesday, April 15, 14 I’m Jan, live in Amsterdam. Work for Telenor on Mozilla products. Firefox OS contributor & keyboard peer. I write code for Gaia and Gecko.
  4. 4. @janjongboom Tuesday, April 15, 14 I’m Jan, live in Amsterdam. Work for Telenor on Mozilla products. Firefox OS contributor & keyboard peer. I write code for Gaia and Gecko.
  5. 5. Tuesday, April 15, 14 Internet is normal for western world, but big part of the world doesnt have it. Click Only 2.5 billion people out of 7.
  6. 6. 4,500,000,000 Tuesday, April 15, 14 Internet is normal for western world, but big part of the world doesnt have it. Click Only 2.5 billion people out of 7.
  7. 7. The web has everything Information does not like to be locked down Tuesday, April 15, 14 We want people to access the web, not the closed silo’s that Android / iOS are, because thats not where the information is
  8. 8. Affordable device to access the internet Tuesday, April 15, 14 So goal: affordable device that people can use to get on the internet
  9. 9. Tuesday, April 15, 14 Meet Firefox OS
  10. 10. 19,000 HUF Tuesday, April 15, 14 First generation came out last year. Goes for about 19000 HUF here in Hungary (65 eur)
  11. 11. Tuesday, April 15, 14 Next generation is going to be lower. System requirements are four times as low as Android.
  12. 12. Great performance on cheap hardware? Tuesday, April 15, 14 So if we want to get great performance out of cheap hardware, how do we do it?
  13. 13. Tuesday, April 15, 14 Traditional model: Application -> VM (f.e. Dalvik on Android; .NET on Windows Phone, JavaScript in V8)
  14. 14. Dalvik .NET V8 Tuesday, April 15, 14 Traditional model: Application -> VM (f.e. Dalvik on Android; .NET on Windows Phone, JavaScript in V8)
  15. 15. Dalvik .NET V8 Apps Apps Apps Tuesday, April 15, 14 Traditional model: Application -> VM (f.e. Dalvik on Android; .NET on Windows Phone, JavaScript in V8)
  16. 16. Most mobile OS’es App Tuesday, April 15, 14 VM on top of OS. Kernel is hardware dependent. But always two layers between App and Kernel.
  17. 17. Most mobile OS’es App VM Tuesday, April 15, 14 VM on top of OS. Kernel is hardware dependent. But always two layers between App and Kernel.
  18. 18. Most mobile OS’es App VM OS Tuesday, April 15, 14 VM on top of OS. Kernel is hardware dependent. But always two layers between App and Kernel.
  19. 19. Most mobile OS’es App VM OS Kernel Tuesday, April 15, 14 VM on top of OS. Kernel is hardware dependent. But always two layers between App and Kernel.
  20. 20. Most mobile OS’es App VM OS Kernel Hardware Tuesday, April 15, 14 VM on top of OS. Kernel is hardware dependent. But always two layers between App and Kernel.
  21. 21. Firefox OS App JS VM Browser Kernel Hardware Tuesday, April 15, 14 Firefox OS only has one intermediate layer. The browser. Everything has to go through there. No exceptions like proprietary APIs (ok, well a few)
  22. 22. One application runtime Browser runs directly on top of the kernel Tuesday, April 15, 14 So browser directly on top of the kernel. No overhead.
  23. 23. Everything runs in browser SMS, Payments, Marketplace Tuesday, April 15, 14 System itself can’t take shortcuts. Everything is browser. Also system apps.
  24. 24. Small Kernel • Small Linux kernel • Based on Android Open Source Project • Contains Hardware Abstraction Layer • Porting target • Boot straight into Gecko Tuesday, April 15, 14 All runs on top of a very small kernel. Based on Android OSP. Contains HAL and boots straight into Gecko. Gecko is browser engine.
  25. 25. Windows Tuesday, April 15, 14 Makes it easier and light weight. Windows: 998 lines of calls to Win32 API on clipboard code.
  26. 26. Firefox OS Tuesday, April 15, 14 Firefox OS: 200 lines, just have a var that holds the clipboard. Other stuff is IPC.
  27. 27. Application runtime Tuesday, April 15, 14 Application runtime is done through iframes. Every application is iframe.
  28. 28. Window Manager • Boot into HTML app (system) • System is the window manager • Applications are loaded in iframe • iframes can be ran out of process Tuesday, April 15, 14 The window manager is called the system app. It creates the iframes on demand. There is automatic process isolation in place. For example Here maps.
  29. 29. remote=true Tuesday, April 15, 14 It’s an iframe that points to a special URL that maps to a location on disk. But it has remote=true.
  30. 30. Tuesday, April 15, 14 Automatic process isolation, and automatic user isolation. Security ftw.
  31. 31. Tuesday, April 15, 14 Automatic process isolation, and automatic user isolation. Security ftw.
  32. 32. Tracing down a SMS message From HTML to the RIL Tuesday, April 15, 14 All cool, but now let’s talk about some actual code. How does it look like if you make a call from HTML to the RIL.
  33. 33. I NEED AN ADULT! Tuesday, April 15, 14 No clue what the RIL is? I’ll walk you through it.
  34. 34. Tuesday, April 15, 14 We’ll walk over what happens if you click Send, up until the moment it reaches the cell tower.
  35. 35. Gaia Gecko Gonk User Interface Browser engine Kernel Tuesday, April 15, 14 FFOS consists of three layers. Gaia, Gecko, Gonk
  36. 36. Gaia • Frontend • github.com/mozilla-b2g/gaia • All system applications • HTML/CSS/JS • SMS app code under /apps/sms (that easy!) Tuesday, April 15, 14 Gaia, open source frontend. Not limited to only run on Gecko (but at the moment it is).
  37. 37. index.html Tuesday, April 15, 14 SMS app index.html has the button
  38. 38. thread_ui.js Tuesday, April 15, 14 Button has click handler that goes to MessageManager. There is also a callback involved.
  39. 39. thread_ui.js Tuesday, April 15, 14 Button has click handler that goes to MessageManager. There is also a callback involved.
  40. 40. thread_ui.js Tuesday, April 15, 14 Button has click handler that goes to MessageManager. There is also a callback involved.
  41. 41. thread_ui.js Tuesday, April 15, 14 Button has click handler that goes to MessageManager. There is also a callback involved.
  42. 42. thread_ui.js Tuesday, April 15, 14 Button has click handler that goes to MessageManager. There is also a callback involved.
  43. 43. message_manager.js Tuesday, April 15, 14 MessageManager makes a call to Gecko (under navigator object). Returns a DOMRequest. Like a promise.
  44. 44. message_manager.js Gecko! Tuesday, April 15, 14 MessageManager makes a call to Gecko (under navigator object). Returns a DOMRequest. Like a promise.
  45. 45. message_manager.js Gecko! Tuesday, April 15, 14 MessageManager makes a call to Gecko (under navigator object). Returns a DOMRequest. Like a promise.
  46. 46. We need to go deeper! Tuesday, April 15, 14 So let’s go into Gecko.
  47. 47. Gecko • Browser engine • Same as Firefox for Desktop / Android / etc. • Runs directly on kernel (B2G) Tuesday, April 15, 14 Browser engine
  48. 48. nsIDOMMobileMessageManager.idl (yeah, that’s long) Tuesday, April 15, 14 Gecko has IDL files. These are shared by browser vendors so eveyrone implements the same API. Can be implemented in C++ or JSM (variant of JS)
  49. 49. nsIDOMMobileMessageManager.idl (yeah, that’s long) addEventListener Tuesday, April 15, 14 Gecko has IDL files. These are shared by browser vendors so eveyrone implements the same API. Can be implemented in C++ or JSM (variant of JS)
  50. 50. nsIDOMMobileMessageManager.idl (yeah, that’s long) Tuesday, April 15, 14 Gecko has IDL files. These are shared by browser vendors so eveyrone implements the same API. Can be implemented in C++ or JSM (variant of JS)
  51. 51. MobileMessageManager.cpp Could also be .jsm Tuesday, April 15, 14 Inheritance chain. This is written in CPP.
  52. 52. MobileMessageManager.cpp Could also be .jsm Tuesday, April 15, 14 Inheritance chain. This is written in CPP.
  53. 53. MobileMessageManager.cpp Tuesday, April 15, 14 JS values get boxed automatically. We create a new DOMRequest. See the gaia code.
  54. 54. MobileMessageManager.cpp Tuesday, April 15, 14 JS values get boxed automatically. We create a new DOMRequest. See the gaia code.
  55. 55. MobileMessageManager.cpp Tuesday, April 15, 14 JS values get boxed automatically. We create a new DOMRequest. See the gaia code.
  56. 56. MobileMessageManager.cpp Tuesday, April 15, 14 JS values get boxed automatically. We create a new DOMRequest. See the gaia code.
  57. 57. MobileMessageManager.cpp Tuesday, April 15, 14 Then in the same function we make a call to the SMS Service. This is platform specific. Android does different than FFOS.
  58. 58. MobileMessageManager.cpp Services are platform speci!c Tuesday, April 15, 14 Then in the same function we make a call to the SMS Service. This is platform specific. Android does different than FFOS.
  59. 59. moz.build Service injection at compile time Tuesday, April 15, 14 This is the service injection in moz.build. Happens at compile time. In android we need Android SMS database access. FFOS we don’t.
  60. 60. moz.build Service injection at compile time Tuesday, April 15, 14 This is the service injection in moz.build. Happens at compile time. In android we need Android SMS database access. FFOS we don’t.
  61. 61. Tuesday, April 15, 14 Time to go DEEPER
  62. 62. Gonk • Kernel • Hardware Abstraction • Think of the clipboard example • Android code calls back to Android • We can go straight to the RIL Tuesday, April 15, 14 Gonk is the kernel. If you have platform dependent code it’s not in Gecko but in Gonk. Target for Gecko.
  63. 63. SmsService.cpp Tuesday, April 15, 14 Get the radio interface layer. It’s the API to the chipset in the phone. And send SMS.
  64. 64. SmsService.cpp Tuesday, April 15, 14 Get the radio interface layer. It’s the API to the chipset in the phone. And send SMS.
  65. 65. SmsService.cpp Tuesday, April 15, 14 Get the radio interface layer. It’s the API to the chipset in the phone. And send SMS.
  66. 66. dom/system folder Tuesday, April 15, 14 There are a bunch of platforms, they implement the services. In this case the RIL service is implemented by Gonk.
  67. 67. nsIRadioInterfaceLayer.idl Tuesday, April 15, 14 Also has IDL definitions.
  68. 68. nsIRadioInterfaceLayer.idl Tuesday, April 15, 14 Also has IDL definitions.
  69. 69. nsIRadioInterfaceLayer.idl Tuesday, April 15, 14 Also has IDL definitions.
  70. 70. RadioInterfaceLayer.js Could also be .cpp Tuesday, April 15, 14 RIL code has been written in javascript in this case. It does stuff like normalizing phone numbers, because the chipset won’t do that for you
  71. 71. RadioInterfaceLayer.js Could also be .cpp Tuesday, April 15, 14 RIL code has been written in javascript in this case. It does stuff like normalizing phone numbers, because the chipset won’t do that for you
  72. 72. RadioInterfaceLayer.js Could also be .cpp Tuesday, April 15, 14 RIL code has been written in javascript in this case. It does stuff like normalizing phone numbers, because the chipset won’t do that for you
  73. 73. RadioInterfaceLayer.js Tuesday, April 15, 14 Now dispatch to a worker. JS single-threaded. Can’t wait for the response from hardware. Response codes are RIL data. Use these to feed back into the DOMRequest.
  74. 74. RadioInterfaceLayer.js Tuesday, April 15, 14 Now dispatch to a worker. JS single-threaded. Can’t wait for the response from hardware. Response codes are RIL data. Use these to feed back into the DOMRequest.
  75. 75. RadioInterfaceLayer.js Tuesday, April 15, 14 Now dispatch to a worker. JS single-threaded. Can’t wait for the response from hardware. Response codes are RIL data. Use these to feed back into the DOMRequest.
  76. 76. Tuesday, April 15, 14 rilMessageToken is used to get the callbacks.
  77. 77. Tuesday, April 15, 14 rilMessageToken is used to get the callbacks.
  78. 78. Tuesday, April 15, 14 Something in between to shake up the audience.
  79. 79. ril_worker.js Tuesday, April 15, 14 Now ril_worker talks to the actual hardware. Pretty simple stuff. Some options.
  80. 80. Mindig írni byte az én RIL! Tuesday, April 15, 14 I always write bytes to the RIL. RIL doesn’t understand JS or CPP. Only understands bytes.
  81. 81. ril_worker.js Tuesday, April 15, 14 So now depending on protocol we talk, we dump bytes. SEND_SMS is 25, then some options. Send the parcel and now it’s on the actual RIL.
  82. 82. ril_worker.js Tuesday, April 15, 14 So now depending on protocol we talk, we dump bytes. SEND_SMS is 25, then some options. Send the parcel and now it’s on the actual RIL.
  83. 83. ril_worker.js Tuesday, April 15, 14 So now depending on protocol we talk, we dump bytes. SEND_SMS is 25, then some options. Send the parcel and now it’s on the actual RIL.
  84. 84. ril_worker.js Tuesday, April 15, 14 So now depending on protocol we talk, we dump bytes. SEND_SMS is 25, then some options. Send the parcel and now it’s on the actual RIL.
  85. 85. Radio Interface Layer • Proprietary • Comes with chipset • Trade secret • Delivered to RIL? Done! • See how it looks like? https://github.com/mozilla-b2g/b2g/ Tuesday, April 15, 14 And that’s where our job is done. RIL is proprietary and comes with chipset. RIL calls back with the token, we bubble it up back to Gecko and eventually Gaia, and show user the feedback. This happens in under a second. There is ref implementtion from Mozilla if you want to look at it.
  86. 86. OMGAWESOME Play around? I have devices with me. Tuesday, April 15, 14 OMG AWESOME SHIT. All open source. I have some devices, including the 25$ phone with me.
  87. 87. Thank you! slideshare.net/janjongboom Tuesday, April 15, 14 Thanks!
  88. 88. slideshare.net/janjongboom Questions? Tuesday, April 15, 14 Thanks!
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×