mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 08:32:07 +00:00
Support Android Q new split sepolicy setup
This commit is contained in:
@@ -5,25 +5,19 @@
|
||||
#define _MAGISKPOLICY_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <selinux.h>
|
||||
|
||||
#define ALL NULL
|
||||
|
||||
// split policy paths
|
||||
#define PLAT_POLICY_DIR "/system/etc/selinux/"
|
||||
#define NONPLAT_POLICY_DIR "/vendor/etc/selinux/"
|
||||
#define SPLIT_PLAT_CIL PLAT_POLICY_DIR "plat_sepolicy.cil"
|
||||
#define SPLIT_PLAT_MAPPING PLAT_POLICY_DIR "mapping/%s.cil"
|
||||
#define SPLIT_PRECOMPILE NONPLAT_POLICY_DIR "precompiled_sepolicy"
|
||||
#define SPLIT_NONPLAT_VER NONPLAT_POLICY_DIR "plat_sepolicy_vers.txt"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// policydb functions
|
||||
int load_policydb(const char *filename);
|
||||
int load_policydb(const char *file);
|
||||
int load_split_cil();
|
||||
int compile_split_cil();
|
||||
int dump_policydb(const char *filename);
|
||||
int dump_policydb(const char *file);
|
||||
void destroy_policydb();
|
||||
|
||||
// Handy functions
|
||||
|
||||
Reference in New Issue
Block a user