mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-18 05:58:30 +00:00
Fix proccess monitor for lsskernel 6.0.1 (3.8UX)
This commit is contained in:
parent
64d61bae08
commit
e87d989ca3
@ -27,7 +27,7 @@ void monitor_proc() {
|
|||||||
fprintf(logfile, "\n");
|
fprintf(logfile, "\n");
|
||||||
|
|
||||||
// Monitor am_proc_start
|
// Monitor am_proc_start
|
||||||
p = popen("while true; do logcat -b events -c; logcat -b events -v raw -s am_proc_start; sleep 1; done", "r");
|
p = popen("logcat -b events -v raw -s am_proc_start", "r");
|
||||||
|
|
||||||
while(!feof(p)) {
|
while(!feof(p)) {
|
||||||
//Format of am_proc_start is (as of Android 5.1 and 6.0)
|
//Format of am_proc_start is (as of Android 5.1 and 6.0)
|
||||||
@ -43,7 +43,7 @@ void monitor_proc() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
char processName[256];
|
char processName[256];
|
||||||
int ret = sscanf(buffer, "[%*d %d %*d %256s", &pid, processName);
|
int ret = sscanf(buffer, "[%*d %d %*d %*d %256s", &pid, processName);
|
||||||
|
|
||||||
if(ret != 2)
|
if(ret != 2)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user