honeynet / droidbot

A lightweight test input generator for Android. Similar to Monkey, but with more intelligence and cool features!
MIT License
791 stars 230 forks source link

Is there a way to stop Droidbot from generating the "Force Stop" operation #142

Open HongheZ opened 2 years ago

HongheZ commented 2 years ago

Hello! May I ask another question? When I used Droidbot to generate random operation, the "Force Stop" operation event generated by Droidbot would affect the experimental results. Therefore, is there a way to stop Droidbot from generating the "Force Stop" operation? Or could you please tell me which part of the program can change the settings related to operation generation of the Droidbot? Thanks!

yuanchun-li commented 1 year ago

Sure. The input generation policies are mostly implemented in https://github.com/honeynet/droidbot/blob/master/droidbot/input_policy.py file. By searching for "get_stop_intent" in the file, you will find the "stop" operations. You may need to find the class for the input policy you are using (e.g. UtgGreedySearchPolicy) and modify it accordingly.

HongheZ commented 1 year ago

Thank you for your reply!