Skip to content

refactor(android): include disconnected devices on adb::device_list - #495

Merged
lucasfernog merged 2 commits into
devfrom
refactor/adb-device-list
Oct 16, 2025
Merged

refactor(android): include disconnected devices on adb::device_list#495
lucasfernog merged 2 commits into
devfrom
refactor/adb-device-list

Conversation

@lucasfernog

Copy link
Copy Markdown
Member

follow-up for #493
this allows the Tauri CLI to detect stale emulators and restart them

since we need to match on the emulator name, i also added a new method to get the device name via the emulator console: https://developer.android.com/studio/run/emulator-console

to properly restart the emulator we need to pass -no-snapshot-load so that's why the new start_detached_with_options was added

follow-up for #493
this allows the Tauri CLI to detect stale emulators and restart them

since we need to match on the emulator name, i also added a new method to get the device name via the emulator console: https://developer.android.com/studio/run/emulator-console

to properly restart the emulator we need to pass `-no-snapshot-load` so that's why the new start_detached_with_options was added
@github-actions

github-actions Bot commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

Package Changes Through 73edef6

There are 1 changes which include cargo-mobile2 with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
cargo-mobile2 0.21.1 0.22.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@lucasfernog
lucasfernog merged commit bac9260 into dev Oct 16, 2025
16 checks passed
@lucasfernog
lucasfernog deleted the refactor/adb-device-list branch October 16, 2025 11:18
@github-actions github-actions Bot mentioned this pull request Oct 16, 2025
lucasfernog added a commit to tauri-apps/tauri that referenced this pull request Apr 30, 2026
…14313)

* feat(cli): restart Android emulator if it is disconnected from adb

needs tauri-apps/cargo-mobile2#495 and tauri-apps/cargo-mobile2#493

* lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant