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

Analysis gets stuck in pinning step #9

Open
tausiq opened this issue Jul 12, 2021 · 1 comment
Open

Analysis gets stuck in pinning step #9

tausiq opened this issue Jul 12, 2021 · 1 comment

Comments

@tausiq
Copy link

tausiq commented Jul 12, 2021

After few successful apps analysis the process either fails in pinning step or gets stuck in pinning step.

shahab-Precision-T1700 2021-07-12 13-37-44

When the process is stuck in pinning step the emulator displays a blank/white screen

shahab-Precision-T1700 2021-07-12 13-40-53

I think this is a limitation of the emulator itself and may not be solvable from project end. I am wondering if you faced similar issue and if yes, how did you deal with it?

Right now I am restarting the emulator and then re-execute run.py. For a large number of app analysis this is not a suitable solution.

To overcome this, I am planning to execute multiple emulators and parallel the analysis process. Multiple emulators cannot be run from same source I think, I got the following error,

emulator: ERROR: There's another emulator instance running with the current AVD '<build>'. Exiting...

How about I copy crylogger source into multiple location and execute emulators from each of them but pointing work_dir to the same location. Do you foresee any potential issues with this idea? Thanks!

@lucapiccolboni
Copy link
Owner

lucapiccolboni commented Jul 12, 2021

Hi,

I remember that when I was using the emulator I was able to successfully execute several applications without the need of rebooting the emulator too frequently. From time to time, a reboot of the emulator might be necessary as you mentioned.

Does this issue always occur with the same application? Maybe you can try to exclude the applications for which the pinning fails and see if the next run (of the remaining applications) works properly. Some applications might not work properly on the emulator for a variety of reasons.

Regarding the question about multiple emulators, I think you can clone the repository in multiple locations and run them in parallel, if needed. When you run them, it should associate a different ID, which should be passed to run.py. One problem I can see is that the emulator is heavy to run so this solution might not be feasible on some machines.

Thanks

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