mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 09:07:48 -04:00
Logcat logging patch
This commit is contained in:
commit
6b4787c10a
@ -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
|
||||||
|
@ -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");
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user