Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP][4.3++]SELinuxModeChanger[PRE-ALPHA]

OP MrBIMC

13th November 2013, 01:02 AM   |  #1  
OP Senior Member
Flag Chernihiv
Thanks Meter: 864
 
526 posts
Join Date:Joined: Jan 2012
More
There are lots of folks around who already has KitKat on their devices. But kitkat comes with new secutity enhancement, SELinux, put into "enforcing mode". Maybe This thing is good from the point of security, but it breaks some Root Apps, like my Ultimate Dynamic Navbar, so I created this app.




What does it do? This app can change modes of SELinux:
Run app, give root access, select the mode you want SELinux to be in(permissive or enforcing) and that's all. Every time you reboot your device app will execute the script to change SELinux to the mode you've selected. Simple and stupid.

SELinuxModeChanger_v1.2.apk[XDA Download Link]

Google Play Link



know issues:
- [THEORETICALLY] doesn't work with Samsung KNOX.




XDA:DevDB Information
SELinuxModeChanger, a App for the Android General

Contributors
MrBIMC

Version Information
Status: Testing
Current Beta Version: v1.2
Beta Release Date: 2013-11-18

Created 2013-11-13
Last Updated 2013-11-17
The Following 48 Users Say Thank You to MrBIMC For This Useful Post: [ View ]
13th November 2013, 01:12 AM   |  #2  
WEM97's Avatar
Senior Member
Flag Redmond
Thanks Meter: 867
 
942 posts
Join Date:Joined: Jun 2011
Donate to Me
More
With all the hype over SELinux Permissive and Enforcing, Ill be glad to test this out
13th November 2013, 01:18 AM   |  #3  
OP Senior Member
Flag Chernihiv
Thanks Meter: 864
 
526 posts
Join Date:Joined: Jan 2012
More
Quote:
Originally Posted by WEM97

With all the hype over SELinux Permissive and Enforcing, Ill be glad to test this out

Post your results once you've tested. Cuz I'm on custom kernel now that has SELinux completely disabled and didn't really tested this app
13th November 2013, 01:27 AM   |  #4  
Ather's Avatar
Retired Senior Moderator
Flag East Riffa
Thanks Meter: 132
 
3,569 posts
Join Date:Joined: May 2007
More
Does not work on my N9005 stock, i open the app, grant it root access, click on passive and hust to make sure i rebooted, still when i goto settings/about i get enforcing written...
13th November 2013, 01:35 AM   |  #5  
OP Senior Member
Flag Chernihiv
Thanks Meter: 864
 
526 posts
Join Date:Joined: Jan 2012
More
Quote:
Originally Posted by Ather

Does not work on my N9005 stock, i open the app, grant it root access, click on passive and hust to make sure i rebooted, still when i goto settings/about i get enforcing written...

I don't sure the string there will actually change. Better test by executing this in some terminal emulator:

Code:
su
/system/bin/getenforce
Last edited by MrBIMC; 13th November 2013 at 01:39 AM.
13th November 2013, 01:41 AM   |  #6  
Ather's Avatar
Retired Senior Moderator
Flag East Riffa
Thanks Meter: 132
 
3,569 posts
Join Date:Joined: May 2007
More
Quote:
Originally Posted by MrBIMC

I don't sure the string there will actually change. Better test by executing this in some terminal emulator:

Code:
su
/system/bin/getenforce

Outputs: Enforcing
13th November 2013, 01:44 AM   |  #7  
WEM97's Avatar
Senior Member
Flag Redmond
Thanks Meter: 867
 
942 posts
Join Date:Joined: Jun 2011
Donate to Me
More
Quote:
Originally Posted by MrBIMC

Post your results once you've tested. Cuz I'm on custom kernel now that has SELinux completely disabled and didn't really tested this app

Same as the other guy. Passive to Passive. Post reboot of course.
13th November 2013, 01:48 AM   |  #8  
OP Senior Member
Flag Chernihiv
Thanks Meter: 864
 
526 posts
Join Date:Joined: Jan 2012
More
Quote:
Originally Posted by WEM97

Same as the other guy. Passive to Passive. Post reboot of course.


Just flashed stock kernel. Indeed. Works only untill reboot. After that - no Will work on a fix now!


UPD: Switched few times into different states - it works. Works when device is booted, works after reboot(wait till notification appear - go to "about phone".). Rebooted ~10 times to check it out - everything works fine for me(galaxy nexus, android 4.4)!

Dunno, guys. Maybe that's root denial in your case or something like this?
Waiting for more replies.
Last edited by MrBIMC; 13th November 2013 at 02:02 AM.
13th November 2013, 02:31 AM   |  #9  
Ather's Avatar
Retired Senior Moderator
Flag East Riffa
Thanks Meter: 132
 
3,569 posts
Join Date:Joined: May 2007
More
Quote:
Originally Posted by MrBIMC


Just flashed stock kernel. Indeed. Works only untill reboot. After that - no Will work on a fix now!


UPD: Switched few times into different states - it works. Works when device is booted, works after reboot(wait till notification appear - go to "about phone".). Rebooted ~10 times to check it out - everything works fine for me(galaxy nexus, android 4.4)!

Dunno, guys. Maybe that's root denial in your case or something like this?
Waiting for more replies.

Could be the knox not letting it set?
13th November 2013, 02:40 AM   |  #10  
OP Senior Member
Flag Chernihiv
Thanks Meter: 864
 
526 posts
Join Date:Joined: Jan 2012
More
Quote:
Originally Posted by Ather

Could be the knox not letting it set?

Don't know. Will look to it tommorow. It's almost 4 am here, so I'm going to sleep now.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes