midscene icon indicating copy to clipboard operation
midscene copied to clipboard

refactor(android-playground): refactor getAdbDevices to use getConnectedDevices for improved device retrieval

Open lhuanyu opened this issue 3 weeks ago • 1 comments

This pull request refactors the logic for retrieving connected Android devices in the packages/android-playground/src/bin.ts file. The main improvement is replacing manual ADB command parsing with the standardized getConnectedDevices utility from @midscene/android, resulting in cleaner and more maintainable code.

Device discovery improvements:

  • Replaced manual ADB command execution and parsing in getAdbDevices with the getConnectedDevices function from @midscene/android, ensuring more reliable and consistent device information retrieval.
  • Updated imports to include getConnectedDevices from @midscene/android, removing the need for direct ADB command usage.

lhuanyu avatar Nov 28 '25 13:11 lhuanyu

Deploy Preview for midscene ready!

Name Link
Latest commit 6d6f7b66ea4983acfcc7a8bdd12d8f5bbefe654e
Latest deploy log https://app.netlify.com/projects/midscene/deploys/6929a9b9c8abf0000866a238
Deploy Preview https://deploy-preview-1518--midscene.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Nov 28 '25 13:11 netlify[bot]