Get API level from build.prop

This commit is contained in:
topjohnwu
2019-01-20 15:20:34 -05:00
parent a4f8bd4ee0
commit fdf167db11
4 changed files with 41 additions and 26 deletions

View File

@@ -39,6 +39,7 @@
#define MAGISKHIDE_PROP "persist.magisk.hide"
extern char *argv0; /* For changing process name */
extern int SDK_INT;
#define applet_names ((const char *[]) { "magisk", "su", "resetprop", "magiskhide", "imgtool", nullptr })
#define init_applet ((const char *[]) { "magiskpolicy", "supolicy", nullptr })