Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 884 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 884 Bytes

selinux-permissive

Force Enable Selinux to Permissive mode on Android 5+ (Sample)

You can try via emulator or terminal in your devices by command

su
/system/bin/getenforce

if output are "enforcing" may you can use the patch
if output are "Permissive" you already to rocks!

#Set Temporary You can set the SELinux to Permissive temporarily by running the bellow two commands in terminal

su
setenforce 0 

#Create script in init.d Set the SELinux to permissive on boot itself, if your rom support init.d script you can easy added new script to run script above
For Example in /etc/init.d dir, create a file 09setperm, add the below lines in the file and save it..

#!/system/sh
setenforce 0

Dont forget to set permission file to 777 (rwxrwxrwx), full
or you can use SelinuxModeChange app