Don't expose module_list

This commit is contained in:
topjohnwu
2020-05-18 05:36:02 -07:00
parent c3e045e367
commit 4497e0aaca
4 changed files with 21 additions and 25 deletions

View File

@@ -42,22 +42,23 @@ extern bool RECOVERY_MODE;
extern int DAEMON_STATE;
#define APP_DATA_DIR (SDK_INT >= 24 ? "/data/user_de" : "/data/user")
extern std::vector<std::string> module_list;
// Daemon handlers
void post_fs_data(int client);
void late_start(int client);
void boot_complete(int client);
void magiskhide_handler(int client);
void su_daemon_handler(int client, struct ucred *credential);
void foreach_modules(const char *name);
void su_daemon_handler(int client, ucred *credential);
// Misc
int connect_daemon(bool create = false);
void unlock_blocks();
void reboot();
// Module stuffs
void handle_modules();
void magic_mount();
void reboot();
void foreach_modules(const char *name);
void exec_module_scripts(const char *stage);
// MagiskHide
void auto_start_magiskhide();
@@ -65,6 +66,6 @@ int stop_magiskhide();
// Scripting
void exec_script(const char *script);
void exec_common_script(const char *stage);
void exec_module_script(const char *stage, const std::vector<std::string> &module_list);
void exec_common_scripts(const char *stage);
void exec_module_scripts(const char *stage, const std::vector<std::string> &module_list);
void install_apk(const char *apk);