mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-23 07:29:07 -08:00
Don't expose module_list
This commit is contained in:
@@ -25,7 +25,7 @@ using namespace std;
|
||||
#define TYPE_CUSTOM (1 << 5) /* custom node type overrides all */
|
||||
#define TYPE_DIR (TYPE_INTER|TYPE_SKEL|TYPE_ROOT)
|
||||
|
||||
vector<string> module_list;
|
||||
static vector<string> module_list;
|
||||
|
||||
class node_entry;
|
||||
class dir_node;
|
||||
@@ -671,10 +671,7 @@ static void collect_modules() {
|
||||
void handle_modules() {
|
||||
prepare_modules();
|
||||
collect_modules();
|
||||
|
||||
// Execute module scripts
|
||||
LOGI("* Running module post-fs-data scripts\n");
|
||||
exec_module_script("post-fs-data", module_list);
|
||||
exec_module_scripts("post-fs-data");
|
||||
|
||||
// Recollect modules (module scripts could remove itself)
|
||||
module_list.clear();
|
||||
@@ -699,3 +696,7 @@ void foreach_modules(const char *name) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void exec_module_scripts(const char *stage) {
|
||||
exec_module_scripts(stage, module_list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user