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
e5b704eb
Commit
e5b704eb
authored
Jul 13, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several cleanups
parent
56457bd3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
27 deletions
+2
-27
Android.mk
jni/Android.mk
+0
-8
selinux_stub.c
jni/external/selinux_stub.c
+0
-2
sqlite3_stub.c
jni/external/sqlite3_stub.c
+0
-1
resetprop.cpp
jni/resetprop/resetprop.cpp
+2
-16
No files found.
jni/Android.mk
View file @
e5b704eb
...
...
@@ -52,13 +52,5 @@ include jni/external/Android.mk
# libsepol, static library
include jni/selinux/libsepol/Android.mk
#####################################################################
# In order to build separate binaries, please comment out everything
# above (including the lines for libraries)
# Then, uncomment the line you want below
#####################################################################
# include jni/resetprop/Android.mk
# include jni/magiskpolicy/Android.mk
# Build magiskboot
include jni/magiskboot/Android.mk
jni/external/selinux_stub.c
View file @
e5b704eb
#include <sys/types.h>
#include <stdarg.h>
#include <stdbool.h>
#include "selinux/avc.h"
#include "selinux/context.h"
...
...
jni/external/sqlite3_stub.c
View file @
e5b704eb
#include <stdlib.h>
#include "sqlite3.h"
SQLITE_API
const
char
*
sqlite3_libversion
(
void
)
{
return
0
;
}
SQLITE_API
const
char
*
sqlite3_sourceid
(
void
)
{
return
0
;
}
...
...
jni/resetprop/resetprop.cpp
View file @
e5b704eb
...
...
@@ -60,27 +60,13 @@
#define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
#include "_system_properties.h"
#include <sys/system_properties.h>
#ifdef INDEP_BINARY
int
resetprop_main
(
int
argc
,
char
*
argv
[]);
int
main
(
int
argc
,
char
*
argv
[])
{
return
resetprop_main
(
argc
,
argv
);
}
#define PRINT_D(...) if (verbose) printf(__VA_ARGS__)
#define PRINT_E(...) fprintf(stderr, __VA_ARGS__)
#else
#include "system_properties.h"
#include "magisk.h"
#include "resetprop.h"
#define PRINT_D(...) { LOGD(__VA_ARGS__); if (verbose) printf(__VA_ARGS__); }
#define PRINT_E(...) { LOGE(__VA_ARGS__); fprintf(stderr, __VA_ARGS__); }
#endif
#include "resetprop.h"
static
int
verbose
=
0
;
static
bool
is_legal_property_name
(
const
char
*
name
,
size_t
namelen
)
{
...
...
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