[Android Apps and Games] sunilpaulmathew:
Please Note: Due to personnel reasons, I'm not updating this thread anymore. For those who wish to stay updated with the development of this project are requested to reach us on GitHub or Telegram. Thank you very much for the understanding.

​

/* Introduction */

Kernel Profiler is a free and open-sourced profile based kernel management utility, which helps kernel developers to provide predefined profiles to their users.

/* DISCLAIMER */

Please use this app at your own risk.
I am not responsible for any damage to your device.
Everything you are doing on your device is at your own risk.

/* Requirements */

ROOT ACCESS

Support from Kernel Developer (if your favorite kernel developer is not willing to support this app, please do not bother to install).

/* Features */

Switch between profiles (no limit) provided by the kernel developer in one click (for users).

Apply default profile, pre-defined by the developer or assigned by the user, on boot.

Completely (almost) customize the interface of app in accordance with the kernel (for developers).

Easily create profiles and necessary configuration file within the app (for developers).

/* Downloads */

/* How to add support in kernel */

Kernel Profiler expects a configuration file (kernelprofiler.json) and one or more profiles (basically shell scripts) in certain specific structure placed inside "/data/kernel_profiler".

/* Structure of kernelprofiler.json */

"kernelprofiler.json" necessarily contains a title string as well as a number of optional strings to properly identify a specific kernel. An example "kernelprofiler.json" can be found here.

"title": "Title of your kernel". The "title" should be a string from your kernel's "uname -a". It will be later matched on your user's devices, and also be displayed as app's main title. Please note that it is the only way of app to distinguish a supported kernel and should be done carefully.

"description": "A short description (in one line) about your kernel". Please note that the "description" string will be also displayed in app along with the main title.

"default": "The exact name of the default profile including ".sh" extension".

"developer": "The identity (name, pet name or anything similar) of the developer". Please note that the "developer" string will be displayed in app along with a © symbol (bottom part of app).

"support": "A link to the discussion page or a support group of your kernel". Please note that the "support" string will be linked to the app's settings menu.

"donations": "A link to send donations to the developer". Please note that the "donations" string will also be linked to the app's settings menu.

/* Structure of profiles */

Kernel Profiler considers any properly formatted shell script as a profile. Optionally, the developer may add a line starting with "# Description=" somewhere in the profile so that the app will recognize and display it as the profile description. An example profile can be found here.

/* How to integrate into an Anykernel zip */

Adding the following lines into anykernel.sh after placing all the support files, such as a properly formatted kernelprofiler.json and one or more profile scripts, into ramdisk/kernel_profiler, allow you to inject Kernel Profiler support upon kernel installation.

if [ -e $ramdisk/kernel_profiler ]; then
# Inject Kernel Profiler support
if [ -e /data/kernel_profiler ]; then
# Remove old files
rm -rf /data/kernel_profiler/*
mv $ramdisk/kernel_profiler/* /data/kernel_profiler/
else
mv ramdisk/kernel_profiler/ /data/
fi
fi

The following commit shall be used for further reference

AnyKernel: Introduce Kernel Profiler support

/* Translations */

Please help me to translate this app. The original english string of this app is available at

https://github.com/SmartPack/KernelProfiler/blob/master/app/src/main/res/values/strings.xml

/* Support */

/* Feature Requests */

I am generally open to feature requests as long as you provide enough information. Please make sure to provide all the relevant information, either in this thread or in the GitHub page. If you are a developer, please consider contributing to this app by sending pull requests.

/* Note to other developers */

You are allowed to include this app on any of your works. Giving proper credits to the original developers (including me, if you considered me as one among them) are, however, highly appreciated. Feel free to contact me, if you need any assistance from my side.

/* Donations */

If you like to appreciate my work, please consider donating to me (by either via PayPal, Ko-fi, or by purchasing the donation app from playstore) as it is helpful to continue my projects more active, although it is not at all necessary.

XDA:DevDB Information

Kernel Profiler, App for all devices (see above for details)

Contributors

sunilpaulmathew

Source Code: https://github.com/SmartPack/KernelProfiler

Version Information

Status: Beta

Created 2020-06-10

Last Updated 2020-08-14