Commit 57d83635 authored by topjohnwu's avatar topjohnwu Committed by John Wu

Check stub.xz existence

parent 76fbf463
...@@ -172,8 +172,7 @@ static void extract_files(bool sbin) { ...@@ -172,8 +172,7 @@ static void extract_files(bool sbin) {
} else { } else {
xsymlink("./magisk32", "magisk"); xsymlink("./magisk32", "magisk");
} }
if (access(stub_xz, F_OK) == 0) {
{
auto stub = mmap_data(stub_xz); auto stub = mmap_data(stub_xz);
unlink(stub_xz); unlink(stub_xz);
int fd = xopen("stub.apk", O_WRONLY | O_CREAT, 0); int fd = xopen("stub.apk", O_WRONLY | O_CREAT, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment