Several cleanups

This commit is contained in:
topjohnwu 2017-07-13 23:42:01 +08:00
parent 56457bd325
commit e5b704eb32
4 changed files with 2 additions and 27 deletions

View File

@ -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

View File

@ -1,5 +1,3 @@
#include <sys/types.h>
#include <stdarg.h>
#include <stdbool.h>
#include "selinux/avc.h"
#include "selinux/context.h"

View File

@ -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; }

View File

@ -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) {