mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 21:45:27 +00:00
Add LiveBoot support
This commit is contained in:
parent
feec3e8255
commit
193d160bed
7
rules.c
7
rules.c
@ -142,6 +142,13 @@ void otherToSU() {
|
|||||||
// suMiscL6
|
// suMiscL6
|
||||||
if (sepol_exists("audioserver"))
|
if (sepol_exists("audioserver"))
|
||||||
sepol_allow("audioserver", "audioserver", "process", "execmem");
|
sepol_allow("audioserver", "audioserver", "process", "execmem");
|
||||||
|
|
||||||
|
// Liveboot
|
||||||
|
sepol_allow("surfaceflinger", "su", "process", "ptrace");
|
||||||
|
sepol_allow("surfaceflinger", "su", "binder", "transfer");
|
||||||
|
sepol_allow("surfaceflinger", "su", "binder", "call");
|
||||||
|
sepol_allow("surfaceflinger", "su", "fd", "use");
|
||||||
|
sepol_allow("debuggerd", "su", "process", "ptrace");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Minimal boot image patch, Samsung requires these patches
|
// Minimal boot image patch, Samsung requires these patches
|
||||||
|
Loading…
Reference in New Issue
Block a user