mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-15 18:10:23 +00:00
Get API level from build.prop
This commit is contained in:
@@ -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 })
|
||||
|
@@ -4,10 +4,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <functional>
|
||||
|
||||
int prop_exist(const char *name);
|
||||
int setprop(const char *name, const char *value, bool trigger = true);
|
||||
std::string getprop(const char *name, bool persist = false);
|
||||
void getprop(void (*callback)(const char *, const char *, void *), void *cookie, bool persist = false);
|
||||
int deleteprop(const char *name, bool persist = false);
|
||||
int parse_prop_file(const char *filename, const std::function<bool (const char *, const char *)> &cb);
|
||||
int load_prop_file(const char *filename, bool trigger = true);
|
||||
|
Reference in New Issue
Block a user