INNER CODE UNIT · TypeScript

forgetAdbServerOwnership

SimonAKing/scrcpy-gui · src/main/adbService.ts:29

export function forgetAdbServerOwnership(): void {
  serverStartedByApp = false
}

export class AdbService implements AdbClient {
  async run(runtime: RuntimeConfig, args: string[], options: AdbRunOptions = {}): Promise<CommandOutput> {
    const executable = await resolveBinary(runtime, 'adb')
    if (!executable) throw new Error('adb executable not found.')
    try {
      const result = await executeCommand(executable, args, options.timeout, options.maxBuffer)
      noteAdbOutput(`${result.stdout}\n${result.stderr}`)
      return result
    } catch (error) {
      noteAdbOutput(error instanceof Error ? error.message : String(error))
      throw error
    }
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…