mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 20:45:24 +00:00
Check stub.xz existence
This commit is contained in:
parent
76fbf4634a
commit
57d83635c6
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user