It seems that the /mnt/sdcard doesn't have rw permissions. Can you check the filesystem permissions for /mnt/sdcard by executing mount from shell.?
On Fri, Apr 6, 2012 at 9:51 AM, Diego Torres Milano <[email protected]>wrote: > It seems that monkey tries to log the events to scriptlog.txt in the > external storage directory and it's not optional. > > > On Thursday, 5 April 2012 03:19:01 UTC-4, naieem.khan wrote: >> >> Hi, >> >> I need help with android monkey. I am using sdk version 4.0.3, API 15. >> >> I am getting the same error/warning in every section. The error is as >> follows: >> >> java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: >> EROFS (Read-only file system) >> >> I don't have any sd card mounted, and infact the above mentioned >> folders do not exist! I have no idea why the monkey is trying to read >> file from that location. >> >> I think there is a problem somewhere, can you tell me how to solve >> this? >> >> I am attaching the result for the following command, [our project >> package is android.se1 and I executed for seed (2 in this case]. The >> command is as follows: >> >> adb shell monkey –p android.se1 -s 2 –v 500 >> >> The results: >> >> :Monkey: seed=2 count=500 >> >> :AllowPackage: android.se1 >> >> :IncludeCategory: android.intent.category.**LAUNCHER >> >> :IncludeCategory: android.intent.category.MONKEY >> >> // Event percentages: >> >> // 0: 15.0% >> >> // 1: 10.0% >> >> // 2: 2.0% >> >> // 3: 15.0% >> >> // 4: 25.0% >> >> // 5: 15.0% >> >> // 6: 2.0% >> >> // 7: 2.0% >> >> // 8: 1.0% >> >> // 9: 13.0% >> >> :Switch: >> #Intent;action=android.intent.**action.MAIN;category=android.** >> intent.category.LAUNCHER;**launchFlags=0x10000000;** >> component=android.se1/.**MavBulletinActivity;end >> >> // Allowing start of Intent { act=android.intent.action.MAIN >> cat=[android.intent.category.**LAUNCHER] >> cmp=android.se1/.**MavBulletinActivity } in package android.se1 >> >> java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: >> EROFS (Read-only file system) >> >> java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: >> EROFS (Read-only file system) >> >> java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: >> EROFS (Read-only file system) >> >> :Sending Trackball (ACTION_MOVE): 0:(4.0,-2.0) >> >> java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: >> EROFS (Read-only file system) >> >> java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: >> EROFS (Read-only file system) >> >> java.io.FileNotFoundException: /mnt/sdcard/scriptlog.txt: open failed: >> EROFS (Read-only file system) >> >> ..............................**. >> >> In the end, >> >> Events injected: 500 >> >> :Dropped: keys=2 pointers=3 trackballs=0 flips=0 >> >> ## Network stats: elapsed time=41123ms (41123ms mobile, 0ms wifi, 0ms >> not connected) >> >> // Monkey finished >> >> >> I have attached the results for only one command, because rest of the >> commands show the same exception like above. >> >> Please give me some suggestions. I have an assignment due this monday. >> >> Thanks > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Thanks & Regards, M.Srikanth Kumar. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

