Skip to content

Miyaku/selinux-permissive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages