mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Backup original sepolicy db for LD_PRELOAD strategy
This commit is contained in:
@@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user