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. Android(安卓)raw文件夹和assets文件夹
  2. TableLayout1
  3. Android录音时指针摆动的实现(附源码)
  4. Android(安卓)String.xml文件中转义字符
  5. tabhost (activitygroup)中子页面弹出对
  6. android拍照显示缩略图
  7. Android(安卓)项目打包jar,生产sdk供别人
  8. [多媒体]android MediaRecoder 实现录像
  9. Android中WebViewClient与WebChromClient
  10. 日语五十音 for Android