lollipop/kitkat versions of Low Lying Fruit Kernel (LLFK) for N915T

mscion

Senior Member
Jul 26, 2011
1,996
1,078
133
North Potomac
(6/30/15) Newest LLFK for T-Mobile Note EDGE N915T Lollipop.

Now has TCP congestion control options with default TCP Westwood

This version is flashable using TWRP.

Features:

SELinux=Permissive option
init.d support
adbd insecure
TCP congestion controls: TCP options include Westwood, cubic, reno among others: default is Westwood

Modifications that need to be made when using LLFK kernel

1)In build.prop set

ro.securestorage.support=false

2)For those that use AllShare Cast you will need to do two things.

First, add the following line at the end of build.prop

wlan.wfd.hdcp=disable

second, you need to have the Xposed module Wanum Xposed installed. In Wanum select "security hacks" then check box of Fake system status

Download link:

https://www.dropbox.com/s/6bg9l8qqcmmh83x/llfk_permissive_initd_adbd_tcp_lpop.zip?dl=0

Check below for other information that might come in handy and good luck!



(06/11/15)New Low Lying Fruit Kernel (LLFK) for Tmobile Note Edge (lollipop)

I've added adb insecure to kernel. This gives you root access to modify /system on phone from a pc

Features:
SELinux = Permissive option
init.d support
adb insecure


download link
https://www.dropbox.com/s/kr7xb22449p497w/llfk_permissive_initd_adbd_lpop.zip?dl=0



(06/10/15) Low Lying Fruit Kernel (LLFK) for Tmobile Note Edge (N915T)

Two new flashable kernels. One for Lollipop the other for Kitkat.

Lollipop: This new version has init.d support so, for example, you can write scripts that run on boot up. (more below).

Features:
SELinux = Permissive option
init.d support

https://www.dropbox.com/s/k8w423ecoj1covs/llfk_permissive_initd_lpop.zip?dl=0


Kitkat:This version now has TCP congestion control options available (e.g. Westwood)

Features:
SELinux = Permissive option
init.d support
adb insecure (allows you to have r/w access to phone's /system from you pc)
TCP congestion control options

Thanks to JT man for testing

https://www.dropbox.com/s/jbifzsuztb73wpg/llfk_permissive_initd_adbd_tcp_kkat.zip?dl=0

Example of init.d script to automatically set SELinux=permissive given here
https://forums.oneplus.net/threads/how-to-selinux-permissive.314120/

couple notes on how-to-selinux-permissive
1)You only need have permissions of /sys/fs/selinux/enforce set to 644
2)Make sure permission of init.d script is 775

One more thing, knox based warnings can be silenced using wanum.



(05/27/15) Low Lying Fruit Kernel (LLFK) for Tmobile Note Edge (N915T) running Lollipop.

For those that miss having SELinux=Permissive on their T-mobile Note Edge running lollipop, here is a kernel
that supports this setting. The kernel is based on the Tmobile Note Edge Lollipop source code. The only thing that was
changed was a setting in the kernel's Makefile to allow the user to choose whether they want to have SELinux=Permissive
as described for the previous Kitkat version of LLFK below.

NOTE: This time around, the kernel is packaged as a zip file than can be directly flashed in recovery.

But before I go any further I need to give credit to @TEKHD for providing a zipped
version of the T-Mobile kernel I could modify and, in addition, for testing it.
Please buy him a well deserved cup of coffee!


Once you have flashed the kernel and rebooted you are ready to set SELinux=permissive by opening a terminal and typing

su

and

setenforce 0

To check it worked, go to settings > About device and you should see, under SE for Android status, that it is now set to Permissive.

An alternative way to change the setting with this kernel is to use the apk SeLinuxModeChanger. Unfortunately this apk is no longer
available at the play store but you can still download it from the F-Droid site.

https://f-droid.org/repository/browse/?fdfilter=selinuxmodechanger&fdid=com.mrbimc.selinux

A third option would be to set up an init.d script if your rom permits it.

I must admit, at the time of this writing, I'm still on KitKat and have yet to try this on my phone. I'll be checking out lollipop soon
but till then, let me know if/how it works. If successful I'll start adding a few more low lying fruit I've picked!

Remember to do a full nandroid back-up before trying this so your phone can return to its original state before trying llfk if needed.
The usual disclaimer applies!
Good Luck!

lollipop LLFK download link:


WAIT! Only one person has tried this version and although it worked for him, I still consider it beta at best. You have been warned!

WAIT! WAIT! One more thing: You need to do the following otherwise you may experience problems with WIFI:
Download the apk BuildProp Editor and use it to set
ro.securestorage.support=false (thanks @TEKHD for checking this)

WAIT! WAIT! WAIT! May be an issue with private mode not working (see http://forum.xda-developers.com/showpost.php?p=61033627&postcount=109 ). I did not have this problem on kitkit. I am unable to test till next week so if someone can check it out that would be great.


http://www.4shared.com/zip/Z8g1u3FHba/llfk_permissive_lpop.html


dropbox link

https://www.dropbox.com/s/ud84t2fc3n9sqdg/llfk_permissive_lpop.zip?dl=0



Below only applies to the KitKat version.

(04/07/15) Update:

Well, I had a little time and decided to add a feature to LLFK. So for now it has the following three capabilities.
1)Allows you to set SELinux = Permissive
2)adb insecure
3)init.d support

Here is the link for the tar file. (follow same instructions given below to install via ODIN):

http://www.4shared.com/archive/2PepSJcPce/llfk_permissive_initd_adbtar.html

Let me know if/how it works...

New features:

The kernel is now adb insecure. This was accomplished by replacing the adbd file in ramdisk with one due to @freeza. Big thanks to him (as in buy him a cup of coffee!) for giving me permission to use it. With adb insecure you can now remount system as r/w from your pc which can come in handy at times.

The kernel has init.d support (Allows you to run scripts from boot) by modifying the ramdisk using the instructions in STEP 1 (Making kernel ready) of the following post

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

So this part is done for LLFK

For it to work, the user still needs to make some minor modifications (add a file and create a directory) in their rom. To do this, please follow all 4 parts of STEP 2 (Making Rom Ready) in the same post.

Once you have completed STEP 2 you are ready to try some scripts.

You can search the Internet for init.d scripts to try.

For example there are some init.d scripts in the later half of the following post to give you an idea.

http://en.miui.com/thread-5685-1-1.html

If folks can experiment to see what scripts work I will make a list and post it here.

Seems to work OK on Hyperdrive and Lab Rats (let me know otherwise).

CAVEAT: When testing whether init.d support was successfully implemented I had tried some scripts (like echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb; ) that should have modified some kernel settings at boot up. But as it turns out there are a set of scripts that run after boot up that supersede these settings. These scripts are in the file /etc/init.qcom.post_boot.sh. (some other neat stuff to play around with in there!) If you want those scripts to not take effect you can simply comment them out and then your init.d scripts will work.


The usual disclaimer and Good Luck

Original post 1/30/15
**********************************************************************************************************************************************************************

Hi. I thought I'd give out this kernel which allows one to set SELinux=permissive for a rooted T-Mobile Note Edge with base NK3. This setting is needed if you would like to run Linux on Android and, I believe Viper4Android if you are so inclined, as well as some other specialized apps (for future reference, let me know what apps you use that need this setting). Once you have loaded this kernel you can use the app SELinuxModeChanger, found in the play store, to set SELinux=Permissive and back to Enforcing. Note, this setting is maintained until you change it back in the app (rebooting will not change the setting). Anyways, what I am providing is a gzipped tar file that you can download, gunzip and then load on your phone using ODIN (version 3.07 worked fine for me, goes in PDA). Remember, this kernel is ONLY for the T-Mobile N915T NK3 rom. Actually, I have only tested it on the Lab Rats rom so hopefully it will work on other roms for T-Moble N915T with NK3 base.

As most folks like to have a name for their kernel I've decided to call this the "Low Lying Fruit Kernel" (LLFK) because it only has a minor change made to it. Indeed this kernel is about as low as it goes (lol) as not a single line of code is changed. I only changed an option in the Makefile from true to false. Details are given at the following github site.

https://github.com/mscion/Permissive-Kernel-N915T-EDGE/

Anyways, I've been using this kernel for over 10 days with no problems, but, of course , for those that try LLFK, the usual warnings apply! I am not responisble for anything that happens to your device as a conseqence of
using this kernel. Indeed you have to be crazy to try it as I have zero experience at this! You also might want to read this before you try setting SELinux=permissive:

http://en.wikipedia.org/wiki/Security-Enhanced_Linux

One more thing, while my preference is that an experienced dev make a kernel worthy of the N915T EDGE, I am open to suggestions to make some more modifications assuming the request are somewhat consistent with the philosophy of LLFK.

Thanks to @jimmydene84 for boot.img and @deeznutz1977 for testing!

Don't forget to do a full back up! Good luck!

Kernel Download link: For SELinux=Permissve option only

http://www.4shared.com/archive/oH5fE053ba/llfk_permissivetar.html
 
Last edited:

VenpaCasa

Senior Member
Apr 27, 2009
314
33
0
Dorchetser
Hey that you that working. I was wondering if there was anyway you would make/try to make the same type of mod/kernel for the sprint version. N915P I believe it is. I will be more than willing to help anyway I can.

The reason I need SELinux to permissive is because to use certain bluetooth controller mapping apps u need it on permissive. Specifically the OG Moga Pocket, that controller only works with the pivot app. In order to have android pick it up as a hid controller, I need the app I use to access linux. I really hate to ask but it looks like there's very limited dev for sprint ?
 

mscion

Senior Member
Jul 26, 2011
1,996
1,078
133
North Potomac
Hey that you that working. I was wondering if there was anyway you would make/try to make the same type of mod/kernel for the sprint version. N915P I believe it is. I will be more than willing to help anyway I can.

The reason I need SELinux to permissive is because to use certain bluetooth controller mapping apps u need it on permissive. Specifically the OG Moga Pocket, that controller only works with the pivot app. In order to have android pick it up as a hid controller, I need the app I use to access linux. I really hate to ask but it looks like there's very limited dev for sprint ?
Ok, As long as you are willing to test it! Presumably no harm will be done as long as you do a full nandroid back up. Give me a few days to gather files and such...
 

VenpaCasa

Senior Member
Apr 27, 2009
314
33
0
Dorchetser
Ok, As long as you are willing to test it! Presumably no harm will be done as long as you do a full nandroid back up. Give me a few days to gather files and such...
Omg dude if ur really serious, hell yeah I'm willing to test. I'm extremely greatful n lost for words right now. Thanks so much for just attempting ?? at least. Made my day lol
 

mscion

Senior Member
Jul 26, 2011
1,996
1,078
133
North Potomac
kernel is not se android enforcing :)
Hi @deeznutz1977. Depending on rom, I think when you boot up you will get that message. Please check in settings > about device and see what SE for android is showing. For now I have pulled the kernel because I unwittingly used the boot.img from lab rats rom to pack in my zImage file that allows permissive setting, cause I thought it was not modded. I am currently waiting to hear from @jimmydene84...
 
Last edited:

mscion

Senior Member
Jul 26, 2011
1,996
1,078
133
North Potomac
@mscion you still had to use the selinux changer app correct?
Yes. Check the OP for more details. Once you have installed this kernel, you have the option to turn permissive on or off with this app. You should also be able to set it from command line as well. May I ask which rom are you using? Also, as I just mentioned I need to check with jimmydene84 about his boot.img...
 
Last edited:

deeznutz1977

Senior Member
Jul 4, 2010
4,455
3,391
0
43
cHARMcity,MD
Yes. Check the OP for more details. Once you have installed this kernel, you have the option to turn permissive on or off with this app. You should also be able to set it from command line as well. May I ask which rom are you using? Also, as I just mentioned I need to check with jimmydene84 about his boot.img...
Stock deodexed. And sorry about not reading the op. Don't you know that all of the cool people don't read ops

Sent from my SM-N915T using Tapatalk
 
  • Like
Reactions: mscion

mscion

Senior Member
Jul 26, 2011
1,996
1,078
133
North Potomac
Got excited for a minute I thought deeznutz1977 said he flashed on a Sprint Note Edge. Had to read it over a couple times.
Almost there. It appears to have compiled fine. I need to download the sprint rom and extract its boot.img file so I can pack the file for you to odin. Maybe this afternoon...

I will use the sprint deodexed version NK1, to extract boot.img from, that @snovvman has posted in the sprint developers thread. (hope that is ok! EDIT: We're good!)
 
Last edited:

VenpaCasa

Senior Member
Apr 27, 2009
314
33
0
Dorchetser
Almost there. It appears to have compiled fine. I need to download the sprint rom and extract its boot.img file so I can pack the file for you to odin. Maybe this afternoon...

I will use the sprint deodexed version NK1, to extract boot.img from, that @snovvman has posted in the sprint developers thread. (hope that is ok! EDIT: We're good!)
Honestly your awesome. I was starting to regret my purchase too. I'll assume you weren't asking me if it's ok but if you were, yeah that's fine. I'm actually any using that ROM
EDIT: Just saw your edit n thanks (to both) that's so awesome! I owe you guys!
 
Last edited: