FirefoxOS / Geeksphone Keon observations

Mozilla has been kind enough to send me a developer preview phone with their FirefoxOS installed. In return, I will "port" some of my HTML5 based Android apps to FirefoxOS.

But first, let's "hack" this device a bit.


FirefoxOS uses/supports Android's ADB (Android Debug Bridge). This means it can be used to get a shell on the phone.

ADB is part of the Android SDK, but you can also get it from a Geeksphone firmware download zipfile.

On linux, you will need to properly configure udev first, else you may/will run into 

error: insufficient permissions for device

when running "adb shell" and many other commands. Also, "adb devices" will list something line

List of devices attached 
????????????no permissions

Configuring udev is explained here. The vendorId id is 05c6, so your firefoxos.rules file will look like this:

SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666", GROUP="plugdev"

I'm not sure if the vendorId will change with different models, but you can easily find it by comparing "lsusb" with/withouth the device plugged in:

$ lsusb
Bus 002 Device 018: ID 05c6:8013 Qualcomm, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Reattach the phone, optionally run the commands

adb kill-server
adb start-server


Now you should be able to get a root shell on the phone:

$ ./adb shell
root@android:/ # id
uid=0(root) gid=0(root)




Next step is to have a look at the OS / software on the phone. Keep an eye on this blog for updates.


Last updated July 31, 2013, 1:38 p.m. | filed under Software | firefoxos mozilla firefox hack
comments powered by Disqus