Your SlideShare is downloading. ×
OSGi, MUSIC and Android - MUSIC Project — MUSIC Project
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

OSGi, MUSIC and Android - MUSIC Project — MUSIC Project

1,928
views

Published on


0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,928
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
48
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. MUSIC, OSGi & Android Jorge Lorenzo (jorgelg@tid.es) Telefónica I+D
  • 2. Table of contents
    • Situation
    • Android
    • OSGi & Android
    • MUSIC
    • MUSIC & Android
    • Conclusions
    • References
  • 3.
    • 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?
    Situation
  • 4. Android What is Android? “ Android is a software stack for mobile devices that includes an operating system, middleware and key applications”
  • 5.
    • 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
  • 6. 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
  • 7. Android Architecture
  • 8. 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
  • 9. OSGi & Android Comparison
  • 10. OSGi & Android Which benefits does OSGi provide to Android?
    • Lack of class-sharing and versioning
    • Expensive inter-process communication
    • No device management
  • 11. 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
  • 12. 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 *
  • 13. OSGi & Android Which benefits does MUSIC provide to Android?
    • Self-adaptive applications
    • Distributed context-awareness applications
    • SOA and SLA
    • Ubiquitous computing
    • Portability
  • 14.
    • 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
  • 15. MUSIC Adaptation process
  • 16. MUSIC Architecture
  • 17. MUSIC Application variability
  • 18. MUSIC & Android Architecture (I) /data/osgi Android Virtual Device music.apk MusicActivity OSGiService framework.jar
  • 19. 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
  • 20. 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
  • 21. MUSIC & Android Demo (I)
  • 22. MUSIC & Android Demo (II)
  • 23. 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
  • 24. 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
  • 25. 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
  • 26.  

×