yashsingh1/xdaforums huggingface dataset:
[Moto G Original Android Development] DoctorStrange96:
KaminariKernel​

#include "std_disclaimer.h"

/*
* Your warranty is now (even more) void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will simply grab my popcorn and laugh at you.
*
* Tl;dr: if your device crashes and burns, and if you get screwed up because of that, it's entirely your fault.
*/

Hiya fellas.

I suppose yall know that there's a ported rom from titan/thea (IDCrisis) for our Moto G. And I've ported a rom myself (but I don't plan on releasing it >.<). And this kernel is designed to work with any stock-based (read: ported from titan) rom for our device (especially IDCrisis).

But fair warning: don't even think about flashing it on Lollipop.

XDA:DevDB Information

KaminariKernel (IDCrisis), Kernel for the Moto G

Contributors

kingkaminari

Source Code: https://github.com/Kamin4ri/KaminariKernel/tree/idcrisis

Kernel Special Features: Read above!!!

Version Information

Status: Stable

Current Stable Version: R7

Stable Release Date: 2017-01-02

Current Beta Version: R6 Beta 2

Beta Release Date: 2016-11-01

Created 2016-03-26

Last Updated 2017-01-02
[Moto G Original Android Development] DoctorStrange96:
Reserved
[Moto G Original Android Development] DoctorStrange96:
Reserved

Reserved!
[Moto G Original Android Development] DoctorStrange96:
For those of you running IDCrisis, no matter which version.

Flash the stock kernel before flashing my kernel. I'll upload a stock titan/thea boot image for you guys to use.

Edit: Here's the image. It doesn't include any modules.

https://www.androidfilehost.com/?fid=24459283995306368
[Moto G Original Android Development] lucastracq:
do i need to flash it even if i have the previous version of your idcrisis 2.0?

if yes do i need stock modules also?
[Moto G Original Android Development] Bludwurst:
Using the latest (1.2) Identity Crisis, single SIM, normal (non-GNL) version. Using the IDCrisis version of the kernel recommended by lost. Falcon 2013 xt1032.

Want to try this kernel. Flashed the stock Titan/Thea image as instructed. Everything fine. Proceed to try to flash the Kernel. Error message. Something like "this kernel is for Lollipop 6.0.x (SDK 23). Your version is Marshmallow 6.0 (SDK 23)". Can't flash. Odd.

I reflashed the older IDCrisis kernel, and it's fine (hello from my Moto G) so at least it didn't go horribly wrong.
[Moto G Original Android Development] lucastracq:
same here, couldn't flash it
[Moto G Original Android Development] reymonito:
+1

Enviado desde mi XT1072 mediante Tapatalk
[Moto G Original Android Development] DoctorStrange96:
Lolz. Looks like i did **** with the install script. Please open meta-inf/com/google/android/update-binary and remove the compatibility check part (do NOT remove anything else).

I'll upload a fixed flashable zip soon.
[Moto G Original Android Development] DoctorStrange96:
Here are the fixed flashable zips. Sorry for the derp, guys.
[Moto G Original Android Development] mahadev111:
I lost my root permissions. Of SuperSU when I installed this kernel.
[Moto G Original Android Development] Choochter:
Was your root systemless? Just reflash SuperSU.
[Moto G Original Android Development] lucastracq:
no worries mate. anyway, i'm able to flash the zip now but it gets stuck on M logo, what's wrong?
[Moto G Original Android Development] Bludwurst:
Funny, mine gets stuck at the WARNING BOOTLOADER UNLOCKED screen (I never got rid of that).

....But hey, it flashed.
[Moto G Original Android Development] DoctorStrange96:
Damn. I forgot to say, thats an experimental build using a new codebase. I'll have to switch to the old codebase...
[Moto G Original Android Development] DoctorStrange96:
Here's a build based on the old codebase. It has selinux force-set to permissive. Hopefully it boots.

Edit: There's a peregrine version as well.
[Moto G Original Android Development] DoctorStrange96:
And here are builds based on the new codebase, also with selinux force-set to permissive.

Selinux on marshmallow is a *****.
[Moto G Original Android Development] mahadev111:
Yes,root was systemless,I was on identity crysis 1.1d.when I reflashed SuperSU.stucked at boot logo.then I have to reflash rom.
[Moto G Original Android Development] Choochter:
The default Interactive is a reasonable choice. If you're not a heavy multitasker, you could try switching the I/O scheduler to fiops or noop, better for extra battery life.
[Moto G Original Android Development] DoctorStrange96:
Hey mates.

Some of you might have realised that my init.d script (or even general init.d support) is broken.

Please flash the BusyBox cleaner and the installer zip from the thread linked below.

http://xdaforums.com/android/software-hacking/tool-busybox-flashable-archs-t3348543

Edit: The script is here. Push it to /system/etc/init.d and chmod it 755. This is not a flashable zip.
[Moto G Original Android Development] DoctorStrange96:
Hey guys.

I have a build of Kernel Adiutor here which has (I hope... still needs some testing) all Faux Sound tweaks working as intended. You'll still need the FauxSound app if you want to change stuff for a single channel.
[Moto G Original Android Development] Cair20:
I'm new to this... i have Identity Crisis 1.0, could you please tell me what to do to install this kernel? I read every comment of every page, but so many versions and things to do got me confused... please, i'd love a step by step to install this! I'm on Falcon

p.s: with Identity 1.0 when i'm using GPS or anything that needs it, when i turn around it doesn't detect that... is that accelerometer problem or GPS or what... that's the main reason of why im considering changing to this kernel, hope u answer [MENTION=1006674]lost101[/MENTION] and [MENTION=5736790]Kamin4ri[/MENTION] i checked with GPS Status and it's always facing north
[Moto G Original Android Development] Choochter:
Just download the latest version of IDCrisis and flash it by following the instructions given in the OP exactly. A custom kernel won't solve your problem.
[Moto G Original Android Development] Cair20:
i didn't have this problem before installing idcrisis, it worked fine before it
[Moto G Original Android Development] Choochter:
You're on the original, slightly buggy version. Time to update.
[Moto G Original Android Development] Cair20:
Thanks for replying, i wanted to know if u have the idcrisis 1.3a and moto g 2013 like me, that way u could use a Compass application or something to tell me that it signals cardinal points right, please, im planning to update rom tomorrow anyways
[Moto G Original Android Development] Choochter:
I'm on 1.3a and the compass works
[Moto G Original Android Development] DoctorStrange96:
Kernel updated to R2!

Downloads:

Regular (Falcon)

Regular (Peregrine)

Changes:

- Interactive's parameters have been tweaked

- FauxSound's "Quality" preset is now applied by default

- Faux Sound Control driver updated to v3.5

Note: Beginning with this release, this kernel will no longer include BusyBox. You will have to install it separately (either via Play Store or via flashable zip - I recommend you install the zip from this thread).

Note 2: The Overclock-Ready version's sources are ready to be compiled. I shall be releasing the zips later today.
[Moto G Original Android Development] DoctorStrange96:
About FauxSound.

For it to work properly you'll need my modified build of Kernel Adiutor. Its a debug build so it wont install on top of your existing one (and it wont be updatable).

I'll eventually try to merge my fixes into Kernel Adiutor's upstream.

https://www.androidfilehost.com/?fid=24588212152304875
[Moto G Original Android Development] Bleak3993:
Awesome! No problems here, downloaderd R2, updated busybox from the link you provided and installed your version of kernel auditor.

Just one thing I noticed, minimum CPU freq is now set at 787MHz, I bring it down to 300 for battery savings... would it save battery right? or it is the same at 787MHz?

Ah and just for curiosity, AutoSMP Hotplug, what is the difference between MPDecision?
[Moto G Original Android Development] miguelrivas:
Can I install your version of kernel adiutor for kernel R3 on android 5.1? Thanks man.
[Moto G Original Android Development] BryanByteZ:
It use the same power that 3xxmhz plus get a fast phone and about the hotplug check android modders guide blog on net and you get some info.
[Moto G Original Android Development] DoctorStrange96:
Kernel updated to R3! The only change is that AutoSMP was replaced by MSM-Hotplug (as autosmp was performing rather poorly). Our Overclock-Ready versions are ready as well.

Have fun.

Edit: OP links updated
[Moto G Original Android Development] Wickie69:
Can i Flash it dirty over r2
[Moto G Original Android Development] DoctorStrange96:
Yes
[Moto G Original Android Development] renatohm:
Any suggestions for performance, battery and balance settings for your overclock ready versel using Adiutor?
[Moto G Original Android Development] UltimateBlade:
will this kernel work on latest resurrection remix rom v 5.7.0? or is it only for idcrisis rom?
[Moto G Original Android Development] DoctorStrange96:
IDCrisis only. I've yet to update the CM kernel (which works with RR btw).
[Moto G Original Android Development] DoctorStrange96:
Here's another modded build of Kernel Adiutor. I've opened a pull request in [MENTION=4443334]Grarak[/MENTION]'s github with my faux sound fixes.

(Credits to him for the app & sources of course.)

Notes:

1. This app has been built from the "staging" branch, not the "master" one. It's a debug build so it won't install on top of a Play Store installation. It shall install over my previous modded version though. If it doesn't, just uninstall the old one.

2. Headphone PA gain is buggy. It'll always be 3 after boot but you can still adjust it manually. And no, we won't have per-channel controls (for now).

3. My modified sources are available here.
[Moto G Original Android Development] DoctorStrange96:
Note about the overclock version. The Thermal Engine sometimes sets the max freq to 1.19GHz. You'll have to manually set it to 1.59GHz if that happens.
[Moto G Original Android Development] bayran321:
How I disable cpu overclock? I do not want always stays at 1593Mhz, only when I want to play something games.

I know that is fixed in kernel adiutor but i do not know how.
[Moto G Original Android Development] Choochter:
Store your fast and slow settings in Kernel Adiutor as separate profiles and use the KA widget to switch between them on the fly
[Moto G Original Android Development] bayran321:
but I set 300mhz as a minimal and it returns to 1190 mhz and 1401

with interactive governor
[Moto G Original Android Development] Choochter:
Just try it - it works
[Moto G Original Android Development] abhi0502:
Whenever i installed id crisis with multi rom the wifi stops working

Edit - its got solved by commands written in multirom thread
[Moto G Original Android Development] Wyneg:
Hi!

Did you install multirom in peregrine? How?

King regards ;)
[Moto G Original Android Development] abhi0502:
No my phone is falcon
[Moto G Original Android Development] Wyneg:
Aaaah, anyway, how? xD

Thanks!
[Moto G Original Android Development] maurit43:
hello how are you ? i want to know something, its this kernel really better than 6.0 stock ? is the phone more fast and better battery ?

other question, its SAFE and soo better the OC version ?

Thanks you so much !
[Moto G Original Android Development] BryanByteZ:
Search in the Google for androidmoddersguide
[Moto G Original Android Development] renatohm:
Veleu!

Thanks!
[Moto G Original Android Development] tonibm19:
Gaming issues

In R2 with IDCrisis I was having performance issues in 2d games like Alto's Adventure, even with GPU oc enabled.

Now I'm in CM13, but if those problems are fixed in R3, I may return to stock. Anyone tried?
[Moto G Original Android Development] lost101:
[MENTION=7590501]njbultimate1[/MENTION] - Flash Titan boot image/kernel, then immediately flash the latest KaminariKernel. Wipe Dalvik/cache and reboot.
[Moto G Original Android Development] DoctorStrange96:
If you use systemless root, you need to flash the SuperSU zip before rebooting.

You might need to do this first:

$ adb shell
# echo "SYSTEMLESS=true" > /data/.supersu

This works both in Windows and *nix (Linux / Mac OS) systems. Twrp's shell is in root mode by default, thats why i put the symbol. On *nix, theres no need to run adb as root.

Wiping ART cache is generally not needed when changing kernels.
[Moto G Original Android Development] Avidqtaqtx:
Hey,

can i use this rom with Exodus Rom

and thanks op for doing a great work
[Moto G Original Android Development] nerak11111:
I have a problem, i installed IDCrisis 1.3a, when i flash this kernel my wifi go out

i need this kernel for the kcal, but how enable the wifi ?
[Moto G Original Android Development] BryanByteZ:
Only for IDCrisis.
[Moto G Original Android Development] Choochter:
Flash it from /sdcard, not /sdcard/download
[Moto G Original Android Development] DoctorStrange96:
Flash the kernel straight from /sdcard, not from any subfolder.
[Moto G Original Android Development] TheRoyalSeeker:
Can someone please tell me what the procedure to install this kernel?

I have stock kernel and using idcrisis 1.3a dual sim.

Please can you also tell me what is "Titan boot image/kernel"....

Thanks in advance.
[Moto G Original Android Development] Choochter:
Here's the Titan boot image:

https://www.androidfilehost.com/?fid=24459283995306368

Flash this followed by Kaminari kernel
[Moto G Original Android Development] DoctorStrange96:
Here's a test build. It has been built from scratch and some features have been purposefully left out.

Consider this build as an adapted CM13 stock kernel. I picked a lot of patches from them and a couple more from kwoktopus' Abyss kernel.

The only "extras" you'll see are Kcal and Faux Sound. I will probably not add anything else for now (especially dt2w & overclock).

Flash the dummy titan boot image before flashing this build. If you use systemless SuperSU and/or Xposed, then you'll probably have to reinstall them all.

Edit: Peregrine build also available.

Edit 2: Theres a considerable amount of stutter while navigating around the UI. (Maybe because we need cpu-boost? Someone with a titan/thea running stock 6.0 - with the stock kernel of course - please tell me if there is cpu-boost?)
[Moto G Original Android Development] lost101:
Since v1.2, IDCrisis6 the default idle cpu frequency was changed from 787mhz to 300mhz via system/etc/init.qcom.post_boot.sh - this introduced some stutter in UI when done in Android 5.1, but I thought it was less noticeable in Android 6.0. Ignore this post if unrelated.
[Moto G Original Android Development] Wyneg:
Flashed, but no needed to reinstall SuperSU and/or Xposed ;)
[Moto G Original Android Development] Wyneg:
Delete.
[Moto G Original Android Development] DoctorStrange96:
Guys i've been working on titan support. So if anyone has a spare titan or thea lying around, they'll be able to run this kernel too, as long as they're running the stock 6.0 rom (or any rom based on it).
[Moto G Original Android Development] lost101:
[MENTION=5736790]Kamin4ri[/MENTION] - What is the status on the new test build? Do you want feedback or are you going to be releasing another version?
[Moto G Original Android Development] DoctorStrange96:
Some feedback would be appreciated. Its working well for me but i need to know if its also working well for you guys too.

I noticed that the weird idle battery drain was gone in this build. I did a factory reset as well
[Moto G Original Android Development] DoctorStrange96:
I think i'll try to adapt the real cm13 kernel to the stock rom. Some sensors-related stuff has to be reverted because cm uses a different implementation for the sensors to properly support doze. And some drivers need to be built as separate loadable modules. These are the major differences.

The same cant be done with the CM12.1 kernel (to stock 5.1) because Lenovorola Motorola didn't update the video HAL/blobs/whatever, they kept the 5.0 stuff (CM did update though - maybe they used caf stuff?).
[Moto G Original Android Development] DoctorStrange96:
Okay guys, here's another test build. This is a real adapted CM13 kernel using CM13 sources. As stated in my previous post, some sensors commits have been reverted (check my sources for info).

Peregrine build coming soon (the CM13 kernel is building right now).
[Moto G Original Android Development] hasck:
I'm using lost101's IDCrisis v1.3 on Peregrine (kaminari's default kernel), and so far performance is even better than my previous ROM (lost101's stock optimized).

I still have one performance issue, because of ressource hog Chrome.

I sometimes get audio lag listening to music over bluetooth (aptx), with the screen off not doing anything else on the phone. I know Chrome is the (biggest) culprit because if I kill it everything is fine. Not sure if it is memory or CPU related, but I wanted to give a try to your overclocked kernel, but I've read in many places that any OC on falcon and peregrine is just cosmetic, CPU freq change will be displayed but not actually applied (hard coded in the chip?).

So the simple question is: is the overclocked version a real overclock?

Thanks a lot for your work - and lost101 of course. 3 year old budget phone still rocking like a champ.
[Moto G Original Android Development] DoctorStrange96:
I felt little to no difference between the stock and overclock-ready versions. My phone performed the same way with both. Some people might feel a difference though. So it might not be simply a placebo effect as many folks think it is.
[Moto G Original Android Development] DoctorStrange96:
R4 is now ready!

It has been based on the previous test builds (the adapted CM13 kernels) with a few more commits (unaligned access).

I'll think about re-adding dt2w & overclock in future builds. Cpu-boost hasn't been added yet, it still needs to be tested.

Downloads:

- Falcon

- Peregrine

- [Bonus] Titan/Thea

If you have a spare 2nd gen Moto G (running 6.0 of course), feel free to try the titan test build! Works on the LTE model too.
[Moto G Original Android Development] Wyneg:
Hi!

What kind of CPU-boost? I ask because seems to be different to CPU overclock.

Thanks for your work ;)
[Moto G Original Android Development] lost101:
R4 seems very good, no obvious performance issues.
[Moto G Original Android Development] renatohm:
Perfect here, latest Identity Crisis + Kaminari R4.
[Moto G Original Android Development] wulfiss:
.The r4 is working perfect without any issue. I've had 4 hour of sot and 1 day of usage with 21% remaining battery. that is too much for my old moto g. (Identity crisis rom)

Thank for you work.

Sorry for my english
[Moto G Original Android Development] koshikas:
do we still have to flash titan boot image before flashing R4 kernel.
[Moto G Original Android Development] DoctorStrange96:
No
[Moto G Original Android Development] pedrosotop:
After flashing you need to install busybox?

Enviado desde mi XT1063 mediante Tapatalk
[Moto G Original Android Development] Penemue:
R4 is great indeed, almost no idle drain and exceptional SoT.
[Moto G Original Android Development] poled:
The first post has the features of the rom, ok, but could someone explain what means each one of those features? I would be interesting to know what this kernel does in more detail
[Moto G Original Android Development] koshikas:
google is your friend, and there is no better witness than trying it on your own.
[Moto G Original Android Development] Chalkydri:
is there any any R 4 falcon overclocked kernel? ;D
[Moto G Original Android Development] Haggster66:
Have flashed R4 on my Falcon IDcrisis 1.3b ROM from /sdcard without flashing anything else before this and it's working without issues. Wi-fi worked out of the box. I love the concept of the adapted CM kernel!

Is the 787MHz minimum CPU frequency normal? Shall we keep it that way or change it?

Great job, keep it up!
[Moto G Original Android Development] Choochter:
Mine's on 300MHz
[Moto G Original Android Development] Biz92k:
Awesome kernel, everything working smoothly out-of-the-box!

I really hope you're gonna re-add dt2w in future release (or even a modified R4 version ;) ) because I loved that in R3!

Anyway thank you for your great work!
[Moto G Original Android Development] DoctorStrange96:
Keep it on 787. Power usage is the same. Plus 300MHz causes audio stuttering if you use Spotify (especially when the screen is off).
[Moto G Original Android Development] Choochter:
I've noticed the stuttering on Viper and use Kernel Adiutor profiles to switch frequencies on the fly. Have to say that the power drain on standby at least is noticeably less on 300MHz. If you're a heavy user then I agree you might as well stick with 787MHz.
[Moto G Original Android Development] DoctorStrange96:
Here's a new stock, bootable kernel. Its purpose is to replace the dummy titan kernel.

This is an almost 100% stock adapted CM13 kernel.

Peregrine owners: Please test this out. Im afraid it wont boot because i had to pack the boot.img & device trees manually. The falcon zip has already been tested by me and it works.
[Moto G Original Android Development] Choochter:
Might want to link this in the OP along with the instructions
[Moto G Original Android Development] Wyneg:
Flashed, and it seems doesn't boot. Well, I've waited two minutes only, no more, but don't boot until now...
[Moto G Original Android Development] DoctorStrange96:
If you use system mode SuperSU it will definitely not boot due to SELinux. If thats not the case, well... idk :p
[Moto G Original Android Development] Wyneg:
Until previous version of IDCrisis was using systemless version, but latest version have 2.76, so I don't install systemless version. Now I'm seeing optimization message and one app is gone, I don't know which one yet.

PS: I flashed R4 over new stock kernel, it booted but network was gone. Now I reinstalled ROM with systemless SuperSU and new stock kernel, it booted but network died again...
[Moto G Original Android Development] demoncamber:
[MENTION=5736790]Kamin4ri[/MENTION] or anyone else, strangest thing, no matter what I change in virtual memory via kernel auditor, upon reboot my phone becomes severely laggy and unresponsive. Has anyone experienced anything like this? This is on peregrine.
[Moto G Original Android Development] :
On xt1032 doesn't boot on idcrisis too.
[Moto G Original Android Development] DoctorStrange96:
If you use system mode SuperSU it wont boot because SELinux has been set back to enforcing. Use systemless SuperSU (or better: use Magisk!).
[Moto G Original Android Development] :
Thank you very match. This is my currently config

http://uploads.tapatalk-cdn.com/files-225/Screenshot_20160810-234602.png

Siemens C45---->Nokia 6280---->SE K750i---->K800i--->SE C905--->SE Cedar--->Ace 2--->Htc Desire 500--->Moto G