Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 506 #507

Merged
merged 5 commits into from
Apr 27, 2023
Merged

Issue 506 #507

merged 5 commits into from
Apr 27, 2023

Conversation

valeryvpetrov-dev
Copy link
Contributor

Source issue

#506

Solution demo

All demos were done on samples.adbserver-sample

Help

java -jar adb-server/adbserver-desktop/build/libs/adbserver-desktop.jar --help
Usage: Adb Server options_list
Options:
--emulators, -e -> List of emulators divided by commas { String }
--port, -p -> Port to use { String }
--logLevel, -l [INFO] -> Logs Level { Value should be one of [verbose, debug, info, warn, error] }
--adb_path, -a [adb] -> Path to custom adb { String }
--help, -h -> Usage info

Default adb path

java -jar adb-server/adbserver-desktop/build/libs/adbserver-desktop.jar
INFO 21/04/2023 16:59:13.609 desktop=Desktop-28114 message: Desktop started with arguments: emulators=[], adbServerPort=null, adbPath=adb
INFO 21/04/2023 16:59:13.630 desktop=Desktop-28114 message: New device has been found: emulator-5554. Initialize connection to the device...
INFO 21/04/2023 16:59:13.645 desktop=Desktop-28114 device=emulator-5554 message: The connection establishment to device started
INFO 21/04/2023 16:59:13.646 desktop=Desktop-28114 device=emulator-5554 message: WatchdogThread is started from Desktop to Device
INFO 21/04/2023 16:59:13.646 desktop=Desktop-28114 device=emulator-5554 message: Desktop tries to connect to the Device.
It may take time because the device can be not ready. Possible reason: a kaspresso test has not been started
INFO 21/04/2023 16:59:13.653 desktop=Desktop-28114 device=emulator-5554 message: The attempt to connect to Device was success
INFO 21/04/2023 16:59:17.045 desktop=Desktop-28114 device=emulator-5554 message: The received command to execute: AdbCommand(body=shell input tap 1 1)
INFO 21/04/2023 16:59:17.720 desktop=Desktop-28114 device=emulator-5554 message: The executed command: AdbCommand(body=shell input tap 1 1). The result: CommandResult(status=SUCCESS, description=exitCode=0, message=, serviceInfo=The command was executed on desktop=Desktop-28114)
...

Custom adb path

java -jar adb-server/adbserver-desktop/build/libs/adbserver-desktop.jar --adb_path /Users/va.petrov/Library/Android/sdk/platform-tools/adb
INFO 21/04/2023 17:01:12.763 desktop=Desktop-28373 message: Desktop started with arguments: emulators=[], adbServerPort=null, adbPath=/Users/va.petrov/Library/Android/sdk/platform-tools/adb
INFO 21/04/2023 17:01:12.785 desktop=Desktop-28373 message: New device has been found: emulator-5554. Initialize connection to the device...
INFO 21/04/2023 17:01:12.800 desktop=Desktop-28373 device=emulator-5554 message: The connection establishment to device started
INFO 21/04/2023 17:01:12.801 desktop=Desktop-28373 device=emulator-5554 message: WatchdogThread is started from Desktop to Device
INFO 21/04/2023 17:01:12.801 desktop=Desktop-28373 device=emulator-5554 message: Desktop tries to connect to the Device.
It may take time because the device can be not ready. Possible reason: a kaspresso test has not been started
INFO 21/04/2023 17:01:12.810 desktop=Desktop-28373 device=emulator-5554 message: The attempt to connect to Device was success
INFO 21/04/2023 17:01:15.985 desktop=Desktop-28373 device=emulator-5554 message: The received command to execute: AdbCommand(body=shell input tap 1 1)
INFO 21/04/2023 17:01:16.741 desktop=Desktop-28373 device=emulator-5554 message: The executed command: AdbCommand(body=shell input tap 1 1). The result: CommandResult(status=SUCCESS, description=exitCode=0, message=, serviceInfo=The command was executed on desktop=Desktop-28373)
...

Copy link
Collaborator

@Nikitae57 Nikitae57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thank you for your submission! Could you upgrade an adb desktop binary under the artifacts/ folder as well, please?

@valeryvpetrov-dev
Copy link
Contributor Author

valeryvpetrov-dev commented Apr 27, 2023

@Nikitae57 c3943f6 . I have tested this change in production. Works like charm✨

Nikitae57
Nikitae57 previously approved these changes Apr 27, 2023
# Conflicts:
#	docs/Wiki/Executing_adb_commands.en.md
@Nikitae57 Nikitae57 merged commit d13375b into KasperskyLab:master Apr 27, 2023
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.

2 participants