yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 Original Android Development] Vaas_FC:
Yeah black screen of death :|

I thought its rom issue and ignored [emoji14]
[OnePlus 2 Original Android Development] denyo81:
Yeah, that's exactly what I meant.

On stock and Boeffla never see this.

Do you have the battery save profile enabled?
[OnePlus 2 Original Android Development] Sam Nakamura:
For me it stuck after swiping from recents at times but didn't survive a reboot.. Or more specific, only the displayed values are back to default, the actual changes are applied, as far as I can tell
[OnePlus 2 Original Android Development] magnamentis:
perhaps it helps to save the entire display settings as a profile and apply that on boot, at least that's what i did and have no issues, still wondering what makes the display so much better looking than before if there is no HBM, could be thermal throttle due to lack of hotplugging or what haveyou, no clue to be honest, still nice to have the effect :) last time i had such a brillant display was with benschholds kernel some time back.
[OnePlus 2 Original Android Development] Sam Nakamura:
That's exactly what I did, it's getting applied on boot flawlessly (I think) but it's does not display the values I changed.. Only default is shown

The display seems brighter to me too, nice thing.. :)
[OnePlus 2 Original Android Development] magnamentis:
read the following and you know that it's not kernel related, impact on batter is possible but over all minor, it' user space and has to be troubleshooted from your side. many install new kernel and eventually clean install a rom and jump to conclusion after the first few hours of usage while the battery hog can become relevant at a much later stage, be it for not being used before due to some memory leaks and or cache building that would slow down the device and/or increase battery usage of some kind

as mentioned above, "THIS" is your read :) ;)

---------- Post added at 11:18 PM ---------- Previous post was at 11:15 PM ----------

[/COLOR]

is that your question?

the answer is: yes of course (probably the vast majority) but i'm sure now comes the real question (Part II) and all that at the end will take 4-6 posts instead of two :) ;)
[OnePlus 2 Original Android Development] saurabhp75:
It wont take so many posts [emoji4] . I am on lineageos based rom (octos). The dt2w doesnt work due to lineageos bug.

But there is a workaround for those on lineageos based rom (see below). Aosp/caf roms have this feature working, though. Correct me, if i am missing something.

https://xdaforums.com/showthread.php?p=71482018
[OnePlus 2 Original Android Development] WhoIsJohnGalt1979:
Am very satisfied with the kernel's performance. Finally a stable setup. Got a good 4.5 hrs SOT over 18 hours on balanced profile and 90% of the time LTE. Naptime works like a charm. Thank you Franco. Very happy to see the phone actually in sleep when the phone is off without getting technical that is.
[OnePlus 2 Original Android Development] denyo81:
+1 [emoji106]
[OnePlus 2 Original Android Development] Sam Nakamura:
Can we have a selinux switch, I miss this little comfort sometimes.

Thanks for considering :)
[OnePlus 2 Original Android Development] neolithicera:
There are external ones you can download to switch your selinux status. But it is convenient to have it baked into the kernel I agree.
[OnePlus 2 Original Android Development] Sam Nakamura:
Agree too :good:
[OnePlus 2 Original Android Development] franciscofranco:
From my app? Not a chance. I'm not going to sleep at night if I allow users from changing SELinux to a less secure mode from the app I code and deploy. I extremelly and strongly opose against changing SELinux state.
[OnePlus 2 Original Android Development] ShreyanshLodha:
[MENTION=3292224]franciscofranco[/MENTION] Are you planning on merging the new OOS 3.5.8 source code? Does it in anyway helps to removes or reduces the Network drops?
[OnePlus 2 Original Android Development] Sam Nakamura:
Well, thanks for care and I'm absolutely for selinux enforcing, actually I asked because latest magisk 11.6 sets selinux to permissive, they certainly gona fix this back to normal but I thought I could switch it to enforcing with your app, till I recognized there is no switch in your app, that why ask :) I'm not one of those "viper / selinux don't care about permissive" guys but still everyone can do as they wish, don't you think users are mature enough to handle the responsibilities regarding selinux? Don't get me wrong but isn't it a little overprotective?

By the way, found already a proper solution for the time being - someone shared a flashable zip on the magisk support thread which fixes selinux..

Very interesting answer, thanks
[OnePlus 2 Original Android Development] anupritaisno1:
Agreed

We should maybe just include an sepolicy patch and patch the stuff for v4a if absolutely necessary

Going full permissive for just that small denial is meaningless
[OnePlus 2 Original Android Development] B!Gguy:
[MENTION=3292224]franciscofranco[/MENTION] Consider adding an init.d switch to the app to execute init.d scripts at boot.
[OnePlus 2 Original Android Development] magnamentis:
probably i missed the point but selinux switch is in the rom you're using under miscellaneous on the very top, first feature :) let me know what i missed because i'm somehow sure you knew that :)
[OnePlus 2 Original Android Development] denyo81:
Why you not using SELinuxModeChanger? Works perfect on Nougat.
[OnePlus 2 Original Android Development] anupritaisno1:
I just can't believe the stupidity in this thread

Is typing setenforce 0 that hard?

---------- Post added at 03:38 ---------- Previous post was at 03:35 ----------

The problem: init.d runs while the kernel boots and system is mounted but before​ SuperSU or magisk can actually put their patches into action. Due to this your script can be severely limited by selinux in enforcing mode

---------- Post added at 03:44 ---------- Previous post was at 03:38 ----------

Benschhold's is really good but his display calibration is honestly a huge mess

While his calibrations do look good to the average person, he actually increases the clarity beyond what I consider "natural"

To put it in simple words, his calibration makes colours appear more vivid than what they should look like in real life

A real disappointment for me

[MENTION=4729623]benschhold[/MENTION] I'm just gonna tag you to let you know about this
[OnePlus 2 Original Android Development] Sam Nakamura:
Well, you're right, I'm fully aware of the rom sided switch but after flashing magisk 11.5&11.6 the mentioned switch was set to moderate and even if toggled to enforcing it popped back to moderate the next time you open this setting... So no way to make it stick on enforcing :) this is a very specific issue with magisk atm..

therfore my thought was to switch it via kernel app as used on various other solutions, so I thought why not asking but franco has told his point of view and meanwhile I found a proper solution anyways..
[OnePlus 2 Original Android Development] anupritaisno1:
If your ROM can't change selinux state, neither can a kernel app

Thanks for letting me know about this. I will try to fix the issue on my ROM
[OnePlus 2 Original Android Development] Sam Nakamura:
No, of course not :) lol

I guess you know what Einstein said about stupidity, if not that's worth a search..
[OnePlus 2 Original Android Development] anupritaisno1:
OT: i guess you know what he said about not cluttering your mind with unnecessary information
[OnePlus 2 Original Android Development] Sam Nakamura:
OK, didn't know about this, I thought I observed the difference with boeffla and his config app where I could switch back to enforcing on similar occasions but I could be fallen for a false assumption, Idk..

Anyways, it's solved, thanks for sharing information about this
[OnePlus 2 Original Android Development] anupritaisno1:
Please read up on

LSMs like

Apparmor

Selinux

TOMOYO

To get a rough idea on how they work

Also read about LSMs in general

You'll find this information in the arch and gentoo wiki

There is no documentation on selinux. NSA
[OnePlus 2 Original Android Development] franciscofranco:
I already have a sepolicy change for V4A. It should work just fine.

init.d is dead. Use su.d or something similar.
[OnePlus 2 Original Android Development] WhoIsJohnGalt1979:
V4A works just fine.
[OnePlus 2 Original Android Development] Droidlover123:
Hi dude...

Thanks for this awesome kernel....

Could you please try building it for oxygen os once again(i read you tried and it didn't work). But now as sources are released, it may help....

Just a request ... Thanks
[OnePlus 2 Original Android Development] B!Gguy:
Yes. What I meant was to execute init.d scripts while setting set on boot values. By then root is acquired by the app. Exactly what "universal init.d" does.
[OnePlus 2 Original Android Development] franciscofranco:
I'm sorry but I don't have any plans to build for OxygenOS anymore. Small number of users and it's just not a good time investment at this point.
[OnePlus 2 Original Android Development] B!Gguy:
Can't use su.d without changing selinux status. I meant the ability to execute scripts in init.d(or whatever directory) on boot. Just like "universal init.d". So we don't have to depend on another app. Would be a nice feature.
[OnePlus 2 Original Android Development] anupritaisno1:
Oh if you want that just get the init.d kernel injector script from osm0sis thread

https://xdaforums.com/showthread.php?t=2239421
[OnePlus 2 Original Android Development] Mohit31:
Can anyone share some good display settings with fk updater app..? I am not satisfied with my current display setup

Thanks
[OnePlus 2 Original Android Development] B!Gguy:
It was a suggestion for the app.
[OnePlus 2 Original Android Development] franciscofranco:
Thanks for the suggestion.

Everyone has different preferences, just change the values until you like what you see.
[OnePlus 2 Original Android Development] anupritaisno1:
Btw Franco

Op2 doesn't have verity

Safetynet patch wasn't necessary
[OnePlus 2 Original Android Development] denyo81:
[MENTION=3292224]franciscofranco[/MENTION]:

Everyone has different preferences, just change the values until you like what you see.

Not really. Stock settings working fine.

But I see from time to time a message.

Like higher display values are not compatible with your kernel or anything like this.
[OnePlus 2 Original Android Development] B!Gguy:
[MENTION=3292224]franciscofranco[/MENTION] Any plans to make an open-source version of the app? I usually don't give root permission to proprietary apps. I can always use KA. But you should consider this because everyone's concerned about their privacy these days.
[OnePlus 2 Original Android Development] franciscofranco:
Absolutely not. What are you afraid of?

I don't know what you're talking about.

I merged that patch? If I did then it's a mistake, I know it doesn't have verified boot.
[OnePlus 2 Original Android Development] B!Gguy:
Not afraid. Concerned. Giving root permission to a proprietary app is one of the stupidest things to do. Full control over device without knowing the source code ?. As I said I can always use Kernel Adiutor. But you should/will have to consider it in future. It doesn't mean you should give full version freely.
[OnePlus 2 Original Android Development] anupritaisno1:
He doesn't want to share his porn with you that's all

Think you accidentally did

https://github.com/franciscofranco/one_plus_2/commit/1e3580029153830d4a4a6afa6b4aec0e7e0b8a21

However i just want to say one thing

I am crazy and i attempted to actually add these flags to the device tree https://github.com/anupritaisno1/an...mmit/1d11529c0d4f961b173ce43343674cc11f3f3c06

Now my stuff passes safetynet without needing a kernel or magisk's hack :D
[OnePlus 2 Original Android Development] B!Gguy:
You would give root access to a proprietary app ? I thought people were more evolved than this.
[OnePlus 2 Original Android Development] anupritaisno1:
SuperSU is proprietary

Welcome to this world. Google made everything and then there was closed-source
[OnePlus 2 Original Android Development] B!Gguy:
Ha ha. Who said I'm using SuperSu? What about google? Android is open source! XDA is full of noobs.
[OnePlus 2 Original Android Development] anupritaisno1:
Really you're the idiot here

I really don't understand this stuff about proprietary especially when

1) you don't compile it yourself

2) you don't read the source code before compiling

3) you use a released binary from the play store

Really I don't see anything about trust here but i see pure stupidity
[OnePlus 2 Original Android Development] B!Gguy:
Who said I don't compile or read the source code ? Do not come to any conclusions yourself.
[OnePlus 2 Original Android Development] anupritaisno1:
:mad:

It is much more easier to type an selinux policy statement and have it patched in SuperSU compared to magisk

SuperSU's supolicy tool uses the same syntax that is found in the actual sepolicy repo where as the sepolicy-inject magisk uses follows a completely different syntax that I'm not even comfortable with nor do i feel like using
[OnePlus 2 Original Android Development] B!Gguy:
Not using magisk either. Nor phh's superuser. Using stock lineageos root.
[OnePlus 2 Original Android Development] anupritaisno1:
That's dumb
[OnePlus 2 Original Android Development] B!Gguy:
Wow. You think that's dumb ? Not giving full control over your device to a proprietary app ?
[OnePlus 2 Original Android Development] anupritaisno1:
I use

Gapps

Proprietary ril driver

Proprietary bootloader

Proprietary GPU drivers

Juicessh to connect to my server and do my work

Cf lumen

Liveboot

Nova launcher

Proprietary apps to see my videos (YouTube)

Telegram (upstream source code isn't proprietary)

....not to mention that i am using Google keyboard to type this message and my browser is chrome

Oh yeah, I use a proprietary kernel on my phone too....
[OnePlus 2 Original Android Development] B!Gguy:
I'm talking abt root apps dummkopf(youtube, Chrome, Gboard, telegram. Really?).

Btw why the hell you need cf.lumen when there's LiveDisplay/or Night shift on fk app?

You think Lord Boeffla's Dumb too for using lineageos internal root? -> [LINK]https://xdaforums.com/oneplus-2/ori...kernel-5-0-alpha8-11-04-t3357167/post71604873[/LINK]

Lmao. You think franco kernel is proprietary ? I feel sorry for you buddy. There aren't any proprietary kernels for android.
[OnePlus 2 Original Android Development] anupritaisno1:
Nope Franco ain't proprietary

But what i am using is a test build of my own stuff which isn't released to the public yet.

Kernel you make and do not distribute to the public is yours. Since you aren't releasing it you aren't under compulsion to release the source. Literally that makes all the test builds i use for personal debugging proprietary. ( I'm only required to do a source release when actually releasing a stable build)

Omg that's proprietary

Time to stop this discussion since you seem to be one of those people who will do anything to get a fake sense of trust and security
[OnePlus 2 Original Android Development] B!Gguy:
If you compiled the kernel how the hell it can be proprietary ? You're the only one using it!

Fake sense of security ? Any child can build a simple payload to get everything from an android device. Welcome to the 21st century.

I usually don't argue with people like you but I came this far thinking you would learn something. Waste of my time.
[OnePlus 2 Original Android Development] anupritaisno1:
Learn what?

I have personally tried going without gapps and also microg.

The thing is, a handy app that makes your life easy by automatically flashing the latest and greatest Franco kernel shouldn't be suspected

You can flash it yourself you are under no compulsion to use his updater
[OnePlus 2 Original Android Development] sanyam mehta:
Does it supports xos
[OnePlus 2 Original Android Development] anupritaisno1:
What is xs?
[OnePlus 2 Original Android Development] B!Gguy:
No. It doesn't support halogenOS. Only supports lineage based roms(for now). Maybe it'll work. Can't say for sure.
[OnePlus 2 Original Android Development] sanyam mehta:
Halogen os

---------- Post added at 07:13 PM ---------- Previous post was at 06:16 PM ----------

No

---------- Post added at 07:15 PM ---------- Previous post was at 07:13 PM ----------

But y not on xos
[OnePlus 2 Original Android Development] Sam Nakamura:
Let's be more specific, it's not designed to run in a AOSP based environment, that is what the OP says, on page 3 or so Franco himself said to another user that it will run on a AOSP based distributions (DU or something like that, don't remember exactly), so we have two contradictory statements, unfortunately I didn't get any further information even I asked twice, but actually it shouldn't matter as you have always the possibility to backup and try yourself, in worst case it won't boot and you have to restore the previous boot backup, of course some rom functions might misbehave when rom & kernel don't really match but that's the adventure you'll have to pass, go find out :)

Maybe a surprise is already waiting for you, maybe not, only you can tell..
[OnePlus 2 Original Android Development] Sam Nakamura:
Personal Highscore today :) battery saving profile, lots of mobile data, traveling around, great performance, big thanks...

Gonna top it tomorrow (lol)
[OnePlus 2 Original Android Development] TioCareca:
It can run in other roms, but not supported by Franco, so if something goes wrong or not work as it should the dev can't be blamed as it is stated in first post only for LOS 7.1.1 based roms...
[OnePlus 2 Original Android Development] anupritaisno1:
Ok firstly I'd like to clear one misconception that everyone has

This kernel should technically work on all ROMs out there except oxygenos and hydrogenos

It doesn't matter what you use as a base, all ROMs usually fork the lineage kernel, do a rebrand and release. A rebrand essentially is just a rename

What Franco says that he will not give you support if you use his kernel on these ROMs however this kernel should work on all ROMs
[OnePlus 2 Original Android Development] Yulianstefanov:
Help?

Any fix for autofocus on this kernel?

I'm using halogen os and I know it's not officially supported, but its based off lineage os and works very well so far apart from this small thing. Is this a known bug already or not? If so any fix or hope? I really like the stability and amazing battery so I really don't want to change or go back to stock... Anything appreciated :)
[OnePlus 2 Original Android Development] Pires_7:
How the he'll are you accomplishing this SOT?? Congrats man.

I'm not even able to top 3hours!

Maybe my battery is dead, my oneplus 2 is more than 2 years old. Think I should replace the battery??
[OnePlus 2 Original Android Development] Sam Nakamura:
Of course, this was going to my mind too but it's not clearly stated, therefore we have to assume that it is for support reasons rather than the actual ability to run on aosp systems.. Which is a normal thing to do

I know from Boeffla that his kernel ran on DU marshmallow but it's blocked on DU nougat, the kernel can be flashed but the config app won't install, he argued that through recent changes for the nougat builds they're out of compatability.. So pointing to technical reasons, I mean this example shows potentially technical limitations but theoretically it should work (more or less good)...

---------- Post added at 10:36 PM ---------- Previous post was at 10:34 PM ----------

Sounds not to good, do you apply battery saving profile and do you use naptime?

Check out the better battery thread to check thoroughly..
[OnePlus 2 Original Android Development] Pires_7:
Yap, battery saving profile applied, and naptime running. I get awesome deep sleep stats. But with screen on, battery life just keeps decreasing. See below Screenshots.
[OnePlus 2 Original Android Development] franciscofranco:
New Franco Kernel version for the OnePlus 2

r5

1. Much better custom wakelock detection & blocking for lower idle battery consumption. All the wakelocks being blocked are available to check on my github repository

2. Better Power-saving Performance Profile implementation

zip: https://kernels.franco-lnx.net/OnePlus2/7.1.1/anyKernel/fk-r5-anykernel2.zip

Franco Kernel Manager & Updater is the best companion for this Kernel (https://play.google.com/store/apps/details?id=com.franco.kernel)

If you don't (yet) have my full featured app you can always just download its free counter part which lets you seamlessly and automagically update Franco Kernel on your device. It's free and my cat approves! (https://play.google.com/store/apps/details?id=com.franco.kernel.free)

I also strongly suggest you install Naptime (https://play.google.com/store/apps/details?id=com.franco.doze), for free, to achieve the best battery life through out the day. Try it, you won't be disappointed!
[OnePlus 2 Original Android Development] denyo81:
If I put the right icon up in startus bar. High auto brightness modus. I get the message high brightness is not available on your kernel.

This feature is for other devices I think.
[OnePlus 2 Original Android Development] franciscofranco:
Logically, this device's panel doesn't support HBM.
[OnePlus 2 Original Android Development] aroblu94:
Hi franco, I'm trying to install your kernel without success. I'm on LineageOS and flashing it through recovery gives me this error:

Dumping/Splitting image failed. Aborting...
Updater process ended with ERROR: 1
Error flashing zip file '/sdcard/Flash/fk-r5-anykernel2.zip'

I use Magisk as well and I first thought it was caused by that, so I removed Magisk but the issue persists.

EDIT: Installed via the app, no problems at all, thanks!
[OnePlus 2 Original Android Development] apoc_lypse:
Thanks for your amazing work [MENTION=3292224]franciscofranco[/MENTION] Please enjoy a beer from my side :)
[OnePlus 2 Original Android Development] sanyam mehta:
Doesn't works on mokee os too ☹️

---------- Post added at 07:48 PM ---------- Previous post was at 07:46 PM ----------

Pls tell me what are R1 R2 etc variants
[OnePlus 2 Original Android Development] aroblu94:
I think 'R' is for 'Release', always pick up the more recent :)

Amyway, It seems it's breaking the double tap ti wake in Lineage OS top but.. not a big deal :)
[OnePlus 2 Original Android Development] Theberge43:
Still works here.
[OnePlus 2 Original Android Development] arjunsingh1000:
+1
[OnePlus 2 Original Android Development] TioCareca:
It's working on mine too, just the bug that if i turn double tap off and reboot, he is on again, but it's a rom bug...
[OnePlus 2 Original Android Development] franciscofranco:
Thank you!

Not Kernel related, this has stock code.

I don't see how that's a Kernel issue, those drivers are 100% equal to LineageOS's Kernel drivers.
[OnePlus 2 Original Android Development] arjunsingh1000:
I see just a bit concerned at first I thought it was a new doze feature or something.. Like the phone just goes in switch off mode automatically I don't know if many are facing this or not still thanks for your active support as always, thanks a lot for development on this side too!
[OnePlus 2 Original Android Development] B!Gguy:
It's a LineageOs bug. Not kernel's.
[OnePlus 2 Original Android Development] IDisposable:
Then why did it go away when I went back to stock kernel, and went away on Andy's all on same Los rom
[OnePlus 2 Original Android Development] B!Gguy:
As franco said,

I use a script to disable this at boot. Use "universal init.d" to run the scripts in init.d at boot.

#!/system/bin/bash

tap2wake=/proc/touchpanel/double_tap

echo "0" > $tap2wake
[OnePlus 2 Original Android Development] apoc_lypse:
Hi, can I use a script to enable D2W?

Cheers
[OnePlus 2 Original Android Development] B!Gguy:
Yes just replace "0" with "1" in above script. Why do you need to enable it via a script ?
[OnePlus 2 Original Android Development] F.eatR:
Is Over/Underclocking possible with this Kernel?

Thanks for your work!