mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 14:16:58 -04:00
Increase logcat buffer size so it won't crash by Unexpected EOF
This commit is contained in:
parent
108a910195
commit
b78d05f664
@ -874,9 +874,9 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
||||
Thread t = new Thread(() -> {
|
||||
try {
|
||||
Log.i("jrelog-logcat","Clearing logcat");
|
||||
new ProcessBuilder().command("logcat","-c").redirectErrorStream(true).start();
|
||||
new ProcessBuilder().command("logcat", "-c").redirectErrorStream(true).start();
|
||||
Log.i("jrelog-logcat","Starting logcat");
|
||||
Process p = new ProcessBuilder().command("logcat","-v","brief","*:S").redirectErrorStream(true).start();
|
||||
Process p = new ProcessBuilder().command("logcat", "-G", "1m", "-v", "brief", "*:S").redirectErrorStream(true).start();
|
||||
byte[] buf = new byte[512];
|
||||
int len;
|
||||
while ((len = p.getInputStream().read(buf)) != -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user