ADB Commands List: Complete with Detailed User Guide | iHax
文章推薦指數: 80 %
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
延伸文章資訊
- 1Android Debug Bridge (adb)
- 2ADB Commands List: Complete with Detailed User Guide | iHax
ADB Commands List Directory · adb · adb devices · adb connect ip_address_of_device · adb help · a...
- 3Android Debug Bridge (adb)
Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a devi...
- 4List of Useful ADB and Fastboot Commands - DroidWin
Most Commonly Used ADB Commands: Check ADB Connection; ADB Shell Command; Reboot to Bootloader/Fa...
- 5adb (Android Debug Bridge) cheatsheet - Devhints