yashsingh1/xdaforums huggingface dataset:
[One (M8) Original Android Development] flar2:
Yes, when I get around to the update
[One (M8) Original Android Development] deathsycthehe11:
Thanks. I did some test runs where I rebooted it and waited a couple minutes. Sometimes it works, sometimes it doesn't. I turned off pocket detection and right now it seems to work every time I rebooted. I think my phone just weird, since the motion launch wasn't working with stock GPE when I flashed it and reflash. Not sure if you can give me advice on what else I can tinker with but so far is working with pocket detection off. Would there be something wrong with my sensors? Thanks for the help. Sorry for detracking the thread. Thanks for the kernel.
[One (M8) Original Android Development] flar2:
I would guess the proximity sensor is screwy
[One (M8) Original Android Development] pizz0wn3d:
See that's how I have mine set up as well, but it seems to re-enable itself when I reboot the phone.
[One (M8) Original Android Development] majekqwert_xda:
Greate kernel.

But i have problem with sd card encryption. When i turn on encryption m8 say sd card is crash. Format etc. don't help. After reboot rom crash after lock screen. I have ARHD 50.2. On stock kernel encryption works.
[One (M8) Original Android Development] artur0588:
[MENTION=4684315]flar2[/MENTION], can you make kernel adbd insecured to support adb remount on ex kernel for sense 7 android 6?
[One (M8) Original Android Development] -Duir-:
[MENTION=4572763]artur0588[/MENTION], why not take the 5 minutes and make the changes yourself rather than ask the dev to change how he releases his kernel?
[One (M8) Original Android Development] artur0588:
I have tried all thing working on Android lollipop and below and got failed.
[One (M8) Original Android Development] jknut:
Might this work? It works for me when I need adbd insecure for something else.

http://xdaforums.com/showthread.php?t=1687590
[One (M8) Original Android Development] alex6600:
That solved by ro.adb.secure=0 in default.prop?
[One (M8) Original Android Development] leon22heart:
Can't you use adb insecure by chainfire ? This is what I use .
[One (M8) Original Android Development] bford152:
Amazing!! Thank you!!
[One (M8) Original Android Development] artur0588:
That cause device offline and Android 6.
[One (M8) Original Android Development] JohnHorus:
gesture battery usage

I would also like to know which mode is more battery friendly. I would assume mode 3, as it's kernel-only. However, I wonder if the stock ones perhaps make use of low-power states more effectively?

Also, I remember reading for the Nexus 4 that double-tap to wake is much better on battery than sweep, as the phone has a low-power chip built specifically to detect double taps, but not sweeps. Is there anything like that in the M8?
[One (M8) Original Android Development] flar2:
They're all about the same. None cause any significant battery drain.
[One (M8) Original Android Development] rex1701:
No it isn't.... this is:
[One (M8) Original Android Development] bford152:
That would be amazing if you used your phone more than 45 minutes a day......
[One (M8) Original Android Development] rex1701:
Well I don't, usually I use a computer. But the other stat I quoted was terrible.
[One (M8) Original Android Development] SergioRmz:
If the user thinks that his battery life is good, I don't think you have authority to say whether is a good battery life or not since is HIS phone and his user experience. This is an amazing kernel. I don't understand why people try to fight to see who has better battery life.
[One (M8) Original Android Development] NexusS4gFreak:
Anybody got the link for the kernel we flash for arhd or skydragon? System MOD patch
[One (M8) Original Android Development] Leon:
When I lock my phone with swiping ,phone is locked but the screen wont turn off, immediately screen turn on for few seconds.Thats happend when I upgraded to marshmallow.
[One (M8) Original Android Development] kalel77:
delete, sorry
[One (M8) Original Android Development] uvt_novice:
[MENTION=4684315]flar2[/MENTION], is there any chance to set an option for Marshmallow kernel (at flashing) to choose the selinux either permissive or enforced? Currently is it not included though. Thanks.
[One (M8) Original Android Development] flar2:
Flash this in recovery for permissive:

https://www.androidfilehost.com/?fid=23991606952602503
[One (M8) Original Android Development] lesterinidad:
Is it applicable to use on lyapota's gpe rom? :)
[One (M8) Original Android Development] flar2:
works on any ROM that uses SuperSU
[One (M8) Original Android Development] flar2:
UPDATE!

Minor update, I've switched to anykernel method for the installation, which means it uses the existing ramdisk. This means you should not install this over other custom kernels. Only install over the kernel that came with your ROM. The easiest way to ensure everything will work is to dirty flash your ROM before installing ElementalX. Please let me know whether it works or not, with details if it fails (/tmp/recovery.log and /proc/last_kmsg). I've tested many scenarios, but this is fairly complex and we need to catch everything.

Note that you can always flash updates of ElementalX over previous versions of ElementalX.

You can use fm radio on GPE with this release, I've only tested on Spirit2: Real FM Radio 4 AOSP https://play.google.com/store/apps/details?id=fm.a2d.s2 YMMV with other apps.

Download:

ElementalX-m8-6.03-Sense

ElementalX-m8-6.03-GPE

Changes:

-update installer for maximum compatibility

-load fm radio module by default
[One (M8) Original Android Development] SergioRmz:
I can confirm stock FM radio app is working on GPE with your latest kernel.

Flashed on top of LonelyX kernel. Working good so far, do I need to wipe Dalvik cache?
[One (M8) Original Android Development] doc_v15:
Yeah man, some people thought everything is competition
[One (M8) Original Android Development] Rainman26:
Have you encountered any issues like set on boot settings not sticking?
[One (M8) Original Android Development] SergioRmz:
Yes. I just noticed that some values reset to default on reboot. I tried to change I/O scheduler, readahed value, vibration and disabling zram and only vibration change survived after reboot.
[One (M8) Original Android Development] henk-jan:
I have the M8 with ARHD MM 6 V 51. With the "normal" ElementalX kernel it's again unrooted so I had to use 6.02 Sense systemless V266 (a mod by Duir)

Can I use this new Kernel without being unroot again?

Thanks for all your excellent work flar2.
[One (M8) Original Android Development] flar2:
Yes, that's why I changed it to use the existing ramdisk
[One (M8) Original Android Development] flar2:
Every setting in the app sticks. Problem is on your side, either you didn't click apply on boot or something else is interfering.
[One (M8) Original Android Development] SergioRmz:
I did clic "apply on boot" but I'm afraid is because of the ROM configuration. Not a big problem though, I was just testing it.
[One (M8) Original Android Development] _purple_:
I see you like to live dangerously. flar2 wrote: "This means you should not install this over other custom kernels." Not sure if you missed it or being a hardcore tester, so just mentioning it.
[One (M8) Original Android Development] SergioRmz:
That's the kernel that comes with Lyapota GPE ROM.
[One (M8) Original Android Development] _purple_:
Oh, silly me. Sorry for the confusion I caused to the thread.
[One (M8) Original Android Development] jkolner:
Installed 6.02 over the kernel that came with the rom (Viper 5.0 MM).

Do i have to go back to the origianl Kernel befor i flash 6.03 or can 6.03 be flashed over 6.02?
[One (M8) Original Android Development] flar2:
No, just flash it.
[One (M8) Original Android Development] jkolner:
Thanks, and i must say i really impresed with the battery life of MM and your Kernel!
[One (M8) Original Android Development] Viper4713:
How do I get FM Radio working? I got the Service and the app it self, placed them manually in system/app and system/priv-app, all I get is "FM Radio Service has stopped" is there a zip somewhere to get it? also please do not recommend me to flash lyapota's mod pack, I want my framework files to stay stock and clean, its my understanding there is a FM Radio mod in his pack, don't want his pack, no thank you.
[One (M8) Original Android Development] henk-jan:
Flashed it without any problems, thanks!
[One (M8) Original Android Development] BL4CK_92:
DT2W not working. :(
[One (M8) Original Android Development] flar2:
It works
[One (M8) Original Android Development] rogcaw82:
Flashed on maximus12. All good. No wait for apps restarting. Yay
[One (M8) Original Android Development] BL4CK_92:
i get the vibration for unlock when double tap, but screen won't go on.

Maybe Rom related, 6.02 works flawless.

(SkyDragon newest release)
[One (M8) Original Android Development] Giblet-dono:
Please try to reboot and test it again..

I just tested it and for me D2TW also didn't work..

After a reboot it works again.. not sure yet whats going on, but I'd like to know if we have the exact same problem

(On ViperOneM8 5.0.0)
[One (M8) Original Android Development] BL4CK_92:
you are right. after rebooting multiple times it now works.

mysterious :D
[One (M8) Original Android Development] Giblet-dono:
[MENTION=4684315]flar2[/MENTION]

First thing for me that comes to mind: Doze?

If there's something I can do to help diagnose the problem send me a message!
[One (M8) Original Android Development] ulmcity:
It exist only this kernel for mm Sense? I miss other govenors..

but thanks for the work...he runs good
[One (M8) Original Android Development] Giblet-dono:
Not really a question you should ask here, this is the thread for this kernel, why would we point to other kernels?

And the thing with governors is that only if a governor is specifically configured for a device, it will do any good..

Adding multiple governors will make the configuring of them a lot more work, and a lot harder..

In this case, supporting only a few governors is beneficial because it means these governors will be very well optimized!

Besides, I have never had any problems with the default governor, it's battery friendly and performance amazingly well!
[One (M8) Original Android Development] ulmcity:
It's ok... I have installed the elemental

thx
[One (M8) Original Android Development] flar2:
It's probably ROM related, maybe they have some sort of doubletap to sleep implemented and these cancel each other out.

There is definitely no problem with dt2w at the kernel level. It works and I haven't changed it for a long time.
[One (M8) Original Android Development] Giblet-dono:
Well sure it's a rom thing, still doesn't explain what the problem is, and might still be something that could be helped/explained on kernel level

For me this started when I started using MM, as I use ViperOneM8 and the other guy uses skydragon it's probably not related to a single rom but more likely to a base..

As such I suspect a feature in MM breaks this, and as I said in my post, maybe it's doze..

Then there is the fact that it does vibrate but doesn't power on the screen, which of course means it registers the action we are trying to perform but doesn't wake up..

The question here for you flar2 is: what does the DT2W command do when it's triggered..

It vibrates and then? does it simulate a button press? or is there another way it tries to turn on the screen? and can this command be changed or tested in different scenario's?
[One (M8) Original Android Development] flar2:
I will check again, things are complicated on the m8.

If it vibrates, it means that the gesture was detected on a kernel level. Depending on the mode you're using, it's up to userspace to respond (EasyAccessService). If HTC's gestures are disabled, than you will have the behaviour described: perform the gesture, but no response from the system.
[One (M8) Original Android Development] Burth67:
Hello,

Can some body advice, just download ota update Marshmello 1,6 GB now on my internal storage, where can i find this image to capture save it. Thanks
[One (M8) Original Android Development] nightcervant:
I bought the first version of the app, today I bought this version, great job as always [MENTION=4684315]flar2[/MENTION]

Inviato dal mio HTC One_M8 utilizzando Tapatalk
[One (M8) Original Android Development] i'mrunningoutofusernames:
EX and Su

Flashing ElementalX 6.03 Sense along with SuperSU 2.52 doesn't boot for me. I'm on Stock European Sense Marshmallow with some apps removed. I flashed it over the stock boot image. Flashing only EX without SuperSU works and flashing SuperSU with topjohnwu's modified boot image for root works too.

I have tried flashing EX over stock then SuperSU and also SuperSU then EX, however nothing works.

Does it have anything to do with selinux? It's unchanged for me. I also didn't use post 2.52 versions of SuperSU because I thought they were systemless root. If they are traditional root then I will give them a go.
[One (M8) Original Android Development] flar2:
You'll need to use supersu 2.66 and go systemless if you're using stock. Flash supersu first, then elementalx.

For others using pre-rooted roms, you can simply flash elementalx.
[One (M8) Original Android Development] i'mrunningoutofusernames:
Thanks for the clarification. Since traditional root works with topjohnwu's modified boot however, do you think flashing EX over that and then flashing SuperSU 2.52 would work? Thanks again.
[One (M8) Original Android Development] flar2:
It should work
[One (M8) Original Android Development] morphmk:
How can I get back to stock kernel? I'm using htc one m8 with sense on android M.
[One (M8) Original Android Development] Giblet-dono:
dirty flash your current rom

(reflash)
[One (M8) Original Android Development] morphmk:
Hi,

I'm currently on stock Marshmallow. No rom.

Is reinstalling SuperSU 2.66 beta going to restore stock rom? Because I notice that after reflashing supersu 2.66 swipe 2 lock no longer works,
[One (M8) Original Android Development] Giblet-dono:
Reflashing SuperSU won't help.

You need to either find:

A stock kernel zip or the full stock rom zip you are using

If you can't find either you could try to extract the kernel from a stock system.img or a custom rom which uses the stock kernel

When extracted you could try flashing it, but it might not work so make sure to backup.

As a "last resort" you could always find an RUU for your stock rom, but it will wipe your data!
[One (M8) Original Android Development] _purple_:
This is the right thread for your question. Since I'm polluting this thread with another useless post, in order to restore stock kernel, you need to use a backup from before installing ElementalX. You only need to restore system and boot images as far as I know.
[One (M8) Original Android Development] Viper4713:
Just reporting here but I use 2.52 traditional root with your kernel (6.03) just fine on full stock GPE Rom, this ROM is not pre rooted, I flash supersu it self manually.
[One (M8) Original Android Development] kami2k:
changelog for lastest ver plz cant find in {OP}
[One (M8) Original Android Development] _purple_:
Could ElementalX have affected how aggressive the auto brightness function is?
[One (M8) Original Android Development] Hamodi:
I'm trying to flash the kernel overclock with sky dragon 6.1 mm Tom , but I'm getting boot loop

Any ideas ??
[One (M8) Original Android Development] flar2:
If you enable backlight dinner, then yes

No ideas, post logs.
[One (M8) Original Android Development] _purple_:
This setting cannot be found in the Aroma installer of EX 6.03. I don't exactly know what it is. I couldn't find anything related in /etc/elementalx.conf either. I suppose it is a feature that can be used with the EX Kernel Manager only. Could you please tell me what the default behavior is? Does the aroma installer change the stock behavior of auto brightness?
[One (M8) Original Android Development] flar2:
The default behaviour is identical to stock as far as I know.

However, if you are using Sense, HTC has not released the kernel source yet, so who knows.

People need to beg HTC to release source code, it's very frustrating to developers and impossible for me to deliver an optimal product without it.
[One (M8) Original Android Development] _purple_:
[MENTION=4684315]flar2[/MENTION] Yes, I forgot to mention that; indeed I have Sense Rom. Through which communication channels do you believe is the best way to reach HTC and express our wish to release the source code?
[One (M8) Original Android Development] alex6600:
Del
[One (M8) Original Android Development] _purple_:
It turns out, the issue I'm facing has nothing to do with EX. I discovered with the help of GPS Status that the ambient light sensor is acting up after MM update. I restored a completely stock backup and noticed that from 150 lux measurement it jumps to 1000, then 1500, then 2700, then 4070. No intermediate steps. And this is why the auto brightness is so aggressive.
[One (M8) Original Android Development] flar2:
HTC did change the backlight driver at the kernel level in marshmallow
[One (M8) Original Android Development] _purple_:
[MENTION=4684315]flar2[/MENTION] I meant to write, the mishap I've noticed is not a result of replacing stock kernel with EX, but updating my device from Lollipop to MM. I flashed EX the next day after updating to MM so my suspicion about the EX being the problem was wrong.
[One (M8) Original Android Development] nightcervant:
Thx [MENTION=4684315]flar2[/MENTION] for update your app
[One (M8) Original Android Development] tonyafc:
What are people feeling is the best cpu governer on marshmallow for smoothness & scrolling?
[One (M8) Original Android Development] Rainman26:
[MENTION=4684315]flar2[/MENTION] may I ask if there would be chances wherein we could have a variable option to choose the read ahead size?
[One (M8) Original Android Development] Forsaked:
If you use the ElementalX App, you can find it under Miscellaneous -> Readahead kb!
[One (M8) Original Android Development] Rainman26:
Yes I know that but it is limited up to 2048kb. I wish it could have more or expand the choices for read ahead.
[One (M8) Original Android Development] flar2:
It should probably be 128. Increasing it wastes memory.
[One (M8) Original Android Development] flar2:
Ondemand is highly optimized by HTC and me
[One (M8) Original Android Development] Zile995:
Asian S801AC(all drivers) M8 version is fully suported by this kernel?
[One (M8) Original Android Development] alex6600:
As can I see- default in app is 512k
[One (M8) Original Android Development] Rainman26:
Thanks for that. I'm using the 2048kb read ahead and runs smoothly. Wishing if I can run 3072kb using your app.
[One (M8) Original Android Development] jbm76:
I've been setting my readahead to 1024kb and using fiops..

What about HTC pnpmgr - I've noticed a few other threads people say to disable it.. Think I get better battery life doing so... Is there any benefit to having it on? Anyone else notice that?
[One (M8) Original Android Development] HwDroid:
Hello! I have sprint harman kardon m8 and I have cm13 so which version should I download?
[One (M8) Original Android Development] flar2:
This is only for Sense and Google Play Edition
[One (M8) Original Android Development] flar2:
I'm not entirely sure. Google has been using 512, but the kernel devs at motorola believe there are performance regressions at 512 or higher and recommend 128.

Personally, I've never seen a difference. Benchmarks will be fooled into higher scores by very large values of readahead, but this does not translate into improvements in daily usage.
[One (M8) Original Android Development] eggydrums:
Has anyone experienced low volume all of a sudden? I'm on the GPe 6.0 ROM with Viper Audio installed along with this kernel. I turned on my phone this morning and the volume was suddenly really, really low. I usually have the audio gain in the ElementalX app set to 10, increasing it all the way to 20 sort of remedies it. I rebooted the phone to see if this bug went away. I checked the app again and the gain set itself to -84! Turning Viper off does not do affect anything either. I'm confused here
[One (M8) Original Android Development] JohnHorus:
Yep, yep, yep. Been having tons of bugs related to system settings and the ElementalX/Hypernova Kernels.

I get headphone gain at -84, I keep having sweep2sleep turned off, my read-ahead won't get set to 2k...

I've been using the Skydragon rom, and I think some of the issues I have are related to the skydragon.sh file in /sbin, but I can't figure out how to get rid of it (as none of the stock scripts work on that ROM anyway.)

Not sure what ROM you're using, but the issues are all over the place and I've spent all of January trying to get rid of them, to no avail.

Not sure what's ****tier, the M8 or Android itself.
[One (M8) Original Android Development] eggydrums:
I'm using this one

http://xdaforums.com/showthread.php?t=2708589

How curious that you get that -84 value as well. I decided to use a spare M8 I had as an mp3 player and it was running fine for like two days until this started happening :/
[One (M8) Original Android Development] flar2:
HTC must have changed something about the sound in the new release. I will have to check this out.
[One (M8) Original Android Development] MassStash:
Have you tried a different rom? Again init scripts may not work well, and Def need selinux permissive for them to work at all I believe. And elex app doesn't set them on boot? Seems to work for me for other settings when testing things, but generally make script how I like, that is flashed in recovery with settings picked in aroma, and script is installed to ramdisk which just loads at boot, not able to edit and save changes.

~m8whl on the Always Solid ViperOneM8 Latest

Hypernova mako_hotplug kernel at 2.572 Max ¦ 300 Min ¦ 1.190 Sleep

interactive (Franco tweaked)*

row
[One (M8) Original Android Development] JohnHorus:
[MENTION=1238555]MassStash[/MENTION]

[MENTION=4684315]flar2[/MENTION]

Ah, ok. It may be SELinux. I haven't seen it in about phone anymore, since MM, so I forgot to look into that.

How do you make it permissive by default? I only see people saying to add setenforce 0 to the scripts, so I'd obviously need to make it permissive BEFORE those would work.

Also trying to figure out how to delete a shell script from /sbin, I just noticed that there's yet ANOTHER default shell script in Skydragon, this one /sbin/skydragon.sh. Even with all the default skydragon scripts removed from /system/su.d, this script seems to be generating logs on boot that conflict with the hypernova logs, so I'm wondering if that's the reason sweep2sleep keeps being turned off while I use Hypernova, but not ElementalX (As EleX doesn't seem to have any issues with sweep2sleep, although read-ahead and headphone gain are still problematic with EleX.)

Funnily enough, however, when I install GoldenDroid init.d tweaks (2.1 balance version,) my read-ahead stays set to 2k. In the past, even GoldenDroid was NOT working, but about a week or so ago, on one of many reinstalls, GoldenDroid started working, and has kept read-ahead set to 2k flawlessly since. All I remember is doing nothing that should have altered that, but whatever. Obviously, I would rather not install a full set of scripts that may conflict with kernel settings just for a single tweak. (And according to flar and Moto, may as well not bother.)
[One (M8) Original Android Development] JohnHorus:
I notice that my benchmark cuts in half with it turned off.

This actually makes a ton of sense! I've always heard that larger values are better, but I can completely see how that would be true in benchmarks but not for the majority of daily usage!

128 seems pretty small, but I can't even develop a kernel in my basement lol, so I'm not gonna argue with anyone other than HTC.

I'm still curious as to what's up with the -84 headphone gain, and how read-ahead *could* be set, but I think I'll just accept it at 512 for now if you say that larger values are a waste. Thanks flar!