Dump stub app to MAGISKTMP/stub.apk

This commit is contained in:
vvb2060
2022-03-18 04:04:13 +08:00
committed by John Wu
parent 01a1213463
commit 9de6e8846b
4 changed files with 20 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ bool unxz(int fd, const uint8_t *buf, size_t size) {
return true;
}
static int dump_manager(const char *path, mode_t mode) {
int dump_manager(const char *path, mode_t mode) {
int fd = xopen(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, mode);
if (fd < 0)
return 1;