mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-06-01 21:58:55 +02: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