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 devicepower
: Shutdown/reboot devicereverse
: Manage reverse port forwardingtcpip
: Enable/disable ADB over Wi-FigetProp
: Shorthand forgetprop
executablerm
: Delete files on devicesync
: Interact with device filesystemframebuffer
: 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
getVersion
: Get ADB server versionkillServer
: Kill ADB servergetServerFeatures
: Get ADB server featuresgetDevices
: Get devices connected to ADB servertrackDevices
: Watch devices connected to ADB server
Commands handled by device
These commands target a specific device. All these commands accepts a Device selector.
getDeviceFeatures
: Get device featurescreateDeviceConnection
: Create a socket to ADB Daemon on devicecreateTransport
: Create anAdbTransport
object for the devicewaitFor
: Wait for a device to be connected or disconnected
@yume-chan/android-bin
Exposed as individual classes from @yume-chan/android-bin
package, these are abstractions over Android executables.
- npm
- Yarn
- pnpm
npm i @yume-chan/android-bin
yarn add @yume-chan/android-bin
pnpm add @yume-chan/android-bin
bu
: Backup/restore apps and databugreport
: Dump device informationcmd
: Interact with Android system services- Demo mode: Control demo mode
dumpsys
: Dump system service informationlogcat
: View device logs- Overlay Display Manages simulated secondary displays
pm
: Manage appssettings
: Get/set Android system settings
note
Documentation for each executable is in progress.