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:
committed by
Facebook GitHub Bot
parent
4463e7ede2
commit
8cf182cc26
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user