Using Nexus 5 with AospExtended ROM (Android 9) 19/04/05
The ROM, by default, has the SELinux policy set to Permissive instead of Enforcing.
Is there any way, perhaps using TWRP Recovery, to change the SELinux policy to Enforcing? perhaps a similar Android 9 ROM
Some apps such as Google Pay will not work if the phone is rooted or the SELinux policy is not set to Enforcing. Also, feel slight safer if the NSA SELinux security policy was enforced.
Advice appreciated
init
during boot process onuser
builds of a ROM. If you are oneng
oruserdebug
build, you need to set SELinux enforcing manually. You can use aninit.d
script or directly create an init service (.rc
) file for the purpose. Make sure you have a working SELinux policy file before setting Enforcing. Related: android.stackexchange.com/a/209374/218526