yashsingh1/xdaforums huggingface dataset:
[Moto Maxx Android Development] fgl27:
BHB27-Kernel-V93​

For Nougat and Marshmallow, Custom and Stock ROM.

Download:

Main:

Gdriver Mirror Click Here, This contains current and previously versio.

Secondary:

AFH Mirror Click Here, This contains all old versions, but may not show last version as soone as update post comes up.

Changelogs:

Simple Changelog Click here

BHB27KERNEL source Changelog

Installation instruction:

Same as OP

Note:

Use this with the latest version of my mod KernelAdiutor-Quark.62 or up to control the latest featuring of the kernel.

Download Kernel Adiutor App

Bug report are welcome, make with in the most accurate description possible, do not spare words, screens and logs, a bug that I can't understand and can't be reproduced, I can't fix.

Always start a post with a bug report with [MENTION=5747496]bhb27[/MENTION] and always attached a log .zip

BHB27 Kernel Adiutor > Logs > One click all Logs to a ZIP

** If the device Random reboot also share the log made as sone as the device finished the random reboot

Bugs without logs, without [MENTION=5747496]bhb27[/MENTION] will probably not be read, there is too much posts on the thread sometimes and I don't have time to read it all, anyone can post as much as is need of course as long is a things related to this thread
[Moto Maxx Android Development] fgl27:
Kernel Adiutor update

KernelAdiutor-Quark.63.BHB27-Mod.apk​

Download Kernel auditor

Changelog

Installation

Just Install the apk, works on any ROM with ROOT.

If encounter any problem:

Clear data of yours BHB27 Kernel Adiutor app + deleted the KernelAdiutor and KA_profiles folder from internal memory (if not possible by the android file manager use TWRP one), reboot to recovery and clean/wipe Dalvik and cache before reporting things.

You can make a copy of profiles.json file inside KA_profiles folder (in case you save a profile), after the reboot place it back on the folder then apply the setting on the app, if encounter problem after the apply the profile is the problem deleted it and redo the cleaning and don't use it again...

This helps when the apps functions are odd, misbehaving and or slow to load/display.

Sharing profiles

The only thing need to share a profile is the file profile.json in side KA_profiles folder, it can be just simple copy and past to another devices, the file is very small and easy to share.

Use my version of Kernel Adiutor to better support this Kernel. :good:

[IMG="XDA Labs"]https://img.xda-cdn.com/oshFRo1rSEHTP5__wCXMO3e3u-I=/http%3A%2F%2Fimgs.xda-labs.com%2F0621sigs%2Flarge%2Fcontributor.png[/IMG]
[Moto Maxx Android Development] Soul reaper:
And yet again multiple reboots.

I dont know how i am the only one experiencing this.

There is no rogue root app. Nothing that ROM with default kernel had a problem with. Everytime I move to this kernel for performance it reboots.

Here's another set of log with ss of kernel changes.

All are sudden and I can't record a log when it happens.
[Moto Maxx Android Development] ceelos218:
It's your battery most likely.. try lowering the voltage -25
[Moto Maxx Android Development] fgl27:
The log you share is incomplete, I need the zip that the app makes no modifications, and that needs to be made right after the wherever reboot has happens so I can see way it did.

From what you share I assume it's power off and not reboot, but I can only assume as the log is incomplete.

There is a help about "Random Power off" in second post.

Screenshots don't really help on most this situation, know what you was doing and the battery % does.
[Moto Maxx Android Development] gangrenius:
No reboots here I've been fine. Course my battery is newer
[Moto Maxx Android Development] Soul reaper:
Ya, seems like battery is bad. Switched off at 24% ON STOCK non rooted.
[Moto Maxx Android Development] aaki_rocker:
looking to flash this over computerfreek's 1.0.8..

do i have to use kernel auditor all the time ?

i don't wish to overclock just need updated kernel with stock clocks..
[Moto Maxx Android Development] newbe1droidx:
Just flash then you have latest use latest auditor if you want to adjust anything later...
[Moto Maxx Android Development] junior_ilha:
[MENTION=5747496]bhb27[/MENTION], lets see if you can help me. It shoud be simple for you while I'm loosing my mind.

I replaced my battery and I broke temperature sensor flat cable. Result: The phone doesn't charge because it says "too cold".

In recovery mode it charges normally, so I guess that in recovery mode the sensor is disabled or ignored somehow. Is there any way to disable/skip this sensor in your ROM / kernel? I've tried some applications and xposed plugins, but no lucky. Any light will be welcome ...

You can PM me in portuguese. ;)
[Moto Maxx Android Development] fgl27:
Can you charge when the device is off?

try that if you don't know.

Then try the bellow kernel to see if change anything

https://drive.google.com/open?id=1u7VANZYm5HJIqsFFdszwA2DgwTmvQARY
[Moto Maxx Android Development] junior_ilha:
It doesn't charge when it's off.. The screen turns on, but the % doesn't change. I can charge normally (turbo) on recovery mode (latest twrp). Thats why I believe there is some code on twrp that skips or disables battery thermal sensor.

I tried your modded kernel but it makes no difference. Still "cold".

Thanks for trying anyway...
[Moto Maxx Android Development] fgl27:
I wasn't trying to change battery state, just charge no matter what.

Any way you already f it up there is no need to something simple, I just change all the logic from Cold to Good and prevent any state of Cold to show, so lets see what happens I expect it to charge...

https://drive.google.com/open?id=1mM_AYu48qsVwcSsPHKwKYi3RkqHHhgHp
[Moto Maxx Android Development] junior_ilha:
You're the best.. It works flawessly .

There are só many posts online with the same problem on differents dévices and you solved só easily...

Some maxx related posts :

https://xdaforums.com/moto-maxx/help/how-to-disable-temp-sensor-t3504585/amp/

https://xdaforums.com/general/xda-assist/battery-temperature-low-t2991295

https://xdaforums.com/droid-turbo/help/ugh-battery-issue-t3618661

https://xdaforums.com/droid-turbo/help/charging-problems-t3601637

I think you should do an independent post with this kernel or even teaching how to modify the kernel for other devices.

Thank you very much..
[Moto Maxx Android Development] masterfemhp:
Hi [MENTION=5747496]bhb27[/MENTION], I'm having some trouble when trying to compile your kernel. I'm having an I/O error with qca_cld:

<Code>

/root/BHB27Kernel/arm49/bin/arm-eabi-strip: Warning: './build/bhbkernel/modules/qca_cld' is not an ordinary file

mkdir: cannot create directory ‘./build/bhbkernel/modules/qca_cld’: File exists

</Code>

And previously I didn't have that problem, but I've had this one (wich now also happens after the one mentioned above):

<Code>

Exception in thread "main" java.io.IOException

at com.topjohnwu.utils.ZipAdjust$CentralHeader.<init> (Unknown Source)

at com.topjohnwu.utils.ZipAdjust.adjust(Unknown Source)

at com.topjohnwu.utils.ZipAdjust.adjust(Unknown Source)

at com.topjohnwu.utils.SignAPK.signZip(Unknown Source)

at com.topjohnwu.utils.ZipSigner.main(ZipSigner.java: 47)

</Code>

Edit: It ends with "Kernel Build OK..." but when I flash the file TWRP says "ZIP Corrupted".

I've tried to google everything I could think of for the last 7-10 days, but this is my first time compiling a kernel and I don't find any solution yet, and I want to enable Atheros support to use my dongle with Kali Nethunter. Kali is Ok and running its chroot, but I can't compile the kernel so the rest works too.

Any help will be appreciated, and of course I thank you for your amazing work with this kernel and the rest of your work. I've resurrected my Maxx after 2 years of hibernating with a broken screen, and thanks to you I'm running 7.1.2 (in RR) with your custom kernel and your Auditor App. You're THE man, man. Obrigado!
[Moto Maxx Android Development] fgl27:
I don't understand it, as I never see it, can I have all the build log?

I need to know how you try to build and were?

is just too vague your post to me, but I guess you are not cleaning the temp folder "./build/temp" and are using a outdated java sdk.

The first error is just a warning caused by a dirty build, not a problem, I fix it in the .sh by deleting the temp qca_cld folder before start the build in case of a dirty build, the second probably related to java I don't know and that is preventing from make a working .zip...

I build using this

https://github.com/bhb27/BHB27Kernel/blob/N_c/build/how_to_build_this.sh

on a ubuntu system latest version of ubuntu and java 8, any other system I have no idea how to, I just call that press "Enter" a few times and it builds just fine.

There is some commentaries on the top of that file, with I have update it may help.
[Moto Maxx Android Development] fgl27:
Can you try this for me?

I wanna to make it configurable, so anyone can use if needed.

kernel

https://drive.google.com/open?id=1pqglZBSFWTn4mR1TH4dF1E_g8qoqpXQi

app

https://drive.google.com/open?id=1Vkt8auOsjRTsNrH1vn8koaEgbSY3hxpw

Enabling that must allow you or anyone with that problem to charge just fine, may be needed to plug after having enabled that...
[Moto Maxx Android Development] junior_ilha:
Yeah, of course.

I tested it.

It works like it should.

Didn't charge when disabled (cold)

And it charges when enabled...

I noticed that turbotoast didn't show any message (but it was charging).

All normal with turbotoast after a simple restart.. Maybe coincidence..

Do it means that I will receive kernel updates? Lol

I ordered a new flat cable to replace by the way.

Thank you again so much for your work with or device.
[Moto Maxx Android Development] fgl27:
Nice thanks.

Yes with that simple switch I can support it no problem to others user and you can just keep updating anyone that may have it on the future can just fix on a simple click.

:good:
[Moto Maxx Android Development] aaki_rocker:
i'm having issues with default clock settings with brazilian 6.0.1 rom. (tried kernels - v200-8m and v202-m) [MENTION=5747496]bhb27[/MENTION] how can i force set the clocks to minimum 300 and maximum 2649. no underclocking and overclocking without using your version of kernel auditor app ?

could you please repack the kernel "V 202-0-M" with stock clock settings if it's not too much work ?

thank you :)
[Moto Maxx Android Development] fgl27:
No I won't touch old kernel, with it update all previously version lost support I'm only only one, just use latest version of the kernel, or latest version of the app plus ROOT.

Makes no sense to use that old buged kernel.

or you can do this and change your self

https://github.com/bhb27/device_motorola_quark/blob/N/rootdir/etc/init.qcom.power.rc#L32-L40

replace the max with min, and 2649600 with 300000 for the min freq. That file must be on the zip I don't remember, place the change under a init option.
[Moto Maxx Android Development] aaki_rocker:
latest kernel version don't work with that rom.

tried v93 and v89 but it won't boot.

do i need to change this file ? "init.qcom.post_boot.sh"

i don't know where to add the code though ? :confused: :(
[Moto Maxx Android Development] fgl27:
Try to fix your ROM, stock support is just fine.

Try to clean install stock, or move to a clean install of custom ROM, anyway do wherever you wanna, but please don't bother with a older kernel version as that is not the solution.
[Moto Maxx Android Development] aaki_rocker:
okay so the latest version v93 is running fine with the rom.

flashed it yesterday and left it overnight just to check its stability.

but i still am unable to figure where to put those code lines.

in cpuz it shows cpu range 268mhz-2.88ghz !

i want that stock if possible = 300mhz-2.7ghz.

thank you for your work and help.. [MENTION=5747496]bhb27[/MENTION]

EDIT :

so i found this file in ramdisk\stock\init.qcom.power.rc

please check if this code is correct

on init
# Boot with interactive governor.
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
chmod 0644 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
chmod 0644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor interactive
chmod 0644 /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor interactive

chown root system /sys/devices/system/cpu/cpu1/online
chown root system /sys/devices/system/cpu/cpu2/online
chown root system /sys/devices/system/cpu/cpu3/online
chmod 0664 /sys/devices/system/cpu/cpu1/online
chmod 0664 /sys/devices/system/cpu/cpu2/online
chmod 0664 /sys/devices/system/cpu/cpu3/online

#set stock freq
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 2649600
chmod 0644 /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 2649600
chmod 0644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq 2649600
chmod 0644 /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq 2649600

#set stock freq
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000
chmod 0644 /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000
chmod 0644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000
chmod 0644 /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000
[Moto Maxx Android Development] fgl27:
CPU-Z can't read current set min or max freq.

The stock freq of latest version of the kernel are 268 and 2649 MHz.

Even after you change it using a root app CPU-Z can't tell, as it's only read CPU freq capabilities.

A stability test can show you the real max freq if you try to stress the cpu and it reach max allowed.

that block must work for what you wanna.
[Moto Maxx Android Development] aaki_rocker:
running with the modified clocks since a couple of hours now and no drawbacks.

ui is much smoother and the slight stutters have drastically reduced.

But when i check using cpu spy and kernel auditor the "time since boot" and "total state time" is different ! (attached screenshot)

should i be bothered by this ?
[Moto Maxx Android Development] fgl27:
Yes the values are odd and that is a wrong measurement of the app, as I change the global jiter value for performance from 10 to 1ms.

The app is assuming that the time is in a 10ms scale when it is on a 1ms, on the 10ms scale it need to multiple the value by 10 to get the correct value and that causes that odd measurement the time you see is be multiply by 10.

I can fix on the app I share but not in others as it app must have the proper way to identify what is the proper scale used.

Next update of the app the values will be OK.
[Moto Maxx Android Development] fgl27:
Kernel Adiutor update

KernelAdiutor-Quark.64.BHB27-Mod.apk​

Download Kernel auditor

Changelog

Installation

Just Install the apk, works on any ROM with ROOT.

If encounter any problem:

Clear data of yours BHB27 Kernel Adiutor app + deleted the KernelAdiutor and KA_profiles folder from internal memory (if not possible by the android file manager use TWRP one), reboot to recovery and clean/wipe Dalvik and cache before reporting things.

You can make a copy of profiles.json file inside KA_profiles folder (in case you save a profile), after the reboot place it back on the folder then apply the setting on the app, if encounter problem after the apply the profile is the problem deleted it and redo the cleaning and don't use it again...

This helps when the apps functions are odd, misbehaving and or slow to load/display.

Sharing profiles

The only thing need to share a profile is the file profile.json in side KA_profiles folder, it can be just simple copy and past to another devices, the file is very small and easy to share.

Use my version of Kernel Adiutor to better support this Kernel. :good:

[IMG="XDA Labs"]https://img.xda-cdn.com/oshFRo1rSEHTP5__wCXMO3e3u-I=/http%3A%2F%2Fimgs.xda-labs.com%2F0621sigs%2Flarge%2Fcontributor.png[/IMG]
[Moto Maxx Android Development] fgl27:
BHB27-Kernel-V94​

For Nougat and Marshmallow, Custom and Stock ROM.

Download:

Main:

Gdriver Mirror Click Here, This contains current and previously versio.

Secondary:

AFH Mirror Click Here, This contains all old versions, but may not show last version as soone as update post comes up.

Changelogs:

Simple Changelog Click here

BHB27KERNEL source Changelog

Installation instruction:

Same as OP

Note:

Use this with the latest version of my mod KernelAdiutor-Quark.64 or up to control the latest featuring of the kernel.

Download Kernel Adiutor App

Bug report are welcome, make with in the most accurate description possible, do not spare words, screens and logs, a bug that I can't understand and can't be reproduced, I can't fix.

Always start a post with a bug report with [MENTION=5747496]bhb27[/MENTION] and always attached a log .zip

BHB27 Kernel Adiutor > Logs > One click all Logs to a ZIP

** If the device Random reboot also share the log made as sone as the device finished the random reboot

Bugs without logs, without [MENTION=5747496]bhb27[/MENTION] will probably not be read, there is too much posts on the thread sometimes and I don't have time to read it all, anyone can post as much as is need of course as long is a things related to this thread
[Moto Maxx Android Development] aaki_rocker:
thank you dev !

you're the best !! :o :good:
[Moto Maxx Android Development] fgl27:
Kernel Adiutor update

KernelAdiutor-Quark.65.BHB27-Mod.apk​

Download Kernel auditor

Changelog

Installation

Just Install the apk, works on any ROM with ROOT.

If encounter any problem:

Clear data of yours BHB27 Kernel Adiutor app + deleted the KernelAdiutor and KA_profiles folder from internal memory (if not possible by the android file manager use TWRP one), reboot to recovery and clean/wipe Dalvik and cache before reporting things.

You can make a copy of profiles.json file inside KA_profiles folder (in case you save a profile), after the reboot place it back on the folder then apply the setting on the app, if encounter problem after the apply the profile is the problem deleted it and redo the cleaning and don't use it again...

This helps when the apps functions are odd, misbehaving and or slow to load/display.

Sharing profiles

The only thing need to share a profile is the file profile.json in side KA_profiles folder, it can be just simple copy and past to another devices, the file is very small and easy to share.

Use my version of Kernel Adiutor to better support this Kernel. :good:

[IMG="XDA Labs"]https://img.xda-cdn.com/oshFRo1rSEHTP5__wCXMO3e3u-I=/http%3A%2F%2Fimgs.xda-labs.com%2F0621sigs%2Flarge%2Fcontributor.png[/IMG]
[Moto Maxx Android Development] fgl27:
BHB27-Kernel-V95​

For Nougat and Marshmallow, Custom and Stock ROM.

Download:

Main:

Gdriver Mirror Click Here, This contains current and previously versio.

Secondary:

AFH Mirror Click Here, This contains all old versions, but may not show last version as soone as update post comes up.

Changelogs:

Simple Changelog Click here

BHB27KERNEL source Changelog

Installation instruction:

Same as OP

Note:

Use this with the latest version of my mod KernelAdiutor-Quark.64 or up to control the latest featuring of the kernel.

Download Kernel Adiutor App

Bug report are welcome, make with in the most accurate description possible, do not spare words, screens and logs, a bug that I can't understand and can't be reproduced, I can't fix.

Always start a post with a bug report with [MENTION=5747496]bhb27[/MENTION] and always attached a log .zip

BHB27 Kernel Adiutor > Logs > One click all Logs to a ZIP

** If the device Random reboot also share the log made as sone as the device finished the random reboot

Bugs without logs, without [MENTION=5747496]bhb27[/MENTION] will probably not be read, there is too much posts on the thread sometimes and I don't have time to read it all, anyone can post as much as is need of course as long is a things related to this thread
[Moto Maxx Android Development] yayakuya:
can anyone share with me some nice setup profiles...

what i need just balanced performance and battery life for daily driver (using light apps, browser, social media)

but powerful when playing games (especially online games), because this snapdragon 805 give me bad experience for gaming (stuttering, lags everywhere).

FYI, i'm using this latest build of mod onto my Moto X Pro (chinese version of Nexus 6) running on RR 7.1.2

if you ask me how it works, well... it's work like a charms... no problem at all

smoother than the default RR's kernel (thanks dev :good: )

----edit----

i just realize that my camera stopped working :(
[Moto Maxx Android Development] marinegundoctor:
You should consider setting up profiles. Otherwise you'll have to compromise one way or the other to some extent.
[Moto Maxx Android Development] fgl27:
BHB27-Kernel-Oreo-V9.5​

For Oreo only.

Download:

Main:

Gdriver Mirror Click Here, This contains current and previously versio.

Secondary:

AFH Mirror Click Here, This contains all old versions, but may not show last version as soone as update post comes up.

Changelogs:

Simple Changelog Click here

BHB27KERNEL source Changelog

Installation instruction:

Same as OP

Will take two tries to finished the boot process after the update, first is slow and reboot at the end second is fast and after all must work OK

Note:

Use this with the latest version of my mod KernelAdiutor-Quark.64 or up to control the latest featuring of the kernel.

Download Kernel Adiutor App

Bug report are welcome, make with in the most accurate description possible, do not spare words, screens and logs, a bug that I can't understand and can't be reproduced, I can't fix.

Always start a post with a bug report with [MENTION=5747496]bhb27[/MENTION] and always attached a log .zip

BHB27 Kernel Adiutor > Logs > One click all Logs to a ZIP

** If the device Random reboot also share the log made as sone as the device finished the random reboot

Bugs without logs, without [MENTION=5747496]bhb27[/MENTION] will probably not be read, there is too much posts on the thread sometimes and I don't have time to read it all, anyone can post as much as is need of course as long is a things related to this thread
[Moto Maxx Android Development] fgl27:
BHB27-Kernel-Oreo-V9.6​

For Oreo only.

Download:

Main:

Gdriver Mirror Click Here, This contains current and previously versio.

Secondary:

AFH Mirror Click Here, This contains all old versions, but may not show last version as soone as update post comes up.

Changelogs:

Simple Changelog Click here

BHB27KERNEL source Changelog

Installation instruction:

Same as OP

Note:

Use this with the latest version of my mod KernelAdiutor-Quark.64 or up to control the latest featuring of the kernel.

Download Kernel Adiutor App

Bug report are welcome, make with in the most accurate description possible, do not spare words, screens and logs, a bug that I can't understand and can't be reproduced, I can't fix.

Always start a post with a bug report with [MENTION=5747496]bhb27[/MENTION] and always attached a log .zip

BHB27 Kernel Adiutor > Logs > One click all Logs to a ZIP

** If the device Random reboot also share the log made as sone as the device finished the random reboot

Bugs without logs, without [MENTION=5747496]bhb27[/MENTION] will probably not be read, there is too much posts on the thread sometimes and I don't have time to read it all, anyone can post as much as is need of course as long is a things related to this thread