手机系统安卓系统中英文对照外文翻译文献Word文件下载.docx
- 文档编号:8362773
- 上传时间:2023-05-11
- 格式:DOCX
- 页数:7
- 大小:23.91KB
手机系统安卓系统中英文对照外文翻译文献Word文件下载.docx
《手机系统安卓系统中英文对照外文翻译文献Word文件下载.docx》由会员分享,可在线阅读,更多相关《手机系统安卓系统中英文对照外文翻译文献Word文件下载.docx(7页珍藏版)》请在冰点文库上搜索。
不久的将来其他许多手机供应商要计划支持这个系统。
一个围绕android庞大的开发者社区已经建立,同时很多新的产品和应用已经可以在android上使用。
一个Android的主要卖点是它使开发人员无缝把在线服务扩展到手机。
这方面最明显的例子是谷歌的紧密集成Gmail,日历和联系人Web应用程序通过该系统。
用户只需提供一个android用户名和密码,其手机自动同步与谷歌的服务。
其他厂商正在迅速适应自己的现有的即时通讯,社交网络和游戏服务。
Android和许多企业寻找新途径来整合他们的自己已有的业务到android上。
传统的台式机和服务器的操作系统一直在努力进行安全功能的集成。
这些个人和商业应用在单一平台的很出色,然而这一块业务一个手机平台上像android上不是很有用。
它给了许多研究人员希望。
Android没有停在为其他平台体用应用支持:
应用的执行依赖于顶层JAVA中间件,这个中间件运行在嵌入式Linux内核之上。
所以开发人员要把他们的应用部署到Android必须使用其自定义的用户界面环境。
此外,android系统应用限制各应用相互调用API协作,并且对方为自己的用户应用进行身份验证。
尽管这些应用有一定的安全特性,我们一些有经验的开发人员开发android应用人士透露,设计安全应用程序并不总是直线前进的。
Android使用一个简单的
许可标签分配模式限制访问的资源,但其他应用程序的原因必要性和便利,其
设计师们增加了困惑对这个系统。
本文试图对Android的安全的复杂性进行讲解,并注意一些可能的发展缺陷以及应用程序的安全。
我们通过尝试得出一些经验教训,希望对未来的安全有用。
AndroidApplication
Android应用程序框架对开发者来说是一个强制架构。
它没有一个main()函数功能或单一入口点执行,相反,开发人员
必须在设计方面的应用组件。
我们开发的应用对android的sdk的帮助的API
ExampleApplication。
我们开发了一个描述如何创建android的应用。
有兴趣的读者可以去我们的站点下载让我们考虑一个基于位置的社交网络应用,其中手机用户可以通过本应用发现他们的朋友们位置。
我们进行功能拆分,
分成两个应用程序:
一个用于跟踪查看朋友和常看他们。
如图1所示,
FriendTracker应用包括跟踪的组件specifc朋友的位置(例如,通过一个Web服务),储存地理坐标,并分享这些合作统筹与其他应用程序。
然后用户使用友情查看器应用程序来检索地理坐标和储存在地图上查看朋友。
这两个应用程序包含的多个组件包括展示自己任务,他们组件是由他们组件类型所决定的。
。
一个Android开发者选择从根据不同的组件类型组件的目的决定(如与一个用户或存储数据接口)。
图1。
例如Android应用程序。
FriendTracker和FriendViewer应用由多个不同类型的组件,每个提供一个不同的组功能。
Activity提供一个用户界面,Service执行后台处理,Content提供存储,Broadcastreceiver接收机其他应用程序的信息。
ComponentTypes
android系通定义了4种组件类型。
Activity
组件定义应用程序的用户界面。
通常,应用程序开发者定义每一个活动“画面。
”Activity可以自己开始,也可能通过传递和返回值。
在一时间只有一个键盘的系统Activity可以进行处理,在这个时候所有其他的Activity都会被暂停。
Service
组件执行后台处理。
当一个活动需要进行一些操作,在用户界面消失以后(如下载一个文件或播放音乐),它通常采取此种动作特殊设计的服务。
开发人员还可以在系统启动使用特殊的守护进程,Service通常定义一个远程过程调用(RPC),其他系统组件可以用来传送接口命令和检索数据,以及注册一个回调函数。
Content
组件存储和共享数据用关系数据库接口。
每个Content供应者都有一个关联的“权限”来形容它的内容包含。
其他组件使用时作为一个handle执行SQL查询(如
的SELECT,INSERT或DELETE内容。
虽然Content供应者通常存储把数值放在数据库记录中,数据检索是实现特殊的例子,文件也同时通过内容提供商共享接口。
Broadcastreceiver
该组件作为为从邮件信箱发送信息给他应用程序。
通常,广播消息的应用程序代码隐含的目的地。
因此,广播接收器订阅这些目的地接收发送给它的消息。
应用程序代码也可以解决明确广播接收机包括命名空间分配。
图1显示了FriendTracker和FriendViewer应用所包含的不同的组件类型。
开发者组件使用一个主要定义文件(也用于定义权限,稍后介绍)。
上有一个应用程序的组件的数量没有限制定义每种类型,但作为习惯,一组件应具有相同的名称该应用程序。
通常情况下,这是作为在FriendVieweractivity中进行注册。
这一动作通常指示主activity作为该系统应用程序启动器用于启动用户界面;
然而,如果需要启动特定的activity,开发者需要者在选择配置manifest信息来实现这一个功能。
在在FriendTracker应用,例如,FriendTrackerControl活动被标记为主用户界面的启动点。
在这种情况下,我们保留名称“FriendTracker”为服务执行的核心组成部分的应用程序逻辑。
在FriendTracker应用包含四种类型的组件。
在FriendTracker服务搜寻调查外部服务并发现好友的位置。
在我们的示例代码中,位置是我们随机生成的,但直接通过网络连接组件接口的服务。
该FriendProviderContent提供保持最新的朋友地理坐标,
FriendTrackerControl活动用于启动和用户界面停止跟踪好友功能,该系统一旦启动BootReceiver通知从广播系统启动。
该FriendViewer应用主要是显示有关好友的位置的信息。
每个启动的FriendViewer将会列出了所有的朋友和他们的地理坐标,FriendMap显示他们在地图上的位置。
FriendReceiver将会等待接收附近的手机发送的消息这个消息来一个所指定的朋友。
尽管我们可以在这些组件内放置在FriendTracker应用,但是我们仍然创建了一个单独的应用程序来展示跨应用的沟通。
此外,通过
分离程序功能和接口,我们可以创建不同的显示和功能,可选用户界面
是,许多应用程序可以重用这些来自FriendTracker的功能。
ComponentInteraction
该组件交互的主要机制是一个intent,这是一个简单的消息对象,其中包含一个目的地组件的地址和数据。
Android的API定义了他的方法中传入intent,并使用该信息来启动一个activity例如开始一个activity(startActivity(intent)),启动服务(startService(intent))和广播信息(sendBroadcast(intent))。
Android框架来通知这些方法的调用开始执行在目标应用程序代码。
这个过程中
内部组件通信称为一个动作。
简单地说,Intent对象定义的“Intent”以执行“action”。
Android的一个最强大的特点是允许的多种intent寻址机制。
开发人员可以解决一个目标组件使用其应用的空间,他们也可以指定一个隐含的名称。
在后一种情况下,系统决定了一个action的最佳组件,通过考虑安装的应用程序和用户的选择。
这个隐含的名字被称为动作字符串因为他特殊的类型的请求动作。
例如一个view动作字符串,在一个intent中和数据域指向一个图像文件,系统将会直接指首选图像浏览器、
开发者也能使用动作字符串进行大量广播发送和接收。
在接收端的接收者,开发者使用一intent过滤器来定制特殊的动作字符串。
Android系包括附加目标的决议规则,但可选的数据操作字符串类型是最常见的。
图2显示了组件之间的FriendTracker和FriendViewer应用程序和组件的交互作用在应用程序中定义为基础的Android发布的一部分。
在每一种情况下,发起一个组件与其他的沟通。
为了简单起见,我们称这个为件间通信(ICC)。
在许多方面,ICC是类似于进程间通信(IPC)在基于Unix的系统中。
对于开发人员,ICC的功能相同无论目标是在相同或不同的应用与界定将在下文的安全规则中说明。
可用的ICC的动作取决于目标的组成部分。
每个组件类型支持自己的类型
例如,当FriendViewer开始FriendMap的FriendMap活动出现在屏幕上。
服务组件支持启动,停止,并结合行动,所以FriendTrackerControl活动,
例如,可以启动和停止FriendTracker服务在后台运行。
Action的绑定组件之间建立连接,使启动执行的服务定义的RPC。
在我们的例子,FriendTracker结合到系统中的服务器位置的管理。
Understandandroidsecurity
thenextgenerationofopenoperatingsystemswon’tbeondesktopsormainframesbutonthesmallmobiledeviceswecarryeveryday.Theopennessofthesenewenvironmentswillleadtonewapplicationsandmarketsandwillenablegreaterintegrationwithexistingonlineservices.
However,astheimportanceofthedataandservicesourcellphonessupportincreases,sotoodotheopportunitiesforvulnerability.It’sessentialthatthisnextgenerationofplatformsprovideacomprehensiveandusablesecurityinfrastructure.DevelopedbytheOpenHandsetAlliance(visiblyledbyGoogle),Androidisawidelyanticipatedopensourceoperatingsystemformobiledevicesthatprovidesabaseoperatingsystem,anapplicationmiddlewarelayer,aJavasoftwaredevelopmentkit(SDK),andacollectionofsystemapplications.AlthoughtheAndroidSDKhasbeenavailablesincelate2007,thefrstpubliclyavailableAndroid-ready“G1”phonedebutedinlateOctober2008.Sincethen,Android’s
growthhasbeenphenomenal:
TMobile’sG1manufacturerHTCestimatesshipmentvolumesofmorethan1millionphonesbytheendof2008,andindustryinsidersexpectpublicadoptiontoincreasesteeplyin2009.Manyothercellphoneprovidershaveeitherpromisedorplantosupportitinthenearfuture.
AlargecommunityofdevelopershasorganizedaroundAndroid,andmanynewproductsandapplicationsarenowavailableforit.OneofAndroid’schiefsellingpointsisthatitletsdevelopersseamlessly.
extendonlineservicestophones.Themostvisibleexampleofthisfeatureis—unsurprisingly—thetightintegrationofGoogle’sGmail,Calendar,andContactsWebapplicationswithsystemutilities.Androiduserssimplysupplyausernameandpassword,andtheirphonesautomaticallysynchronizewithGoogleservices.Othervendorsarerapidlyadaptingtheirexistinginstantmessaging,socialnetworks,andgamingservicestoAndroid,andmanyenterprisesarelookingforwaystointegratetheirowninternaloperations(suchasinventorymanagement,purchasing,receiving,andsoforth)intoitaswell.Traditionaldesktopandserveroperatingsystemshavestruggledtosecurelyintegratesuchpersonalandbusinessapplicationsandservicesonasingleplatform;
althoughdoingsoonamobileplatformsuchasAndroidremainsnontrivial,manyresearchershopeitprovidesacleanslatedevoidofthecomplicationsthatlegacysoftwarecancause.Androiddoesn’tofciallysupportapplicationselopedforotherplatforms:
applicationsexecuteontopofaJavamiddlewarelayerrunningonanembeddedLinuxkernel,sodeveloperswishingtoporttheirapplicationtoAndroidmustuseitscustomuserinterfaceenvironment.Additionally,AndroidrestrictsapplicationinteractiontoitsspecialAPIsbyrunningeachapplicationasitsownuseridentity.Althoughthiscontrolledinteractionhasseveralbenefcialsecurityfeatures,ourexperiencesdevelopingAndroidapplicationshaverevealedthatdesigningsecureforward.Androidusesasimplepermissionlabelassignmentmodeltorestrictaccesstoresourcesandotherapplications,butforreasonsofnecessityandconvenience,itsdesignershaveaddedseveralpotentiallyconfusingrefnementsasthesystemhasevolved.ThisarticleattemptstounmaskthecomplexityofAndroidsecurityandnotesomepossibledevelopmentpitfallsthatoccurwhendefninganapplication’ssecurity.Weconcludebyattemptingtodrawsomelessonsandidentifyopportunitiesforfutureenhancementsthatshouldaidinclarityandcorrectness.AndroidApplicationsTheAndroidapplicationframeworkforcesastructureondevelopers.Itdoesn’thaveamain()functionorsingleentrypointforexecution—instead,developersmustdesignapplicationsintermsofcomponents.ExampleApplication.
WedevelopedapairofapplicationstohelpdescribehowAndroidapplicationsoperate.Interestedreaderscandownloadthesourcecodefromourwebsitepttp:
//siis.cse.psu.edu/android_sec_tutorial.html).
Let’sconsideralocation-sensitivesocialnetworkingapplicationformobilephonesinwhichuserscandiscovertheirfriends’locations.Wesplitthefunctionalityintotwoapplications:
onefortrackingfriendsandoneforviewingthem.AsFigure1shows,theFriendTrackerapplicationconsistsofcomponentsspecifctotrackingfriendlocations(forexample,viaaWebservice),storinggeographiccoordinates,andsharingthosecoordinateswithotherapplications.TheuserthenusestheFriendViewerapplicationtoretrievethestoredgeographiccoordinatesandviewfriendsonamap.Bothapplicationscontainmultiplecomponentsforperformingtheirrespectivetasks;
thecomponentsthemselvesareclassifedbytheircomponenttypes.AnAndroiddeveloperchoosesfrompredefnedcomponenttypesdependingonthecomponent’spurpose(suchasinterfacingwithauserorstoringdata).ComponentTypesAndroiddefnesfourcomponenttypes:
Activity•componentsdefneanapplication’suserinterface.Typically,anapplicationdeveloperdefnesoneactivityper“screen.”Activitiesstarteachother,possiblypassingandreturningvalues.Onlyoneactivityonthesystemhaskeyboardandocessingfocusatatime;
allothersaresuspended.Servicecomponentsperformbackgroundprocessing.Whenanactivityneedstoperformsomeoperationthatmustcontinueaftertheuserinterfacedisappears(suchasdownloadafleorplaymusic),itcommonlystartsaservicespecifcallydesignedforthataction.Thedevelopercanalsouseservicesasapplication-specifcdaemons,possiblystartingonboot.Servicesoftend
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 手机 系统 中英文 对照 外文 翻译 文献
![提示](https://static.bingdoc.com/images/bang_tan.gif)