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
e733484f
Commit
e733484f
authored
Jan 01, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some devices don't like all log buffers
parent
e5c31830
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
log_monitor.c
core/jni/core/log_monitor.c
+2
-2
proc_monitor.c
core/jni/magiskhide/proc_monitor.c
+2
-2
No files found.
core/jni/core/log_monitor.c
View file @
e733484f
...
...
@@ -55,7 +55,7 @@ static void *logger_thread(void *args) {
while
(
1
)
{
// Start logcat
log_pid
=
exec_command
(
0
,
&
log_fd
,
NULL
,
"logcat"
,
"-b"
,
"
all"
,
"-v"
,
"threadtime"
,
"-s"
,
"am_proc_start
"
,
"Magisk"
,
NULL
);
log_pid
=
exec_command
(
0
,
&
log_fd
,
NULL
,
"logcat"
,
"-b"
,
"
events"
,
"-b"
,
"main"
,
"-v"
,
"threadtime"
,
"-s"
,
"am_proc_start"
,
"-s
"
,
"Magisk"
,
NULL
);
while
(
fdgets
(
line
,
sizeof
(
line
),
log_fd
))
{
for
(
int
i
=
0
;
i
<
(
sizeof
(
log_events
)
/
sizeof
(
struct
log_listener
));
++
i
)
{
if
(
log_events
[
i
].
fd
>
0
&&
log_events
[
i
].
filter
(
line
))
{
...
...
@@ -74,7 +74,7 @@ static void *logger_thread(void *args) {
waitpid
(
log_pid
,
NULL
,
0
);
// Clear buffer before restart
exec_command_sync
(
"logcat"
,
"-b"
,
"
all
"
,
"-c"
,
NULL
);
exec_command_sync
(
"logcat"
,
"-b"
,
"
events"
,
"-b"
,
"main
"
,
"-c"
,
NULL
);
}
// Should never be here, but well...
...
...
core/jni/magiskhide/proc_monitor.c
View file @
e733484f
...
...
@@ -176,8 +176,8 @@ void proc_monitor() {
// Get the mount namespace of zygote
zygote_num
=
0
;
while
(
!
zygote_num
)
{
// Check zygote every
2 sec
s
sleep
(
2
);
// Check zygote every
10 m
s
usleep
(
10000
);
ps_filter_proc_name
(
"zygote"
,
store_zygote_ns
);
}
ps_filter_proc_name
(
"zygote64"
,
store_zygote_ns
);
...
...
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