Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
e87d989c
Commit
e87d989c
authored
Mar 24, 2017
by
Jasmin Hassan
Committed by
topjohnwu
Mar 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix proccess monitor for lsskernel 6.0.1 (3.8UX)
parent
64d61bae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
proc_monitor.c
jni/magiskhide/proc_monitor.c
+3
-3
No files found.
jni/magiskhide/proc_monitor.c
View file @
e87d989c
...
@@ -27,7 +27,7 @@ void monitor_proc() {
...
@@ -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() {
...
@@ -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
;
...
@@ -79,4 +79,4 @@ void monitor_proc() {
...
@@ -79,4 +79,4 @@ void monitor_proc() {
// Close the logcat monitor
// Close the logcat monitor
pclose
(
p
);
pclose
(
p
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment