Skip to content

Commit

Permalink
Remove log dumping
Browse files Browse the repository at this point in the history
  • Loading branch information
charithag committed Oct 24, 2018
1 parent bc59637 commit d15799d
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Environment;
import android.support.multidex.MultiDexApplication;
import android.util.Log;

Expand All @@ -33,8 +32,6 @@
import org.wso2.iot.agent.utils.CommonUtils;
import org.wso2.iot.agent.utils.Constants;

import java.io.IOException;

public class AgentApplication extends MultiDexApplication {

// Configs
Expand Down Expand Up @@ -83,12 +80,5 @@ public void onCreate() {
if (Constants.SYSTEM_APP_ENABLED) {
CommonUtils.registerSystemAppReceiver(this);
}

String filePath = Environment.getExternalStorageDirectory() + "/logcat-" + System.currentTimeMillis() + ".txt";
try {
Runtime.getRuntime().exec(new String[]{"logcat", "-f", filePath});
} catch (IOException e) {
e.printStackTrace();
}
}
}

0 comments on commit d15799d

Please sign in to comment.