毕业设计
外文文献原文
The basic of description of android system
By the Open Mobile Alliance (open Handset Alliance led by Google) developed the android system is a widely optimistic about an open source phone system, the system provides a basic operating system, a middle ware application layer, a java development tools and a system Application collector (collection of system applications).
The android the SDK since 2007 on the release of the first android phone in October 2008 before the birth. Google opened since then on his own time, Taiwans HTC, the manufacturer of the T-Mobile G1 estimate G1 shipments have more than one million at the end of 2008. According to industry insiders expect the G1 mobile phone sales in 2009 continue. Many other mobile phone suppliers in the near future plans to support this system.
Around an android and a huge developer community has been established, while a lot of new products and applications on the android. Androids main selling point is that it enables developers to seamlessly expand online services to mobile phones. Calendar and Contacts Web applications through the system. Users only need to provide an android user name and password, the phone automatically sync with Google services. The other vendors are quickly adapt their existing instant messaging, social networking and gaming services. Android and many companies find new ways to integrate their existing business to the android.
Traditional desktop and server operating system has been working for the integration of security features. These individuals and business applications on a single platform is very good, however a business phone platform like android is not very useful. It gives the hope of many researchers. Android is not parked in the body for other platform application support: the implementation of the application depends on a top-level JAVA middle ware, the middle ware running on the embedded Linux kernel. Therefore, developers should deploy their applications to the Android must use a custom user interface environment.
In addition, the android system applications limit the application to call each other API.
Although these applications have certain safety features, some of our experienced developers to create Android applications who revealed that the design of security applications is not always straight forward. Android uses a simple permission label distribution mode to restrict access to resources, but the reasons for the necessity and convenience of other applications, the designers have increased the confusion on this system. This paper attempts to explain the complexity of the Android security, and pay attention to some of the possible development defects and application security. We try to draw some lessons learned, and hope that the safety of the future.
Android application framework for developers is a mandatory framework. It does not have a main () function function or a single entry point for the implementation of the contrary, the developer must in the design of application components. We developed applications to help the API of the android SDK .The Android system defines four kinds of component type.
Activity component that defines the application user interface. Usually, the application developer defines each activity screen. Activity can start, it may pass and return values. Can be handled at a time only a keyboard system Activity, all other Activity will be suspended at this time.
Service components perform background processing. The need for some operations when an activity, after the disappearance of the user interface (such as downloading a file or playing music), it usually take such action specially designed services. Developers can also use a special daemon at system start up, the service is usually defined a remote procedure call (RPC), and other system components can be used to send the interface command and retrieve data, as well as to register a callback function.
Content Provider component storage and share data with relational database interfaces. Each Content supplier has an associated 'rights' to describe its contents contains. Other components when used as a handle to execute SQL queries (for example SELECT, INSERT, or DELETE content. Content suppliers are typically stored the values on the database records, data retrieval is a special case, the file is also shared by the content provider interface.
The components of the broadcast receiver as to send a message from the mailbox to the application. Typically, the broadcast message, the application code implicit destination.
Therefore, the radio receiver subscribe to these destinations receive messages sent to it. The application code can also be solved explicitly broadcast receivers, including the name space allocation.
The main mechanism of the interaction of the components of the Component Interaction, is an intent, which is a simple message object, which contains a destination address and data components. The Android API defines his approach into intent, and use that information to initiate an activity, such as start an activity (startActivity (An intent)) start services (the start Service (An intent)) and radio (sendBroadcast (An intent)). Android framework to inform the calls to these methods began to perform in the target application code. This process, the internal components of communication is called an action. Simply put, the Intent object defined in the 'Intent to implement the' action '. One of the most powerful features of the Android is allowed a variety of intent addressing mechanism. T
剩余内容已隐藏,支付完成后下载完整资料
毕业设计
外文文献译文
姓 名: 颜文青
学 号: 20121308115
学 院: 计算机与软件学院
专 业: 计算机科学与技术
指导教师: 薛胜军
Android系统的基本概述
由开放手机联盟(Open Handset Alliance LED通过谷歌)开发的安卓系统是一个开源的手机系统被广泛看好,该系统提供了一个基本的操作系统,中间件的应用层,一个Java开发工具和应用系统集热器(系统应用收集)。
Android SDK自2007诞生前2008十月第一款Android手机的发布。谷歌打开之后,在他自己的时间,台湾的HTC的T-Mobile G1,G1的制造商出货量估计有超过一百万在2008年底。据业内人士预计,G1手机销售2009继续增加。其他许多手机供应商在不久的将来也支持这个系统。
在Android和庞大的开发者社区已经建立,而在Android的很多新的产品和应用。Android的主要卖点是,它使开发人员能够无缝地扩展在线服务的手机。用户只需要提供一个Android用户名称和密码,手机自动同步与谷歌服务。其他厂商正在迅速适应现有的即时通讯,社交网络和游戏服务。Android和许多公司找到新的方法来整合现有的业务到Android。传统的台式机和服务器的操作系统一直是安全功能的集成工作。
这些个人和商业应用在一个平台上是非常好的,但是一个商务手机平台Android不是很有用。它给了许多研究者的希望。Android不停在身体其他平台的应用支持:应用程序的实现取决于顶层的Java中间件,中间件在嵌入式Linux内核运行。因此,开发商应部署他们的应用程序到Android必须使用自定义的用户界面环境。
此外,Android系统的应用限制互相调用API的应用。
虽然这些应用有一定的安全功能,我们的一些有经验的开发人员创建Android应用程序的人士透露,安全应用程序的设计并不总是直线前进。Android使用一个简单的许可标签分配模式限制访问的资源,但原因和其他应用程序方便的必要性,设计师们对这个体系的混乱增加。本文试图解释Android安全的复杂性,并注意一些可能的发展缺陷和应用安全。我们试图得出一些经验教训,希望未来的安全。
开发Android应用程序框架是一个强制性的框架。它没有一个主要()函数或一个单一入口点相反的实现,开发人员必须在应用程序组件的设计。我们为了帮助Android SDK的Android系统定义了四种组件类型的API的应用。
Activity 组件定义应用程序的用户界面。通常,应用程序开发者定义每一个活动“画面。”Activity可以自己开始,也可能通过传递和返回值。在一时间只有一个键盘的系统Activity可以进行处理,在这个时候所有其他的Activity都会被暂停.
Service组件执行后台处理。当一个活动需要进行一些操作,在用户界面消失以后(如下载一个文件或播放音乐),它通常采取此种动作特殊设计的服务。开发人员还可以在系统启动使用特殊的守护进程,Service通常定义一个远程过程调用(RPC),其他系统组件可以用来传送接口命令和检索数据,以及注册一个回调函数。
Content Provider组件存储和共享数据 用关系数据库接口。每个Content供应者都有一个关联的“权限”来形容它的内容包含。其他组件使用时作为一个handle执行SQL查询(如SELECT,INSERT或DELETE内容。虽然Content供应者通常存储把数值放在数据库记录中,数据检索是实现特殊的例子,文件也同时通过内容提供商共享接口。
Broadcast receiver该组件作为为从邮件信箱发送信息给他应用程序。通常,广播消息的应用程序代码隐含的目的地。因此,广播接收器订阅这些目的地接收发送给它的消息。应用程序代码也可以解决明确广播接收机包括命名空间分配.
Component Interaction该组件交互的主要机制是一个intent ,这是一个简单的消息对象,其中包含一个目的地组件的地址和数据。 Android的API定义了他的方法中传入intent ,并使用该信息来启动一个Activity例如开始一个Activity(start Activity(intent)),启动服务(start Service(intent))和广播信息(send Broadcast(intent))。Android框架来通知这些方法的调用开始执行在目标应用程序代码。这个过程中内部组件通信称为一个动作。简单地说, Intent对象定义的“Intent”以执行“action”。Android的一个最强大的特点是允许的多种intent寻址机制。开发人员可以解决一个目标组件使用其应用的空间,他们也可以指定一个隐含的名称。在后一种情况下,系统决定了一个action的最佳组件,通过考虑安装的应用程序和用户的选择 。 这个隐含的名字被称为动作字符串因为他特殊的类型的请求动作。例如一个view动作字符串,在一个intent中和数据域指向一个图像文件,系统将会直接指首选图像浏览器。
Android应用程序使用Java编程语言开发。apt工具吧编译后的Java代码连同应用程序所需的其他数据和资源文件一起打包到一个Android包文件中,这个文件使用.APK作为扩展名。此文件是分发并安装应用程序到移动设备的载体;是用户下载到他们的设备的文件。单一.APK文件中的所有代码被认为是一个应用程序。
从多个角度来看,每个Android应用程序都存在于它自己的世界之中:
(1)默认情况下,每个应用程序均运行于它自己的Linux进程中。当应用程序中的任何代码需要被执行时,Android启动此进程,而当不再需要此进程并且其它应用程序又请求系统资源时,则关闭这个进程。
(2)每个进程都有其独有的虚拟机(VM),所以应用程序代码与其它应用程序代码是隔离运行的。
(3)默认情况下,每个应用程序均被赋予一个唯一的Linux用户ID,并加以权限设置,使得应用程序的文件仅对此用户及此应用程序可见—尽管也有其它的方法使得这些文件同样能为其他应用程序访问。
应用程序组件
Android的一个核心特性就是一个应用程序可以使用其它应用程序的元素(如果那个应用程序允许的话)。例如,如果你的应用程序需要显示一个图片卷动列表,而另一个应用程序已经开发了一个合用的而又允许别的应用程序使用的话,你可以直接调用那个卷动列表来完成工作,而不用自己再开发一个。你的应用程序并没有吸纳或链接其它应用程序的代码。它只是在有需求的时候启动了其它应用程序的那个功能部分。 为达到这个目的,系统必须能够在一个应用程序的任何一部分被需要时启动一个此应用程序的进程,并将那个部分的Java对象实例化。因此,不像其它大多数系统上的应用程序,Android应用程序并没有为应用程序提供一个单独的入口点(比如说,没有main()函数),而是为系统提供了可以实例化和运行所需要的必备组件。一共四种组件类型:
Activity
Activity是为用户操作而展示的可视化用户界面。例如,一个Activity可以展示一个菜单项列表供用户选择,接着显示一些包含说明文字的照片。一个短消息应用程序可以包括一个用于显示要发送消息到的联系人列表的Activity,一个给选定的联系人写短信的Activity以及翻阅以前的短信或改变设置的其他Activity。尽管它们一起组成了一个内聚的用户界面,但其中每个Activity都不与其它的保持独立。每一个都实现为以Activity类为基类的子类。
一个应用程序可以只有一个Activity,或者,如刚才提到的短信应用程序那样,包含很多个。每个Activity的作用,以及有多少个Activity,当然是取决于应用程序及其设计的。一般情况下,总有一个应用程序被标记为用户在应用程序启动的时候第一个看到的。从一个Activity转向另一个Activity靠的是用当前的Activity启动下一个。
每个Activity都被给予一个默认的窗口以进行绘制。一般情况下,这个窗口是满屏的,但它也可以是一个小的位于其它窗口之上的浮动窗口。一个Activity也可以使用附加窗口—例如,一个在Activity运行过程中弹出的供用户响应的对话框,或是一个当用户选择了屏幕上特定项目后显示的必要信息的窗口。 窗口显示的可视内容是由一系列层次化View构成的,这些View均继承自View基类。每个View均控制着窗口中一块特定的矩形区域中进行绘制,并对用户直达其区域的操作做出响应。因此,View是Activity与用户进行交互的界面。例如,View可以显示一个小图片,并在用户指定它的时候产生动作。Android有一些预置的View供开发者使用—包括按钮、文本域、滚动条、菜单项、复选框等等。
Service
Service没有可视化的用户界面,而是在一段时间内在后台运行,例如,一个Service可以在用户做其它事情的时候在后台播放背景音乐、从网络上获取数据或者计算一些东西并提供给需要这个运算结果的Activity使用。每个Service都继承自Service基类。
一个媒体播放器播放列表中的曲目是一个不错的例子。播放器应用程序可能有一个或多个Activity来给用户选择歌曲并进行播放。然而,音乐播放这个任务本身应该由任何Activity来处理,因为用户期望即使在他们离开播放器应用程序而开始做别的事情时,音乐仍在继续播放。为达到这个目的,媒体播放器Activity可以启动一个运行于后台的Service。系统将在这个Activity不再显示于屏幕后,仍维持音乐播放Service的运行。 连接至(绑定到)一个正在运行的Service(如果Service没有运行,则启动之)是可能的。连接之后,你可以通过那个Service暴露出来的接口不Service进行通讯。对于音乐Service来说,这个接口可以允许用户暂停、回退、停止以及重新开始播放。
如同Activity和其它组件一样,Service运行于应用程序进程的主线程内。所以它不会对其他组件或用户界面有任何妨碍,它们一般会派生一个新线程来执行一些时间消耗型任务(比如音乐回放)。参见稍后的进程和线程.
Broadcast receiver
Broadcast receiver是一个与注于接收广播通知信息,并做出相应处理的组件。许多广播是由系统代码产生的—例如,通知时区改变、电池电量低、拍摄了一张照片或者用户改变了语言选项。应用程序也可以发起广播—例如,通知其它应用程序一些数据已经下载到设备上处于可用状态。
一个应用程序可以拥有任意数量的Broadcast receiver,以对所有它认为重要的通知信息予以响应。所有的receiver均继承自Broadcast Receiver基类。
Broadcast receiver没有用户界面。然而,它们可以启动一个Activity来响应它们收到的信息,或者也可以使用Notification Manager来通知用户。通知可以用多种方式来吸引用户的注意力—闪动背光灯、震动设备、播放声音等等。通知一般是在状态栏上放一个持续的图标,用户可以打开它并获取消息。
内容提供商,使应用程序特定的数据集的数据提供给其他应用程序,可以存储在一个数据库中的文件系统,或任何其他的方式,使得义。内容提供商内容提供商扩展基类的方法实施这套标准,使检索和其他的应用它控制的存储数据的类型。然而,这些方法不能直接应用的呼叫,而他们使用的内容。解决方法,而不是它的对象和内容的电话谈话,可以解决任何内容提供商;它与任何cooperates提供商来管理进程间通信这是参与。
参阅独立的Content Providers文档以获得更多关于使用content provider的信息。
每当出现一个需要被特定组件处理的请求时,Android会确保那个组件的应用程序进程处于运行状态,必要时会启动它,并确保那个组件的一个合适的实例可用,必要时会创建那个实例。
剩余内容已隐藏,支付完成后下载完整资料
资料编号:[29454],资料为PDF文档或Word文档,PDF文档可免费转换为Word
您可能感兴趣的文章
- 饮用水微生物群:一个全面的时空研究,以监测巴黎供水系统的水质外文翻译资料
- 步进电机控制和摩擦模型对复杂机械系统精确定位的影响外文翻译资料
- 具有温湿度控制的开式阴极PEM燃料电池性能的提升外文翻译资料
- 警报定时系统对驾驶员行为的影响:调查驾驶员信任的差异以及根据警报定时对警报的响应外文翻译资料
- 门禁系统的零知识认证解决方案外文翻译资料
- 车辆废气及室外环境中悬浮微粒中有机磷的含量—-个案研究外文翻译资料
- ZigBee协议对城市风力涡轮机的无线监控: 支持应用软件和传感器模块外文翻译资料
- ZigBee系统在医疗保健中提供位置信息和传感器数据传输的方案外文翻译资料
- 基于PLC的模糊控制器在污水处理系统中的应用外文翻译资料
- 光伏并联最大功率点跟踪系统独立应用程序外文翻译资料
