ADB Commands List: Complete with Detailed User Guide | iHax

文章推薦指數: 80 %
投票人數:10人

ADB Commands List Directory · adb · adb devices · adb connect ip_address_of_device · adb help · adb version · adb reboot · adb reboot bootloader · adb ... Skiptocontent Android ADBCommandsList:CompletewithDetailedUserGuide MaazPerwez February17,2022 Ifyouareapro-Androiduserandusestheirphoneforcustomizations,rootingorunlockingbootloaders,thenyoumustbeawareofthetermADBandfastboot.Basically,ADBandfastbootisacommand-linetoolthroughwhichyoucanmodifyalotofthingsonyourAndroidphones.Forinstance,youcangiveorrevokereadandwritepermissionforapackage,youcanuseADBcommandstounlockthebootloaderofyoursmartphoneandmanymore.ThereareothermanyADBcommandsthroughwhichyouwillactuallybeabletoexplorethefullpotentialofAndroidOSandyoursmartphones. MostoftheuserswhouseADBknowinglyorunknowinglyonlyusesalimitedsetofcommandsanddoesnotusethefullpotentialoftheADBtool.ADBstandsforAndroiddebugbridgeanditconsistsof3components. Client-ItisthelaptoporyourPCtowhichtheAndroiddeviceortheemulatorisconnectedto.Daemon–ItisaservicethatrunsonanAndroiddeviceandyourcomputeraswell,itisusedtofacilitatecommandexecutionandacceptancebetweenthedevices.Itisalsoknownas‘adb‘.Server–ServeristheinterfacetohandlethecommunicationbetweenClientandDaemon. DonotethatbeforeusingADBandfastboottools,makesurethatyouhavethelatestversionofthedriverforyourAndroiddeviceandthelatestversionofSDKPlatform-toolsareinstalledonyourcomputer. InThisArticle show 1. ADBCommandsListDirectory 2. Conclusion ADBCommandsListDirectory MakesurebeforeyoutrytheseADBcommandsonyourAndroiddevice,youhaveallowedtheUSBdebuggingoptionforDevelopersoptionsfromsettings.Also,youhavegivenauthorizationaccesstoyourcomputerfromyourphone.ToenableUSBdebuggingyouneedtogotothedeveloper’soptionsfromsettingswhichcanbeenabledbytapping7timesonthebuildnumber.TogiveauthorizationaccesstoyourcomputeryouneedtoplugyourphoneafterenablingUSBdebuggingandopenADBcommand-line.Write‘adbdevicesyoumustseeapop-uponyourphoneaskingforpermissionclickonallowandthat’sit.Also,makesureyoudoalltheseexperimentsonabackupphoneandnotonadailydriver,asonewrongcodeorcommandcancauseyourphonetobrickormalfunction. 1.DownloadandInstallADBandFastbootonWindows2.InstallADBandFastbootonLinux|Guide3.MinimalADBandFastboot|Download4.SetupSystem-WideADBandFastbootonWindows NowyouaregoodtogoandcantestADBcommands.BelowwehavesomeADBcommandsthroughwhichyoucanrebootyourphone,sideloadAPKS,flashflashablezips,pushorpullfiles,uninstallapps,debloatyourphoneandmanymoresuchoperations. SEEALSO SetupSystem-WideADBandFastbootonWindowsadb ThisisaverybasiccommandandwritingwillshowyoutheADBversionsandallthepossiblecommandsassociatedwithADB. adbdevices ThisisoneoftheveryfirstcommandswhichweallusewhileusingADBtools.BywritingadbdeviceswecancheckthelistofdevicesconnectedtothecomputerandcancommunicatetoADBcommands.Wecanusethiscommandtocheckifthedeviceisconnectedproperlyandallthenecessarydevicesareinstalled.Youcanalsowrite‘adbdevices-1′togetthelistofdevicesbymodelorproductnumber. adbconnectip_address_of_device ThiscommandisusedtofindouttheIPaddressoftheAndroiddevicethatisconnectedtoyourPC. adbhelp Asthenamesaysitall,thiscommandcanbeusedtodisplaytheusermanualofADBcommands,itcanshowsomeofthecommandsaswell. adbversion UsetheadbversioncommandtochecktheversionofADBdriverinstalledonyourcomputer,comesinhandywhenyouwanttoconfirmifyouhavethelatestversioninstalledornot. adbreboot Oneoftheverycommoncommandsofadbtoolistheadbrebootitisusedwhenyouwanttorebootyourdevice.Withthehelpofthiscommand,youcanevenrebootyourdeviceintofastboot,bootloaderorevenrecovery.Thiscommandcomesinhandywhenthedevice’shardwarekeysarenotfunctioningproperly,orifyoureallydon’twanttotouchyourdevice. adbrebootbootloader usethiscommandtodirectlyrebootyourdeviceintobootloader,makesureyourdeviceisconnectedtoyourPC.Justtypeadbrebootbootloaderandyourdevicewillrebootintobootloader. adbrebootrecovery usethiscommandtodirectlyrebootyourdeviceintorecovery,makesureyourdeviceisconnectedtoyourPC.Justtypeadbrebootrecoveryandyourdevicewillrebootintorecovery. adbinstall AndroidisanOpenSourceOSandisveryvast.UntilnowyoumightknowonlytwomethodsofinstallingAndroidappsonyourAndroiddevice.YoueitherdownloaditfromGooglePlayStoreorgalaxyStore,orelseyoudownloadtheAPKandmanuallyinstallit.However,youcanalsoinstallappsusingadbcommands-lineaswell.Withthehelpofthiscommand,youcandirectlyinstalltheAPKfromyourPCtoyourAndroiddevice,withoutcopyingordoinganythingelse.JustcopytheAPKfiletotheSDKplatform-toolsfolderandthentypetheadbinstallpackagenameandthat’sit.Belowisanexampleofhowtowritecode,itcanvaryfromapptoappandpackagetopackage. adbinstallcom.facebook.katana.apk Youcanalsore-installanAPKonyourAndroiddevicewithoutdeletingthedataoftheApp.Justwritethebelowcommand. adbinstall-rcom.facebook.katana.apk TherearesomeappsandgamesthatsupportSDcardinstallation.SotoinstallormoveanAPKontoSDcarddirectlyusingtheadbcommand-line,writethecodementionedbelow. adbinstall-scom.facebook.katana.apk adbinstall–k adbuninstall TouninstallanappfromyourAndroiddevicejustusethiscommand,andyourappwillbeuninstalled. adbuninstallcom.facebook.katana However,ifyouwanttodeletetheappbutwantstokeepthedataoftheapp,thensimplyusetheadbuninstallcommandwiththe“-k”parameter,belowisanexampleforthesame. adbuninstall-kcom.facebook.katana adbusb ToknowabouttheAndroiddeviceortheemulatorconnectedtoyourWindows,MacorLinuxcomputer,simplyusetheadbusbcommandanditwillgetyoualloftheinfo. SEEALSO MinimalADBandFastboot|Downloadadblogcat adblogcatisacommandwhichisusedtotrackthelogdataofyourAndroiddeviceortheemulator.Withtheadblogcatcommand,youwillbeabletoseethelogdataofyourdeviceonyourPC.Thereareafewparametersaswellwhichcanbeusedlike‘adblogcat-c//clear//withthisyouwillbeabletoclearalltheexistinglogsofyourAndroidphoneortablerortheemulator.TosavethelogcatdataofyourAndroiddeviceoremulatoronyourPCusethefollowingcommand. adblogcat-d>[path_to_file]// adbstart-server Theadbstart-servercommandisaveryusefulcommandanditisusedtostarttheadbserver.Withouttheadbservernocommandwillworkproperly,soincasetheserverisnotrespondingorbychance,ithasstopped,youcanusethiscommandtostarttheserveragain. adbkill-server iftheADBcommandlineisnotworkingproperly,andevenafterrestartingtheterminaldoesn’thelpyou.Thenyoumusttrytostoptheadbserverandstartitagain,sojustusethecommandadbkill-serverandthenusetheabove-mentionedcommandtostarttheserveragain. adbsideload Anotheryetverypowerfulandcommoncommandistheadbsideloadcommand.ItcanbeusedtosideloadsoftwareandOSupdate.zipfilesusingacomputer.Ifyouhavedownloadedaflashableupdate.zipfilethenyouneedtocopyittotheplatform-toolsfolderandthenexecutethecommandaswrittenbelow.Forease,renamethedownloadedflashablezipfileintoanupdate.zipfile. adbsideloadupdate.zip adbpull TodownloadorpullfilesstoredonyourAndroiddevicetoyourcomputer,simplyusetheadbpullcommand.Itcanbehelpfultopullanyfilesfromyourdeviceandsavethemtotheplatform-toolsfolderonyourcomputer. adbpull/sdcard/img_001.jpeg adbpush Similartoadbpullcommandthisadbpushcommandcanbeusedtopushafilefromyourcomputertoyourdevice.DonotethatwhicheverfileyouneedtotransfertoyourAndroiddevicefromyourPC,youneedtocopyittotheplatform-toolsfolderfirst.YoucanalsopushthefilesfromyourPctothesdcardofyourAndroiddevicedirectly.BelowisthecommandtopushafilefromyourPCtothesdcardofyourAndroiddevice. adbpushcom.whatsapp.apk/sdcard adbbackup// Thisisaverysimpleandhandycommand,itbasicallytakesafullbackupofyourAndroiddevicetoyourcomputer. SEEALSO [OnePlusBloatwareList]RemoveBloatwareonOnePlusDevicesadbrestore// Similartotheabove-mentionedcommand,withthehelpoftheadbrestore//commandyouwillbeabletorestoreallofthedatafromabackupyoualreadycreatedusingtheadbbackupcommand. adbbugreport SinceAndroidOSusesalotofcodestorun,oftenwecrossthroughalotofbugs.Sowiththehelpofthisadbbugreportcommand,youwillbeabletoseethelogdata,dumpstateanddumpsysfromyourAndroiddevicetoyourcomputer.OftenOEMsasksforbugreports,andthishowyoucansendthemorshowthemthebugyouarefacingonyourAndroiddevice. adbjdwp ThetermJDWPstandsforJavaDebugWireprotocol.WiththehelpofthisADBcommand,youwillbeabletoseethelistofalltheJDWPprocessesonyourPC. adbget-serialno TogettheADBinstanceserialnumber,usetheadbget-serialnocommand. adbget-state Thecommandadbget-statecommandisusedtoseetheADBstatusofaconnecteddeviceoremulator. adbwait-for-device Theadbwait-for-deviceisacommandthattellsADBthatithastowaitandkeeptheconnectiononholduntilthenextcommandisbeingissuedorexecuted. Conclusion ThatwasanextensivecheatsheetregardingtheADBcommandsand,wehopeitwasahelpfularticleforyou,asADBcommandscomeinhandyalotoftimeswhileexperimentingwithsomethingwithourdevices,orwhilerestoringourdevices.WewillkeeponupdatingADBcommandsaswegethands-onmorecommandsofADB. Readnext:FindoutMD5ChecksumandSHAHashofaFile(Windows,Mac,andLinux) RelatedPosts ADBSideload|HowtoSideloadROMandMODZip AllowUSBDebugging|AuthorizeADBCommandsonAndroid [OnePlusBloatwareList]RemoveBloatwareonOnePlusDevices LeaveaCommentCancelreplyCommentName Email Savemyname,email,andwebsiteinthisbrowserforthenexttimeIcomment. Searchfor: RecentPosts HowtoTurnOffPasscodeoniPhone? HowtoUseLessThanorEqualtoOperatorinExcel? HowtoSendConfettiiniMessage? HowtoSpeedUpaVideooniPhone? HowToOpenDLLFiles?(4Ways) IPALibrary PlusforInstagramNFLGamePass++TikTok++Pandora++UFC++ AndroidTools QualcommHS-USBQDLoader9008Driver64-bitQualcommHS-USBQDLoader9008Driver32-bitDownloadOdin3.14.4(Latest)–SamsungOdinTool(AllVersions)SUTL3ToolBinaryToolkit CloseApple Android Gaming Windows SmartHome AndroidTools IPALibrary Searchfor:



請為這篇文章評分?