Fixing "read: unexpected EOF!" error when using Logcat on Android 8.0