Several cleanups
This commit is contained in:
parent
56457bd325
commit
e5b704eb32
@ -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
|
||||
|
2
jni/external/selinux_stub.c
vendored
2
jni/external/selinux_stub.c
vendored
@ -1,5 +1,3 @@
|
||||
#include <sys/types.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include "selinux/avc.h"
|
||||
#include "selinux/context.h"
|
||||
|
1
jni/external/sqlite3_stub.c
vendored
1
jni/external/sqlite3_stub.c
vendored
@ -1,4 +1,3 @@
|
||||
#include <stdlib.h>
|
||||
#include "sqlite3.h"
|
||||
SQLITE_API const char *sqlite3_libversion(void) { return 0; }
|
||||
SQLITE_API const char *sqlite3_sourceid(void) { return 0; }
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user