android系统架构详解

上传人:简****9 文档编号:107902868 上传时间:2019-10-21 格式:DOC 页数:4 大小:91.50KB
返回 下载 相关 举报
android系统架构详解_第1页
第1页 / 共4页
android系统架构详解_第2页
第2页 / 共4页
android系统架构详解_第3页
第3页 / 共4页
android系统架构详解_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《android系统架构详解》由会员分享,可在线阅读,更多相关《android系统架构详解(4页珍藏版)》请在金锄头文库上搜索。

1、Android系统架构详解Android系统架构由5部分组成,分别是:Linux Kernel、Android Runtime、Libraries、Application Framework、Applications。1、Linux KernelAndroid relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. The kernel also acts as an

2、 abstraction layer between the hardware and the rest of the software stack.Android基于Linux 2.6提供核心系统服务,例如:安全、内存管理、进程管理、网络堆栈、驱动模型。Linux Kernel也作为硬件和软件之间的抽象层,它隐藏具体硬件细节而为上层提供统一的服务。 如果你学过计算机网络知道OSI/RM,就会知道分层的好处就是使用下层提供的服务而为上层提供统一的服务,屏蔽本层及以下层的差异,当本层及以下层发生了变化不会影响到上层。也就是说各层各尽其职,各层提供固定的SAP(Service Access Poi

3、nt),专业点可以说是高内聚、低耦合。 如果你只是做应用开发,就不需要深入了解Linux Kernel层。2、Android RuntimeAndroid includes a set of core libraries that provides most of the functionality available in the core libraries of the Java programming language.Android包括一个核心库的集合,她们提供了Java编程语言的核心库中的绝大多数功能。Every Android application runs in its ow

4、n process, with its own instance of the Dalvik virtual machine. Dalvik has been written so that a device can run multiple VMs efficiently. The Dalvik VM executes files in the Dalvik Executable (.dex) format which is optimized for minimal memory footprint. The VM is register-based, and runs classes c

5、ompiled by a Java language compiler that have been transformed into the .dex format by the included dx tool.每一个Android应用都在她自己的进程中运行,该进程也属于某个Dalvik虚拟机的实例。Dalvik被设计成能让设备高效地运行多个虚拟机。Dalvik虚拟机执行的是.dex结尾的Dalvik可执行文件格式,该格式被优化为最小内存使用。虚拟机是基于寄存器的,并且运行那些Java编程语言所编译的类,这些类被内置的dx工具转换为.dex格式。The Dalvik VM relies o

6、n the Linux kernel for underlying functionality such as threading and low-level memory management.Dalvik虚拟机依赖Linux内核来提供底层的功能,比如线程和低级内存管理。Android包含一个核心库的集合,提供大部分在Java编程语言核心类库中可用的功能。每一个Android应用程序是Dalvik虚拟机中的实例,运行在他们自己的进程中。Dalvik虚拟机设计成,在一个设备可以高效地运行多个虚拟机。Dalvik虚拟机可执行文件格式是.dex,dex格式是专为Dalvik设计的一种压缩格式,适合

7、内存和处理器速度有限的系统。 大多数虚拟机包括JVM都是基于栈的,而Dalvik虚拟机则是基于寄存器的。两种架构各有优劣,一般而言,基于栈的机器需要更多指令,而基于寄存器的机器指令更大。dx 是一套工具,可以将 Java .class 转换成 .dex 格式。一个dex文件通常会有多个.class。由于dex有时必须进行最佳化,会使文件大小增加1-4倍,以ODEX结尾。 Dalvik虚拟机依赖于Linux 内核提供基本功能,如线程和底层内存管理。3、 LibrariesAndroid includes a set of C/C+ libraries used by various compon

8、ents of the Android system. These capabilities are exposed to developers through the Android application framework. Some of the core libraries are listed below:Android包括了一个c/c+库的集合,她们被Android系统的众多组件所使用。通过Android的应用框架,这些功能被开放给开发者。其中的一些核心库如下:System C library - a BSD-derived implementation of the stand

9、ard C system library (libc), tuned for embedded Linux-based devices系统C库一个继承自BSD的标准C系统实现(libc),被调整成面向基于linux的嵌入式设备。Media Libraries - based on PacketVideos OpenCORE; the libraries support playback and recording of many popular audio and video formats, as well as static image files, including MPEG4, H.

10、264, MP3, AAC, AMR, JPG, and PNG媒体库基于PacketVideos OpenCORE;该库支持许多流行音频/视频的录制与回放,当然还支持静态的图片文件,包括 MPEG4, H.264, MP3, AAC, AMR, JPG, and PNGSurface Manager - manages access to the display subsystem and seamlessly composites 2D and 3D graphic layers from multiple applications表面管理器管理显示子系统,并能无缝地组合多个应用的2D和3

11、D图像层。LibWebCore - a modern web browser engine which powers both the Android browser and an embeddable web viewLibWebCore一个流行的web浏览器引擎,她同时支持Android浏览器和嵌入式的web视图。SGL - the underlying 2D graphics engineSGL底层的2D图像引擎3D libraries - an implementation based on OpenGL ES 1.0 APIs; the libraries use either ha

12、rdware 3D acceleration (where available) or the included, highly optimized 3D software rasterizer3D libraries基于OpenGL ES 1.0 APIs的一个实现;该库或是使用硬件的3D加速,或是使用内置的高度优化的3D软件光栅。FreeType - bitmap and vector font renderingFreeType 位图和矢量字体渲染SQLite - a powerful and lightweight relational database engine availabl

13、e to all applicationsSQLite 一个强大而轻量的关系数据库引擎,对所有应用可用。4、 Application Framework 应用框架By providing an open development platform, Android offers developers the ability to build extremely rich and innovative applications. Developers are free to take advantage of the device hardware, access location informa

14、tion, run background services, set alarms, add notifications to the status bar, and much, much more.通过提供一个开放的开发平台,Android提供给开发者建立极其丰富和创新应用的能力。开发者自由地享有硬件设备的优势,访问本地信息,运行后台服务,设置警示,向状态栏添加通知,还有更多Developers have full access to the same framework APIs used by the core applications. The application architec

15、ture is designed to simplify the reuse of components; any application can publish its capabilities and any other application may then make use of those capabilities (subject to security constraints enforced by the framework). This same mechanism allows components to be replaced by the user.开发者能完全访问与

16、核心应用所用的同一个框架APIs。应用架构被设计得能够简化组件的重用;任何应用都可以发布其功能,而其他的应用也就可以使用这些功能(安全限制主题由框架增强)。同样的机制允许用户替换组件。Underlying all applications is a set of services and systems, including:在所有的应用之下,有一系列的服务与系统,包括:A rich and extensible set of Views that can be used to build an application, including lists, grids, text boxes, buttons, and eve

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 管理学资料

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号