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
ff5c0d63
Commit
ff5c0d63
authored
Jan 01, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MagiskHide small fix
parent
198b14e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
main.c
jni/magiskhide/main.c
+1
-1
proc_monitor.c
jni/magiskhide/proc_monitor.c
+2
-0
No files found.
jni/magiskhide/main.c
View file @
ff5c0d63
...
@@ -19,7 +19,7 @@ static void terminate(int sig) {
...
@@ -19,7 +19,7 @@ static void terminate(int sig) {
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
>
0
)
{
if
(
argc
>
1
)
{
if
(
strcmp
(
argv
[
1
],
"--daemon"
)
==
0
)
if
(
strcmp
(
argv
[
1
],
"--daemon"
)
==
0
)
run_as_daemon
();
run_as_daemon
();
else
{
else
{
...
...
jni/magiskhide/proc_monitor.c
View file @
ff5c0d63
...
@@ -7,6 +7,8 @@ void monitor_proc() {
...
@@ -7,6 +7,8 @@ void monitor_proc() {
// Get the mount namespace of init
// Get the mount namespace of init
read_namespace
(
1
,
init_ns
,
32
);
read_namespace
(
1
,
init_ns
,
32
);
printf
(
"%s
\n
"
,
init_ns
);
// Get the mount namespace of zygote
// Get the mount namespace of zygote
FILE
*
p
=
popen
(
"/data/busybox/ps | grep zygote | grep -v grep"
,
"r"
);
FILE
*
p
=
popen
(
"/data/busybox/ps | grep zygote | grep -v grep"
,
"r"
);
while
(
fgets
(
buffer
,
sizeof
(
buffer
),
p
))
{
while
(
fgets
(
buffer
,
sizeof
(
buffer
),
p
))
{
...
...
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