Remove -G 1m from logcat as it invalid arguments

This commit is contained in:
Tran Khanh Duy 2020-09-12 21:17:22 +07:00 committed by GitHub
parent 04cf84dd64
commit f97a74b9f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -876,7 +876,7 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
Log.i("jrelog-logcat","Clearing logcat");
new ProcessBuilder().command("logcat", "-c").redirectErrorStream(true).start();
Log.i("jrelog-logcat","Starting logcat");
Process p = new ProcessBuilder().command("logcat", "-G", "1m", "-v", "brief", "*:S").redirectErrorStream(true).start();
Process p = new ProcessBuilder().command("logcat", /* "-G", "1mb", */ "-v", "brief", "*:S").redirectErrorStream(true).start();
byte[] buf = new byte[512];
int len;
while ((len = p.getInputStream().read(buf)) != -1) {