adbssi

ADB shell screencap interface

Usage no npm install needed!

<script type="module">
  import adbssi from 'https://cdn.skypack.dev/adbssi';
</script>

README

adbssi

ADB shell screencap interface

carbon

Install

npm install -g adbssi

Usage

adbssi screenshot.png

Module

import ADBssi from "adbssi"

/* valid ext
    .png | .jpg | .gif
*/
const filename = "screenshot.png"

/* valid type
    usb | tcp | auto
*/
const connectionType = "usb"

ADBssi(filename, connectionType)
    .then((savedFilePath) => {
        /*  savedFilePath */
    })
    .catch((errorTag) => {
        /* errorTag */
    })

Requirement

  • adb (connected to device)
  • node (version >=14)

Android Debug Bridge | Screencap