honeynet/droidbot

Close automatically.

Opened this issue · 1 comments

aavuzb commented

Hello. Let me ask a question about closing or stopping apk and device automatically when all objects on screen are touched.
So, I am testing a simple apk using Droidbot. However, even all buttons or objects are explored (there is no new object), DroidBot doesn't finish exploring automatically. If I set a time, DroidBot finishes exploring when time is ended, however without setting time, DroidBot doesn't stop apk and device automatically.

Thank you

You can do this is to modify the input_policy.py (e.g.

def generate_event_based_on_utg(self):
), in which you can add the logic to break the loop when there is no UI state to explore.

I don't intend to add this in the main branch because this doesn't seem like a common feature.