mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 06:57:41 +00:00
9929e7d8e8
It's not important to check the return value of unlink(2) or even verify that the file exists. If this code is running, it means the system has rebooted, and thus the update file, if any, should be removed so that MagiskManager doesn't keep displaying the same message. We also handle this before we handle "disable" so that disabled modules don't keep requesting a reboot to update.