




免费预览已结束,剩余8页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
安卓系统的基本描述外文文献翻译 外文文献(原文)The basic of description of android system The mainstream of the next generation of open operating systems will not be on the desktop, but will appear in the phone that we carry every day. Open environment will lead these new applications may be integrated into these online services that already exist, of course, as with growing data services on mobile phones support the security flaws on the phone is also becoming increasingly clear. The nature of the next-generation operating system, whether to provide a complete integrated security platformBy 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 systemAround 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. This is the most obvious example is Googles tightly integrated with Gmail, 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 androidTraditional 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 environmentIn addition, the android system applications limit the application to call each other API collaboration, and the other to authenticate the user application. 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 futureAndroid 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 sdkThe Android system defines four kinds of component typeActivity 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 timeService 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 startup, 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 functionContentProvider 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 eg SELECT, INSERT, or DELETE content. Content suppliers are typically stored the valueson the database records, data retrieval is a special case, the file is also shared by the content provider interfaceThe 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 allocationThe 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 startService 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. The developer can solve the space of a target component using its applications, they can also specify an implicit name. In the latter case, the system determines the best components of an action by considering the installed applications and user choiceImplicit name is called the action string because of his special type of the requested action. Such as a view action string, in an intent data field points to an image file, the system will directly referring to the preferred image viewerDevelopers can also use the action string a large number of radio to send and receive. Receiver at the receiving end, the developers use an intent filter to customize the special action string. Android Department, including the additional goal of the resolution rules, but an optional string type of data manipulation is the most common. Android applications are written in the Java programming language.The compiled Java code ? along with any data and resource files required by the application ? is bundled by the apt tool into an Android package,an archive file marked by an .apk suffix.This file is the vehicle for distributing the application and installing it on mobile devices;its the file users download to their devices.All the code in a single.apk file is considered to be one application. In many ways,each Android application lives in its own world: By default,every application runs in its own Linux process.Android starts the process when any of the applications code needs to be executed,and shuts down the process when its no longer needed and system resources are required by other applications. Each process has its own virtual machineVM,so application code runs in isolation from the code of all other applications. By default,each application is assigned a unique Linux user ID.Permissions are set so that the applications files are visible only to that user and only to the application itself ? altough there are ways to export them to other applications as wellIts possible to arrange for two applications to share the same user ID,in while case they will be able to see each others files.To conserve system resources,applications with the same ID can also arrange to run in the same Linux process,sharing the same VM.Application ComponentsA central feature of Android is that one application can make use of elements of other application provided those application permit it.For example,if your application needs to display a scrolling list of images and another application has developed a suitable scroller and made it available to others,you can call upon that scroller to do the work,rather than develop your own.Your application doesnt incorporate the code of the other application or link to it.Rather,it simply starts up that piece of the other application when the need arisesFor this to work,the system must be able to start an application process when any part of it is needed,and instantiate the Java objects for that part.Therefore,unlike applications on most other systems,Android applications dont have a single entry point for everything in the applicationno mainfunction,for example.Rather,they have essential components that the system can instantiate and run as needed.There are four types of components:ActivitiesAn activity presents a visual user interface for one focused endeavor the user can undertake.For example,an activity might present a list of menu items users can choose from or it might display photographs along with their captions.A text messaging application might have one activity that shows a list of contacts to send messages to,a second activity to write the message to the chosen contact,and other activities to review old messages or change or change settings.Tough they work together to form a cohesive user interface,each activity is independent of the others.Each one is implemented as a subclass of the Activity base classAn application might consist of just one activity or,like the text messaging application just mentioned,it may contain several.What the activities are,and how many there are depends,of course,on the application and its design.Typically,one of the activities is marked as the first one that should be presented to the user when the application is launched.Moving from one activity to another is accomplished by having the current activity start the next one Each activity is given a default window to draw in.Typically,the window fills the screen,but it might be smaller than the screen and float on top of other windows.An activity can also make use of additional windows ? for example,a pop-up dialog that calls for a user response in the midst of the activity,or a window that presents users with vital information when they select a particular item on-screenThe visual content of the window is provided by a hierarchy of views ? objects derived from the base View class.Each view controls a particular rectangular space within the window.Parent views contain and organize the layout of their children.Leaf viewsthose at the bottom of the hierarchydraw in the rectangles they control and respond to user actions directed at that space.Thus,views are where the activitys interaction with the user takes placeFor example,a view might display a small image and initiate an action when the user taps that image.Android has a number of ready-made views that you can use ? including buttons,text fields,scroll bars,menu items,check boxes,and moreA view hierarchy is placed within an activitys window by the /0. content view is the View object at the root of the hierarchy.See the separate User Interface document for more information on views and the hierarchy.ServicesA service doesnt have a visual user interface,but rather runs in the background for an indefinite period of time.For example,a service might play background music as the user attends to other matters,or it might fetch data over the network or calculate something and provide the result to activities that need it.Each service extends the Service base classA prime example is a media player songs from a play list.The player application would probably have one or more activities that allow the user to choose songs and start playing them.However,the music playback itself would bot be handled by an activity because users will expect the music to keep the music going,the media player activity could start a service to run in the background.The system would then keep the music playback service running even after the activity that started it leaves the screenIts possible to connect to bind toan ongoing serviceand start the service if its not already running.While connected,you can communicate with the service through an interface that the service exposes.For the music service,this interface might allow users to pause,rewind,stop,and restart the playbackLike activities and the other components,services run in the main thread of the application process.So that they wont block other components or the user interface,they often spawn another thread for time-consuming taskslike music playback.See Processes and Thread,later.Broadcast receiversA broadcast receiver is a component that does nothing but receive and react to broadcast announcements.Many broadcasts originate in system code ? for example,announcements that the timezone has changed,that the battery is low,that a picture has been taken,or that the user changed a language preference.Applications can also initiate broadcasts ? for example,to let other applications know that some data has been downloaded to the device and is available for them to useAn application can have any number of broadcast receivers to respond to respond to respond to any announcements it considers important.All receivers extend the BroadcastReceiver base classBroadcast receivers do not display a user interface.However,they may start an activity in response to the information they receive,or they may use the NotificationManager to alert the user.Notifications can get the users attention in various ways ? flashing the backlight,vibrating the device,playing a sound,and so on,They typically place a persistent icon in the status bar,which users can open to get the message.Content providersA content provider makes a specific set of the applications data available to other applications.The data can be stored in the file system,in an SQLite database,or in any other manner that makes sense.The content provider extends the ContentProvider base class to implement a standard set of methods that enable other applications to retrieve and store data of the type it controls.However,applications do not call these methods directly.Rather they use a ContentResolver object and call its methods instead.A ContentResolver can talk to any content provider;it cooperates with the provider to manage any interprocess communication thats involvedSee the separate Content Providers document for more information on using content providersWhenever theres a request that should be handled by a particular component,Android makes sure that the application process of the component is running,starting it if necessary,and that an appropriate instance of the component is available,creating the instance if necessary.Activating components:intentsContent providers are activated when theyre targeted by a request from a ContentResolver.The other three components ? activities,services,and broadcast receivers ? are activated by asynchronous messages called intents.An intent is an Intent object that holds the content of the message.For activities and services,it names the action being requested and specifies the URI of the data to act on,among other things.For example,it might convey a request for an activity to present an image t the user or let the user edit some text.For broadcast receivers,the Intent object names the action being announced.For example,it might announce to interested parties that the camera button has been pressed
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 老年护理学选择题库及答案解析
- 水电维修科普知识培训总结课件
- 浙江水利安全员b证题库大全及答案解析
- 校园安全知识答题题库及答案解析
- 集团宣传片拍摄制作合同
- 实验安全防护题库及答案解析
- 2025年新版报考银行的试题及答案
- 2025年专升本微观经济学习题含参考答案解析
- 2025年国家开放大学(电大)《绩效管理》期末考试备考试题及答案解析
- 2025年国家开放大学《社区发展与管理》期末考试备考试题及答案解析
- 初中音标考试题及答案大全人教版
- 贵州贵州磷化有限责任公司招聘笔试真题2024
- 新能源汽车火灾事故成因分析及灭火救援措施
- 2024北京陈经纶中学高二10月月考语文试题及答案
- 中兴信息安全管理制度
- 冷链仓储物业管理费及增值服务合同
- 轮胎店转让协议书
- 2025-2030中国氢燃料电池行业市场发展分析及发展趋势与投资前景研究报告
- 2024年江西省进贤县事业单位公开招聘警务岗笔试题带答案
- 传承人经纪合同10篇
- 微电子器件(4-13)SPICE 中的 MOFET 模型
评论
0/150
提交评论