Please Someone Compile stock android 5.0.2 kernal with SELinux Disabled !

melvinrobertson

Senior Member
Nov 3, 2013
58
8
0
I am just a newbie, but while customizing Stock android 5.0.2 on my xperia zl with locked bootloader, I got error due to 100% SeLinux enforcement on android lollipop, Even though my cell is rooted with xposed installer installed with working app_process and XposedBridge.jar, these security policies even can't let you do anything, there are just a few customization and rooted apps which run on lollipop with SELinux enforcement. After searching net I got SELinuxmodechanger.apk having two modes permissive and enforcement but apk had'nt worked, its only for android kitkat, after searching more -----

I got a post by @zxz0O0 http://forum.xda-developers.com/showpost.php?p=59879026&postcount=3837

He had made a zip file to byepass SELInux enforcement, later on it was implement in XZDUALRECOVERY 2.8.15 flashable zip file and even inside XZDUALRECOVERY 2.8.15 installer,
But it was not working for Xperia T2, Z, ZL, ZR and Tablet Z causing bootloop, after few weeks XZDUALREVOVERY 2.8.16 is released and a beta version 2.8.17 also with updated byeselinux to run on all xperia devices runing lollipop.

http://forum.xda-developers.com/showthread.php?t=2261606

As now dual revovery is working fine on my xperia zl locked running lollipop, but the time I checked SELinux status on Terminal using command sestatus it says it on permissive mode. Well permissive mode is a condition that SELinux is active but it provide access to get control to few things without protection. And I still got errors due to SELinux, For full customization it should be on third mode i.e Disabled in which SELinux in completly disabeled, After searching more on net and xda I found that SELinux can only be completly disabled by flashing another kernal without SELinux protection or set SELinux disabled by default. It was the early stage of lollipop when people root it by flashing kernal without SElinux protection or SElinux disable by default, later on @Chainfire made another method to root android lollipop with 100% SELinux enforcement by using zygote service as its only accessable on lollipiop, which we use now, but it dont provide access to all content, for that SELinux should be completly disabled, which can only be done by flashing another kernal without SELInux protection or set SELinux disabled by default.

Please if you are a developer and reading this, do consider my request. As I don't knowz how to compile kernal from source code but you can. As my bootloader is locked running stock lollipop please make alternate stock kernal for locked bootlader as it will work on unlocked bootloaders also.

Well I found another security check also on Android Lollipop i.e PIE Security check, Well thanks to @cernekee starting a thread for bypassing pie provide a flashing zip-

http://forum.xda-developers.com/google-nexus-5/development/fix-bypassing-pie-security-check-t2797731

but that byepass-pie.zip had'nt work for xperia zl lollipop, but another member inside the thread @4tune provided another flashable zip which worked with Xperia zl running lollipop and successfully bypassed the PIE Security check on xperia zl lollipop, It may help you, its link down there -

http://forum.xda-developers.com/showpost.php?p=57467067&postcount=65

Now coming back to the actual post, please please please if someone knowz how to compile a new kernal from source code and simultaneously can remove or completly disabled SELInux protection, please do make and post it ! It will help a lot to customize on Xperia zl Locked and Unlocked both running Stock lollipop.
 
Last edited:

melvinrobertson

Senior Member
Nov 3, 2013
58
8
0
Try selunix mode changer apk it works

Sent from my D6603 using Tapatalk
Not working :( ! Selinux mode changer works mainly for kitkat as I mentioned. But even after flashing byeselinux implented with XZDualrecovery 2.8.16, Its showing in terminal that its on permissive mode, but still not providing permission on few policies !