Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.

Leveraging Android's Linux Heritage at AnDevCon3

2.
These slides are made available to you under a Creative Commons Delivered and/or customized byShare-Alike 3.0 license. The full terms of this license are here:https://creativecommons.org/licenses/by-sa/3.0/Attribution requirements and misc., PLEASE READ:● This slide must remain as-is in this specific location (slide #2), everything else you are free to change; including the logo :-)● Use of figures in other documents must feature the below “Originals at” URL immediately under that figure and the below copyright notice where appropriate.● You are free to fill in the “Delivered and/or customized by” space on the right as you see fit.● You are FORBIDEN from using the default “About” slide as-is or any of its contents.(C) Copyright 2010-2012, Opersys inc.These slides created by: Karim YaghmourOriginals at: www.opersys.com/community/docs 2

6.
1. Goal● Opening as many cans of worms as possible● Can “Linux” and Android Coexist and Interact? 6

7.
2. Rationale● A ton of mature user-space packages available ● Linux has been around for 20 years ● Linuxs user-space has been developed in the open● A ton of “Linux”-centric stacks have been developed through the years ● “Porting” to Android not always possible/desirable/realistic● Android doesnt provide everything ● Touch-based, consumer-oriented ● Linux is very strong on backend/server side● Android exhibits symptoms of “my way or the highway” design 7

24.
8. Unresolved / Uncharted● Binder from glibc● Intent <-> DBUS bridge● Running Android apps in X● Running X apps in Android “The easier thing to do, which would work on just about all Android phones without having to modify the system software at all, would be to port an X server to the NDK, using a SurfaceFlinger Surface as its root window. You could do a generic "X11WrapperApp" that has you XSurfaceFlinger bundled and launches whatever X based app you want, and have it all play nice together. A bit more work would be to just do an implementation of xlib that sits on top of a native Android window (opengl ES 2 if you like) without any server in the middle, and again bundle this and the X based app of your choice and you have something that is a first class app on the phone without any need for modifying the OS.” 24

38.
13. Main system applications● Unix systems rely on a common set of commands● Standard distros have one binary per command● May compile each relevant command one-by-one or use packages that provide many commands in a single binary: 1.Busybox 2.Distro 38