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
70415a39
Commit
70415a39
authored
Jan 29, 2022
by
LoveSy
Committed by
John Wu
Jan 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not filter uid == 1000 for process info
parent
c9219649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
entry.cpp
native/jni/zygisk/entry.cpp
+16
-18
No files found.
native/jni/zygisk/entry.cpp
View file @
70415a39
...
...
@@ -332,26 +332,24 @@ static void get_process_info(int client, const sock_cred *cred) {
// really want to cache the app ID value. inotify will invalidate the app ID
// cache for us.
if
(
uid
!=
1000
)
{
int
manager_app_id
=
cached_manager_app_id
;
int
manager_app_id
=
cached_manager_app_id
;
if
(
manager_app_id
<
0
)
{
manager_app_id
=
get_manager_app_id
();
cached_manager_app_id
=
manager_app_id
;
}
if
(
manager_app_id
<
0
)
{
manager_app_id
=
get_manager_app_id
();
cached_manager_app_id
=
manager_app_id
;
}
if
(
to_app_id
(
uid
)
==
manager_app_id
)
{
flags
|=
PROCESS_IS_MAGISK_APP
;
}
if
(
denylist_enforced
)
{
flags
|=
DENYLIST_ENFORCING
;
}
if
(
is_deny_target
(
uid
,
process
))
{
flags
|=
PROCESS_ON_DENYLIST
;
}
if
(
uid_granted_root
(
uid
))
{
flags
|=
PROCESS_GRANTED_ROOT
;
}
if
(
to_app_id
(
uid
)
==
manager_app_id
)
{
flags
|=
PROCESS_IS_MAGISK_APP
;
}
if
(
denylist_enforced
)
{
flags
|=
DENYLIST_ENFORCING
;
}
if
(
is_deny_target
(
uid
,
process
))
{
flags
|=
PROCESS_ON_DENYLIST
;
}
if
(
uid_granted_root
(
uid
))
{
flags
|=
PROCESS_GRANTED_ROOT
;
}
xwrite
(
client
,
&
flags
,
sizeof
(
flags
));
...
...
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