OSGi, MUSIC and Android - MUSIC Project — MUSIC Project
Upcoming SlideShare
Loading in...5

OSGi, MUSIC and Android - MUSIC Project — MUSIC Project






Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

OSGi, MUSIC and Android - MUSIC Project — MUSIC Project OSGi, MUSIC and Android - MUSIC Project — MUSIC Project Presentation Transcript

  • MUSIC, OSGi & Android Jorge Lorenzo (jorgelg@tid.es) Telefónica I+D
  • Table of contents
    • Situation
    • Android
    • OSGi & Android
    • MUSIC
    • MUSIC & Android
    • Conclusions
    • References
    • Poor support of mobile devices by MUSIC:
      • Only Windows Mobile
    • Android comes on the scene:
      • Rich features
      • Many applications
      • Open source
    • What about conquer Android?
  • Android What is Android? “ Android is a software stack for mobile devices that includes an operating system, middleware and key applications”
    • Open platform for mobile devices
      • Apache v2 and GPL v2
    • Supported by Google and Open Handset Alliance
    • Powered by the Linux kernel
    • Run Java applications
      • Over Dalvik VM
    Android Features
  • Android Open Handset Alliance
    • Mission statement:
      • Building a better phone for consumers
      • Promote openness in the mobile ecosystem
    Mobile operators Handset manufacturers Semiconductor companies Software companies Commercialization companies
  • Android Architecture
  • Android Application building blocks Activity UI screen (typically) Service Task that runs in the background IntentReceive Components for broadcast notifications/alarms ContentProvider Sharing of data across applications
  • OSGi & Android Comparison
  • OSGi & Android Which benefits does OSGi provide to Android?
    • Lack of class-sharing and versioning
    • Expensive inter-process communication
    • No device management
  • OSGi & Android Porting OSGi to Android
    • Basic process (no GUI):
      • Install Android SDK
      • Convert JAR bundles to DEX files
      • Prepare the OSGi framework structure
      • Create an Android Virtual Device
      • Push the OSGi framework structure
      • Open a shell
      • Launch OSGi
  • OSGi & Android OSGi frameworks under test OSGi core OSGi configuration admin OSGi declarative services Equinox v3.4.2 Felix v1.8.0 Knopflerfish v2.3.1 *
  • OSGi & Android Which benefits does MUSIC provide to Android?
    • Self-adaptive applications
    • Distributed context-awareness applications
    • SOA and SLA
    • Ubiquitous computing
    • Portability
    • Vision :
    MUSIC Overview Provide methods, tools and runtime support for developing, deploying and maintaining context-aware, self-adaptive applications aiming for mobile and pervasive computing environments
    • FP6 project
    • Open source : LGPLv2.1
  • MUSIC Adaptation process
  • MUSIC Architecture
  • MUSIC Application variability
  • MUSIC & Android Architecture (I) /data/osgi Android Virtual Device music.apk MusicActivity OSGiService framework.jar
  • MUSIC & Android Architecture (II) Music Activity Knopflerfish Service MUSIC GUI for Android Show progress screen Start OSGi service Read configuration Launch Knopflerfish Register OSGi service Start bundle Activate GUI manager Update screen
  • MUSIC & Android Features
    • Android service for OSGi life cycle:
      • Background
      • Started only once
    • No modification in the MUSIC mw:
      • Except GUI
    • MUSIC applications share the same Android activity
  • MUSIC & Android Demo (I)
  • MUSIC & Android Demo (II)
  • MUSIC & Android Problems
    • Write permissions required:
      • /data/osgi/fwdir
        • OSGi cache
        • Feasible
      • /data/dalvik-cache
        • Dalvik cache for DEX files
        • Unfeasible
        • To be solved with the classloading API of the Android SDK 1.5
    • Workaround: chmod 777
  • Conclusions
    • Successful porting to Android
      • Some fixes still required for deployment on real devices
      • Some tricks for valid dexification
    • Acceptable performance and stability
    • Mutual benefit
  • References
    • Google. What is Android?
    • Gábor Pécsy:
      • A comparison of OSGi and Android
      • OSGi on top of Android
    • Android SDK
    • Development with Android SDK
    • MUSIC:
      • Site
      • Wikipedia