Search This Blog

Showing posts with label Android Internals. Show all posts
Showing posts with label Android Internals. Show all posts

Monday, 11 June 2012

8 Internal Concepts of Android Operating System


8 Internal Concepts of Android Operating System

  1. ·         Android System uses Ext4 file system of Linux. Earlier versions uses YAFFS (Yet Another Flash File System) file System. The device vendors replace the file system.
  2. ·         Each Application runs in its own process space and use a separate Dalvik VM.
  3. ·         Each process can share its data by defining Content Provider.
  4. ·         The applications signed with same signature can be shared using the same android:sharedUserId
  5. ·         To protect the applications “Copy Protection” option allows the applications to install in data/app-private folder. This is not accessible directly to end user. The further protection can be implement using license services.
  6. ·         Android OS has no swap space
  7. ·         JNI interface which is a call gate for the C/C++ for JAVA is used to interface the native system
  8. ·         .class is processed by dx utility to generate the .dex file

Android Internals


Android is a based on Linux 2.6 kernel. Android internal provide the core idea of how the Android operating system works.

Android Startup Process: Android startup process is a sequence of executions start from boot loader.
In startup of the Android system the Linux kernel calls the process "init".  Then init process calls the “Zygote” process. Zygote loads the core java classes and after initialization of Zygote is done the process start listens to a socket and waits for requests.

A special driver called "Binder" allow an efficient inter-process communications (IPC)) in which allow references to objects are passed between processes. The real objects are stored in Shared Memory. This way the communication between the processes is optimized as less data must be transferred.
The bellow diagram illustrates the execution flow of the Android Startup Process.   

For Example a new app is started on android as follows
● onClick (Launcher)
● startActivity (Activity.java)
● <Binder>
● ActivityManagerService
● startViaZygote(Process.java)
● <Socket>
● Zygote