Skip to content

DeadmanXXXII/ADB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

ADB

Here’s an extensive list of commands and utilities specific to Android terminals, particularly when using adb (Android Debug Bridge) and the Android shell (adb shell).

Android Terminal Commands

ADB (Android Debug Bridge) Commands

  • Check ADB version:

    adb --version
  • Start ADB server:

    adb start-server
  • Stop ADB server:

    adb kill-server
  • List connected devices:

    adb devices
  • Access Android device shell:

    adb shell
  • Install an APK:

    adb install path/to/app.apk
  • Uninstall an APK:

    adb uninstall package.name
  • Pull a file from the device:

    adb pull /path/on/device /path/on/host
  • Push a file to the device:

    adb push /path/on/host /path/on/device
  • Reboot the device:

    adb reboot
  • Reboot into bootloader:

    adb reboot bootloader
  • Reboot into recovery mode:

    adb reboot recovery
  • View device logs (logcat):

    adb logcat
  • Take a screenshot:

    adb exec-out screencap -p > screenshot.png
  • Record the screen:

    adb exec-out screenrecord /sdcard/demo.mp4
  • Run a shell command on the device:

    adb shell command
  • Forward a port from the device to the host:

    adb forward tcp:port1 tcp:port2
  • Remove port forwarding:

    adb forward --remove tcp:port
  • Get device properties:

    adb shell getprop
  • Set a device property:

    adb shell setprop key value
  • List installed packages:

    adb shell pm list packages
  • Show detailed information about a package:

    adb shell pm dump package.name
  • Grant a permission to an app:

    adb shell pm grant package.name permission
  • Revoke a permission from an app:

    adb shell pm revoke package.name permission
  • Force stop an application:

    adb shell am force-stop package.name
  • Start an application:

    adb shell am start -n package.name/activity.name
  • Broadcast an intent:

    adb shell am broadcast -a action.name
  • Dump system status:

    adb shell dumpsys
  • Check battery status:

    adb shell dumpsys battery
  • Check memory usage:

    adb shell dumpsys meminfo
  • List all processes:

    adb shell ps
  • Kill a process by PID:

    adb shell kill pidnumber
  • Run a shell command with root privileges (if device is rooted):

    adb shell su -c command
  • Synchronize file system from the device to the host:

    adb sync
  • Check the device’s connectivity status:

    adb shell netstat
  • Manage packages using ADB (list, install, uninstall):

    adb shell pm list packages
    adb shell pm install path/to/app.apk
    adb shell pm uninstall package.name
  • Check the device’s uptime:

    adb shell uptime
  • Retrieve system information:

    adb shell cat /proc/cpuinfo
    adb shell cat /proc/meminfo
  • Extract data from a specific path:

    adb pull /sdcard/path/to/file /local/path

This list provides a comprehensive overview of commands for managing and interacting with Android devices using ADB and the Android shell.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published