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
605eae21
Commit
605eae21
authored
Feb 11, 2022
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary read/write
Close #5425
parent
93eb277a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
entry.cpp
native/jni/zygisk/entry.cpp
+4
-1
hook.cpp
native/jni/zygisk/hook.cpp
+0
-1
No files found.
native/jni/zygisk/entry.cpp
View file @
605eae21
...
...
@@ -362,7 +362,10 @@ static void get_process_info(int client, const sock_cred *cred) {
send_fds
(
client
,
fds
.
data
(),
fds
.
size
());
}
// The following will only happen for system_server
if
(
uid
!=
1000
||
process
!=
"system_server"
)
return
;
// Collect module status from system_server
int
slots
=
read_int
(
client
);
int
id
=
0
;
for
(
int
i
=
0
;
i
<
slots
;
++
i
)
{
...
...
native/jni/zygisk/hook.cpp
View file @
605eae21
...
...
@@ -456,7 +456,6 @@ void HookContext::nativeSpecializeAppProcess_pre() {
}
else
if
(
fd
>=
0
)
{
run_modules_pre
(
module_fds
);
}
write_int
(
fd
,
0
);
close
(
fd
);
close_fds
();
...
...
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