Android: Using Categories in Monkey

前端 未结 2 1447
暖寄归人
暖寄归人 2021-01-17 14:48

How do I use the categories option of the monkey tool?

The relevant portion of my manifest file looks like this:

   

        
2条回答
  •  走了就别回头了
    2021-01-17 15:43

    As far as I can understand by looking at the Monkey source code is that the -c argument stands for "main-category", it will only work in combination with a main-action. That the -c/main-categories criteria will only work when the monkey tries to start the app with "Implicit Intents" and not "Explicit Intents" within the app.

    
         
        
    
    

    https://android.googlesource.com/platform/development/+/master/cmds/monkey/src/com/android/commands/monkey/Monkey.java

提交回复
热议问题