Backup original sepolicy db for LD_PRELOAD strategy

This commit is contained in:
Wang Han
2026-08-27 05:38:01 +00:00
committed by John Wu
parent 5480fc41c3
commit 5a28d2fcfc
+3
View File
@@ -225,6 +225,9 @@ impl MagiskInit {
let mut sepol = SePolicy::from_file(preload_policy());
// Keep a copy of the original policy for future use
preload_policy().copy_to(MOCK_LOAD)?;
// Remove the files before loading the policy
preload_policy().remove()?;
preload_ack().remove()?;