Open
Conversation
nox mulidrive support for adb
|
duplicate #3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhance Nox ADB Connection Logic to Support Multiple Ports
Description:
This pull request modifies the
connect_to_nox_adbfunction to attempt connections on a list of predefined ports, rather than a single hardcoded or user-specified port. This enhancement increases the robustness of the connection process, as it can automatically find an available Nox instance if multiple instances are running or if the default port is occupied.Changes Made:
portparameter inconnect_to_nox_adbhas been changed toports.portsnow accepts a list of integers (defaulting to[62001, 62025, 62026]) instead of a single integer.portslist.nox_adb.execommand.stdoutof thesubprocess.runcommand is checked.nox_installation_pathremains, returning "Nox player not installed." if the path is not found.Reason for Change:
The original implementation could only connect to a single specified port. If that port was not the correct one for the desired Nox instance or if it was in use, the connection would fail. This change allows the script to automatically try common Nox ADB ports, improving the likelihood of a successful connection without manual port specification in many common scenarios.
Original Code: