Home > Software design >  How to completely disable selinux policy check while building AOSP?
How to completely disable selinux policy check while building AOSP?

Time:04-21

sometimes the selinux policy is too complicated and fix the problem is time wasting its not my concern

so how to completely disable selinux policy check while building AOSP?

CodePudding user response:

Don't set BOARD_SEPOLICY_DIRS in your device config. So your private sepolicy will not be compiled.

CodePudding user response:

Set selinux kernel argument to permissive

Source: https://source.android.com/security/selinux/validate#switching_to_permissive

  • Related