How to Enable or Disable SELinux on Android

Please specify version of Android

Moderator: xeont

How to Enable or Disable SELinux on Android

Postby Paul » Fri Oct 24, 2014 2:59 pm

Hi Everyone,

I want to know how to Enable and Disable SELinux on Android OS.

I have downloaded a Terminal app on my Samsung S3.

Code: Select all
getenforce


gives me result of "Enforcing"

but
Code: Select all
setenforce 0
permission denied.
Paul
 
Posts: 2
Joined: Wed Jul 03, 2013 4:27 pm

Re: How to Enable or Disable SELinux on Android

Postby Rahim17 » Tue Feb 02, 2016 11:01 am

I have been trying to disable SELinux on Android 4.3 for a while now and this is what i came up with.

On Samsung S4 Android 4.3, setenforce 0 will change to Permissive mode.

On Samsung Note 3 Android 4.3, setenforce 0 will NOT change SELinux status.

I have tried Nexus 4 Android 4.3, however by default it is Permissive mode
Rahim17
 

Re: How to Enable or Disable SELinux on Android

Postby crylium » Thu Feb 25, 2016 1:21 pm

You need elevated privileges to disable SELinux.
crylium
 
Posts: 3
Joined: Wed Jan 27, 2016 12:00 pm


Return to SElinux for Android (SEAndroid)

Who is online

Users browsing this forum: No registered users and 1 guest
cron