Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Post on 14-Dec-2014

286 views 1 download

description

I developed a small linux operating system for openmoko GTA02 devices, the system is written using QT framework, i would like to speak about advantages and disadvantages of using this opensource framework to develop applications, or entire "operating systems"

Transcript of Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

A Web Operating System for GTA02

Rezart Muco freelancer

open source passionate

What is OpenMoko

Openmoko™ - Open. Mobile. Free.

Openmoko™ is a project dedicated to delivering mobile phones with an open source software stack. Openmoko was formerly

associated with Openmoko Inc, but is nowadays simply a gathering of people with the shared goal of "Free The Phone".

Distributors are currently selling updated versions of the Openmoko Inc's phone released in 2008.

The phone

Cpu - 400 mhz, ARMv4 !!!Ram - 128 MB SDRAM totalMemory - 256MB NAND Flash

WiFi 802.11 b/g transceiver, Accelerometer, A-GPS

Its a very old phone !!

The phone

Its seems that no decent distribution runs decently on this device.

So no Android. Linux runs well, but x11 was horrible!!!

I lost my

Hacking with the phone

Let's grab the sources and Crosscompile :-)

●Linux Kernel●FreeSmartphone.org●Qt Framework

Hacking with the phone

After 2 years hacking with the openmoko I came up with this

Hacking with the phone

Using HTML and Javascript to make the UI of the system

<html> <head>

<script> ….... </script>

</head></html>

Hacking with the phone

A quick view of the system browser

<html> <head>

<script> device.vibro(1000,70);

….... </script>

</head></html>

The system browser , its a very simple Webkit Browser, enriched with special javascript objects.Those objects are able to control the phone

GSM DEVICE

Call to Sysfs to make the phone vibrate

Hacking with the phone

Example application for scanning wifi networks

<ul id="list"> <li> Scanning for Wifi </li></ul><script>

function scanfornets(){var nets=device.shell_exec("iwlist eth0 scan | awk '/ESSID/ {print $1 $2 } ' ","");var p=nets.split('\n');for(var i=0;i<p.length;i++){ var v=p[i].split(":"); if(v[1]!=undefined){ icon('wifi_'+i,"Net : ",v[1],"list","systemjs/dstatus.html"); } }}

scanfornets();icon('back',"Back",'',"list","systemjs/dstatus.html"); </script>

Hacking with the phone

Advantages of using this approach

●There are no 'Native Applications'

●Can use the power of css and jquery, to make a beatifull UI for my phone

●IF you dont like, you can write yourself

your OS. That's a free phonefree phone

Show phone

Questions