Logcat logging patch

This commit is contained in:
ArtDev 2021-01-09 11:12:02 +03:00 committed by GitHub
commit 6b4787c10a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,9 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
def getDate() {
return new Date().format('yyyyMMdd')
}
android { android {
compileSdkVersion 29 compileSdkVersion 29
dexOptions { dexOptions {
@ -24,14 +28,10 @@ android {
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode 156237 versionCode 156237
versionName "3.3.1b_6409b_${getDate()}" versionName "3.3.1b_6409b_" + getDate()
multiDexEnabled true //important multiDexEnabled true //important
} }
def getDate() {
return new Date().format('yyyyMMdd')
}
buildTypes { buildTypes {
debug { debug {
minifyEnabled false minifyEnabled false

View File

@ -96,7 +96,7 @@ public class JREUtils
public void run() { public void run() {
try { try {
if (logcatPb == null) { if (logcatPb == null) {
logcatPb = new ProcessBuilder().command("logcat", /* "-G", "1mb", */ "-v", "brief", "*:S").redirectErrorStream(true); logcatPb = new ProcessBuilder().command("logcat", /* "-G", "1mb", */ "-v", "brief", "-s", "jrelog:I").redirectErrorStream(true);
} }
Log.i("jrelog-logcat","Clearing logcat"); Log.i("jrelog-logcat","Clearing logcat");

View File

@ -147,7 +147,7 @@ static void *logger_thread() {
rsize=rsize-1; rsize=rsize-1;
} }
buf[rsize]=0x00; buf[rsize]=0x00;
__android_log_write(ANDROID_LOG_SILENT,tag,buf); __android_log_write(ANDROID_LOG_INFO,tag,buf);
} }
} }