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

What is the purpose of ./clone_avd.sh tester_ref collector_ref #9

Open
RichardHoOoOo opened this issue Mar 10, 2022 · 3 comments
Open

Comments

@RichardHoOoOo
Copy link

Hi, I am reading the scripts under /scripts and trying to understand them.

In the 1st subsection of Android Experiments (Monkey++) in the README, we need to create an emulator by

cd scripts
./create_tester_ref
./clone_avd.sh tester_ref collector_ref

May I ask what is the purpose of the 3rd line? In particular, why we need to clone an avd from tester_ref to collector_ref? If we only use the pre-trained model, is it necessary to "clone" the avd?

@RichardHoOoOo
Copy link
Author

Sorry I have another question. I think I can understand all the scripts under /scripts. Basically, the Android SDK needs to be put under the user's home directory in order to make many commands (e.g., adb, aapt, emulator, etc.) work. May I ask can I change the command paths in these scripts to make them point to the path of my SDK if the SDK is not put under the home directory? For example, I may change ~/android-sdk/tools/bin/avdmanager to <my_sdk_root>/tools/bin/avdmanager. I think I am confident to adapt the scripts under /scripts, but I am not sure if the change of path affect other parts of the tool (e.g., python scripts under /src, the pre-trained model, monkey.jar, etc.). Can you give me some advise? Thanks in advance!

@Feri73
Copy link
Owner

Feri73 commented Mar 11, 2022

Hey

So the clone from tester to controller is probably not necessary. I just looked at it and I think I included that line by mistake (but honestly I can't be sure because it's been a long time).
For the sdk location, I think if you change the path to all these function calls AND also change the path in the config files you must be good to go. I believe the reason I didn't do it is that it was a lot of work :D If you change it and it works, maybe you can submit a pull request :?

@RichardHoOoOo
Copy link
Author

Hi, thanks for your prompt reply! I will see whether the modification will work or not. Thanks again.

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