1. Add exceptions entries the the SELinux service list (recommended)
Android's SELinux service list is stored in file:
'foo' can be added to the list as a system service as shown in the snippet below.
2. Disable the SELinux Mechanism
The SELinux mechanism can be disabled altogether by altering Linux's initialization process. The init.rc found in
must be modified to include setenforce 0. Alternatively, setenforce 1 or removing the command would re-enable SElinux. The command has been included in init.rc under on init in the snippet below.