Separate scripting code

This commit is contained in:
topjohnwu
2019-02-15 20:45:05 -05:00
parent a19c7215d2
commit 19ee189468
7 changed files with 140 additions and 122 deletions

View File

@@ -7,6 +7,8 @@
#include <pthread.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <string>
#include <vector>
// Commands require connecting to daemon
enum {
@@ -62,6 +64,15 @@ void post_fs_data(int client);
void late_start(int client);
void boot_complete(int client);
/*************
* Scripting *
*************/
void exec_common_script(const char *stage);
void exec_module_script(const char *stage, const std::vector<std::string> &module_list);
void migrate_img(const char *img);
void install_apk(const char *apk);
/**************
* MagiskHide *
**************/

View File

@@ -4,7 +4,7 @@
#ifndef _MAGISK_H_
#define _MAGISK_H_
#include "logging.h"
#include <logging.h>
#define MAIN_SOCKET "d30138f2310a9fb9c54a3e0c21f58591"
#define LOG_SOCKET "5864cd77f2f8c59b3882e2d35dbf51e4"