Permissive SELinux kernels - Nexus 5 Q&A, Help & Troubleshooting

Hi. Apps to change SELinux mode to permissive do it too late after boot, so some apps and Xposed modules do not work with lollipop. The only way to make these particular apps to work is to install a custom kernel with SELinux already set to permissive. So I would like to know which custom kernels for lollipop are permissive. I currently use Faux kernel for Kit-Kat, do you know if it's in enforcing or permissive mode for lollipop? Also add the kernels you know. Thanks everyone.

Despair is i believe
Sent from my Nexus 5 using Tapatalk

J3:16 said:
Hi. Apps to change SELinux mode to permissive do it too late after boot, so some apps and Xposed modules do not work with lollipop. The only way to make these particular apps to work is to install a custom kernel with SELinux already set to permissive. So I would like to know which custom kernels for lollipop are permissive. I currently use Faux kernel for Kit-Kat, do you know if it's in enforcing or permissive mode for lollipop? Also add the kernels you know. Thanks everyone.
Click to expand...
Click to collapse
Despair has selinux disabled.
Sent from my Nexus 5 using XDA Free mobile app

The built-in kernel of AOSiP ROM.
BTW did you try with a script (su.d)?

Primokorn said:
The built-in kernel of AOSiP ROM.
BTW did you try with a script (su.d)?
Click to expand...
Click to collapse
I don't know how to do it. Also, Faux kernel is open source, so there should be a way to edit this parameter only and then compile it, but again, I don't know how to do it

J3:16 said:
I don't know how to do it. Also, Faux kernel is open source, so there should be a way to edit this parameter only and then compile it, but again, I don't know how to do it
Click to expand...
Click to collapse
Flash this: https://www.androidfilehost.com/?fid=23991606952602503
SELinux will be automatically set to permissive at boot.

Primokorn said:
Flash this: https://www.androidfilehost.com/?fid=23991606952602503
SELinux will be automatically set to permissive at boot.
Click to expand...
Click to collapse
Wow! Does it modify every kernel? Is there an xda thread for this tool?

J3:16 said:
Wow! Does it modify every kernel? Is there an xda thread for this tool?
Click to expand...
Click to collapse
Yep. It's a simple script (su.d so you must use SuperSU) that you can find in the ElementalX thread.

Primokorn said:
Yep. It's a simple script (su.d so you must use SuperSU) that you can find in the ElementalX thread.
Click to expand...
Click to collapse
Thank you so much man!

Related

Undervolt Kernel?

Are there any kernels for 5.1.1 that can undervolt or underclock this phone?
Mine SimplKernel hehe
Ah right. Did have yours installed but was unable to alter the voltages using trickster app. Am i missing something obvious then?
Vindicator kernel, then use ktweaker for tune up
Marshall1975 said:
Ah right. Did have yours installed but was unable to alter the voltages using trickster app. Am i missing something obvious then?
Click to expand...
Click to collapse
Try Synapse
Loads of more cool and original stuff coming in
mythos234 said:
Try Synapse
Loads of more cool and original stuff coming in
Click to expand...
Click to collapse
Thanks mythos. Using your kernel now with synapse and all running like a dream.
where can I get the Ktweaker apk? i can just find one for the sgs4

[KERNEL][Z1C] UNOFFICIAL RockZ1L Kernel [Stock Lollipop .236]

About RockZ1L : http://forum.xda-developers.com/sony-xperia-z1-compact/development/5-0-rockz1l-kernel-t3101784
This is a personal build of rockz1l with some modifications :
* Bump kernel version to 3.4.110 (include most patches from upstream)
* Add UKSM(Ultra Kernel Same-page Merging), better than the original KSM approach.
* Add f2fs support. You can follow this tutorial to convert your partitions to f2fs : http://forum.xda-developers.com/xpe...rial-migrate-filesystem-to-f2fs-ext4-t3004755
* Add sdcardfs support
* Enable TCP Hybla
* Modified and built with Hyper Linaro ARM-EABI 5.1
* Add cifs and nfs modules
* Replace tuxera exfat with exfat-nofuse (the module fakes itself as a texfat module)
* Add Paragon UFSD
* Disable vermagic check for kernel modules
The kernel is for stock lollipop rom. Only tested on 14.6.A.1.236
Download : https://drive.google.com/folderview?id=0B-DoK6BdpB2fYkYxWGpldEMtb1E&usp=drive_web
Sourcecode : https://github.com/maz-1/android_kernel_sonyz_msm8974
Good to see another kernel choice for our device.
But i'm missing the taiko audio control from sharonlius kernel?
Sent from my D5503 using xda premium
Frunzdoedel said:
Good to see another kernel choice for our device.
But i'm missing the taiko audio control from sharonlius kernel
Sent from my D5503 using xda premium
Click to expand...
Click to collapse
I think Taiko Audio Codec Control and qpnp-vibrator are already in RockZ1L kernel.
Frunzdoedel said:
Good to see another kernel choice for our device.
But i'm missing the taiko audio control from sharonlius kernel?
Sent from my D5503 using xda premium
Click to expand...
Click to collapse
I'm far away from a developer, but mayby you have a look at:http://forum.xda-developers.com/showthread.php?p=60428881??
Sent from my D5503 using xda premium
Amazing
Nice work:good:, thanks OP and which governer do you recommend for performance and good battery life?
baris27 said:
Nice work:good:, thanks OP and which governer do you recommend for performance and good battery life?
Click to expand...
Click to collapse
Alucard/ noop / and deadline for sd ext..
And alucard CPU Hotplug.
Is the best choice for performance/battery live for me (a little bit UV too)
?
Flash with twrp dont work unsuported device?!?
Bootloader is unlockt
Whats wrong?
Thx
Dennis
dennis46419 said:
Flash with twrp dont work unsuported device?!?
Bootloader is unlockt
Whats wrong?
Thx
Dennis
Click to expand...
Click to collapse
I haven't tried since I'm not currently on stock, but I notice the download folder says 'Z1l_Z1c', but all the files only say 'Z1l'. I wonder if he removed Z1c files...
Yes thats right.. I dont See IT
What Rom You Use?
Well i flahed the zl folder on my z1 compact and it works very well
On Stock Rom?
@maz-1,
i want to ask you if you have an idea why i can t overclock my device
i can t apply 2.4 GHZ frequency.
does it have to do with SE linux ?
Sorry, no idea when i tried this kernel i had no problem to apply 2.41 GHz with kernel auditor. But i prefer http://forum.xda-developers.com/showthread.php?t=3096060
[KERNEL][Z1C][5.0-5.1][F2FS] Advanced-Kernel v16.0[11/16/2015]
Sent from my D5503 using xda premium
Frunzdoedel said:
Sorry, no idea when i tried this kernel i had no problem to apply 2.41 GHz with kernel auditor. But i prefer http://forum.xda-developers.com/showthread.php?t=3096060
[KERNEL][Z1C][5.0-5.1][F2FS] Advanced-Kernel v16.0[11/16/2015]
Sent from my D5503 using xda premium
Click to expand...
Click to collapse
same thing happens with this kernel also
broky said:
same thing happens with this kernel also
Click to expand...
Click to collapse
Mayby your device is very special? ?
Sent from my D5503 using xda premium
broky said:
same thing happens with this kernel also
Click to expand...
Click to collapse
Are other signs of the kernel showing up, (additional governors, etc.)? Maybe it's just not flashing right.
levone1 said:
Are other signs of the kernel showing up, (additional governors, etc.)? Maybe it's just not flashing right.
Click to expand...
Click to collapse
yes,everything seems to appear as it should,except the highest frequency..
broky said:
yes,everything seems to appear as it should,except the highest frequency..
Click to expand...
Click to collapse
Never heard of it... I know that the original Rockz1 kernel comes with an app called 'pimp my Z1c' or something like that. Maybe you could pull the app out of the zip and install it, see if it shows anything different.
levone1 said:
Never heard of it... I know that the original Rockz1 kernel comes with an app called 'pimp my Z1c' or something like that. Maybe you could pull the app out of the zip and install it, see if it shows anything different.
Click to expand...
Click to collapse
already tried this,same result.
anyway problem seems to be solved using trickster mod
dennis46419 said:
Flash with twrp dont work unsuported device?!?
Bootloader is unlockt
Whats wrong?
Thx
Dennis
Click to expand...
Click to collapse
run "getprop ro.product.device" in recovery. Does it give you "amami" or "D5503" ?

[KERNEL] [DEV ABOOT ONLY] [UNOFFICIAL] Boeffla-Kernel [KLTEVZW] [4/30/2016]

Note: I am not in any way a developer of the Boeffla-Kernel. I asked the developer, @Lord Boeffla, if it would be OK to post a modified version of his kernel on this forum. He agreed but indicated that he will not be providing support for his kernel on the SM-G900V and, as per his FAQ, he is not willing to take on any new Samsung models. Please do not ask him for help or request that he officially support the Verizon model.
Disclaimer: Install this kernel at your own risk. Neither I nor the kernel developers take any responsibility for any damage done by flashing or running this kernel and no support can be offered.
Requirements
A developer aboot
Custom recovery (I use TWRP)
Either a Samsung Stock Lollipop or CM13 based ROM
Root (to run the Boeffla-Config app)
Optional: FlashFire
Please make a full nandroid backup before flashing anything. If you're already using a custom kernel, use the Cleaner Script below. If you're using stock Samsung, make sure it is the latest version of Lollipop. Use custom recovery or FlashFire to flash. Afterwards, install the latest Boeffla-Config app.
Downloads
If coming from a different custom kernel, use this cleaner script before flashing the kernel:
Boeffla_Cleaner_Script_SM-G900V_V1.zip
For Samsung Stock Lollipop based ROMs:
boeffla-kernel-1.0-test-Samsung-g900v.recovery.zip
For Cyanogenmod 13 based ROMs:
boeffla-kernel-1.0-test-CM13.0-g900v.recovery.zip
For Resurrection Remix ROMs:
As of late komarov27 has been supporting a Resurrection Remix Boeffla Kernel compatible with the kltevzw in the comments section of the main S5 Resurrection Remix thread ( here for instance). Please see the thread for the latest version.
Regardless of which Boeffla kernel you flashed, install the latest Boeffla-Config app for tweaking goodness:
Boeffla-Config
Known problems
Some custom CM13 ROMS may produce stalls or boot-loops during bootup with the Boeffla Kernel, especially after cleaning the cache and/or Art/Dalvik cache. The ResurrectionRemix version of the Boeffla Kernel may fix the problem but not every CM13 ROM should be expected to work. Always make a full nandroid backup ahead of time.
Be careful with xposed as some have reported issues with modules that alter kernel options.
The original Boeffla Kernel thread for Samsung stock can be found here.
The original Boeffla Kernel thread for CM can be found here.
The official Boeffla Kernel site can be found here.
A special thanks to @Lord Boeffla for the kernel.
Reserved...
Cleaned cache and dalvik with RR and Boeffla and dont bootlooped... And i am using xposed, not notice nothing wrong...
Nsane457 said:
The original Samsung Boeffla Kernel thread can be found here.
Click to expand...
Click to collapse
Maybe this link are more accurate?
http://forum.xda-developers.com/gal...ernel-boeffla-kernel-1-0-beta1-23-03-t3062078
TioCareca said:
Cleaned cache and dalvik with RR and Boeffla and dont bootlooped... And i am using exposed, not notice nothing wrong...
Click to expand...
Click to collapse
Good to know. It always stalls for me on boot with RR if I wipe the dalvik cache. I expect many people won't have any trouble with xposed but it is still not advised.
TioCareca said:
Maybe this link are more accurate?
http://forum.xda-developers.com/gal...ernel-boeffla-kernel-1-0-beta1-23-03-t3062078
Click to expand...
Click to collapse
The link I gave was for the Samsung stock version but I've added this one for the CM version. Thanks.
Yes i see your point, the warnings are made...
The xposed problems are caused by modules that change kernel options, not xposed itself so is pretty safe to use with the right modules...
Maybe this for the stock version? Your link is for S3....
http://forum.xda-developers.com/gal...ernel-boeffla-kernel-1-0-beta1-23-03-t3062073
TioCareca said:
Yes i see your point, the warnings are made...
The xposed problems are caused by modules that change kernel options, not xposed itself so is pretty safe to use with the right modules...
Click to expand...
Click to collapse
OK. I'll adjust the warning.
TioCareca said:
Maybe this for the stock version? Your link is for S3....
http://forum.xda-developers.com/gal...ernel-boeffla-kernel-1-0-beta1-23-03-t3062073
Click to expand...
Click to collapse
Yes. Sorry about that. The link is updated.
No problem... Just trying to help... I will make some experiments with the kernel source code...
TioCareca said:
No problem... Just trying to help... I will make some experiments with the kernel source code...
Click to expand...
Click to collapse
That would be fine. :good: I have some experience with cross-compiling but none with Android. Sadly, the script used for building the Boeffla Kernel apparently didn't work with python3, gcc-5.*, or the version of perl I was using. I just got tired of installing different versions of my libraries and adjusting defaults.
I just updated the thread with a patched version of Boeffla-Kernel that works with ResurrectionRemix ROM, thanks to @j1gga84. It finally fixes the bootloop/stall problem I've been having.
Link to original post
Nsane457 said:
I just updated the thread with a patched version of Boeffla-Kernel that works with ResurrectionRemix ROM, thanks to @j1gga84. It finally fixes the bootloop/stall problem I've been having.
Link to original post
Click to expand...
Click to collapse
If BETA20 was RR fix what did BETA21 change?
Does this kernel support CPU oc?
Sent from my SM-G900V using XDA-Developers mobile app
jordash25 said:
If BETA20 was RR fix what did BETA21 change?
Click to expand...
Click to collapse
From here:
CM13.0 -- Version 3.0-beta21
12.04.2016
Update: Updated with latest official CM kernel commits as of 12.04.16, 8am CET
Update: Ramdisk of official CM13.0 build of 12.04.16
Click to expand...
Click to collapse
thrgk said:
Does this kernel support CPU oc?
Sent from my SM-G900V using XDA-Developers mobile app
Click to expand...
Click to collapse
Yes. Overclocking and underclocking. See here for config info.
Beoffla Kernel for Ressurection Remix ROM updated to boeffla-kernel-3.0-beta22-RR-kltevzw.zip.
Nsane457 said:
If coming from a different custom kernel, use this cleaner script before flashing the kernel:
Boeffla_Cleaner_Script_SM-G900V_V1.zip
For Samsung Stock Lollipop based ROMs:
Stable: boeffla-kernel-1.4-Samsung-g900v.recovery.zip
Click to expand...
Click to collapse
Hi there! thanks for the port, it looks amazing!
Quick question. I have installed the two files I quoted, and everything looks like is working fine (System, Xposed, etc). However, when I open the Terminal it tells me this:
Code:
WARNING: linker: could not load library "libNimsWrap.so" from LD_PRELOAD for "/system/bin/sh"; caused by library "libNimsWrap.so" not found
WARNING: linker: could not load library "libNimsWrap.so" from LD_PRELOAD for "getprop"; caused by library "libNimsWrap.so" not found
WARNING: linker: could not load library "libNimsWrap.so" from LD_PRELOAD for "id"; caused by library "libNimsWrap.so" not found
[email protected]:/ $
I tried googling it and couldn't find a solution, but I know for sure it is the custom Kernel because I tried troubleshooting it and it only shows up with the custom Kernel (not even related to Xposed). Does this happen to you too?
Thanks again!
rauleeros said:
Hi there! thanks for the port, it looks amazing!
Quick question. I have installed the two files I quoted, and everything looks like is working fine (System, Xposed, etc). However, when I open the Terminal it tells me this:
Code:
WARNING: linker: could not load library "libNimsWrap.so" from LD_PRELOAD for "/system/bin/sh"; caused by library "libNimsWrap.so" not found
WARNING: linker: could not load library "libNimsWrap.so" from LD_PRELOAD for "getprop"; caused by library "libNimsWrap.so" not found
WARNING: linker: could not load library "libNimsWrap.so" from LD_PRELOAD for "id"; caused by library "libNimsWrap.so" not found
[email protected]:/ $
I tried googling it and couldn't find a solution, but I know for sure it is the custom Kernel because I tried troubleshooting it and it only shows up with the custom Kernel (not even related to Xposed). Does this happen to you too?
Thanks again!
Click to expand...
Click to collapse
It mentions your issue on this thread.
I'll try to install and troubleshoot it tonight.
Nsane457 said:
It mentions your issue on this thread.
I'll try to install and troubleshoot it tonight.
Click to expand...
Click to collapse
You are amazing!
P.S. I followed what the said: move the libs that it asks for (libNimsWrap.so & then libcnefeatureconfig.so) to the /system/lib/ folder and change the permissions. Open the terminal.... And gone!
rauleeros said:
You are amazing!
P.S. I followed what the said: move the libs that it asks for (libNimsWrap.so & then libcnefeatureconfig.so) to the /system/lib/ folder and change the permissions. Open the terminal.... And gone!
Click to expand...
Click to collapse
Yeah. It seems to be caused by a line in the "init.environ.rc" script in the boot ramdisk. I'll look into fixing it later. For now the workaround is fine and either way it should be harmless.
Bootlooped on 5.0 AllianceRom Xposed. Don't have much information to give you besides it doesn't work. Unlocked the retail bootloader.
Dashaquavius said:
Bootlooped on 5.0 AllianceRom Xposed. Don't have much information to give you besides it doesn't work. Unlocked the retail bootloader.
Click to expand...
Click to collapse
Its for 6.0 roms only...

Need kernel that supports android keyboard gadget

I'm looking for a kernel which offers support for android-keyboard-gadget. I'm currently on stock ROM but I wouldn't mind getting a new one if it supports this.
I'll compile a kernel from LOS14.1 for you as soon as you solve the issue under https://github.com/pelya/android-keyboard-gadget/issues/75
meiser said:
I'll compile a kernel from LOS14.1 for you as soon as you solve the issue under https://github.com/pelya/android-keyboard-gadget/issues/75
Click to expand...
Click to collapse
Try setting selinux to permissive

[KERNEL][PIE][CLANG] TNO Kernel

TNO Kernel for LG G7 ThinQ​
*Info*
Kernel Version 4.9.207
Compiled with AOSP Clang 9.0.3 with Linaro GCC 7.5
Anykernel and Img provided.
Flash via fastboot or TWRP.
G-Drive Folder
*Features*
25/12/19
Up to date with mainline kernel 4.9
V4.9.207
exFAT support added
Coming soon
LZ4HC
Wireguard support
CONFIG_HZ_300
Using ARM GCC9.2 with Clang 9.0.3
LZ4 Ramdisk
*v4.9.210
**Remove debugging (Confirmed)
**Remove support for modules(Dropped)
**Remove trace_printk() instances(Confirmed)
CAF:
fw-api------------------------LA.UM.7.3.r1-08200-sdm845.0
qcacld-3.0--------------------LA.UM.7.3.r1-08200-sdm845.0
qca-wifi-host-cmn----------LA.UM.7.3.r1-08200-sdm845.0
techpack---------------------LA.UM.7.3.r1-08700-sdm845.0
Kernel is ready and is being tested for stability
I need someone as a beta tester, leave a comment if you are interested.
Make requests for features that you want.
*Sources*
Kernel Source
fw-api
qcacld-3.0
qca-wifi-host-cmn
techpack
*Contributors*
arter97
nathanchance
*Disclaimer*
Your warranty is now void.
I do not take responsibility for any damage caused to your device with the use/misuse of this kernel.
Im download your work, and tested on latest EM20e, and get bootloop on bootanimation, give me Image.gz-dtb
ZNCHNK said:
Im download your work, and tested on latest EM20e, and get bootloop on bootanimation, give me Image.gz-dtb
Click to expand...
Click to collapse
Here you are, please let me know if it works: https://drive.google.com/open?id=1QG2sjuBDZgjXACKe-2lyc4ezcbjWbDun
thenotonly said:
Here you are, please let me know if it works: https://drive.google.com/open?id=1QG2sjuBDZgjXACKe-2lyc4ezcbjWbDun
Click to expand...
Click to collapse
strange but bootlap(my device is G710PM installed v20e from EM version) in the evening I’ll roll back to EM20D and write result.
ZNCHNK said:
strange but bootlap(my device is G710PM installed v20e from EM version) in the evening I’ll roll back to EM20D and write result.
Click to expand...
Click to collapse
Don't rollback. You need to replace the ramdisk in the kernel with yours and it should work.
Send me your current boot image if you don't know how to do it. PM
Can you also give me the device name that's present in your build.prop?
getprop ro.product.name
Hi, I'm on stock pie rom with magisk, firmware version is V20c, buildprop name is "judyln_lao_com". Is it safe to flash? Anything you are aware of that is not working properly?
FluffyDiscord said:
Hi, I'm on stock pie rom with magisk, firmware version is V20c, buildprop name is "judyln_lao_com". Is it safe to flash? Anything you are aware of that is not working properly?
Click to expand...
Click to collapse
Should work fine
does not have support for micro sd in exFat format
good
HimikoMw said:
does not have support for micro sd in exFat format
Click to expand...
Click to collapse
support added
thenotonly said:
support added
Click to expand...
Click to collapse
does not work,need a log?
thenotonly said:
support added
Click to expand...
Click to collapse
Thank you very much, now it works.
HimikoMw said:
Thank you very much, now it works.
Click to expand...
Click to collapse
exfat work on your device wich this kernel?
ZNCHNK said:
exfat work on your device wich this kernel?
Click to expand...
Click to collapse
version V4.9.207
can i install via fastboot ? also it works on 20b ?
Emanel000000 said:
can i install via fastboot ? also it works on 20b ?
Click to expand...
Click to collapse
Yes
Work good
thenotonly said:
Yes
Click to expand...
Click to collapse
i got bootloop also myb i had 20c
Feature requests:
0% auto brightness
Option (terminal is fine) to lower overall auto screen brightness by X percent (feels like it's unnecessarily bright under normal light)
Force QuadDac high impedance
(No idea how it works and if possible from your side, but it's LG G7 kernel specific, or so I have heard ->) Somehow make JamesDSP magisk add-on work
Make it so that CPU/GPU/IO settings sticks (in kernel auditor for example) (maybe implemented ?, fells like it's resetting)
CPU governors: Alucard, OnDemandPlus
GPU governors: Adreno Idler
I/O scheduler: Zen
does it work with lineage os? Edit: i tested and it bootloops, can you make a compatible version non-twrp the image

Categories

Resources