Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Commit

Permalink
Add LiveBoot support
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Jun 7, 2017
1 parent feec3e8 commit 193d160
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ void otherToSU() {
// suMiscL6
if (sepol_exists("audioserver"))
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
Expand Down

0 comments on commit 193d160

Please sign in to comment.