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.
This commit is contained in:
@@ -411,7 +411,7 @@ public class Monkey {
|
|||||||
if (mRequestBugreport) {
|
if (mRequestBugreport) {
|
||||||
logOutput =
|
logOutput =
|
||||||
new BufferedWriter(new FileWriter(new File(Environment
|
new BufferedWriter(new FileWriter(new File(Environment
|
||||||
.getExternalStorageDirectory(), reportName), true));
|
.getLegacyExternalStorageDirectory(), reportName), true));
|
||||||
}
|
}
|
||||||
// pipe everything from process stdout -> System.err
|
// pipe everything from process stdout -> System.err
|
||||||
InputStream inStream = p.getInputStream();
|
InputStream inStream = p.getInputStream();
|
||||||
@@ -444,7 +444,7 @@ public class Monkey {
|
|||||||
// TO DO: Add the script file name to the log.
|
// TO DO: Add the script file name to the log.
|
||||||
try {
|
try {
|
||||||
Writer output = new BufferedWriter(new FileWriter(new File(
|
Writer output = new BufferedWriter(new FileWriter(new File(
|
||||||
Environment.getExternalStorageDirectory(), "scriptlog.txt"), true));
|
Environment.getLegacyExternalStorageDirectory(), "scriptlog.txt"), true));
|
||||||
output.write("iteration: " + count + " time: "
|
output.write("iteration: " + count + " time: "
|
||||||
+ MonkeyUtils.toCalendarTime(System.currentTimeMillis()) + "\n");
|
+ MonkeyUtils.toCalendarTime(System.currentTimeMillis()) + "\n");
|
||||||
output.close();
|
output.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user