SlideShare ist ein Scribd-Unternehmen logo
1 von 3
Downloaden Sie, um offline zu lesen
Mob: +91-963283917
Email: info@wavedigitech.com
Copyright © 2013 Wavedigitech. All rights reserved.
Android Debug Bridge (ADB)
Mob: +91-963283917
Email: info@wavedigitech.com
Copyright © 2013 Wavedigitech. All rights reserved.
Android Debug Bridge (adb):- ADB is a versatile command line tool that lets you
communicate with an emulator instance or connected Android-powered device.
It is a client-server program that includes three components:
A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb
command. Other Android tools such as the ADT plugin and DDMS also create adb clients.
A server, which runs as a background process on your development machine. The server manages
communication between the client and the adb daemon running on an emulator or device.
logcat :- The Android logging system provides a mechanism for collecting and viewing system debug
output. Logs from various applications and portions of the system are collected in a series of circular buffers,
which then can be viewed and filtered by the logcat command. You can use logcat from an
ADB (Android Debug Bridge) shell to view the log messages.
=====================================================================================
Step 1: Using the ADB Command
=====================================================================================
At your command prompt, simply type:
adb /* The ADB tool is launched from the command line. */
adb logcat /* start printing out everything that is going on on the device. */
adb logcat -C /* Colour: show logs with color to make them easier to read when viewing.*/
adb logcat -d > Mylogcat.txt /* You can dump the complete logcat to a file like this */
=====================================================================================
Connect Android device to your development machine. Now, if you use the ADB devices command, it
should list any attached devices or emulator instances.
adb devices /* list any attached devices or emulator instances */
adb shell /* Begins shell connection with phone */
=====================================================================================
Step 2: Restarting the ADB Server
=====================================================================================
(Enabled the USB Debugging:: Go to Menu > Settings > Applications > Development > USB Debugging
adb kill-server /* Terminates the adb server process. */
adb start-server /* Checks whether the adb server process is running and starts it, if not */
=====================================================================================
Since LogCat can get pretty large very quickly you may want to clear from Eclipse or from a terminal
window using.
adb logcat -c
adb logcat Wifi:E *:S -v long > Error-Log.txt
And this will only print out any errors associated with Wifi, and anything which is fatal.
In Wifi:E, the :E = to look for Errors, the full list of options is as follows:
V — Verbose (lowest priority)
D — Debug
I — Info (default priority)
W — Warning
E — Error
Mob: +91-963283917
Email: info@wavedigitech.com
Copyright © 2013 Wavedigitech. All rights reserved.
F — Fatal
S — Silent (highest priority, on which nothing is ever printed).
=====================================================================================
ADB Push and Pull (Sends/Receive files To/From your phone) -
=====================================================================================
adb push < source file path> <device destination file path>
(e.x) adb push foo.txt /sdcard/foo.txt
(e.x) adb push c:example.apk /sdcard/example.apk
adb pull <device source file path> <local destination file path>
(e.x) adb pull /system/app/example.apk c:example.apk
=====================================================================================
App Installation and Removal
=====================================================================================
adb install <file path to apk> /* Install command to install an Android package file/ */
adb uninstall <package name> /* remove an existing app by its package name. */
=====================================================================================
Backup and Restore
===========================================================================
You can backup and restore the contents of a device. This has limitations on devices that aren’t rooted.
adb backup /* Taking Backup */
(e.x) adb backup –apk –shared –all –f /backup/Mybackup.ab
/* Backup folder, and save the backup to “c:/backup/mybackup.ab” */
adb restore <archive name> /* restored your phone */
(e.x ) adb restore C:backupMybackup.ab
=====================================================================================
Device Rebooting
=====================================================================================
Reboot a device either normally, into the boot loader, or into recovery mode.
adb reboot /* reboots phone */
adb reboot recovery /* reboots phone into recovery */
adb reboot bootloader /* reboots the phone into boot loader the white screen */
adb remount /* remounts the system */
=====================================================================================

Weitere ähnliche Inhalte

Was ist angesagt?

Lecture 3 Perl & FreeBSD administration
Lecture 3 Perl & FreeBSD administrationLecture 3 Perl & FreeBSD administration
Lecture 3 Perl & FreeBSD administration
Mohammed Farrag
 

Was ist angesagt? (20)

Docker Compose Explained
Docker Compose ExplainedDocker Compose Explained
Docker Compose Explained
 
Q2.12: Debugging with GDB
Q2.12: Debugging with GDBQ2.12: Debugging with GDB
Q2.12: Debugging with GDB
 
Chap 19 web
Chap 19 webChap 19 web
Chap 19 web
 
Lecture 3 Perl & FreeBSD administration
Lecture 3 Perl & FreeBSD administrationLecture 3 Perl & FreeBSD administration
Lecture 3 Perl & FreeBSD administration
 
Msfpayload/Msfencoder cheatsheet
Msfpayload/Msfencoder cheatsheetMsfpayload/Msfencoder cheatsheet
Msfpayload/Msfencoder cheatsheet
 
Shrink to grow
Shrink to growShrink to grow
Shrink to grow
 
用 Go 語言打造多台機器 Scale 架構
用 Go 語言打造多台機器 Scale 架構用 Go 語言打造多台機器 Scale 架構
用 Go 語言打造多台機器 Scale 架構
 
Inter-process communication of Android
Inter-process communication of AndroidInter-process communication of Android
Inter-process communication of Android
 
Kernel Recipes 2015: Anatomy of an atomic KMS driver
Kernel Recipes 2015: Anatomy of an atomic KMS driverKernel Recipes 2015: Anatomy of an atomic KMS driver
Kernel Recipes 2015: Anatomy of an atomic KMS driver
 
Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)
 
Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)
 
Hiveminder - Everything but the Secret Sauce
Hiveminder - Everything but the Secret SauceHiveminder - Everything but the Secret Sauce
Hiveminder - Everything but the Secret Sauce
 
digitalSTROM Developer Day 2011: Wie Heimelektronik und digitalSTROM zusammen...
digitalSTROM Developer Day 2011: Wie Heimelektronik und digitalSTROM zusammen...digitalSTROM Developer Day 2011: Wie Heimelektronik und digitalSTROM zusammen...
digitalSTROM Developer Day 2011: Wie Heimelektronik und digitalSTROM zusammen...
 
Cme: a tool to edit and validate configuration files
Cme: a tool to edit and validate configuration filesCme: a tool to edit and validate configuration files
Cme: a tool to edit and validate configuration files
 
QEMU - Binary Translation
QEMU - Binary Translation QEMU - Binary Translation
QEMU - Binary Translation
 
當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)
當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)
當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)
 
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
 
Android Debug
Android DebugAndroid Debug
Android Debug
 
NativeBoost
NativeBoostNativeBoost
NativeBoost
 
Docker practice
Docker practiceDocker practice
Docker practice
 

Ähnlich wie Android debug bridge

Manish Chasta - Securing Android Applications
Manish Chasta - Securing Android ApplicationsManish Chasta - Securing Android Applications
Manish Chasta - Securing Android Applications
Positive Hack Days
 
Android chapter02-setup2-emulator
Android chapter02-setup2-emulatorAndroid chapter02-setup2-emulator
Android chapter02-setup2-emulator
Tran Le Hoan
 
Synapseindia android apps intro to android development
Synapseindia android apps  intro to android developmentSynapseindia android apps  intro to android development
Synapseindia android apps intro to android development
Synapseindiappsdevelopment
 

Ähnlich wie Android debug bridge (20)

Android tools for testers
Android tools for testersAndroid tools for testers
Android tools for testers
 
Android debug bridge android developers
Android debug bridge  android developersAndroid debug bridge  android developers
Android debug bridge android developers
 
Android debug bridge android developers
Android debug bridge  android developersAndroid debug bridge  android developers
Android debug bridge android developers
 
Discover System Facilities inside Your Android Phone
Discover System Facilities inside Your Android Phone Discover System Facilities inside Your Android Phone
Discover System Facilities inside Your Android Phone
 
Android developer options & android sdk tools (for qa)
Android developer options & android sdk tools (for qa)Android developer options & android sdk tools (for qa)
Android developer options & android sdk tools (for qa)
 
Android developer options &amp; android sdk tools (for qa)
Android developer options &amp; android sdk tools (for qa)Android developer options &amp; android sdk tools (for qa)
Android developer options &amp; android sdk tools (for qa)
 
Android tools
Android toolsAndroid tools
Android tools
 
Android Bluetooth Introduction
Android Bluetooth IntroductionAndroid Bluetooth Introduction
Android Bluetooth Introduction
 
Manish Chasta - Securing Android Applications
Manish Chasta - Securing Android ApplicationsManish Chasta - Securing Android Applications
Manish Chasta - Securing Android Applications
 
Embedded Android
Embedded AndroidEmbedded Android
Embedded Android
 
Getting the android device zoo under control
Getting the android device zoo under controlGetting the android device zoo under control
Getting the android device zoo under control
 
Android chapter02-setup2-emulator
Android chapter02-setup2-emulatorAndroid chapter02-setup2-emulator
Android chapter02-setup2-emulator
 
Interacting with your app through the command line
Interacting with your app through the command lineInteracting with your app through the command line
Interacting with your app through the command line
 
Go BlackBerry Z30 ready
Go BlackBerry Z30 readyGo BlackBerry Z30 ready
Go BlackBerry Z30 ready
 
Provisioning, deploying and debugging node.js applications on azure
Provisioning, deploying and debugging node.js applications on azureProvisioning, deploying and debugging node.js applications on azure
Provisioning, deploying and debugging node.js applications on azure
 
Android chapter02-setup2-emulator
Android chapter02-setup2-emulatorAndroid chapter02-setup2-emulator
Android chapter02-setup2-emulator
 
C# Production Debugging Made Easy
 C# Production Debugging Made Easy C# Production Debugging Made Easy
C# Production Debugging Made Easy
 
Synapseindia android apps intro to android development
Synapseindia android apps  intro to android developmentSynapseindia android apps  intro to android development
Synapseindia android apps intro to android development
 
行動App開發管理實務 unit1
行動App開發管理實務 unit1行動App開發管理實務 unit1
行動App開發管理實務 unit1
 
Android Development Tools Overview
Android Development Tools OverviewAndroid Development Tools Overview
Android Development Tools Overview
 

Mehr von Wave Digitech

Mehr von Wave Digitech (17)

54 sms based irrigation system
54 sms based irrigation system54 sms based irrigation system
54 sms based irrigation system
 
54 a automatic irrigation system
54 a automatic irrigation system54 a automatic irrigation system
54 a automatic irrigation system
 
Implementation of solar illumination system with three-stage charging and dim...
Implementation of solar illumination system with three-stage charging and dim...Implementation of solar illumination system with three-stage charging and dim...
Implementation of solar illumination system with three-stage charging and dim...
 
Zl embd045 wireless telemedia system based on arm and web server
Zl embd045 wireless telemedia system based on arm and web serverZl embd045 wireless telemedia system based on arm and web server
Zl embd045 wireless telemedia system based on arm and web server
 
Zl embd029 arm and rfid based event management monitoring system
Zl embd029 arm and rfid based event management monitoring systemZl embd029 arm and rfid based event management monitoring system
Zl embd029 arm and rfid based event management monitoring system
 
Arm
ArmArm
Arm
 
8051
80518051
8051
 
Projects wavedigitech-2013
Projects wavedigitech-2013Projects wavedigitech-2013
Projects wavedigitech-2013
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
 
Difference bw android4.2 to android 4.3
Difference bw android4.2 to android 4.3Difference bw android4.2 to android 4.3
Difference bw android4.2 to android 4.3
 
Unix Process management
Unix Process managementUnix Process management
Unix Process management
 
U-Boot presentation 2013
U-Boot presentation  2013U-Boot presentation  2013
U-Boot presentation 2013
 
Useful Linux and Unix commands handbook
Useful Linux and Unix commands handbookUseful Linux and Unix commands handbook
Useful Linux and Unix commands handbook
 
Wavedigitech training-broucher-june2013
Wavedigitech training-broucher-june2013Wavedigitech training-broucher-june2013
Wavedigitech training-broucher-june2013
 
Wavedigitech presentation-2013-v1
Wavedigitech presentation-2013-v1Wavedigitech presentation-2013-v1
Wavedigitech presentation-2013-v1
 
Wavedigitech presentation-2013
Wavedigitech presentation-2013Wavedigitech presentation-2013
Wavedigitech presentation-2013
 
Wavedigitech gdb
Wavedigitech gdbWavedigitech gdb
Wavedigitech gdb
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 

Android debug bridge

  • 1. Mob: +91-963283917 Email: info@wavedigitech.com Copyright © 2013 Wavedigitech. All rights reserved. Android Debug Bridge (ADB)
  • 2. Mob: +91-963283917 Email: info@wavedigitech.com Copyright © 2013 Wavedigitech. All rights reserved. Android Debug Bridge (adb):- ADB is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components: A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients. A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device. logcat :- The Android logging system provides a mechanism for collecting and viewing system debug output. Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the logcat command. You can use logcat from an ADB (Android Debug Bridge) shell to view the log messages. ===================================================================================== Step 1: Using the ADB Command ===================================================================================== At your command prompt, simply type: adb /* The ADB tool is launched from the command line. */ adb logcat /* start printing out everything that is going on on the device. */ adb logcat -C /* Colour: show logs with color to make them easier to read when viewing.*/ adb logcat -d > Mylogcat.txt /* You can dump the complete logcat to a file like this */ ===================================================================================== Connect Android device to your development machine. Now, if you use the ADB devices command, it should list any attached devices or emulator instances. adb devices /* list any attached devices or emulator instances */ adb shell /* Begins shell connection with phone */ ===================================================================================== Step 2: Restarting the ADB Server ===================================================================================== (Enabled the USB Debugging:: Go to Menu > Settings > Applications > Development > USB Debugging adb kill-server /* Terminates the adb server process. */ adb start-server /* Checks whether the adb server process is running and starts it, if not */ ===================================================================================== Since LogCat can get pretty large very quickly you may want to clear from Eclipse or from a terminal window using. adb logcat -c adb logcat Wifi:E *:S -v long > Error-Log.txt And this will only print out any errors associated with Wifi, and anything which is fatal. In Wifi:E, the :E = to look for Errors, the full list of options is as follows: V — Verbose (lowest priority) D — Debug I — Info (default priority) W — Warning E — Error
  • 3. Mob: +91-963283917 Email: info@wavedigitech.com Copyright © 2013 Wavedigitech. All rights reserved. F — Fatal S — Silent (highest priority, on which nothing is ever printed). ===================================================================================== ADB Push and Pull (Sends/Receive files To/From your phone) - ===================================================================================== adb push < source file path> <device destination file path> (e.x) adb push foo.txt /sdcard/foo.txt (e.x) adb push c:example.apk /sdcard/example.apk adb pull <device source file path> <local destination file path> (e.x) adb pull /system/app/example.apk c:example.apk ===================================================================================== App Installation and Removal ===================================================================================== adb install <file path to apk> /* Install command to install an Android package file/ */ adb uninstall <package name> /* remove an existing app by its package name. */ ===================================================================================== Backup and Restore =========================================================================== You can backup and restore the contents of a device. This has limitations on devices that aren’t rooted. adb backup /* Taking Backup */ (e.x) adb backup –apk –shared –all –f /backup/Mybackup.ab /* Backup folder, and save the backup to “c:/backup/mybackup.ab” */ adb restore <archive name> /* restored your phone */ (e.x ) adb restore C:backupMybackup.ab ===================================================================================== Device Rebooting ===================================================================================== Reboot a device either normally, into the boot loader, or into recovery mode. adb reboot /* reboots phone */ adb reboot recovery /* reboots phone into recovery */ adb reboot bootloader /* reboots the phone into boot loader the white screen */ adb remount /* remounts the system */ =====================================================================================