Editing
ADB Commands
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Common ADB CommandsĀ¶=== Push a file to Download folder of the Android DeviceĀ¶ adb push example.apk /mnt/sdcard/Download/ Lists all the installed packages and get the full pathsĀ¶ adb shell pm list packages -f Pulls a file from android deviceĀ¶ adb pull /mnt/sdcard/Download/example.apk Install apk from host to Android deviceĀ¶ adb shell install example.apk Install apk from Android device storageĀ¶ adb shell install /mnt/sdcard/Download/example.apk Set network proxyĀ¶ adb shell settings put global http_proxy <address>:<port> Disable network proxy adb shell settings put global http_proxy :0 ADB Basics CommandsĀ¶ Command Description adb devices Lists connected devices adb connect 192.168.2.1 Connects to adb device over network adb root Restarts adbd with root permissions adb start-server Starts the adb server adb kill-server Kills the adb server adb reboot Reboots the device adb devices -l List of devices by product/model adb -s <deviceName> <command> Redirect command to specific device adb ād <command> Directs command to only attached USB device adb āe <command> Directs command to only attached emulator LogsĀ¶ Command Description adb logcat [options] [filter] [filter] View device log adb bugreport Print bug reports PermissionsĀ¶ Command Description adb shell permissions groups List permission groups definitions adb shell list permissions -g -r List permissions details Package InstallationĀ¶ Command Description adb shell install <apk> Install app adb shell install <path> Install app from phone path adb shell install -r <path> Install app from phone path adb shell uninstall <name> Remove the app PathsĀ¶ Command Description /data/data/<package name>/databases App databases /data/data/<package name>/shared_prefs/ Shared preferences /mnt/sdcard/Download/ Download folder /data/app Apk installed by user /system/app Pre-installed APK files /mmt/asec Encrypted apps (App2SD) /mmt/emmc Internal SD Card /mmt/adcard External/Internal SD Card /mmt/adcard/external_sd External SD Card ------- ----------- adb shell ls List directory contents adb shell ls -s Print size of each file adb shell ls -R List subdirectories recursively adb shell pm path <package name> Get full path of a package adb shell pm list packages -f Lists all the packages and full paths
Summary:
Please note that all contributions to SafeCodeGroup may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
SafeCode Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information