mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 23:00:45 -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(() -> {
|
Thread t = new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
Log.i("jrelog-logcat","Clearing logcat");
|
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");
|
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];
|
byte[] buf = new byte[512];
|
||||||
int len;
|
int len;
|
||||||
while ((len = p.getInputStream().read(buf)) != -1) {
|
while ((len = p.getInputStream().read(buf)) != -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user