Auto start magiskhide

This commit is contained in:
topjohnwu
2017-04-17 16:36:49 +08:00
parent d9c3a3c9a9
commit 08527dde9b
21 changed files with 279 additions and 184 deletions

View File

@@ -124,6 +124,7 @@ int read_int(int fd) {
}
void write_int(int fd, int val) {
if (fd < 0) return;
xwrite(fd, &val, sizeof(int));
}
@@ -140,6 +141,7 @@ char* read_string(int fd) {
}
void write_string(int fd, const char* val) {
if (fd < 0) return;
int len = strlen(val);
write_int(fd, len);
xwrite(fd, val, len);