Download presentation
Presentation is loading. Please wait.
Published byShannon Bridges Modified over 9 years ago
1
Android Debug Bridge (adb) Chien-Chung Shen CIS, UD cshen@udel.edu
2
Introduction to adb Located in /platform-tools A versatile command line tool using client-server paradigm of 3 components –Client on development machine: invoke a client from shell by running adb command –Server on development machine –adb daemon on emulator or device When starting an adb client, check whether a server is running. If not, starts one which binds itself to local TCP port 5037 Server sets up connections to all emulator/device instances by scanning odd-numbered ports in [5555,5585] –Even-numbered port – console connection –Odd-numbered port – adb connection More at http://developer.android.com/tools/help/adb.html
3
Adb Configuration
4
Some Useful adb Commands adb push/pull adb shell Remote shell - adb shell –SharedPreferences files are stored in /data/data/ /shared_prefs –e.g., root@android:/data/data/com.deitel.favoritetwittersearches/shared_pr efs
5
Shell Access to SQLite SQlite stores the whole database in a file Accessing SQlite database file only works in emulator or on rooted devices $ adb shell // inside “ platform-tools ” # Switch to the data directory $ cd /data/data # Get into application, e.g., $ cd com.deitel.addressbook # Switch to the “databases” directory $ cd databases # Check the content $ ls # Assuming there is a database file, addressbook.db $ sqlite3 addressbook.db http://www.sqlite.org/sqlite.html
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.