mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 21:40:15 -07:00
Increase logcat buffer size so it won't crash by Unexpected EOF
This commit is contained in:
parent
108a910195
commit
b78d05f664
1 changed files with 2 additions and 2 deletions
|
|
@ -876,7 +876,7 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
||||||
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…
Add table
Add a link
Reference in a new issue