yashsingh1/xdaforums huggingface dataset:
[Moto G Android Development] DoctorStrange96:
Well, i dont know, my implementation seems to be different from the first one. Mine was based on h2o64's implementation for aosparadox and his unofficial caf cm12.1.
[Moto G Android Development] DoctorStrange96:
Guys, Alpha10 is ready, but before i release it, i need your help. I need the help of someone experienced with anykernel, because i need to get the anykernel zips to install over the stock kernel, and they just refuse to install at the moment.
[Moto G Android Development] DoctorStrange96:
Alpha10 will also bring exFAT support.
[Moto G Android Development] objr:
Why so much work for anyKernel, is it better than the regular? If yes, I'll flash that one instead on regular!

Inviato dal mio XT1032 utilizzando Tapatalk
[Moto G Android Development] DoctorStrange96:
Because anykernel adds init.d support, insecure adbd, and some extra tweaks at startup
[Moto G Android Development] argo7:
It takes to max freq.Not middle freq

The config is the congig above

Any solution?

Enviado desde mi XT1032 mediante Tapatalk
[Moto G Android Development] :
Try one of these. Just flash it in recovery. They are init.d scripts that I made a flashable zip of with Zipme, right from my phones init.d folder. They will keep frequencies and active cores as low as possible and ramp up just fine when needed. I get excellent performance and pretty good battery life using these.

Edit: make sure you don't have any other init.d scripts or mods installed that may interfere. If they don't work, your init.d support is not working properly, I can help with that if so.

Edit-2: fixed to keep active cores to 1 more.
[Moto G Android Development] :
I'm not positive, but I'm pretty sure the problem is it won't unpack the stock kernel because it's a secure image not insecure. You should try asking about it in the help forum. Maybe someone there can help.
[Moto G Android Development] argo7:
I have stock. Will i have support for init.d?

Enviado desde mi XT1032 mediante Tapatalk
[Moto G Android Development] :
This won't work with the stock kernel, if that's what you mean. This is meant for the V1.00-Alpha9 kernel as long as it activates init.d properly, you should have init.d support. If not, you can use Root Explorer and go to /system/etc/init.qcom.postboot.sh, and at the bottom of the file add this:

busybox run-parts /system/etc/init.d/

and it should work fine.
[Moto G Android Development] AssToast:
Is there one for yankactive or which do you recommend between these two?
[Moto G Android Development] AssToast:
Deleted due to duplication
[Moto G Android Development] PanchoPonceN:
Worked like a charm. Thanks. :)
[Moto G Android Development] :
There will be soon, working on it now. I like interactive personally, but it depends on what works best for what you do with your phone. I'll post yankactive and ondemand

zips in the same post as the others when they're finished.

Edit: finished. Added on demand also. Enjoy!
[Moto G Android Development] DoctorStrange96:
Oh, and Alpha10 will also add proper init.d support!
[Moto G Android Development] DoctorStrange96:
The old non-anykernel zips unpack the stock image just fine. But the thing is: they use the old Amend (or maybe Edify, i dont know) language for update-binary and updater-script, and they dont modify the ramdisk. With the anykernel zips, its a different story: update-binary is now a shell script (updater-script is now a dummy), and anykernel.sh modifies the ramdisk. So i guess either (or both) of these is (are) causing the installation to fail
[Moto G Android Development] :
If you look at a recovery log after a failed installation, it stops with an error right after reading the kernel info and just before it gets to unpacking the ramdisk.
[Moto G Android Development] DoctorStrange96:
I'll take a look at that log then...
[Moto G Android Development] :
Unfortunately I was referring to a log I took weeks ago that I deleted. I'll upload one when I get a chance to reflash the stock kernel and flash one of your builds.
[Moto G Android Development] DoctorStrange96:
Actually i modified my anykernel.sh to show which process failed (it outputs the info to /tmp/anykernel/error). And the file says that the image was unpacked successfully, but the repacking process failed for some unknown reason. Even with no modifications to the ramdisk, the process fails
[Moto G Android Development] :
Maybe the compression type?
[Moto G Android Development] DoctorStrange96:
Not the compression type. I think i figured out the problem anyways. Falcon requires device tree blobs (dtb files), and i didnt have them in the zip. I only had zImage (actually a renamed zImage-dtb, which includes the device tree). I copied the dtb's, a non-dtb zImage, and the kernel flashed fine over the stock one. I'll give it one more try to confirm
[Moto G Android Development] argo7:
Can somrone upload stock+modules kernel? Thx

Enviado desde mi XT1032 mediante Tapatalk
[Moto G Android Development] :
Here you go.
[Moto G Android Development] himu_joy:
overall its aa good kernel. but I found OTG problem on this kernel..doesn't mount external drive.
[Moto G Android Development] :
No trouble with that here using a Leaf Bridge.
[Moto G Android Development] DoctorStrange96:
There you go.

https://www.androidfilehost.com/?fid=24052804347832084
[Moto G Android Development] DoctorStrange96:
I've a Kingston Dual USB Drive and i don't have such problem here. Check your filesystem.
[Moto G Android Development] DoctorStrange96:
Here we go again guys. Alpha10 is up!

WARNING

: Install the stock kernel before installing this zip! If you don't do that, the phone will only boot to fastboot, with the message "Fall-through from normal boot mode"! Thats because the previous zips had a full zImage with the device tree included, and the Alpha10 one has them separated.

Download (Stock kernel)

Download (Kaminari)

Changes:

- Finally fixed the AnyKernel zip not installing over the stock kernel (So from now on, all zips will use anykernel)

- Added proper init.d support

- Init.Kaminari.sh has been re-added and now works properly

- Attempt to add exFAT support

- Added Asynchronous Fsync (previously seen in [MENTION=3332811]faux123[/MENTION]'s kitkat kernel, extracted from HTC kernels)
[Moto G Android Development] himu_joy:
sorry for that. then, this kernel is not responsible for OTG related problem. thanks 4 clarify.
[Moto G Android Development] objr:
Couldn't boot with alpha10, keeps going to fastboot! I had to flash stock kernel in other to boot my device!

Check alpha10 again :)

Inviato dal mio XT1032 utilizzando Tapatalk
[Moto G Android Development] :
Flashes just fine over stock kernel now. Thanks you! Now I don't have to dirty flash and pull the boot.img and make a flashable to get a clean install. Excellent work, and thank you once again for continuing to build this excellent kernel for us! We'll see how everything else works.

---------- Post added at 04:21 PM ---------- Previous post was at 04:19 PM ----------

Did you flash the stock kernel first? I did, and had no problem booting.
[Moto G Android Development] keepercito:
can i dirty flash alpha10 if i have alpha9 installed???
[Moto G Android Development] abeloman:
If I installed alpha9 with anykernel version... Alpha10 will flash without problems?
[Moto G Android Development] DoctorStrange96:
Unfortunately, this time you wont be able to flash alpha10 over alpha9. Install the stock kernel first, and only then flash Alpha10. Thats due to a change on how the kernel files are flashed.
[Moto G Android Development] objr:
No, that the problem I had! To avoid my problem, first flash the stock kernel they posted above and the flash the new alpha 10!

It works great for me this way!

Inviato dal mio XT1032 utilizzando Tapatalk
[Moto G Android Development] DoctorStrange96:
I added a warning to the other post. Read it!

Edit:

Stock kernel is also available here (thanks to [MENTION=5768732]amarc78[/MENTION]).
[Moto G Android Development] abeloman:
Many thanks... I don't a have a PC right now, so, could anybody upload the stock kernel from GPe 5.1... I'll install with flashify and the install alpha 10 :)
[Moto G Android Development] :
I'm pretty sure it is the same as the stock kernel and modules posted here.
[Moto G Android Development] abeloman:
Nope, GPe kernel ≠ Stock kernel... Anyway I get the boot.img and flashed with TWRP; then reboot and after that installed alpha 10... Everything is working fine
[Moto G Android Development] DoctorStrange96:
Alpha11 should be up in a couple of minutes.

Changes:

- Disabled mpdecision (again)

--

Note

: About disabling mpdecision, we don't need it, because bricked hotplug automatically takes over. And its best to not leave mpdecision and bricked enabled at the same time

- Removed Alucard and Mako hotplugs
[Moto G Android Development] :
My scripts aren't working right with alpha 10 with the min frequency change and I found a couple lines missing for power collapse and some frequency permissions so I'm removing them.
[Moto G Android Development] abeloman:
Will we be able to dirty flash from alpha 10?
[Moto G Android Development] DoctorStrange96:
Yes. Since Alpha 11 installs the same way Alpha 10 does, then it'll be possible to dirty flash
[Moto G Android Development] DoctorStrange96:
It took longer than i said it would take, but its here. The only change is: Mpdecision, alucard and mako hotplugs all say bye-bye - so we'll have only bricked from now on.

This can be dirty flashed over Alpha 10 or the stock kernel. Don't flash this over Alpha 9 or earlier versions!

Download
[Moto G Android Development] pra27:
The question is with regards to stock kernel.

Is stock kernel size included in the op named as stock kernel.zip is same as the file '5.1 stock kernel+ modules.zip' which is added in last few comments by [MENTION=428631]amarc[/MENTION]8 ?
[Moto G Android Development] DoctorStrange96:
The contents are exactly the same. But amarc's zip installs silently - whilst my zip shows messages like "Installing kernel..." "Installing modules...". Thats the sole difference, apart from the filename
[Moto G Android Development] pra27:
Bdw alpha11 is not working for me.

After I flash stock kernel, error is showing as 'unsupported Device' and error in executing updater binary.

Please fix it.
[Moto G Android Development] :
Yes, they are the same.
[Moto G Android Development] :
[MENTION=5736790]kingkaminari[/MENTION] I thought you said you reverted CPU overclock, but after flashing alpha 11 over alpha 10 it's still overclocked. Is it from flashing over alpha 10 or was it not actually reverted. Anyway, I'm not so sure overclocking doesn't actually work because I get higher benchmark scores with CPU at 1.4ghz than at 1.2ghz. I also noticed you added the zram values from an older script I made to the init.kaminari.sh that I had changed because with bricked hotplug it was better at normal size of 250mb, also vm swappiness is better at 80% and the script has 40% and the minfree values in the init.kaminari.sh aren't being read and I can't change them with an init.d script. I think putting settings like that in that script make it's interfering with changing them. Other than that, everything seems good. Any chance you could try adding intelliplug and msm_hotplug next since bricked is the only hotplug? Thanks!
[Moto G Android Development] doomwithdon:
I installed alpha 10 over stock kernel via twrp..same issue as i previously faced..the kernel info in about phone still shows stock kernel...basically anykernel version never installs correctly..have reverted to alpha 9 non anykernel version..
[Moto G Android Development] :
That's odd, because it installed just fine for me after reinstalling stock kernel, and it reads the proper kernel name in settings.
[Moto G Android Development] DoctorStrange96:
1. I didnt revert overclocking for now. But i lost underclocking though (maybe because i flashed over the stock kernel). And my overclock implementation is different (check [MENTION=4792450]h2o64[/MENTION]'s caf kernel if you want to take a look).

2. Should i get rid of that init file completely, and let the users tweak the kernel by themselves (or with one of your init.d scripts)?
[Moto G Android Development] DoctorStrange96:
[MENTION=5768732]amarc78[/MENTION] And i already trying merge intelli, didnt work. Build error. I'll try msm_hotplug though. Or bring mako and/or alucard back
[Moto G Android Development] DoctorStrange96:
[MENTION=5768732]amarc78[/MENTION] Tried to* merge. Damn English [emoji14]
[Moto G Android Development] :
I think getting rid of the file completely may be the best idea. As for the init.d script, that's up to you. I definitely fixed the scripts right if you want to use one. I'll upload the fixed versions asap. I like msm_hotplug much better than alucard and mako, it gives much better performance.
[Moto G Android Development] AssToast:
Sorry for intruding :P

I think setting up some good default values for the kernel would be the best, not sure if it requires an init.d file. It would provide the best experience for users who don't want to tweak their kernel and there's still the option for the power users.
[Moto G Android Development] DoctorStrange96:
And yet another build comes. Alpha 12 this time.

FLASH THE STOCK KERNEL BEFORE FLASHING THIS! Unless you want your phone to not go past fastboot! And no, you won't be able to dirty flash this over Alpha 11 or earlier!

Download

Changes:

- AnyKernel will no longer be used for installation (Sometimes makes installation a pain in the ***, and was causing a weird bug where CPU underclocking and GPU over/underclocking were no longer available)

- Removed the insecure adbd binary due to the change above (You can use chainfire's adbd insecure app)

- Removed init.kaminari.sh due to AnyKernel's removal (Use amarc78's init.d scripts or tweak the kernel manually)

- Init.d support works differently now (modified init.qcom.post_boot.sh)

- Added msm_hotplug
[Moto G Android Development] :
[MENTION=5736790]kingkaminari[/MENTION] here is an init.d script that I am very confident is good to put in the next build. I modified the attached init.qcom.postboot.sh so it doesn't interfere with CPU frequencies, and added lines for init.d support and to set selinux permissive since I didn't see where you changed the one in alpha 12. I also added the line to activate dt2w since it seems to help that keep working properly added there.

View attachment 01kk_smartmax_msm_mpdecision-v4.zip

View attachment init.qcom.post_boot.sh.zip
[Moto G Android Development] DoctorStrange96:
Heres what im gonna do. I'll get all these scripts you posted here and put them in the third reserved post. And i'll take a look at the other init file
[Moto G Android Development] :
This was using the attached files. I am very pleased with the way my phone is running right now. Battery level has held up pretty good also.
[Moto G Android Development] :
I didn't make those zips flashable, lol, I just uploaded them quick. I will make sure to make the others flashable and upload them when I get home from work.
[Moto G Android Development] zero995:
[MENTION=5736790]kingkaminari[/MENTION] can you upload the kernel, and stock in xda servers please i want to try this new version but i can't stpuid proxy and firewall
[Moto G Android Development] DoctorStrange96:
I'll make these two flashable
[Moto G Android Development] DoctorStrange96:
Yes, sure. Hold on
[Moto G Android Development] zero995:
thanx!
[Moto G Android Development] DoctorStrange96:
The kernel is now available in the Downloads section
[Moto G Android Development] zero995:
thnx [MENTION=5736790]kingkaminari[/MENTION]
[Moto G Android Development] :
I'm still having issues with CPU frequencies. No matter what I try, after every reboot It's reading a different max freq every time going between 1.2, 1.4, and 1.6 GHz.
[Moto G Android Development] DoctorStrange96:
Sorry but i dont have any clue
[Moto G Android Development] xxmarsubxx:
Nice kernel, works perfectly in xt1032

Enviado de meu Moto G usando Tapatalk
[Moto G Android Development] DoctorStrange96:
For those of you who wonder how the kernel would be/look/behave if built with a different toolchain (I use Uber 5.2 by default)...

Have fun.

Remember to flash these zips only over the first Alpha 12 zip or over the stock kernel, otherwise the phone won't boot!!!

https://www.androidfilehost.com/?fid=24052804347833159 - Built using a custom ArchiDroid toolchain, version 5.1, with Cortex-A7 optimizations

https://www.androidfilehost.com/?fid=24052804347833161 - Built using a custom Linaro toolchain, version 4.9.3, also with Cortex-A7 optimizations

https://www.androidfilehost.com/?fid=24052804347833160 - Built using a standard, generic Uber toolchain, version 5.2 (default toolchain)

Edit: I also tried to build it with sabermod, but apparently i didn't set up the toolchain correctly. Maybe next time.

Edit 2: The new zips are also available at the Downloads section.
[Moto G Android Development] DoctorStrange96:
And I also have... A new stock kernel zip. The difference is: it restores mpdecision, powerhal, and the "original" init.qcom.post_boot.sh (original inside quotation marks because it keeps the init.d support).

If you've used a init.d script to tweak Kaminari, please delete it before leaving recovery mode, to avoid future issues!

https://www.androidfilehost.com/?fid=24052804347833162
[Moto G Android Development] abeloman:
Now 3 versions? Which one should I download?
[Moto G Android Development] DoctorStrange96:
Whichever you like [emoji14]
[Moto G Android Development] zero995:
[MENTION=5736790]kingkaminari[/MENTION] thanx for using xda servers to host this kernel, i see in this kernel the max cpu freq is 1.6Ghz is awesome
[Moto G Android Development] Elessar76:
So... I'm on alpha5, if i want to upgrade first i'll have to flash stock kernel posted few pages above and then install some of the new via twrp, right?
[Moto G Android Development] zero995:
[MENTION=4268410]Elessar76[/MENTION] you need flash stock kernel and next flash a12
[Moto G Android Development] keepercito:
i'm currently use the alpha9... can i dirty flash rom + kernel to install the alpha12????
[Moto G Android Development] DoctorStrange96:
That would be the best thing to do. A less complicated way is to flash only the stock kernel, and then flash Alpha 12 over it. Just be sure to remove any init.d script used to tweak the kernel
[Moto G Android Development] DoctorStrange96:
Well... Since the kernel is stable enough (I think), it's time to move to the beta stage. And that's what I'll do.
[Moto G Android Development] objr:
What does the beta stage involve. Since it's that stable can't you just lable it "stable"??

Inviato dal mio XT1032 utilizzando Tapatalk
[Moto G Android Development] DoctorStrange96:
I've been thinking about that. Since no one has ever reported that they had a random reboot, or kernel panic, or something alike, then yeah I can consider it as stable. But it's constantly changing, and there may be some bugs here and there.

But maybe you're right. And we had nearly one month of alpha builds, so... Time to move to the "stable" stage.
[Moto G Android Development] DoctorStrange96:
Okay, so after one month of testing / alpha builds... Here comes the final release of Kaminari version 1.00!

Download

Changes:

- Built with a custom Linaro 4.9.4 toolchain

- Updated PowerSuspend to version 1.5

- Kcal updates

- Added some mutex updates

- Fixed a bug where gentle_fair_sleepers and arch_power weren't controllable

- ARM: Enabled unaligned access

- Updated the F2FS driver
[Moto G Android Development] kalafior12:
Stock kernel first?

Wysłane z mojego Nexus 7 przy użyciu Tapatalka
[Moto G Android Development] LOL9988:
Appreciated :highfive::good: . BTW DT2W working?????
[Moto G Android Development] DoctorStrange96:
Yes
[Moto G Android Development] keepercito:
still has CPU overclock???
[Moto G Android Development] DoctorStrange96:
Either stock kernel or Alpha 12
[Moto G Android Development] :
Here are some new scripts, as long as bricked and cpu under and over clock remain, they should be usable for a while. I removed setting the max cpu freq to 1.4ghz and fixed something in the postboot.sh and I think the frequency issue is fixed. I changed the permissions of the postboot.sh to 0644 like it should be not 0777. I think the alpha 12 built with Archidroid has the best performance.

View attachment interactive_bricked.zip

View attachment smartmax_bricked.zip

View attachment ondemand_bricked.zip

View attachment yankactive_bricked.zip

Edit: they are all flashable. Remember to remove old scripts.
[Moto G Android Development] pico hackr:
[MENTION=5736790]kingkaminari[/MENTION] so this is going to be the final version or ??

edit: using it since yesterday feels so good in performance
[Moto G Android Development] doomwithdon:
im still facing the problem that the kernel doesnt show up in about phone..the v1.00 i guess doesnt flash on xt1033 with twrp recovery..i formatted cash and dalvik, flashed stock kernel and then flashed v1.00..still doesnt show up in about phone...still stuck with v1.00 alpha 9..till now only the non anykernel versions have flashed successfully for me..
[Moto G Android Development] :
If you want you can try flashing this alpha 12 archidroid boot.img and modules I pulled from my phone. It just might work.

Edit: View attachment alpha12.zip
[Moto G Android Development] AssToast:
the new postboot.sh bootloops on final 1.0 for me
[Moto G Android Development] :
Sorry, Root Explorer has been giving me issues lately with not saving changes but says it did. I removed that one and uploaded a new one that should be fine.
[Moto G Android Development] doomwithdon:
Thanks so much..this worked perfectly..is it possible to get this zip for every version that is released? can you please provide the 1.00 final version of this zip.. thanks :)
[Moto G Android Development] pico hackr:
can you add fast charging option to kernel
[Moto G Android Development] :
No problem, I have a few others in boot.img format since it was how I got a clean install when the anykernel zips wouldn't flash over stock. To do all of them again would take dirty flashing them all, and pulling the boot.img. That'll take a while, but here's the final alpha. I recommended flashing the modified init.qcom.postboot.sh-3 I posted a few posts back because the one with the kernel tries to keep CPU max freq at 1.4ghz. The new one let's it run at 1.6ghz and seems to give less issues with frequency staying at 1.2ghz max.
[Moto G Android Development] DoctorStrange96:
Tried that before. Ended up having a merge conflict. So sorry, unfortunately not.
[Moto G Android Development] DoctorStrange96:
Version 1.01 is up! This is also build #100 (according to my computer :p).

Download

Changelog is in the second post.
[Moto G Android Development] madman:
On what basis do you change the toolchain?
[Moto G Android Development] DoctorStrange96:
Quite often, i can say. I want to use the toolchain that offers the best performance
[Moto G Android Development] DoctorStrange96:
Deleted.
[Moto G Android Development] madman:
How do you check the performance? I mean just raw benchmarks or real life performance for multitasking, loading apps and stuff.

I think everybody is interested in fetching that extra drop of juice from the phone :D
[Moto G Android Development] DoctorStrange96:
Real life performance.
[Moto G Android Development] DoctorStrange96:
Guys, I bring some good (maybe) news: I finally, at last, managed to fix anykernel installation. The kernel now installs fine both over the stock kernel and over itself, with no loss of features (my previous anykernel zips caused cpu underclocking and gpu underclocking/overclocking to disappear).
[Moto G Android Development] :
Nice, I'll be waiting to test one.
[Moto G Android Development] DoctorStrange96:
Yo! Try this out!

Download

Flash this only over Alpha 12 or newer! Flashing over the stock kernel works too (and is highly recommended).

Changelog in the second post.
[Moto G Android Development] :
Nice work, it flashed over stock just fine, and you got it to build with intelliplug. Only thing is, I don't see many settings options for intelliplug in Kernel Adiutor.