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
52ba6d11
Unverified
Commit
52ba6d11
authored
Aug 07, 2022
by
残页
Committed by
GitHub
Aug 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't let remote errors crash Zygisk
Fix #6095
parent
7357a35f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
daemon.cpp
native/src/core/daemon.cpp
+3
-3
zygisk.hpp
native/src/zygisk/zygisk.hpp
+1
-0
No files found.
native/src/core/daemon.cpp
View file @
52ba6d11
...
...
@@ -447,13 +447,13 @@ int connect_daemon(int req, bool create) {
break
;
case
MainResponse
:
:
ERROR
:
LOGE
(
"Daemon error
\n
"
);
exit
(
-
1
)
;
return
-
1
;
case
MainResponse
:
:
ROOT_REQUIRED
:
LOGE
(
"Root is required for this operation
\n
"
);
exit
(
-
1
)
;
return
-
1
;
case
MainResponse
:
:
ACCESS_DENIED
:
LOGE
(
"Access denied
\n
"
);
exit
(
-
1
)
;
return
-
1
;
default
:
__builtin_unreachable
();
}
...
...
native/src/zygisk/zygisk.hpp
View file @
52ba6d11
...
...
@@ -59,6 +59,7 @@ int remote_request_unmount();
inline
int
zygisk_request
(
int
req
)
{
int
fd
=
connect_daemon
(
MainRequest
::
ZYGISK
);
if
(
fd
<
0
)
return
fd
;
write_int
(
fd
,
req
);
return
fd
;
}
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