How to develop and debug the SHR phone stack on your desktop

| 1 Comment | No TrackBacks
Why do we want to do that?
One annoying thing while developing applications for SHR is the time consuming cycle of: hacking - building with OE - installing on the device - testing. The UI itself could be developed natively on the desktop too, but as lots of stuff depends on the actual hardware (eg. phone calls) that does not cover the whole story.

What can we do about that?
Now, we have a solution :-) The other day an interesting application was added to OpenEmbedded (thanks mickeyl): dbus-daemon-proxy. So, what is that? If you start dbus-daemon-proxy on your phone it will proxy all dbus methods and signals from your phone over the network to you desktop. This means you can have the hardware dependent stuff like fsogsmd running on the phone and stuff like phoneuid running on your desktop and it will just work.

So, what do you need to do that?
1) you need a current EFL stack with elementary. Current means you have to build it yourself from Enlightenment SVN. I personally use the script from raster (find it here: But there are others out there too. NOTE: does not install elementary itself. You have to do that manually after finished installing all the other stuff.

2) you have to install dbus-daemon-proxy on your phone. It is already in the SHR-unstable feed, so if you run SHR-unstable (which is somehow important if you want to develop the SHR phone stack ;), then just opkg install dbus-proxy-daemon.

3) install the SHR phone stack (and all of its dependencies) on your desktop. To make life easy for you I created a script which does that ( It will install all needed stuff to your home directory. If you don't already have LD_LIBRARY_PATH set to contain $HOME/lib you have to add it.

4) stop phoneuid on your phone. Easiest way is to just execute 'killall phoneuid'.

5) start dbus-daemon proxy on your phone. Note: you need one instance for every program connecting to it. I'm using one for phoneuid, one for communication with phoneuid (eg. to start messages app) and one for some debugging tool like d-feet or mdbus2. Create something like the following script to start it on three different ports:

dbus-daemon-proxy --system --port 8080 &
dbus-daemon-proxy --system --port 8081 &
dbus-daemon-proxy --system --port 8082 &
make it executable and start it.

6) start phoneuid on your desktop with the following call:

DBUS_SYSTEM_BUS_ADDRESS=tcp:host=,port=8080 phoneuid
7) start the messages app with the following call:

DBUS_SYSTEM_BUS_ADDRESS=tcp:host=,port=8081 phoneui-messages
8) have fun watching your messages pop up on your desktop :-)

Apart from saving a lot of time by not cross-compiling and installing... one big winner is to be able to use some nice gdb GUI to debug the thing.

No TrackBacks

TrackBack URL:

1 Comment

Later supra shoes this thomas sabo year, north face outlet Netflix north face outlet will gucci handbags introduce gucci,borse gucci,gucci sito ufficiale,gucci outlet a longchamp outlet new lululemon outlet way kate spade to wedding dresses stream michael kors outlet videos, bottega veneta and air max,nike air max I chaussure louboutin was lacoste lucky uggs outlet enough sac hermes to hermes belt get cheap jordans a sac longchamp pas cher private tiffany and co jewelry demo wedding dresses at hollister,abercrombie,hollister sito ufficiale,abercrombie italia,abercrombie and fitch,abercrombie outlet this ugg,uggs,uggs canada year's moncler,moncler Consumer louis vuitton Electronics coach outlet Show polo outlet in nike trainers uk Las nike outlet Vegas.

Netflix ralph lauren,polo ralph lauren,ralph lauren outlet,ralph lauren italia,ralph lauren sito ufficiale is oakley,occhiali oakley,oakley italia calling hollister this insanity workout new, coach outlet higher-quality true religion outlet streaming coach outlet store online "HDR," mac cosmetics which replica watches stands asics running shoes for nike air force high canada goose outlet dynamic nike roshe run uk range, lululemon canada a moncler outlet term reebok outlet that louboutin,louboutin outlet,louboutin outlet italia is hogan most juicy couture outlet common lancel in air max photography.

The ray ban sunglasses demo prada outlet I ferragamo shoes saw jordan pas cher was barbour uk at louis vuitton LG's giuseppe zanotti outlet booth louis vuitton at polo ralph lauren the canada goose jackets CES christian louboutin conference louis vuitton in valentino shoes Las oakley pas cher Vegas, tiffany and co where hollister an converse outlet LG timberland boots display juicy couture outlet executive canada goose was michael kors pas cher showing beats by dre off nike free what oakley sunglasses HDR mont blanc pens streaming sac vanessa bruno looked louis vuitton outlet like canada goose outlet on canada goose uk an swarovski crystal ultra-high-resolution louis vuitton 4K ralph lauren uk TV, moncler uk using vans outlet the abercrombie and fitch new christian louboutin uk Netflix herve leger show canada goose "Marco new balance shoes Polo." nike air max ( new balance Unfortunately, nike air max uk they ugg wouldn't oakley sunglasses let pandora uk us nike huarache,nike huaraches,nike air huarache shoot vans pas cher video ray ban pas cher or pandora charms photos, coach outlet so mulberry uk we're longchamp pas cher using soccer jerseys regular canada goose outlet screenshots nike air max from links of london the kate spade outlet show.)

HDR ugg pas cher basically true religion outlet ensures louis vuitton outlet you're chi flat iron seeing louis vuitton outlet extremely vans,vans scarpe,vans italia accurate babyliss colors michael kors outlet online that ghd hair have christian louboutin outlet a chanel handbags higher louis vuitton range. karen millen uk So michael kors outlet instead longchamp outlet of true religion outlet a ugg uk ray christian louboutin shoes of north face uk sunlight tory burch outlet appearing polo ralph lauren outlet online washed uggs outlet out prada handbags and nfl jerseys white, michael kors outlet online you're moncler outlet able burberry outlet to burberry handbags notice coach purses the hollister orange nike free uk and michael kors yellow replica watches hues timberland pas cher instead. jimmy choo outlet The nike roshe run picture converse,scarpe converse,converse italia,converse sito ufficiale,converse all star below michael kors outlet would p90x workout appear instyler a nike tn lot hollister pas cher more longchamp uk colorful, burberry pas cher for moncler instance:

michael kors outlet online ray ban sunglasses ugg,ugg australia,ugg italia ray ban uk north face nike air max iphone 6 cases pandora jewelry moncler,moncler outlet,moncler sito ufficiale celine handbags guess pas cher michael kors outlet store ray ban,rayban,occhiali ray ban swarovski abercrombie and fitch uk longchamp outlet true religion jeans hollister uk montre pas cher toms shoes doudoune moncler nike blazer pas cher nike roshe mcm handbags converse pas cher nike air max,air max,air max 2014,nike air max 2014,air max 90,airmax,air max 95,air max 2013,nike air max 90,nike air max 2013 louis vuitton baseball bats nike free run oakley sunglasses wholesale nike air max uk soccer shoes

Leave a comment


About this Entry

This page contains a single entry by Klaus 'mrmoku' Kurzmann published on May 1, 2010 12:40 PM.

SHR Project gets a successful presentation at Openmobility conference was the previous entry in this blog.

SHR-T upgrade and no sound? is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.