Restore adb executeShell [5/n]

Summary: Expose executeShell explicitly through the device interface

Reviewed By: jameslawson

Differential Revision: D31055959

fbshipit-source-id: b14395d0783ede265c6ae39c397ea93a85a78336
This commit is contained in:
Michel Weststrate
2021-09-22 09:01:29 -07:00
committed by Facebook GitHub Bot
parent 4463e7ede2
commit 8cf182cc26
4 changed files with 7 additions and 12 deletions

View File

@@ -42,6 +42,7 @@ export interface Device {
readonly serial: string;
readonly deviceType: DeviceType;
onLogEntry(cb: DeviceLogListener): () => void;
executeShell(command: string): Promise<string>;
}
export type DevicePluginPredicate = (device: Device) => boolean;
@@ -69,6 +70,7 @@ export interface RealFlipperDevice {
deviceType: DeviceType;
addLogListener(callback: DeviceLogListener): Symbol;
removeLogListener(id: Symbol): void;
executeShell(command: string): Promise<string>;
}
export class SandyDevicePluginInstance extends BasePluginInstance {