Skip to content

runAdbText

Runs adb -s <deviceId> <commandArguments> and returns stdout as trimmed text.

Import:

import { runAdbText } from 'obsidian-integration-testing';

Signature:

function runAdbText(params: RunAdbParams): Promise<string>

Parameters:

ParameterTypeDescription
paramsRunAdbParamsThe device and the arguments to run.

Returns: Promise<string> — A Promise that resolves to stdout, with surrounding whitespace removed.


Links to this page: