I have a monkey test with my application in android device(LG G4).
The command is
adb shell monkey -p {package name} -v 2000
But it may accidentally enter settings and change my device's default value.
How to prevent it ?
Monkey support blacklist, you could your setting package name in blacklist then run Monkey, Monkey will not perform test in package which you set in blacklist.
you can do like this:
adb shell pm list packages
get your setting package nameadb shell monkey --pkg-blacklist-file /sdcard/blacklist.txt