The arguments seem to be order-dependent. Try something along the lines of:
adb shell monkey -s 1706492320 -v --pkg-blacklist-file /data/blacklist.txt 2000 It looks strange, I know, but it should work. Right at the beginning, directly under your command and the line: :Monkey: seed=1706492320 count=2000 you should see: :DisallowPackage: com.android.nfctester :DisallowPackage: com.google.ase etc. if those are the lines in your blacklist.txt file. That way you won't have to wait to see if it worked correctly, or not. Cheers, John On Monday, May 30, 2011 8:09:50 AM UTC-7, Tiago Maluta wrote: > > I'm using monkey to send random events to whole Android system but I'd > like to exclude some "packages" from that. I know there is a option > --pkg-blacklist-file for that but I'm facing some strange behavior. > > $ adb push blacklist.txt /data/local > $ adb shell monkey --pkg-blacklist-file /data/local/blacklist.txt > --ignore-crashes -v 2000 --seed 1706492320 > > My blacklist.txt contains (reading the source leads me to put each > package on different lines): > > $ cat blacklist.txt > com.android.settings > com.android.music > > But I still got monkey starting audio files, my logcat output: > I/AudioService( 2290): Remote Control > registerMediaButtonEventReceiver() for > > ComponentInfo{com.android.music/com.android.music.MediaButtonIntentReceiver} > > Am I missing the right package? I tried add other like "android.media" > or "android.speech" without success in audio blocking... > > Best regards, > > --tm > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.