* Sends input to a running process's stdin. * * @param {string} uuid - The process ID returned by Executor#start. * @param {string} input - Input string to send (e.g., shell commands). * @returns {Promise } Resolves once the input is written. * * @example * execut
(uuid, input)
| 98 | * executor.write(uuid, 'ls /sdcard'); |
| 99 | */ |
| 100 | write(uuid, input) { |
| 101 | //console.log("write: " + input + " to " + uuid); |
| 102 | return new Promise((resolve, reject) => { |
| 103 | exec(resolve, reject, this.ExecutorType, "write", [uuid, input]); |
| 104 | }); |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Moves the executor service to the background (stops foreground notification). |