1

When I use -e option to sepecify a device, errer happen.

raise device_errors.MultipleDevicesError(devices)
devil.android.device_errors.MultipleDevicesError: More than one device available. Use -d/--device to select a device by serial.
Victor Choy
  • 4,006
  • 28
  • 35

1 Answers1

0

Are you using this python script? What's the command like?

Can you try this:
python <android-sdk>/platform-tools/systrace/systrace.py --list-categories -e <device-serial-number>

Yi Yang
  • 421
  • 2
  • 6
  • Yes, I use the script cmd. -e option has the error. Does it work for you? – Victor Choy Nov 12 '20 at 06:14
  • Works for me. Does `--list-categories -e ` give you the same error? What's your Python version? Systrace only supports Python 2.7. – Yi Yang Nov 13 '20 at 07:04
  • 1
    I had to use `-e --list-categories` to get it to work on my Windows machine. I.e. the ordering was important. – juppman Feb 26 '21 at 13:09