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

How to save the snapshot of the avd #165

Open
cjfcsjt opened this issue Nov 8, 2024 · 5 comments
Open

How to save the snapshot of the avd #165

cjfcsjt opened this issue Nov 8, 2024 · 5 comments

Comments

@cjfcsjt
Copy link

cjfcsjt commented Nov 8, 2024

Running env_launcher.load_and_setup_env() with emulator_setup=True requires a few minutes. Is it possible to run the setup and then save the snapshot of the avd?

@crawles
Copy link
Collaborator

crawles commented Nov 8, 2024

Yes, it’s definitely possible. Do you know where your AVD snapshot is located on your MacBook? On macOS, it's typically in ~/.android/avd/. You should be able to save this and reload it

Working on a more permanent solution.

@cjfcsjt
Copy link
Author

cjfcsjt commented Nov 18, 2024

Thanks for reply! I have an additional question:

When attempting a specific task multiple times (e.g., 10 times) with the following config:

suite = suite_utils.create_suite(
      task_registry.get_registry(family=_SUITE_FAMILY.value),
      n_task_combinations=10, # n_task_combinations,
      seed=2025, # _TASK_RANDOM_SEED.value,
      tasks=['AudioRecorderRecordAudioWithFileName'],
      use_identical_params=True, # _FIXED_TASK_SEED.value,
)

I noticed that the environment changes unexpectedly, for example, Record-1 becomes 1Record-1, with an extra 1 added.
bug_in_aw

How can I resolve this issue?

@crawles
Copy link
Collaborator

crawles commented Nov 18, 2024 via email

@cjfcsjt
Copy link
Author

cjfcsjt commented Nov 19, 2024

I set the use_identical_params = True in the suite_utils.create_suite() function. Besides, as I understand it, this Record-1 is not caused by the randomness of the task. Record-1 is the default name given to the audio by this app. The task requires changing the default name to a specified one. I noticed that this default naming can change as long as I repeat this task multiple times, up to n_task_combinations.

@crawles
Copy link
Collaborator

crawles commented Nov 19, 2024

Ah, sorry I didn't look closely enough at your code :)

I've figured out the bug and it will be fixed by #185. Thanks for reporting!

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

No branches or pull requests

2 participants