Add magisk daemon

This commit is contained in:
topjohnwu
2017-04-08 07:37:43 +08:00
parent a223f6056e
commit 054a1e5ea4
10 changed files with 394 additions and 18 deletions

10
jni/daemon/daemon.h Normal file
View File

@@ -0,0 +1,10 @@
/* daemon.h - Utility functions for daemon-client communication
*/
// socket_trans.c
int recv_fd(int sockfd);
void send_fd(int sockfd, int fd);
int read_int(int fd);
void write_int(int fd, int val);
char* read_string(int fd);
void write_string(int fd, const char* val);