外文翻译安卓系统的基本描述Word格式.docx

上传人:b****6 文档编号:19746451 上传时间:2023-01-09 格式:DOCX 页数:15 大小:385.12KB
下载 相关 举报
外文翻译安卓系统的基本描述Word格式.docx_第1页
第1页 / 共15页
外文翻译安卓系统的基本描述Word格式.docx_第2页
第2页 / 共15页
外文翻译安卓系统的基本描述Word格式.docx_第3页
第3页 / 共15页
外文翻译安卓系统的基本描述Word格式.docx_第4页
第4页 / 共15页
外文翻译安卓系统的基本描述Word格式.docx_第5页
第5页 / 共15页
点击查看更多>>
下载资源
资源描述

外文翻译安卓系统的基本描述Word格式.docx

《外文翻译安卓系统的基本描述Word格式.docx》由会员分享,可在线阅读,更多相关《外文翻译安卓系统的基本描述Word格式.docx(15页珍藏版)》请在冰豆网上搜索。

外文翻译安卓系统的基本描述Word格式.docx

BytheOpenMobileAlliance(openHandsetAllianceledbyGoogle)developedtheandroidsystemisawidelyoptimisticaboutanopensourcephonesystem,thesystemprovidesabasicoperatingsystem,amiddlewareapplicationlayer,ajavadevelopmenttoolsandasystemApplicationcollector(collectionofsystemapplications).TheandroidtheSDKsince2007onthereleaseofthefirstandroidphoneinOctober2008beforethebirth.Googleopenedsincethenonhisowntime,Taiwan'

sHTC,themanufactureroftheT-MobileG1estimateG1shipmentshavemorethanonemillionattheendof2008.AccordingtoindustryinsidersexpecttheG1mobilephonesalesin2009continue.Manyothermobilephonesuppliersinthenearfutureplanstosupportthissystem.

Aroundanandroidandahugedevelopercommunityhasbeenestablished,whilealotofnewproductsandapplicationsontheandroid.Android'

smainsellingpointisthatitenablesdeveloperstoseamlesslyexpandonlineservicestomobilephones.ThisisthemostobviousexampleisGoogle'

stightlyintegratedwithGmail,CalendarandContactsWebapplicationsthroughthesystem.Usersonlyneedtoprovideanandroidusernameandpassword,thephoneautomaticallysyncwithGoogleservices.Theothervendorsarequicklyadapttheirexistinginstantmessaging,socialnetworkingandgamingservices.Androidandmanycompaniesfindnewwaystointegratetheirexistingbusinesstotheandroid.

Traditionaldesktopandserveroperatingsystemhasbeenworkingfortheintegrationofsecurityfeatures.Theseindividualsandbusinessapplicationsonasingleplatformisverygood,howeverabusinessphoneplatformlikeandroidisnotveryuseful.Itgivesthehopeofmanyresearchers.Androidisnotparkedinthebodyforotherplatformapplicationsupport:

theimplementationoftheapplicationdependsonatop-levelJAVAmiddleware,themiddlewarerunningontheembeddedLinuxkernel.Therefore,developersshoulddeploytheirapplicationstotheAndroidmustuseacustomuserinterfaceenvironment.

Inaddition,theandroidsystemapplicationslimittheapplicationtocalleachotherAPIcollaboration,andtheothertoauthenticatetheuserapplication.Althoughtheseapplicationshavecertainsafetyfeatures,someofourexperienceddeveloperstocreateAndroidapplicationswhorevealedthatthedesignofsecurityapplicationsisnotalwaysstraightforward.Androidusesasimplepermissionlabeldistributionmodetorestrictaccesstoresources,butthereasonsforthenecessityandconvenienceofotherapplications,thedesignershaveincreasedtheconfusiononthissystem.ThispaperattemptstoexplainthecomplexityoftheAndroidsecurity,andpayattentiontosomeofthepossibledevelopmentdefectsandapplicationsecurity.Wetrytodrawsomelessonslearned,andhopethatthesafetyofthefuture.

Androidapplicationframeworkfordevelopersisamandatoryframework.Itdoesnothaveamain()functionfunctionorasingleentrypointfortheimplementationofthecontrary,thedevelopermustinthedesignofapplicationcomponents.WedevelopedapplicationstohelptheAPIoftheandroidsdk

TheAndroidsystemdefinesfourkindsofcomponenttype.

Activitycomponentthatdefinestheapplicationuserinterface.Usually,theapplicationdeveloperdefineseachactivityscreen.Activitycanstart,itmaypassandreturnvalues.CanbehandledatatimeonlyakeyboardsystemActivity,allotherActivitywillbesuspendedatthistime.

Servicecomponentsperformbackgroundprocessing.Theneedforsomeoperationswhenanactivity,afterthedisappearanceoftheuserinterface(suchasdownloadingafileorplayingmusic),itusuallytakesuchactionspeciallydesignedservices.Developerscanalsouseaspecialdaemonatsystemstartup,theserviceisusuallydefinedaremoteprocedurecall(RPC),andothersystemcomponentscanbeusedtosendtheinterfacecommandandretrievedata,aswellastoregisteracallbackfunction.

ContentProvidercomponentstorageandsharedatawithrelationaldatabaseinterfaces.EachContentsupplierhasanassociated"

rights"

todescribeitscontentscontains.OthercomponentswhenusedasahandletoexecuteSQLqueries(egSELECT,INSERT,orDELETEcontent.Contentsuppliersaretypicallystoredthevalues​​onthedatabaserecords,dataretrievalisaspecialcase,thefileisalsosharedbythecontentproviderinterface.

Thecomponentsofthebroadcastreceiverastosendamessagefromthemailboxtotheapplication.Typically,thebroadcastmessage,theapplicationcodeimplicitdestination.Therefore,theradioreceiversubscribetothesedestinationsreceivemessagessenttoit.Theapplicationcodecanalsobesolvedexplicitlybroadcastreceivers,includingthenamespaceallocation.

ThemainmechanismoftheinteractionofthecomponentsoftheComponentInteraction,isanintent,whichisasimplemessageobject,whichcontainsadestinationaddressanddatacomponents.TheAndroidAPIdefineshisapproachintointent,andusethatinformationtoinitiateanactivitysuchasstartanactivity(startActivity(Anintent))startservices(thestartService(Anintent))andradio(sendBroadcast(Anintent)).Androidframeworktoinformthecallstothesemethodsbegantoperforminthetargetapplicationcode.Thisprocess,theinternalcomponentsofcommunicationiscalledanaction.Simplyput,theIntentobjectdefinedinthe"

Intenttoimplementthe"

action"

.OneofthemostpowerfulfeaturesoftheAndroidisallowedavarietyofintentaddressingmechanism.Thedevelopercansolvethespaceofatargetcomponentusingitsapplications,theycanalsospecifyanimplicitname.Inthelattercase,thesystemdeterminesthebestcomponentsofanactionbyconsideringtheinstalledapplicationsanduserchoice.

Implicitnameiscalledtheactionstringbecauseofhisspecialtypeoftherequestedaction.Suchasaviewactionstring,inanintentdatafieldpointstoanimagefile,thesystemwilldirectlyreferringtothepreferredimageviewer.

Developerscanalsousetheactionstringalargenumberofradiotosendandreceive.Receiveratthereceivingend,thedevelopersuseanintentfiltertocustomizethespecialactionstring.AndroidDepartment,includingtheadditionalgoaloftheresolutionrules,butanoptionalstringtypeofdatamanipulationisthemostcommon.

AndroidapplicationsarewrittenintheJavaprogramminglanguage.ThecompiledJavacode—alongwithanydataandresourcefilesrequiredbytheapplication—isbundledbytheapttoolintoanAndroidpackage,anarchivefilemarkedbyan.apksuffix.Thisfileisthevehiclefordistributingtheapplicationandinstallingitonmobiledevices;

it'

sthefileusersdownloadtotheirdevices.Allthecodeinasingle.apkfileisconsideredtobeoneapplication.

Inmanyways,eachAndroidapplicationlivesinitsownworld:

(1)Bydefault,everyapplicationrunsinitsownLinuxprocess.Androidstartstheprocesswhenanyoftheapplication'

scodeneedstobeexecuted,andshutsdowntheprocesswhenit'

snolongerneededandsystemresourcesarerequiredbyotherapplications.

(2)Eachprocesshasitsownvirtualmachine(VM),soapplicationcoderunsinisolationfromthecodeofallotherapplications.

(3)Bydefault,eachapplicationisassignedauniqueLinuxuserID.Permissionsaresetsothattheapplication'

sfilesarevisibleonlytothatuserandonlytotheapplicationitself—altoughtherearewaystoexportthemtootherapplicationsaswell.

It'

spossibletoarrangefortwoapplicationstosharethesameuserID,inwhilecasetheywillbeabletoseeeachother'

sfiles.Toconservesystemresources,applicationswiththesameIDcanalsoarrangetoruninthesameLinuxprocess,sharingthesameVM.

ApplicationComponents

AcentralfeatureofAndroidisthatoneapplicationcanmakeuseofelementsofotherapplication(providedthoseapplicationpermitit).Forexample,ifyourapplicationneedstodisplayascrollinglistofimagesandanotherapplicationhasdevelopedasuitablescrollerandmadeitavailabletoothers,youcancalluponthatscrollertodothework,ratherthandevelopyourown.Yourapplicationdoesn'

tincorporatethecodeoftheotherapplicationorlinktoit.Rather,itsimplystartsupthatpieceoftheotherapplicationwhentheneedarises.

Forthistowork,thesystemmustbeabletostartanapplicationprocesswhenanypartofitisneeded,andinstantiatetheJavaobjectsforthatpart.Therefore,unlikeapplicationsonmostothersystems,Androidapplicationsdon'

thaveasingleentrypointforeverythingintheapplication(nomain()function,forexample).Rather,theyhaveessentialcomponentsthatthesystemcaninstantiateandrunasneeded.Therearefourtypesofcomponents:

Activities

Anactivitypresentsavisualuserinterfaceforonefocusedendeavortheusercanundertake.Forexample,anactivitymightpresentalistofmenuitemsuserscanchoosefromoritmightdisplayphotographsalongwiththeircaptions.Atextmessagingapplicationmighthaveoneactivitythatshowsalistofcontactstosendmessagesto,asecondactivitytowritethemessagetothechosencontact,andotheractivitiestoreviewold

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 总结汇报

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1