AppAgent icon indicating copy to clipboard operation
AppAgent copied to clipboard

ABD Command execution failed: adb -s 000002f62f317e4e shell screencap -p "Phone Storage/sdcard/Pictures/Screenshots"/1_before.png

Open CharmanY1n opened this issue 1 year ago • 6 comments

PS D:\PythonWorkSpace\AppAgent> python learn.py Warning! No module named 'sounddevice' Warning! No module named 'keras' Welcome to the exploration phase of AppAgent! The exploration phase aims at generating documentations for UI elements through either autonomous exploration or human demonstration. Both options are task-oriented, which means you need to give a task description. During autonomous exploration, the agent will try to complete the task by interacting with possible elements on the UI within limited rounds. Documentations will be generated during the process of interacting with the correct elements to proceed with the task. Human demonstration relies on the user to show the agent how to complete the given task, and the agent will generate documentations for the elements interacted during the human demo. To start, please enter the main interface of the app on your phone.

Choose from the following modes:

  1. autonomous exploration
  2. human demonstration Type 1 or 2.

1 What is the name of the target app?

X Warning! No module named 'sounddevice' Warning! No module named 'keras' List of devices attached: ['000002f62f317e4e']

Device selected: 000002f62f317e4e

Screen resolution of 000002f62f317e4e: 1080x2400

Please enter the description of the task you want me to complete in a few sentences:

follow bill gates Round 1

Command execution failed: adb -s 000002f62f317e4e shell screencap -p "Phone Storage/sdcard/Pictures/Screenshots"/1_before.png

usage: screencap [-hp] [-d display-id] [FILENAME] -h: this message -p: save the file as a png. -d: specify the physical display ID to capture (default: 0) see "dumpsys SurfaceFlinger --display-id" for valid display IDs. If FILENAME ends with .png it will be saved as a png. If FILENAME is not given, the results will be printed to stdout.

Command execution failed: adb -s 000002f62f317e4e pull "Phone Storage/sdcard"/1.xml ./apps\X\demos\self_explore_2023-12-25_21-09-23\1.xml

Autonomous exploration finished unexpectedly. 0 docs generated.

CharmanY1n avatar Dec 25 '23 13:12 CharmanY1n

I believe there is something wrong with your ANDROID_XML_DIR setting. Where do the quotation marks around Phone Storage/sdcard come from? Normally the path would just be /sdcard/1.xml.

mnotgod96 avatar Dec 25 '23 15:12 mnotgod96

My phone do not own a sdcard, I could just use my Phone Storage.How should I rectify it? I used to search for resolution. It's said that a sigle quotation could make up for the space in the path.

Original Email

Sender:"Jiaxuan Liu"< @.*** >;

Sent Time:2023/12/25 23:17

To:"mnotgod96/AppAgent"< @.*** >;

Cc recipient:"CharmanY1n"< @.*** >;"Author"< @.*** >;

Subject:Re: [mnotgod96/AppAgent] ABD Command execution failed: adb -s000002f62f317e4e shell screencap -p "PhoneStorage/sdcard/Pictures/Screenshots"/1_before.png (Issue #7)

I believe there is something wrong with your ANDROID_XML_DIR setting. Where do the quotation marks around Phone Storage/sdcard come from? Normally the path would just be /sdcard/1.xml.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

CharmanY1n avatar Dec 26 '23 00:12 CharmanY1n

Open the mobile phone storage and see which directory is missing from the path reported in the error. Creating it can save the problem.

nowindnowave avatar Jan 05 '24 08:01 nowindnowave

I am also getting the same error, I am using an Emulater with Pixel 5 as the mobile. What should be the path for my case?

mohitpawar473 avatar Jan 06 '24 14:01 mohitpawar473

I am facing the same issue, but i am not able to understand where this 1_before.png coming from. What should be my path for the two paramters in the config file

mohitpawar473 avatar Jan 06 '24 14:01 mohitpawar473

@mohitpawar473 check my latest reply here https://github.com/mnotgod96/AppAgent/issues/23#issuecomment-1879734053

mnotgod96 avatar Jan 06 '24 15:01 mnotgod96