mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
Logcat logging patch
This commit is contained in:
commit
6b4787c10a
@ -1,5 +1,9 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
def getDate() {
|
||||
return new Date().format('yyyyMMdd')
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
dexOptions {
|
||||
@ -24,14 +28,10 @@ android {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 156237
|
||||
versionName "3.3.1b_6409b_${getDate()}"
|
||||
versionName "3.3.1b_6409b_" + getDate()
|
||||
multiDexEnabled true //important
|
||||
}
|
||||
|
||||
def getDate() {
|
||||
return new Date().format('yyyyMMdd')
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
|
@ -96,7 +96,7 @@ public class JREUtils
|
||||
public void run() {
|
||||
try {
|
||||
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");
|
||||
|
@ -147,7 +147,7 @@ static void *logger_thread() {
|
||||
rsize=rsize-1;
|
||||
}
|
||||
buf[rsize]=0x00;
|
||||
__android_log_write(ANDROID_LOG_SILENT,tag,buf);
|
||||
__android_log_write(ANDROID_LOG_INFO,tag,buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user