diff options
| author | Yu Shan Emily Lau <yslau@google.com> | 2012-09-21 16:25:54 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2012-09-21 16:25:54 -0700 |
| commit | 0c8fe324e579842cb04818a96016ef7b929e625a (patch) | |
| tree | 19eac0391399620071ee14f992279f1202427c3b /cmds | |
| parent | 253dbf5569229a4d9db361f83a0e0067a81d0aaa (diff) | |
| parent | 1e1926db0775acd045260511e5c2b62e596e377d (diff) | |
| download | android_development-0c8fe324e579842cb04818a96016ef7b929e625a.tar.gz android_development-0c8fe324e579842cb04818a96016ef7b929e625a.tar.bz2 android_development-0c8fe324e579842cb04818a96016ef7b929e625a.zip | |
am 1e1926db: Merge "For the recent SD card access change. The non-zogyte process need to use the Environment#getLegacyExternalStorage to access the sdcard." into jb-mr1-dev
* commit '1e1926db0775acd045260511e5c2b62e596e377d':
For the recent SD card access change. The non-zogyte process need to use the Environment#getLegacyExternalStorage to access the sdcard.
Diffstat (limited to 'cmds')
| -rw-r--r-- | cmds/monkey/src/com/android/commands/monkey/Monkey.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/monkey/src/com/android/commands/monkey/Monkey.java b/cmds/monkey/src/com/android/commands/monkey/Monkey.java index 706dd0f80..c8a480fd6 100644 --- a/cmds/monkey/src/com/android/commands/monkey/Monkey.java +++ b/cmds/monkey/src/com/android/commands/monkey/Monkey.java @@ -411,7 +411,7 @@ public class Monkey { if (mRequestBugreport) { logOutput = new BufferedWriter(new FileWriter(new File(Environment - .getExternalStorageDirectory(), reportName), true)); + .getLegacyExternalStorageDirectory(), reportName), true)); } // pipe everything from process stdout -> System.err InputStream inStream = p.getInputStream(); @@ -444,7 +444,7 @@ public class Monkey { // TO DO: Add the script file name to the log. try { Writer output = new BufferedWriter(new FileWriter(new File( - Environment.getExternalStorageDirectory(), "scriptlog.txt"), true)); + Environment.getLegacyExternalStorageDirectory(), "scriptlog.txt"), true)); output.write("iteration: " + count + " time: " + MonkeyUtils.toCalendarTime(System.currentTimeMillis()) + "\n"); output.close(); |
