droidbot icon indicating copy to clipboard operation
droidbot copied to clipboard

How to record manual events and stop droidbot?

Open wsyzzz opened this issue 5 years ago • 1 comments

Hi, everyone

I want to record my manual events and get UTG. I tried "none" policy and "monkey" policy, and it seemed endless so that I have to use 'crtl+C' to stop it. But the results(index.html in output_dir) showed nothing.

Below is my command droidbot -a <my_apk> -o <my_dir> -policy none -keep_env -accessibility_auto -keep_app

Any advice would be appreciated.

wsyzzz avatar Sep 11 '19 08:09 wsyzzz

Hi, since the monkey policy enhances the adb shell command, it doesn't support screenshots or an UTG (it was mentioned here: #132 ). But I also encountered the problem, that DroidBot doesn't stop itself and just writes "INFO:InputEventManager:". It doesn't end until I use ctrl+c to kill the process. While the output goes on, there's no more interaction on the phone.

This was the output (well, parts of it) when I used monkey and -count 100:

[...] INFO:InputEventManager:Events injected: 100

INFO:InputEventManager::Sending rotation degree=0, persist=false

INFO:InputEventManager::Dropped: keys=0 pointers=0 trackballs=0 flips=1 rotations=0

INFO:InputEventManager:## Network stats: elapsed time=1012ms (0ms mobile, 0ms wifi, 1012ms not connected)

INFO:InputEventManager:// Monkey finished

INFO:InputEventManager: INFO:InputEventManager: INFO:InputEventManager: INFO:InputEventManager: INFO:InputEventManager: INFO:InputEventManager: ... INFO:InputEventManager: ^CINFO:InputEventManager:

#!![This is where i used ctrl+c]

INFO:InputEventManager:Finish sending events [CONNECTION] ADB is disconnected [CONNECTION] Minicap is disconnected [CONNECTION] UserInputMonitor is disconnected [CONNECTION] Logcat is disconnected WARNING:DroidBotIme:Failed to disconnect DroidBotIME! INFO:DroidBot:DroidBot Stopped [CONNECTION] ProcessMonitor is disconnected

Is there a solution for this? Thanks!

ThePearhead avatar Feb 20 '22 09:02 ThePearhead