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
bb97cc59
Commit
bb97cc59
authored
Dec 04, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup and small fixes
parent
70a32226
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7 additions
and
15 deletions
+7
-15
.gitignore
.gitignore
+1
-3
build.py
build.py
+3
-3
.gitignore
core/.gitignore
+2
-0
bootstages.c
core/jni/core/bootstages.c
+0
-2
daemon.c
core/jni/core/daemon.c
+0
-1
log_monitor.c
core/jni/core/log_monitor.c
+0
-1
hide_utils.c
core/jni/magiskhide/hide_utils.c
+0
-2
cpio.c
core/jni/utils/cpio.c
+1
-0
list.c
core/jni/utils/list.c
+0
-3
No files found.
.gitignore
View file @
bb97cc59
/out
out
/obj
/libs
*.zip
*.zip
*.jks
*.jks
*.apk
*.apk
...
...
build.py
View file @
bb97cc59
...
@@ -58,7 +58,7 @@ def cp(source, target):
...
@@ -58,7 +58,7 @@ def cp(source, target):
def
rm
(
file
):
def
rm
(
file
):
try
:
try
:
os
.
remove
(
file
)
os
.
remove
(
file
)
except
OSError
as
e
:
except
OSError
as
e
:
if
e
.
errno
!=
errno
.
ENOENT
:
if
e
.
errno
!=
errno
.
ENOENT
:
raise
raise
...
@@ -435,8 +435,8 @@ clean_parser.add_argument('target', nargs='*')
...
@@ -435,8 +435,8 @@ clean_parser.add_argument('target', nargs='*')
clean_parser
.
set_defaults
(
func
=
cleanup
)
clean_parser
.
set_defaults
(
func
=
cleanup
)
if
len
(
sys
.
argv
)
==
1
:
if
len
(
sys
.
argv
)
==
1
:
parser
.
print_help
()
parser
.
print_help
()
sys
.
exit
(
1
)
sys
.
exit
(
1
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
...
...
core/.gitignore
View file @
bb97cc59
/build
/build
obj
libs
\ No newline at end of file
core/jni/core/bootstages.c
View file @
bb97cc59
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
#include <fcntl.h>
#include <fcntl.h>
#include <string.h>
#include <string.h>
#include <dirent.h>
#include <dirent.h>
#include <linux/loop.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/mount.h>
#include <sys/wait.h>
#include <sys/wait.h>
#include <selinux/selinux.h>
#include <selinux/selinux.h>
...
...
core/jni/core/daemon.c
View file @
bb97cc59
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
#include <unistd.h>
#include <unistd.h>
#include <fcntl.h>
#include <fcntl.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include <pthread.h>
#include <signal.h>
#include <signal.h>
#include <sys/un.h>
#include <sys/un.h>
...
...
core/jni/core/log_monitor.c
View file @
bb97cc59
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
*/
*/
#include <stdio.h>
#include <stdio.h>
#include <limits.h>
#include <pthread.h>
#include <pthread.h>
#include <unistd.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/wait.h>
...
...
core/jni/magiskhide/hide_utils.c
View file @
bb97cc59
...
@@ -4,10 +4,8 @@
...
@@ -4,10 +4,8 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <unistd.h>
#include <unistd.h>
#include <errno.h>
#include <dirent.h>
#include <dirent.h>
#include <string.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <selinux/selinux.h>
#include <selinux/selinux.h>
...
...
core/jni/utils/cpio.c
View file @
bb97cc59
...
@@ -168,6 +168,7 @@ void cpio_ln(struct vector *v, const char *target, const char *entry) {
...
@@ -168,6 +168,7 @@ void cpio_ln(struct vector *v, const char *target, const char *entry) {
cpio_entry
*
f
=
xcalloc
(
sizeof
(
*
f
),
1
);
cpio_entry
*
f
=
xcalloc
(
sizeof
(
*
f
),
1
);
f
->
mode
=
S_IFLNK
;
f
->
mode
=
S_IFLNK
;
f
->
filename
=
strdup
(
entry
);
f
->
filename
=
strdup
(
entry
);
f
->
filesize
=
strlen
(
target
)
+
1
;
f
->
data
=
strdup
(
target
);
f
->
data
=
strdup
(
target
);
cpio_vec_insert
(
v
,
f
);
cpio_vec_insert
(
v
,
f
);
fprintf
(
stderr
,
"Create symlink [%s] -> [%s]
\n
"
,
entry
,
target
);
fprintf
(
stderr
,
"Create symlink [%s] -> [%s]
\n
"
,
entry
,
target
);
...
...
core/jni/utils/list.c
View file @
bb97cc59
/* list.h - Double link list implementation
/* list.h - Double link list implementation
*/
*/
#include <stdlib.h>
#include <string.h>
#include "list.h"
#include "list.h"
void
init_list_head
(
struct
list_head
*
head
)
{
void
init_list_head
(
struct
list_head
*
head
)
{
...
...
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