mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-28 02:42:07 +00:00
Due to various reasons, we cannot directly mount module files in /data into the real paths. Instead we bind mount the module root directory and remount this mirror with specific mount-point flags. Relevant to this bug, the module mount is mounted as read-only, which means the file attribute copy operation could fail in certain configurations. The fix here is to always copy file attributes into writable locations, so either in the tmpfs worker directory, or in the module directory under /data. A new test case is added to make sure this regression will no longer happen again in the future. Fix #9139