Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,372 Members 39,446 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
MrBIMC
Old
#1  
Senior Member - OP
Thanks Meter 826
Posts: 524
Join Date: Jan 2012
Location: Chernihiv
Default [APP][4.3++]SELinuxModeChanger[PRE-ALPHA]

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 41 Users Say Thank You to MrBIMC For This Useful Post: [ Click to Expand ]
 
WEM97
Old
#2  
WEM97's Avatar
Senior Member
Thanks Meter 836
Posts: 900
Join Date: Jun 2011
Location: Redmond

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

Device: MOTOROLA DROID Ultra
Rom:Stock Obake 21.11.21 || 4.4.4
Kernel:3.4.42 Stock
CPU OC: None || GPU OC: None
Recovery: Stock
SOUNDCLOUD
▃ ▅ ▆ █ EVEROLVE █ ▆ ▅ ▃
 
MrBIMC
Old
#3  
Senior Member - OP
Thanks Meter 826
Posts: 524
Join Date: Jan 2012
Location: Chernihiv
Quote:
Originally Posted by WEM97 View Post
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
 
Ather
Old
#4  
Ather's Avatar
Retired Senior Moderator
Thanks Meter 110
Posts: 3,487
Join Date: May 2007
Location: East Riffa
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...
Visit my Tech Blog
Current Device:
HTC One M8
Running Stock Android 4.4.2


Older Devices:
hTC Himalaya | hTC Wizard | hTC Kaiser | hTC Touch Pro 2 | hTC Dream | Samsung Galaxy S II | iPhone 4 | hTC One X | Acer Iconia A100 | Nexus 7 3G | Samsung Galaxy Note II | Samsung Galaxy S4 | Samsung Galaxy Note 3
 
MrBIMC
Old
(Last edited by MrBIMC; 13th November 2013 at 12:39 AM.)
#5  
Senior Member - OP
Thanks Meter 826
Posts: 524
Join Date: Jan 2012
Location: Chernihiv
Quote:
Originally Posted by Ather View Post
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
 
Ather
Old
#6  
Ather's Avatar
Retired Senior Moderator
Thanks Meter 110
Posts: 3,487
Join Date: May 2007
Location: East Riffa
Quote:
Originally Posted by MrBIMC View Post
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
Visit my Tech Blog
Current Device:
HTC One M8
Running Stock Android 4.4.2


Older Devices:
hTC Himalaya | hTC Wizard | hTC Kaiser | hTC Touch Pro 2 | hTC Dream | Samsung Galaxy S II | iPhone 4 | hTC One X | Acer Iconia A100 | Nexus 7 3G | Samsung Galaxy Note II | Samsung Galaxy S4 | Samsung Galaxy Note 3
 
WEM97
Old
#7  
WEM97's Avatar
Senior Member
Thanks Meter 836
Posts: 900
Join Date: Jun 2011
Location: Redmond

 
DONATE TO ME
Quote:
Originally Posted by MrBIMC View Post
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.
 

Device: MOTOROLA DROID Ultra
Rom:Stock Obake 21.11.21 || 4.4.4
Kernel:3.4.42 Stock
CPU OC: None || GPU OC: None
Recovery: Stock
SOUNDCLOUD
▃ ▅ ▆ █ EVEROLVE █ ▆ ▅ ▃
 
MrBIMC
Old
(Last edited by MrBIMC; 13th November 2013 at 01:02 AM.)
#8  
Senior Member - OP
Thanks Meter 826
Posts: 524
Join Date: Jan 2012
Location: Chernihiv
Quote:
Originally Posted by WEM97 View Post
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.
 
Ather
Old
#9  
Ather's Avatar
Retired Senior Moderator
Thanks Meter 110
Posts: 3,487
Join Date: May 2007
Location: East Riffa
Quote:
Originally Posted by MrBIMC View Post

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?
Visit my Tech Blog
Current Device:
HTC One M8
Running Stock Android 4.4.2


Older Devices:
hTC Himalaya | hTC Wizard | hTC Kaiser | hTC Touch Pro 2 | hTC Dream | Samsung Galaxy S II | iPhone 4 | hTC One X | Acer Iconia A100 | Nexus 7 3G | Samsung Galaxy Note II | Samsung Galaxy S4 | Samsung Galaxy Note 3
 
MrBIMC
Old
#10  
Senior Member - OP
Thanks Meter 826
Posts: 524
Join Date: Jan 2012
Location: Chernihiv
Quote:
Originally Posted by Ather View Post
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes