yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
[MENTION=8345002]Ali Haide 001[/MENTION] I build ROMs for my own devices and also share them here on XDA. I am currently building / modifying a Nougat ResurrectionRemix ROM for the Samsung S4,

ResurrectionRemix by default, adds a menu item if you install Kernel Adiutor from the store. However, i have found a bug in the market KA whereby changing the CPU Gov breaks Hotplugging (ie switching off unused CPUs) :confused: until the phone is rebooted. This effect is an issue for my ROM as one of the mods I have made is adding a few Govs to play with.

I have checked KA-Mod, and it does not have this issue. I can change the source top look for KA-Mod instead of KA from the store. I was wondering if it is OK to include and install KA-Mod as part of the ROM? A reference to this thread will of course be included in my thread where I share the ROM.
[Android Apps and Games] Ali Haide 001:
Hello:)

Yes you can include ka mod reborn in your rom if you give proper reference;)

Have a nice day:o
[Android Apps and Games] DiamondJohn:
FYI: I have created the thread for my ROM. https://xdaforums.com/galaxy-s4/i9506-develop/rom-resurrectionremix-diamondjohnd-t3741990

Please let me know if the credits are not satisfactory or even if I missed someone.
[Android Apps and Games] Ali Haide 001:
It's Perfect:highfive:

Btw,,you have explained things well on your thread:)

Have a nice day:o
[Android Apps and Games] :
Great app, thanks a lot! One question tho: Does the frequency table only show cores, which are currently active? I have 4 cores, but most of the time only 2 or 3 are shown. Bug or feature?
[Android Apps and Games] DiamondJohn:
It shows all cores, and identifies which ones are currently active, and which ones are hotplugged (ie turned off). The CPU summary however (showing the time spent in each CPU freq) does not break down by core. I would guess it shows the max? frequency of any core at any one time? But that's just a guess.

if you want to see all your cores "light-up", then switch to the performance governor and swipe fast and randomly up and down on your screen so it thinks its got something to do. Just remember to set your CPU governor back.
[Android Apps and Games] Ali Haide 001:
Hello :)

My Pleasure:o

Basically Frequency Table shows that how Much time each core has spent at which frequency it also shows that at which frequency the core spent most of the time and which the lowest. (It shows the phone each core time in state summary).

No that's not a bug if your phone is idling for a long time you will most of the time see only the cores which were active at the time of idling and at which frequency.

If you want to see that which core is currently active you can see that in CPU section.

Have a nice day:)
[Android Apps and Games] sonophilos:
It seems the KAMod-Reborn boot service isn't working. It just FCs on boot when it would normally be running.

HTC 10, Stock Oreo R3, Magisk 15.3. Let me know if I can provide any more relevant information.
[Android Apps and Games] DiamondJohn:
Logcat would be my first port of call. And maybe do two reboots and a last_kmsg as well.

Another thing to try (although not recommended as you will loose all your settings) is to try wiping your data for the app itself, and then reinstate all your settings, and then try another reboot to see if the issue persists.
[Android Apps and Games] an21281:
This is what has been happening on my Pixel 2 XL since V16, always FC on boot. Already sent all logs 2 months ago located here. https://drive.google.com/drive/mobile/folders/1MC68H8yijWEUC10Rt5GSE836TQuaO9VI?sort=13&direction=a
[Android Apps and Games] DiamondJohn:
You could makioe it easier for people to help you by putting your logs on www.hastebin.com or even zipping them up and attaching to your post.

Did you try looking at the logs yourself? searchi8ng for "fatal" and the KA-Mod's app ID (in Settings/Apps/KA-Mod) would be a good start.
[Android Apps and Games] Ali Haide 001:
Hello :)

[MENTION=8383546]sonophilos[/MENTION]

[MENTION=4061582]an21281[/MENTION]

I know that boot service isn't working

I apologize for this:(

I will fix this in next update it is at the top of my to do list but

everyone have to wait:( cause i can't work on it due to my exams sorry:(

And thank you very much [MENTION=5417899]DiamondJohn[/MENTION] for helping other people:)

I appreciate it:o

Have a nice day to everyone:o
[Android Apps and Games] DiamondJohn:
I didn't notice, as I use the "on boot" feature to get the steps taken as code, and build a boot script from those.:o

Hey, what are you doing here? shouldn't you be preparing for your exams ;)
[Android Apps and Games] DiamondJohn:
[delete duplication]
[Android Apps and Games] Ali Haide 001:
Oh yes:highfive:

I am preparing for exams:fingers-crossed:

See you guys :)
[Android Apps and Games] Abodi_1:
My kernel support controling for cpu and gpu voltages , but cant find any manage settings of any volting or gpu clocks in kernel audiotr
[Android Apps and Games] Ali Haide 001:
Hello

Which phone do you have?

Have you tried the Gplay Kernel Adiutor?

If you can get logs that will be helpful.
[Android Apps and Games] Abodi_1:
Hey

Iam using galaxy s5 with custom kernel that allowing to manage almost every voltage setting in the phone

I tried one other modded kernel audiotr (didnt remmeber the version name ) and it also didnt give me voltage control...

How can i send logs for you?
[Android Apps and Games] pnsdhrn:
I have set some changes some changes using the sound options in this KAMod and selected the boot option also.But the boot option never works.The changes in the sound optionI had made disappears on every reboot.What I have to do for making the sound option unchanged even after reboot?

Waiting with thanks...
[Android Apps and Games] David 617:
What phone do you have? Which version of Android are you running?
[Android Apps and Games] pnsdhrn:
My phone is Redmi 2 Prime (India).

Model # 2014818

Android Version: 5.1.1 LMY47V

MiUi Version:MIUI9-MultiROM7.1.1/

Beta
[Android Apps and Games] Ali Haide 001:
Ok

You can take logs inside the app setting option.
[Android Apps and Games] Ali Haide 001:
Hello

So the settings doesn't stick after reboot.

Ok i will have a look on it.

One thing you are experiencing this only in sound section or any other section also?

Have a nice day

Sorry for late response.

I am busy with exams:(
[Android Apps and Games] pnsdhrn:
Thank you,Ali.Experiencing in sound mod only.
[Android Apps and Games] Abodi_1:
The app is just crashing when I trying to save the logs :(

So that i used another app and there are 3 typs of logs :

- save last_kmsg

- save dmesg

- save logcat

Wich one should i send to you ?

And How can i send them to you ?
[Android Apps and Games] lzwfkv:
Start up options, dt2w, s2w, etc. Are also lost at reboot.

Inviato dal mio Redmi Note 3 utilizzando Tapatalk
[Android Apps and Games] haroonbro:
Thanks and good luck for your exams

Good luck for your exams.
[Android Apps and Games] Nishant001:
Hello guys!

I want to know if it's okay toggling off CPU hot plugging and then toggle CPU cores manually according to my need.

Sent from mi3(cancro), LineageOS 14.1
[Android Apps and Games] Ali Haide 001:
Hello:)

No it isn't.

Hot plug controls this automatically so no need to do that yourself;)
[Android Apps and Games] Ali Haide 001:
Ok:rolleyes:

Just make a zip and send here.

;)

Have a nice day:o
[Android Apps and Games] Nishant001:
Thanks for quick reply.

I know that but there are times when I want to toggle all my cores on before playing a game for example. But hot plugging won't let me do that.
[Android Apps and Games] Ali Haide 001:
You are lucky cause i just got online:laugh:

Due to exams i am not available here often.

Simply you can't, hotplug will turn that off again if it found less load on the system, to reduce battery usage and vice versa.

Instead of doing that you can increase your game performance by simply switching your governor to Performance.
[Android Apps and Games] Nishant001:
But I realized I can if I turn hot plugging off. And then turn those extra cores off as I wish.

Edit - what I'm trying to ask is, are there any cons of turning of hot plugging?
[Android Apps and Games] Ali Haide 001:
No None Cons.

One core will always be on.
[Android Apps and Games] Nishant001:
All right. Thanks for your time man and great work!!

I've been using kernel Adiutor for a couple of months now but couldn't save profiles because of it being donation feature.

Anyways I came across this thread and have been using it for a couple of days now.

Will let you know how my device performs.

Is there a good time I can post?
[Android Apps and Games] Ali Haide 001:
Appreciate it. :o

Ok i can't say any particular time:fingers-crossed:

But you can post here if i get time i will checkout;)
[Android Apps and Games] KelleyCook:
Well you can do effectively the same thing. CPU Core Control. Set the minimum and maximum cores all the way up.

That being said its not going to help your game performance. In fact its possible it will actually hurt it a lot because of thermal issues throttling your cores' speed and lack of multi-threadedness.
[Android Apps and Games] Nishant001:
Just what I was about to post next.

I've been getting good fps (almost 28-30) in a multiplayer co-op game I've been playing which was almost impossible before using kernel Adiutor.

But the thing is it only lasts for about 3-4 minutes. After that I start getting severe lags.

Then I came across the term thermal throttling and realized maybe this is the culprit and my kernel doesn't have the option of managing it (3.4.0-lineageos-gb263a89

jenkins@iktinos.acc.umu.se #1

Mon Feb 12 12:40:24 CET 2018).

I don't even have the configuration files in system/etc. Is there anything I can do?

Sent from mi3(cancro), LineageOS 14.1
[Android Apps and Games] pnsdhrn:
Hello dear Ali Haider,

Hope that your exams might be over now and you had performed well.So did you have time to fix the nonsticking of soundmod changes on reboot? Waiting for this with Thanks...
[Android Apps and Games] Ali Haide 001:
Hello:highfive:

Sorry to say but my exams are still going on :(

They will end on 2 april.

Sorry again.

Have a nice day:o
[Android Apps and Games] pnsdhrn:
Sorry for disturbing you.I shall then wait till the completion of your exams.And thanks for your quick response.
[Android Apps and Games] Ali Haide 001:
No you didn't disturbed;)

I know everyone is in hurry for updates:laugh:

Thanks for understanding:o

See ya. :highfive:
[Android Apps and Games] pnsdhrn:
OK brother.See you
[Android Apps and Games] secretkloud:
Hey everyone,

Sorry for asking. Wasn't sure which thread to search. Is this app any different from Kernel Adiutor [ROOT] found on the Play Store? And if so, how?

Thanks..
[Android Apps and Games] Abodi_1:
There you go
[Android Apps and Games] Ali Haide 001:
Hello and welcome:)

Yes it's different from the play store one it's a modded version of the original kernel adiutor which you see on gplay.

So it has some more features from that one:victory:

But also more bugs :silly:

Don't worry i will fix them after my exams;)

Have a nice day:o
[Android Apps and Games] Akhilesh S V:
Thanks for the mod, and All the Best for your exams Dev :)
[Android Apps and Games] nick491:
Is anyone experiencing an error upon system boot? I used to have this issue with Kernel Adiutor but last week there was an F-droid update to the app that fixed this.
[Android Apps and Games] an21281:
Yes have had that problem since v16 on P2XL, has been reported several times
[Android Apps and Games] Nishant001:
Ali Haide is there any way I can turn off thermal throttling?

sent from mi3, LineageOS 14.1.
[Android Apps and Games] zaibansari20:
App crashes on changing CPU voltage...

Also crashed on dumping SysFS values... :confused:

Running Official LinageOS 14.1 LG G2 D802

Xposed Installed
[Android Apps and Games] seanskiT!:
Get logs for the dev to review...
[Android Apps and Games] JayanWarden:
Could it be that this App does not support the Mediatek Helio P25 ?

It detects all settings correctly, but I cannot control any kernel settings.

When I offline a core or change frequencies, it get's immediately reverted.

On second thought, it maybe has something to do with me running a stock kernel for my Doogee S60 ...
[Android Apps and Games] Ali Haide 001:
Hello :)

Ok i will see bout it ;)

Please do get logs and upload here they are really helpful:fingers-crossed:

Have a nice day:o
[Android Apps and Games] Ali Haide 001:
Hello :)

You can't control anything or just few things like you mentioned cores and freqs :confused:

And one thing you cannot offline core manually if you do it will turn back on itself cause they are controlled by CPU hotplug

I suggest don't play with cores cause they are controlled by hotplug let it do its job

And for freq also the same you can't kernel/Governor control according to the situation of the device like the load on cpu etc if you have the well known mpdecision hotplug with you than forget controlling freqs cause it won't let you cause it's deeply integrated in kernels

If you have any other problem please do share it here;)

Have a nice day:o
[Android Apps and Games] zaibansari20:
Logs :)
[Android Apps and Games] surathus:
Thank you
[Android Apps and Games] Olezka:
link for telegram group don't work. pls update it.
[Android Apps and Games] David 617:
Regarding the crash I see a few things in the logs.

First,

This crash is at CPUVoltageFragment.java:114

https://github.com/AliHaide001/kern...fragments/kernel/CPUVoltageFragment.java#L114

int current = Integer.parseInt(voltages.get(i));

for some reason,

voltages.get(i)

is null there and is causing the app to crash with a NumberFormatException.

Second,

This crash is not as clear cut. There seems to be an issue with restoring fragment state. If I had to guess I look at this line

https://github.com/AliHaide001/kern...kerneladiutormod/reborn/BaseActivity.java#L83

Calling 'commitAllowingStateLoss()' is error prone, and will likely lead to issues like this.

Theres another crash here,

This crash points to line

https://github.com/AliHaide001/kern...rn/fragments/other/SettingsFragment.java#L368

If you notice there the file provider is listed as "com.grarak.kerneladiutor.fileprovider" but in the manifest (here https://github.com/AliHaide001/kernel_adiutor/blob/master/app/src/main/AndroidManifest.xml#L176) the file provider is "com.kerneladiutormod.reborn.fileprovider"

These provider names need to match, it should be updated throughout the project (this is a pretty major issue).

Another crash here,

This one is a fragment state issue as well, also likely due to the use of 'commitAllowingStateLoss()' above
[Android Apps and Games] Ali Haide 001:
Thanks for your help [MENTION=4090196]David 617[/MENTION] :o

You take out your time to look into the crashes:o

Hats off to you sir:highfive:

I will fix them in next update :)

I have only 3 exams left i will be working on it after them:victory:

Have a nice day :o
[Android Apps and Games] Ali Haide 001:
Thanks for informing:)

Now fixed;)

Have a nice day:o
[Android Apps and Games] emyoncea:
Root problems

I'm stuck in "waiting for root access" screen. I'm using magisk and have a rooted phone. Please help!
[Android Apps and Games] Saswata Chakraborty:
Hi, I am sorry for asking. But does your app have any connection to the Kernel Adiutor app that is available on Google Play Store?
[Android Apps and Games] Skull97:
Yes, this is a modded version of KA from its source with more features.
[Android Apps and Games] Saswata Chakraborty:
One thing I missed in KA is the lack of auto tasker like what we get in Device Control app where we can preset what would be the CPU frequency and governor while the screen is ON and OFF.
[Android Apps and Games] stewie-droid:
Guys the fast charging breaks with this update of kernel auditor on Lg G4 H811 stock Nougat rom from play. It did this also on Stock 6.0 rom so this is not rom related.

It shows it's fast charging for 30 seconds then it dissapears and it's not charging at all. I unplug cable plug it back in same thing. I'm running previous version and i have no problem which makes me think there has been omission of code for fast charging or any charging related to H811 phone. I don't know i'm just guessing here but that's the behavior. What's odd is that you guys updated to later sdk so it should be more compatible. Any way to fix this [MENTION=8383913]madcodez[/MENTION]
[Android Apps and Games] madcodez:
We will look at it soon.
[Android Apps and Games] t0per666:
bugs i found

no GPU settings its completely empty

apply on boot doesnt work it restores default settings

im using mi a1 los 15.1
[Android Apps and Games] CamoGeko:
That's to do with your kernel, not the app.
[Android Apps and Games] t0per666:
The stock kernel adiutor works perfect. It show gpu option and apply on boot works. Im using same kernel.
[Android Apps and Games] t0per666:
Ok
[Android Apps and Games] marcdw:
The man is busy with other things. Do not pressure or ask for ETAs. Please.

ZTE Axon 7 A2017U, AospExtended v4.6 ROM, microG (NoGapps), Multiboot, Tapatalk 4.9.5
[Android Apps and Games] samteeee:
Hi guys;

Anyone here running this app on Pixel 2 XL? as I'm having

problem with it. It won't apply at boot and "KA-mod" stopped

working warning on screen shows up every time after reboot!

Thank you.
[Android Apps and Games] marcdw:
Hmm, it would probably be difficult to get a log in that case. In KA-Mod's Settings you can output different log files. Maybe do that right after booting and error message. Post a link or attachment (but please not pasted into a post).

I take it the app has storage permission granted?

Could also change the delay from default (5 seconds?) to 10.

Once saw a tip a long time ago to not have KA battery optimized. Probably not applicable to at-boot issues but it won't hurt to see.

Just throwing things out there.

EDIT: I/You/We should've searched first. It's a known issue it seems and has been mentioned before. No resolution that I know of.

Moto G5s Plus XT1806, PixelExperience Oreo, MultiROM, Tapatalk 4.9.5
[Android Apps and Games] samteeee:
Thanks for replying back.

I'll try 'em out and if nothing worked, I'll do the logs.

---------- Post added at 10:28 AM ---------- Previous post was at 10:04 AM ----------

The thing that got it working was "Disable Notification"!

I should've seen it in "Setting" tab as it says "if you have a problem, disable notification"!
[Android Apps and Games] DiamondJohn:
A standard logcat actually sounds perfect for this case.
[Android Apps and Games] fanatic75:
Hi, I'm running pixel 2xl, stock rom with flash kernel 8.1 oreo. When I try to change my colors from stock to banged up, nothing happens. It works just fine in my other device, how do i fix this?
[Android Apps and Games] halfbytecode:
Please add an option to export profiles.

After flashing a new kernel, I usually have to clear the app's data, to fix the force close errors. This seems to remove the profiles in the app.
[Android Apps and Games] millo1978:
How to have a SELinux qsTile ?

I use Android Studio on Windows 10

in AndroidManifest.xml

[...]

<!-- SELinux Tile -->
<service
android:name="com.kerneladiutormod.reborn.services.SELinuxQSTileService"
android:icon="@drawable/ic_selinux_enf"
android:label="@string/selinux_tile"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
<meta-data android:name="android.service.quicksettings.ACTIVE_TILE"
android:value="true" />
</service>

[...]

a Vector Asset (icon) in "drawable" folder

ic_selinux_enf.xml

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,1L3,5v6c0,5.55 3.84,10.74 9,12 5.16,-1.26 9,-6.45 9,-12L21,5l-9,-4zM12,11.99h7c-0.53,4.12 -3.28,7.79 -7,8.94L12,12L5,12L5,6.3l7,-3.11v8.8z"/>
</vector>

a string in strings.xml

<string name="selinux_tile">SELinux</string>

or better... a string that change: Permissive / Enforcing

but how to have it?

but SELinuxQSTileService.java?

I'm not able to write it :(
[Android Apps and Games] DiamondJohn:
I would suggest to not be reliant on another app (ie KAMod), and shell out to an SU shell and run the command setenforce,

As such, you may also have a better response on another thread such as https://xdaforums.com/chef-central/android/guide-android-rom-development-t2814763 but I would think there may even be a better thread.
[Android Apps and Games] millo1978:
Thanks :)

... but we have a toggle in Misc (Misc.java MiscFragment.java)...

and it works good.

So...

Why not a Quick Settings Tile?

QsTile is more fast to use.

Inviato dal mio HUAWEI VNS-L21 utilizzando Tapatalk
[Android Apps and Games] David 617:
This looks great so far!

Do you have a github repo with your changes? I'd happily review your java code if you want help with it.
[Android Apps and Games] millo1978:
I'm not able to write java...

but I used as Model HBMQSTileService .

My code is:

app/src/main/java/com/kerneladiutormod/reborn/services/SELinuxQSTileService.java

package com.kerneladiutormod.reborn.services;

import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.drawable.Icon;
import android.os.Build;
import android.service.quicksettings.Tile;
import android.service.quicksettings.TileService;
import android.support.annotation.RequiresApi;

import com.kerneladiutormod.reborn.R;
import com.kerneladiutormod.reborn.utils.root.Control;

import static com.kerneladiutormod.reborn.utils.Constants.SETENFORCE;
import static com.kerneladiutormod.reborn.utils.kernel.Misc.isSELinuxActive;

@RequiresApi(api = Build.VERSION_CODES.N)
public class SELinuxQSTileService extends TileService {

private Context context;

@RequiresApi(api = Build.VERSION_CODES.N)
@Override
public void onTileAdded() {
tileSELinuxUpdate(getQsTile());
}

@Override
public void onTileRemoved() {
}

@RequiresApi(api = Build.VERSION_CODES.N)
@Override
public void onClick() {
tileSELinuxToggle(getQsTile());
}

@RequiresApi(api = Build.VERSION_CODES.N)
@Override
public void onStartListening () {
tileSELinuxUpdate(getQsTile());
}

@Override
public void onStopListening () {

}
@TargetApi(Build.VERSION_CODES.N)
private void tileSELinuxUpdate (Tile qsTile) {
Icon icon = Icon.createWithResource(getApplicationContext(), R.drawable.ic_selinux);
if (isSELinuxActive()) {
if (qsTile.getState() == Tile.STATE_INACTIVE) {
qsTile.setState(Tile.STATE_ACTIVE);
}
}
if (!isSELinuxActive()) {
if (qsTile.getState() == Tile.STATE_ACTIVE) {
qsTile.setState(Tile.STATE_INACTIVE);
}
}
getQsTile().setIcon(icon);
getQsTile().updateTile();
}

@RequiresApi(api = Build.VERSION_CODES.N)
private void tileSELinuxToggle (Tile qsTile) {
if (isSELinuxActive() && qsTile.getState() == Tile.STATE_ACTIVE) {
Control.runCommand("0", SETENFORCE, Control.CommandType.SHELL, context);
}
else if (!isSELinuxActive() && qsTile.getState() == Tile.STATE_INACTIVE) {
Control.runCommand("1", SETENFORCE, Control.CommandType.SHELL, context);
}
try{
// Pause momentarily for sysfs changes
// This should be done differently, but this will work for now.
Thread.sleep(100);
}
catch(InterruptedException e){

}
tileSELinuxUpdate(qsTile);
}

}

With this code I can change Permissive/Enforcing ...

but Enable/disable tile's color isn't always correct :(

Any help is appreciated

My Github:

https://github.com/millo1978/kernel_adiutor/commit/731f55a99c4f6f4bb501bcf4f8422f0e34f625b0
[Android Apps and Games] DiamondJohn:
it IS shelling out to a command shell. I didn't see that previously:o

To try and debug the issue, temporarily test increasing the Thread.sleep to something like 500 and see if things improve. The tile update may be occurring before the command shell command has completed being actioned.:confused: