Skip to main content
Version: 1.0.0

Overview

This section documents all the APIs in Tango ADB libraries.

There are three sub categories:

Adb from @yume-chan/adb:

The Adb class implements core ADB commands. These commands are handle by ADB Daemon on Android devices.

  • Forward tunnel: Connect to a socket address on the device
  • subprocess: Spawn processes on device
  • power: Shutdown/reboot device
  • reverse: Manage reverse port forwarding
  • tcpip: Enable/disable ADB over Wi-Fi
  • getProp: Shorthand for getprop executable
  • rm: Delete files on device
  • sync: Interact with device filesystem
  • framebuffer: Capture device screen

AdbServerClient from @yume-chan/adb

The AdbServerClient class can communicate with Google ADB Server.

There are two types of ADB server commands:

Commands handled by server itself

Commands handled by device

These commands target a specific device. All these commands accepts a Device selector.

@yume-chan/android-bin

Exposed as individual classes from @yume-chan/android-bin package, these are abstractions over Android executables.

npm i @yume-chan/android-bin
  • bu: Backup/restore apps and data
  • bugreport: Dump device information
  • cmd: Interact with Android system services
  • Demo mode: Control demo mode
  • dumpsys: Dump system service information
  • logcat: View device logs
  • Overlay Display Manages simulated secondary displays
  • pm: Manage apps
  • settings: Get/set Android system settings
note

Documentation for each executable is in progress.