yashsingh1/xdaforums huggingface dataset:
[One (M7) Original Android Development] Imonol:
Hi,

I got a warning to uninstall my Ex Kernel manager from the phone..

So I did after making a titanium backup.

But I can not download it again from play store without paying again.

Anyone else had this problem?
[One (M7) Original Android Development] flar2:
Please read this: https://plus.google.com/+AaronSegaert/posts/jcNmRWsqcnr

Basically, Google mistook it for malware because I had an option to set selinux permissive. So I had to restart from scratch.
[One (M7) Original Android Development] Imonol:
Thanks a lot for this good explanation..

Will buy the new app to support you supporting all of us :thumbup:
[One (M7) Original Android Development] saenfry:
Thanks for the kernel
[One (M7) Original Android Development] provolinoo:
Hi guys, is it possible to use this kernel on the officialy CM12.1?
[One (M7) Original Android Development] mitchst2:
Nope
[One (M7) Original Android Development] devsk:
I have used this kernel with Sense for last 3 weeks and very happy. I decided to move to the GPE ROM (by santod) and the installation of ElementalX-m7-21.1-GPE.zip just hangs. It says "Starting AROMA INSTALLER version 2.7086" and just sits there forever. This did not happen when I installed ElementalX-m7-20.2-Sense.zip for the Sense ROM.

edit: never mind. fastboot erase cache fixed that.
[One (M7) Original Android Development] provolinoo:
So do I have to convert it to a GPE rom first?
[One (M7) Original Android Development] mitchst2:
That or sense if you want to use this kernel
[One (M7) Original Android Development] devsk:
Did you fix this issue? I am running into the same issue with GPE ROM and this kernel. The 'adb shell' always lists the phone as offline.
[One (M7) Original Android Development] devsk:
How will this work with S-ON phones? I think most of the people who have been facing this issue are S-ON. Got any ideas [MENTION=4684315]flar2[/MENTION]?
[One (M7) Original Android Development] !n!t6:
No, I am still without adb. The only way I found is returning to stock GPE kernel.
[One (M7) Original Android Development] devsk:
Yeah, that's what I found too. Returning to stock GPE kernel fixes the issue. We will wait for [MENTION=4684315]flar2[/MENTION] to comment before we proceed further.

btw, I created a file in /system/su.d called adbd and it had these contents:

allow adbd adbd process setcurrent

Are the contents supposed to be a command like 'supolicy...' or they are supposed to the policy itself?
[One (M7) Original Android Development] !n!t6:
I provided the following to su.d

supolicy --live "allow adbd adbd process setcurrent"

but it had no effect on my phone.
[One (M7) Original Android Development] eraycetin:
Does it work on 5.1.1 CM 12.1 ROM? if not, im looking for a kernel for this rom i cant find anything
[One (M7) Original Android Development] mitchst2:
As the first line of the op states, GPE or Sense only.

Isn't really any second party kernels for AOSP I'd recommend.
[One (M7) Original Android Development] devsk:
[MENTION=4684315]flar2[/MENTION]: any update on the 'adb device offline' issue? Its a pain to reboot phone into recovery or type long commands in terminal whenever I want to examine something....:( Without USB debugging, I feel crippled in those situations.
[One (M7) Original Android Development] flar2:
I'm going to do another release for both Sense and GPE when I get a chance. Been very busy with nexus updates lately.

I want to get everything right, as the next releases may be the last. HTC has now sadly abandoned the m7. There will be no more source code releases or updates to the system.
[One (M7) Original Android Development] Orginator:
[MENTION=4684315]flar2[/MENTION]

On the latest H11 update after installing your kernel (21.1) it doesn't find the sim-card or well at least says "no sim-card", thus no GSM..

EDIT: nvm I believe this is another issue, not related to your kernel after all
[One (M7) Original Android Development] mohamadkg:
so what one max?:(
[One (M7) Original Android Development] sirob71:
Is ElementalX-m7-21.1-GPE.zip compatible with the H11 release?

The original kernel 3.4.10-ge0627be from Wed Oct 28 18:10:38 CST 2015

seems to be newer and I wonder if there are disadvantages with the Elemental-Kernel, as it wasn't updated for some time.
[One (M7) Original Android Development] mitchst2:
3 posts above yours OP explains he intends an update when time allows.

I'd say wait if you are concerned.
[One (M7) Original Android Development] sirob71:
I did ask if it's still compatible, not when the next update comes.
[One (M7) Original Android Development] Jaspreet.master7:
i'm using gpe rom and elemental x gpe kernel for 5.1 and no issues
[One (M7) Original Android Development] mitchst2:
Didn't say you did. Merely suggested it was coming and if you were concerned you should wait.
[One (M7) Original Android Development] dancivuk:
lowest safe undervolting?
[One (M7) Original Android Development] Sithhy™:
Please, port this kernel to 5.1.1/6.0.1... I'm currently running SkyDragon with ElementalX 20.2 & managed to OC my CPU to a stable 2,13Ghz with a slightly lowered voltage... I love this kernel like no other [emoji1]
[One (M7) Original Android Development] MPenguin:
Edit: Nevermind. Was a simple fix for my simple problem.
[One (M7) Original Android Development] PlayPetepp:
This is totally insane. Latest sense update on my phone removed deep sleep completely. Can't wait for flars new kernel!
[One (M7) Original Android Development] dancivuk:
what are the optimal overclock settings for gaming? im guessing I should go in on the GPU and go for 1836 mhz on the CPU? since I want to save battery when I am doing lighter tasks. also how do I delay GPU throttling?
[One (M7) Original Android Development] donkeykong1:
You don't need CPU OC for gaming. Lower your CPU to 1.3 Ghz - 1.5 Ghz, to avoid heat build up, and pump up your GPU as high as you can for smooth graphics
[One (M7) Original Android Development] marregazza:
Currently my cpu is 1.5ghz. But I push my gpu quite high since I intend more on gaming, which is 504mhz. It is ok?
[One (M7) Original Android Development] donkeykong1:
It should be. Your goal is to keep things as smooth as they get without overheating, and lowering CPU freq will pretty much do that. Sure, you will loose few fps on demanding games, but your phone will not freeze or shut down while playing games. So, CPU underclock and GPU overclock is the way to go. Also, you might wanna check your CPU voltages - undervolting may cause heat build up on demanding tasks like heavy gaming. So, you should keep CPU voltages stock, no undervolting
[One (M7) Original Android Development] Pressok:
Which i/o tweak recommeded ?CFQ or Row?

saw in aroma install CFQ =stock , Row =default.
[One (M7) Original Android Development] n0j0e:
I preferred CFG stock setting.
[One (M7) Original Android Development] flar2:
Stay tuned for the one final release for Sense and GPE versions after the holidays.

Merry Christmas to all :cool:
[One (M7) Original Android Development] -leo-:
Will it support mashmallow sense port? :D

Merry XMAS TO ALL
[One (M7) Original Android Development] Anzinger:
Does the Kernel works with viper 9 and the new firmware 7.19.401.51?

Thank you
[One (M7) Original Android Development] Iceberger:
Viper 9 is an Android v5.0.2 version and the correct kernel to use will be the ElementalX-m7-20.2-Sense.

If you're not sure you can use the EX kernel Manager App. It will tell you which compatible kernel to use.

Don't forget to use a nandroid backup for insurance.
[One (M7) Original Android Development] Pressok:
does this ex kernel will update the lastest htc kernel source ?

my firmware using m7_UL/developer version 7.17.1540.51
[One (M7) Original Android Development] PlayPetepp:
Most probably it won't.

Wait till it's released but it probably will be based on the latest htc m7 kernel source when it comes out (if htc releases it, it's still 401.22 on their site)
[One (M7) Original Android Development] flar2:
Can anyone give me a quick summary of latest firmware and updates to this device? I'm pretty sure HTC will not update anymore.

Is there a Marshmallow port out yet? Sense, GPE or both?
[One (M7) Original Android Development] Large Hadron:
Don't have details of firmware versions to hand, but the last Sense is 5.0.2, I think GPE is 5.1. Will not be an official Marshmallow.
[One (M7) Original Android Development] cyrusct82:
Latest firmware is 7.19.401.51.

Marshmallow port it's not out yet. Only Cyanogen marshmallow is out.
[One (M7) Original Android Development] nightwind84:
Last update:

m7 sense: 7.17.1540.51

m7 Google Play Edition: 6.04.1700.13

:)
[One (M7) Original Android Development] Pressok:
ya i think no more update already. only i saw A9 and M8 device update
[One (M7) Original Android Development] phalanger:
Thanks! Great kernel, very responsive and I love the doubletap wake and swipe to sleep functions., as well as tweakability Using it with InsertCoin ROM
[One (M7) Original Android Development] just1nsama:
Hi, running 5.0.2 stock intl rom, would like to know what are the best settings for this kernel for best battery life and also what thrid party program do you guys use to customize performance settings.

Thank you
[One (M7) Original Android Development] flar2:
I recommend the defaults. For tweaking, use EX Kernel Manager.
[One (M7) Original Android Development] just1nsama:
Thanks, if i ever want to revert to stock kernel, can I just restore my boot nandroid backup or the kernel setup also modifies stuff in system?

Thanks
[One (M7) Original Android Development] flar2:
You need to back up boot and system on HTC phones
[One (M7) Original Android Development] just1nsama:
Glad i did full backup! ?
[One (M7) Original Android Development] flar2:
Update!!!

This could be the final release, as HTC no longer supports this device.

In order to ensure maximum compatibility with future ROMs (Marshmallow ports, for example), I've changed this to use the anykernel install method, 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.

However, you can always flash updates of ElementalX over previous versions of ElementalX.

If you want maximum control over settings and easy installation of ElementalX, check out EX Kernel Manager.

It's been a great ride, this phone is the first time ElementalX hit the big time and got really popular. Thanks everyone for your support over the last almost three years.

Sense 5.0.2:

ElementalX-m7-22.0-Sense

GPE 5.1:

ElementalX-m7-22.0-GPE

Changes:

-update installer for maximum compatibility
[One (M7) Original Android Development] devsk:
[MENTION=4684315]flar2[/MENTION]: Is compatibility the only change in the kernel? I am wondering if I need to update because the current kernel works fine for me except for one thing: 'adb shell' says "Device offline", a problem we have discussed here in this thread.
[One (M7) Original Android Development] gianton:
Not a kernel issue. Install official HTC sync manager and it will solve any adb shell issues. You can uninstall HTC sync manager and the drivers will remain
[One (M7) Original Android Development] devsk:
I can't find an app with that name ("HTC Sync Manager") or anything close, in the play store. Do you have a link?
[One (M7) Original Android Development] Anzinger:
You have to download it directly from htc.

---------- Post added at 09:40 AM ---------- Previous post was at 09:39 AM ----------

On your pc
[One (M7) Original Android Development] devsk:
I am using Linux. Why would I install something on my PC to get 'adb shell' working? If I go to stock kernel on this very HTC One phone, 'adb shell' works. Its something in Ex kernel that prohibits the 'adb shell'.
[One (M7) Original Android Development] gianton:
Sorry, that is on a PC running Windows.
[One (M7) Original Android Development] gu5t3r:
[MENTION=4684315]flar2[/MENTION]

...as you said it uses anykernel install method I flashed GPE LP 5.1 H14 boot.img via fastboot and after installing your kernel phone won't boot, just show Google logo and reboots

...then I installed back previous 21.1 kernel and then 22 and phone boots...
[One (M7) Original Android Development] flar2:
I also use Linux and adb works fine. I tried but cannot reproduce any issues.

Dang it. Thank you for letting me know.
[One (M7) Original Android Development] flar2:
Update!!!

I'll just paste the message from yesterday's update, this is only a minor update to the installer. If there are any problems, please post /tmp/recovery.log and /proc/last_kmsg so I can see what happened.

This could be the final release, as HTC no longer supports this device.

In order to ensure maximum compatibility with future ROMs (Marshmallow ports, for example), I've changed this to use the anykernel install method, 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.

However, you can always flash updates of ElementalX over previous versions of ElementalX.

If you want maximum control over settings and easy installation of ElementalX, check out EX Kernel Manager.

It's been a great ride, this phone is the first time ElementalX hit the big time and got really popular. Thanks everyone for your support over the last almost three years.

Sense 5.0.2:

ElementalX-m7-22.1-Sense

GPE 5.1:

ElementalX-m7-22.1-GPE

Changes:

-update installer for maximum compatibility
[One (M7) Original Android Development] flar2:
Also let me know if the update works, which ROM, etc.

I would like to get everything perfect on this release.
[One (M7) Original Android Development] mitas35:
5.1 gpe work's fine thanks man
[One (M7) Original Android Development] foefur:
Just installed it on MaximusHD 53.0 through the old ElementalX app (express methode)

The script reported that the install failed but after a reboot everything was installed and working fine[emoji2]
[One (M7) Original Android Development] flar2:
Can you confirm that you have version 22.1?
[One (M7) Original Android Development] atego177:
flar2

Can run on Sense 5.1.1?

It requires a lot of effort to develop?

Is it even possible?
[One (M7) Original Android Development] akpe:
Just in case, I suppose I can safely flash 22.1 on top of 20.2, right?

Thanks for the amazing work flar ;)

Sent from my ViperOne powered HTC One M7
[One (M7) Original Android Development] :
I hope for a MM Port from the m8 GPE (allready released) to m7 GPE. So perhaps we will need an update for MM in the future ;)

But you have done a lot of beautiful work with this device in the last Years, nice Kernels Nice Apps and one of the Best in working together with the Community.

And even if there wont be a MM Update i just want to say thank you for all your Work and Time.
[One (M7) Original Android Development] flar2:
Yes you can flash over

I want people to test all scenarios, just to make sure.
[One (M7) Original Android Development] Osama Zabin:
Flashed EX 22.1 over 20.2 successfully

ARHD 93.0 (5.0.2)

Sense toolbox 2.2.3

End of journey for this device updates, but for sure not for your development.

Many thanks Flar.
[One (M7) Original Android Development] foefur:
Yes I can
[One (M7) Original Android Development] AcidNoteZ:
Same happened to me with the latest version of the App and kernel.

Script error came up, but it installed correctly.

Awesome job flar!

I didnt expect an update to be honest.
[One (M7) Original Android Development] Large Hadron:
Installed fine with ViperOne 9. Old Ex app told me there was no compatible update, tried Ex Kernel Manager but it didn't notify of update (maybe too impatient), but download and flash (over 20.2) using TWRP went perfectly.
[One (M7) Original Android Development] Dac0908:
Dirty flashed 22.1 Sense over 20.2 on SkyDragon 6, with Xposed, SenseToolbox and everything else working ok. Thank you, flar2 :good:
[One (M7) Original Android Development] AcidNoteZ:
I have a problem..

I somehow cant get over 1134mhz

I can underclock it, but cant get more than that.

Can someone help me with that? :(

Im on ARHD 93.0 and never had problems with previous versions of elementalx.
[One (M7) Original Android Development] Pressok:
Does this include latest version busybox?
[One (M7) Original Android Development] gu5t3r:
Again, bootloop when installed over Latest GPE stock kernel, works fine when installed over EX 21.1 GPE...

EDIT: [MENTION=4684315]flar2[/MENTION]

In init.rc, if line "import /init.elementalx.rc" does not exists, as in stock kernel, it is inserted before "import /init.power.rc", but in original EX ramdisk it is inserted after "import /init.power.rc"

EX:

# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#

import /init.environ.rc
import /init.usb.rc
import /init.${ro.hardware}.rc
import /init.${ro.zygote}.rc
import /init.trace.rc
import /init.power.rc
import /init.elementalx.rc

Stock:

# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#

import /init.environ.rc
import /init.usb.rc
import /init.${ro.hardware}.rc
import /init.${ro.zygote}.rc
import /init.trace.rc
import /init.elementalx.rc
import /init.power.rc

so in edit_ramdisk.sh command should probably be

#Start elementalx script
if [ $(grep -c "import /init.elementalx.rc" /tmp/ramdisk/init.rc) == 0 ]; then
sed -i "/import \/init\.power\.rc/aimport /init.elementalx.rc" /tmp/ramdisk/init.rc
fi

instead

#Start elementalx script
if [ $(grep -c "import /init.elementalx.rc" /tmp/ramdisk/init.rc) == 0 ]; then
sed -i "/import \/init\.trace\.rc/aimport /init.elementalx.rc" /tmp/ramdisk/init.rc
fi

Will try to change and inspect further

Also, a link with ridiculous name is created in root 1[g}MkV9 which means that some command breaks, will inspect further

EDIT2:

init.d suport check is wrong

#init.d support
if [ !$(grep -qr "init.d" /tmp/ramdisk/*) ]; then
echo "" >> /tmp/ramdisk/init.rc
echo "service userinit /system/xbin/busybox run-parts /system/etc/init.d" >> /tmp/ramdisk/init.rc
echo " oneshot" >> /tmp/ramdisk/init.rc
echo " class late_start" >> /tmp/ramdisk/init.rc
echo " user root" >> /tmp/ramdisk/init.rc
echo " group root" >> /tmp/ramdisk/init.rc
fi

should be

#init.d support
if ! grep -qr "init.d" /tmp/ramdisk/; then
echo "" >> /tmp/ramdisk/init.rc
echo "service userinit /system/xbin/busybox run-parts /system/etc/init.d" >> /tmp/ramdisk/init.rc
echo " oneshot" >> /tmp/ramdisk/init.rc
echo " class late_start" >> /tmp/ramdisk/init.rc
echo " user root" >> /tmp/ramdisk/init.rc
echo " group root" >> /tmp/ramdisk/init.rc
fi

because grep -q does not output anything, it exits with 0 if found, and you are checking for output, and there is none and NOT makes it always true, so init.d support is always added, so if you flash kernel 5 times init.d would be run 5 times

EDIT3: Your ramdisk in anykernel method install is empty for some reason???? When installed on stock kernel....

EDIT4: Ramdisk doesn't get extracted at all on stock kernel... Shouldn't anykernel install method use unpackbootimg and mkbootimg? I don't get it how do you extract ramdisk with your code?
[One (M7) Original Android Development] flar2:
Thanks for looking into it, but it should all work. Some scripting stuff has to be done differntly on android. I installed over stock rooted gpe kernel and all worked. Can you attach /tmp/recovery.log and /proc/last_kmsg?

I've been using "anykernel" on some of my other devices since before anykernel was a thing, I do it differently.
[One (M7) Original Android Development] gu5t3r:
Your init.d check is wrong 100%, as I unpacked boot.img and tested....

After I tried to install 22.1 on stock GPE H14 phone bootlooped, then I booted recovery and pulled boot.img, after I unpacked, there are only 2 files in ramdisk which means boot.mg or ramdisk isn't properly unpacked before repacking...
[One (M7) Original Android Development] flar2:
Yes, you're right about the init.d test, but I should get rid of that anyway, as init.d is not reliable anyways. But could you please just post /tmp/recovery.log for the other problem? I'm very busy and I would be able to see where things break down in about two seconds.
[One (M7) Original Android Development] flar2:
Nevermind, found the problem:

gunzip: /tmp/ramdisk/initrd.gz has unknown compression method -- skipping

If I switch to unpackbootimg/mkbootimg it will work. That's what I get for trying to recycle an old installer script
[One (M7) Original Android Development] gu5t3r:
But I was able to decompress stock ramdisk in cygwin with gunzip? Old binary?
[One (M7) Original Android Development] flar2:
I think that HTC adds something to the boot.img, maybe a signature or something, and the older abootimg utility doesn't strip it out. That's probably tripping up gunzip.
[One (M7) Original Android Development] flar2:
[MENTION=4665716]gu5t3r[/MENTION]

I rebuilt the installer, tested with GPE stock boot.img and everything works. I have no issues with adb or anything either.

The update will be posted soon.
[One (M7) Original Android Development] flar2:
Update!!!

I've fixed the installer to work with untouched stock boot.img.

In order to ensure maximum compatibility with future ROMs (Marshmallow ports, for example), I've changed this to use the anykernel install method, 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.

However, you can always flash updates of ElementalX over previous versions of ElementalX.

Also removed init.d support, which has not been reliable since Lollipop. Please create the directly /system/su.d and put any scripts you may have there from now on.

Note that I moved /etc/init.d/elementalx.sh a long time ago, don't worry about that even though some of my documentation still mentions it.

Also don't forget to check out EX Kernel Manager.

Sense 5.0.2:

ElementalX-m7-22.2-Sense

GPE 5.1:

ElementalX-m7-22.2-GPE

Changes:

-update installer again
[One (M7) Original Android Development] Sebby:
Flashed the latest version sense 22,2

Flashed stock kernel first

Then the latest elementalx kernel

All is good

But when I install the elementalx the app then some option not visible or shows stock

Like max gpu stays on 400 but I selected 409

It looks like it's not modify the ramdisk from the stock ramdisk

And the app is still saying update available
[One (M7) Original Android Development] flar2:
ARGHH!!!! This is the worst update process ever, I've spent literally the entire weekend on this and the m8 installers. Hopefully I get it next time.
[One (M7) Original Android Development] Hopie:
flash stock viperone kernel, then ex22.2.

ex app shows stock kernel and an update available
[One (M7) Original Android Development] RunTech:
Flash Help

Hello everyone. I want to know if I can flash a ROM and, immediately above the ROM, this kernel, so as to avoid a double separate installation and do all clear set. What do you recommend?
[One (M7) Original Android Development] Sebby:
Sorry mate to hear that.. Better next time

I thought the first time, yes it boots up, then I opened the app I thought noooo, so I uninstalled the app, and flashed the zip again, then I installed the app again same thing

Ps.. You still have the permission wrong on the module dir

Must be 755,644 and not 644,644