• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Mobile Spaces
 

Mobile Spaces

on

  • 2,213 views

 

Statistics

Views

Total Views
2,213
Views on SlideShare
2,213
Embed Views
0

Actions

Likes
2
Downloads
42
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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.

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

    Mobile Spaces Mobile Spaces Presentation Transcript

    • A Sneak Peek IntoAndroid Internals GDG Dec-2012 By Yoav WeissMobileSpaces Founder & CTO
    • What were going to talk about● Virtualizing Android● Understanding Android internals through dynamic tracing
    • What is MobileSpaces● Solving BYOD through a unique virtualization platform● Any app, any device, no root(!)● Funded by Accel Partners
    • Short demo of
    • Android Security Model in a nutshell● The Android security model is based on linux kernel separation● Apps and services run in usermode● Each app is assigned a unique uid and a home directory● Android takes advantage of linux gids● Android permissions are enforced by uid rather than package
    • Application Initialization Process Step 1 - ActivityManager asks the System Server to start Activity/Service/Receiver/Provider * ActivityManager is actually a service running in the system_server process
    • Application Initialization Process Step 2 - System Server checks which package provides that functionality
    • Application Initialization Process Step 3 - System Server tells Zygote to load the package
    • Application Initialization Process Step 4 - Zygote forks and creates the new application process
    • Application Initialization Process Step 5 - The application is set up: ● Check permissions ● Set gid ● Set uid ● Load the package
    • Application Initialization Process Step 6 - The application starts listening for instructions from ActivityManager (Activity lifecycle messages)
    • Virtualizing AndroidSince Android apps and services run inusermode, they must interact with the world viasyscalls.
    • Binder Flow ExampleStep 1 - Camera app asks MediaServer to access the camera
    • Binder Flow ExampleStep 2 - MediaServer asks system_server if camera app is allow to access the camera
    • Binder Flow ExampleStep 3 - system_server grants the permission
    • Binder Flow ExampleStep 4 - MediaServer opens the camera driver and configures it
    • Binder Flow ExampleStep 5 - MediaServer returns the file descriptor to the camera app whichcan now use the camera
    • Live Demos Using the platform
    • Summary● We virtualized Android. No root required● We used the VM to peek into the systemMobileSpaces is hiring!Visit us at: http://www.mobilespaces.somContact us: jobs@mobilespaces.com
    • Q&A