Check stub.xz existence

This commit is contained in:
topjohnwu 2022-12-26 16:06:28 -08:00 committed by John Wu
parent 76fbf4634a
commit 57d83635c6
1 changed files with 1 additions and 2 deletions

View File

@ -172,8 +172,7 @@ static void extract_files(bool sbin) {
} else {
xsymlink("./magisk32", "magisk");
}
{
if (access(stub_xz, F_OK) == 0) {
auto stub = mmap_data(stub_xz);
unlink(stub_xz);
int fd = xopen("stub.apk", O_WRONLY | O_CREAT, 0);