AndroidDebugBridgeversion1.0.29-d-directscommandtotheonlyconnectedUSBdevicereturnsanerrorifmorethanoneUSBdeviceispresent.-e-directscommandtotheonlyrunningemulator.returnsanerrorifmorethanoneemulatorisrunning.-s<serialnumber>-directscommandtotheUSBdeviceoremulatorwiththegivenserialnumber.OverridesANDROID_SERIALenvironmentvariable.-p<productnameorpath>-simpleproductnamelike'sooner',orarelative/absolutepathtoaproductoutdirectorylike'out/target/product/sooner'.If-pisnotspecified,theANDROID_PRODUCT_OUTenvironmentvariableisused,whichmustbeanabsolutepath.devices-listallconnecteddevicesconnect<host>[:<port>]-connecttoadeviceviaTCP/IPPort5555isusedbydefaultifnoportnumberisspecified.disconnect[<host>[:<port>]]-disconnectfromaTCP/IPdevice.Port5555isusedbydefaultifnoportnumberisspecified.UsingthiscommandwithnoadditionalargumentswilldisconnectfromallconnectedTCP/IPdevices.devicecommands:adbpush<local><remote>-copyfile/dirtodeviceadbpull<remote>[<local>]-copyfile/dirfromdeviceadbsync[<directory>]-copyhost->deviceonlyifchanged(-lmeanslistbutdon'tcopy)(see'adbhelpall')adbshell-runremoteshellinteractivelyadbshell<command>-runremoteshellcommandadbemu<command>-runemulatorconsolecommandadblogcat[<filter-spec>]-Viewdevicelogadbforward<local><remote>-forwardsocketconnectionsforwardspecsareoneof:tcp:<port>localabstract:<unixdomainsocketname>localreserved:<unixdomainsocketname>localfilesystem:<unixdomainsocketname>dev:<characterdevicename>jdwp:<processpid>(remoteonly)adbjdwp-listPIDsofprocesseshostingaJDWPtransportadbinstall[-l][-r][-s]<file>-pushthispackagefiletothedeviceandinstallit('-l'meansforward-locktheapp)('-r'meansreinstalltheapp,keepingitsdata)('-s'meansinstallonSDcardinsteadofinternalstorage)adbuninstall[-k]<package>-removethisapppackagefromthedevice('-k'meanskeepthedataandcachedirectories)adbbugreport-returnallinformationfromthedevicethatshouldbeincludedinabugreport.adbbackup[-f<file>][-apk|-noapk][-shared|-noshared][-all][-system|-nosystem][<packages...>]-writeanarchiveofthedevice'sdatato<file>.Ifno-foptionissuppliedthenthedataiswrittento"backup.ab"inthecurrentdirectory.(-apk|-noapkenable/disablebackupofthe.apksthemselvesinthearchive;thedefaultisnoapk.)(-shared|-nosharedenable/disablebackupofthedevice'ssharedstorage/SDcardcontents;thedefaultisnoshared.)(-allmeanstobackupallinstalledapplications)(-system|-nosystemtoggleswhether-allautomaticallyincludessystemapplications;thedefaultistoincludesystemapps)(<packages...>isthelistofapplicationstobebackedup.Ifthe-allor-sharedflagsarepassed,thenthepackagelistisoptional.Applicationsexplicitlygivenonthecommandlinewillbeincludedevenif-nosystemwouldordinarilycausethemtobeomitted.)adbrestore<file>-restoredevicecontentsfromthe<file>backuparchiveadbhelp-showthishelpmessageadbversion-showversionnumscripting:adbwait-for-device-blockuntildeviceisonlineadbstart-server-ensurethatthereisaserverrunningadbkill-server-killtheserverifitisrunningadbget-state-prints:offline|bootloader|deviceadbget-serialno-prints:<serial-number>adbstatus-window-continuouslyprintdevicestatusforaspecifieddeviceadbremount-remountsthe/systempartitiononthedeviceread-writeadbreboot[bootloader|recovery]-rebootsthedevice,optionallyintothebootloaderorrecoveryprogramadbreboot-bootloader-rebootsthedeviceintothebootloaderadbroot-restartstheadbddaemonwithrootpermissionsadbusb-restartstheadbddaemonlisteningonUSBadbtcpip<port>-restartstheadbddaemonlisteningonTCPonthespecifiedportnetworking:adbppp<tty>[parameters]-RunPPPoverUSB.Note:youshouldnotautomaticallystartaPPPconnection.<tty>referstothettyforPPPstream.Eg.dev:/dev/omap_csmi_tty1[parameters]-Eg.defaultroutedebugdumplocalnottyusepeerdnsadbsyncnotes:adbsync[<directory>]<localdir>canbeinterpretedinseveralways:-If<directory>isnotspecified,both/systemand/datapartitionswillbeupdated.-Ifitis"system"or"data",onlythecorrespondingpartitionisupdated.environmentalvariables:ADB_TRACE-Printdebuginformation.Acommaseparatedlistofthefollowingvalues1orall,adb,sockets,packets,rwx,usb,sync,sysdeps,transport,jdwpANDROID_SERIAL-Theserialnumbertoconnectto.-stakespriorityoverthisifgiven.ANDROID_LOG_TAGS-Whenusedwiththelogcatoption,onlythesedebugtagsareprinted

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 【ListView】相关文章
  2. android: MapView加载多个 overlay 内存
  3. android中 dialog显示TimePickerDialog
  4. 8、RxJava+Retrofit+okhttp上传多张图片
  5. Android kill app Process 结束进程代码
  6. Android 删除 未接来电 通知
  7. Android播放音乐方法
  8. Android支持单词提示搜索框的网络请求策
  9. SlidingDrawer教程
  10. Android-Fresco系列6 图片解码