Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent monkey to open status bar?

I want to use android's monkey for stress test my app but monkey opens status bar and changes settings on my phone.

To start monkey I use:

 adb -s S5660a19e722f shell monkey -p com.lmmx.app -v -v -v 10000 --throttle 500

I thought that -p com.lmmx.app parameter must prevent this... I use 2.3.5 and 2.3.6 phones for testing.

Any suggestions would be appreciated.

like image 721
lordmegamax Avatar asked Mar 07 '14 13:03

lordmegamax


People also ask

What is the Status bar on my phone?

The status bar on Android is the bar of icons running across the top of your screen. The top right corner is dedicated to the major status of your device, while the left is used for app notifications.


1 Answers

I have a 5.0(lollipop) phone and was able to do this with screen pinning

  1. activate it with settings>security>screen pinning
  2. press the app switcher/multitasking button next to your home button
  3. on the bottom corner of each app in the recents apps list will be a pin icon

From there you can run monkey on your device without it changing.

like image 171
user3044482 Avatar answered Oct 13 '22 14:10

user3044482