Skip to content

Commit

Permalink
Show devices duriing kill emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed May 15, 2024
1 parent 8b1c214 commit 245fb7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions emulator-run-cmd/src/emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export class Emulator {
}

async stop(): Promise<any> {
console.log("Show connected devices")
await execIgnoreFailure(`bash -c \\\"${this.sdk.androidHome()}/platform-tools/adb devices\"`)
console.log("emu kill start")
await execIgnoreFailure(`bash -c \\\"${this.sdk.androidHome()}/platform-tools/adb -s emulator-${this.adbPort} emu kill\"`)
console.log("emu kill finished")
return
Expand Down
3 changes: 3 additions & 0 deletions install-sdk/src/emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export class Emulator {
}

async stop(): Promise<any> {
console.log("Show connected devices")
await execIgnoreFailure(`bash -c \\\"${this.sdk.androidHome()}/platform-tools/adb devices\"`)
console.log("emu kill start")
await execIgnoreFailure(`bash -c \\\"${this.sdk.androidHome()}/platform-tools/adb -s emulator-${this.adbPort} emu kill\"`)
console.log("emu kill finished")
return
Expand Down

0 comments on commit 245fb7d

Please sign in to comment.