yashsingh1/xdaforums huggingface dataset:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
CleanSlate Features and how to use them

CleanSlate Features and how to use them

This kernels offers its users the possibility to use CleanSlate features. CleanSlate-Kernel is developed by @tbalden.

CleanSlate kernel follows a different approach than Kirisakura-Kernel.

We know each other well over the years now and often have worked together.

For more information about CleanSlate visit @tbaldens CleanSlate thread on the Rog 3 Forums linked here.

The CleanSlate features add a lot of flexibility to a device. That´s why I like to include the features in my kernel.

Notifications Reminder, Flashlight Notifications, Turn Phone to sleep and a very advanced sweep to sleep interface that works well with Android 10 Gestures.

We decided to transform Brightness Dimmer and FPS-Override into CleanSlate accessible features as well.

That allows users to easily control these features with the CleanSlate apps.

CleanSlate features are easily accessible via the CleanSlate Configuration app. The Cleanslate Companion app provides a userspace backend for the kernel and is required for some features.

Make sure to install both of these apps, when flashing my kernel and you want to utilize these features.

The apps ask for some permissions. Enable them and do a full reboot to make sure everything is playing nicely :)

that´s how the companion app will look after enabling it.

https://photos.app.goo.gl/x6sFJc5cUFT9Q7U47

It´s needed for userspace related features, like double tap swipe area for notification pull down.

Every section of the Configuration App has different settings. Basic, Advanced and Preset. You can click on these buttons to change between them.

Advanced will offer you more customization if available.

See the screenshots here:

https://photos.app.goo.gl/avPsiHHrzPwpMqMC8

To change settings, change them according to your liking and hit the "Save" Button. It is the second from the bottom right and will be greyed out if your settings are currently applied.

As you can see in the following screenshot:

https://photos.app.goo.gl/qaFKfLbfwUuyHW717

Brightness Dimmer is enabled, FPS override is set to 144FPS on low brightness. Power button is blocked in pocket and screen gets disabled when putting the phone face down on a desk.

You should be able to find both apps for free on the CleanSlate thread. However if you benefit from the features, think about getting the premium apps on the playstore to give a little bit back to @tbalden.

I hope this post might help some :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Excellent! Keep it up :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] shane fernandes:
U aswell... Both of you keep up the great job
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] AldRezaine:
This is amazing, can't wait for the others to try and read their reviews..
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
just a small heads up before anybody complains. :D

We, [MENTION=3088420]tbalden[/MENTION] and me, just noticed a bug went unnoticed during our previous testing.

If you flashed this kernel or CleanSlate-Kernel, have the CleanSlate config app installed and Backlight dimmer enabled in the CleanSlate Config app. Make sure to keep the screen on for 3-4 minutes after rebooting your phone and the boot process finished.

Otherwise your screen will stay black. Display-Panel driver doesn´t seem to like our mod at the moment.

After keeping the screen on for 3-4 minutes the bug will not be triggered and you can use the phone as you wish.

Sorry for the inconvenience ;)

The issue will soon be resolved in a new update :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Also just start the app manually on reboot, as a workaround.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] MrxSiN:
Coming here from your OG Pixel kernel. Is this kernel for 2007.47 or 2007.32?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Nice to see you made the jump! Must be a hell of an upgrade on your side!

the .47 sources are merged. I´m using it on .47 at the moment.

I guess you can just give it a try and check if it boots/works on .32. :) If you decide to do so, it would be nice if you could report back here. It might help others :)

Make sure to have a PC with working fastboot environment nearby and a boot.img handy.

In case it doesn´t work, just force the phone to power down by holding power button plus volume down, once it powers off, keep holding power and volume up to boot to bootloader.

Connect to side port and flash your backup boot.img via fastboot. Always make sure to flash the matching boot.img for your firmware. :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Hey guys and girls,

Here´s the fix that solves the black screen issue, that occurred when the screen was off while Brightness Dimmer got activated via CleanSlate Config App on boot.

It wasn´t detected immediately, because usually the screen of my device is on when I boot the phone as to check the logs and ensure everything is working :)

Now everything is working, so just flash the kernel and enjoy ;) I´ll do a post soon, explaining the features a bit more for people unfamiliar with how the CleanSlate features work.

I´d advise everybody to read the instructions in the OP and follow them. They are written for a reason, because they ensure everything will be working as expected.

Kernel is made for the latest stock rom from Asus, you must update your phone to the most recent Asus update, before flashing the kernel.

Enjoy!

Changelog:

- Fix Screen not being able to wake up on a certain condition.

I wish you all a nice day/evening!

Download is below :)

Download:

Disclaimer/Important:

Kernel: https://www.androidfilehost.com/?fid=8889791610682925903

Instructions how to flash the kernel can be found in the OP!

But look at this post too :)

To make use of the CleanSlate features, like force FPS on Low Brightness or Brightness Dimmer you need to download both CleanSlate Apps:

Please take a look at the CleanSlate thread for CleanSlate features. I will provide the link to the free to download apps here.

If you use the CleanSlate features and benefit over time, maybe think about giving something back to [MENTION=3088420]tbalden[/MENTION] and purchase them from PlayStore. :)

CleanSlate Configuration App (to control the features):

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

CleanSlate Companion App (provides additional information from userspace for CleanSlate Kernel features to work correctly)

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

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] MrxSiN:
I'm using Tencent Version, but already fully converted to Global ROM. Updated from 32 to 47. Already flash your kernel. It's works.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] AldRezaine:
So what's the difference after?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] MrxSiN:
If you mean CN to Global ROM, Global has no China bloatware. If you mean 32 to 47, here the changelog from Asus website.

1.Added “Quick launch camera” option in System Settings->Advanced

2.Added “Navigation blocking” feature for Game Genie which disables system gesture operations to avoid accidental touches in games.

3.Improved multi-touch when three or more fingers simultaneously touch the screen in games.

4.Fixed a problem with insensitive multi-finger touch response when playing PUBG
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Just to steer this a bit in the right direction. This isn´t directed towards anybody in particular it´s just a general reminder what this thread is about.

There is no need to review the kernel. The kernel offers exactly what is described in the first post of this thread.

My advice is to read the description in the OP. All changes are explained in great detail there. Look around XDA, most OPs are kept way shorter with less explanations.

If you´re not into technical details, use google when descriptions or terms are unclear to you.

This is primarily a development focused thread. That´s why it is in the development section.

If there are issues when using the kernel or its features, provide logs and I will be glad to help you. If there are questions or things unclear, ask and I will try to answer. But I expect people to put in a bit of effort.

If you expect a review like, flashing this kernel causes my phone to use more or less battery as the stock kernel, you may want to re-read the OP on what to expect. I generally don´t like to see this in my threads.

Just to give an example that a "review" will never be applicable to each user:

Everybody uses their phone different. So certain changes to the scheduler may benefit user A, while they don´t benefit user B.

There is no need for a review. Just flash the kernel and try for yourself.

It´s very easy and straightforward to flash the kernel. And it´s also easy to return back to the stock kernel. If you don´t like it describe your problem as detailed as possible, as pictured in the FAQ and I will take a look at it or consider it. :)

Usually post like: "this kernel reduces my battery life by xyz" will just be ignored :)

It´s covered in the FAQ how to do all of this.

This is also a general reminder to everyone :) Let´s keep this thread development related and I hope this will turn out to be a good project!

I´m really looking forward to it. This phone is an absolute beast and so far I really enjoy using it.

For people a bit unfamiliar how everything works I plan to soon post a little guide on how to use the CleanSlate features.

Have a nice day everybody. :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Here´s a small tutorial for CleanSlate features:

https://xdaforums.com/showpost.php?p=83387681&postcount=3

Hopefully it will help some, that are not yet familiar with these.

I wish everybody a nice weekend.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tachiquan3:
Amazing work. Low battery temp while fast charging. Now I can just leave my phone with 30w charger without worry. ♥️♥️♥️
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tachiquan3:
Do you have Telegram Channel?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] ryu091:
I thought its not working after i flash but suddenly all the features is needed an app CleanState Config/Companion i downloaded it and it works the 144hz in 0 brightness nice2. i will use this kernel as my daily bases.

I turn on the facedown to table to turnoff the screen or vibrate but its not working for me.

Edit: Its working btw there is a 1 sec delay after facedown :) so far so good.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] htctouchelfin:
maybe stupid question, but there is no way to shot down core 7 (prime) right?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] htctouchelfin:
thanks for reply, i'm using ex kernel manager, when i shot down cpu 7 , it stay online, no way to put it at sleep, will try different app. thank you
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Houdeeny:
If there is new update, do I update the firmware first or this kernel? I am a total newb at this x-x
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] MrxSiN:
Firmware 1st. Then kernel. Just to be safe, make sure the kernel is build for that firmware.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] corey7926:
Hello. is it possible to fix TTL on your kernel?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
As far as I’m aware cpu can’t be overclocked on consumer-end qcom chips anyway. Only developer boards allow for this.

Hey, what exactly are you trying to do and what is broken?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] corey7926:
i need to change the TTL values to 63
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
I just checked and the TTL driver is already enabled in my kernel, just like described by the following commit:

defconfig: Enable CONFIG_IP_NF_TARGET_TTL · LineageOS/android_kernel_oneplus_sm8250@51c13d4

Enables the ability to execute a command iptables -t mangle -A POSTROUTING -o <eth> -j TTL --ttl-set <TTL> Change-Id: I30e139692e3f0e38c1026a052668bf7807871594

github.com
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] corey7926:
will the kernel work on firmware 143?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Probably better to wait for me to update the kernel with the new source code for .143 :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] corey7926:
thanks! we wait👍
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] futurio2021:
Hello, i'm new in this forum, but i use always your kernel,it's fantastic.

I would inform you that the source code for .143 is out on asus site.

Thank you
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Pheidologeton:
Thank you very much! This kernel is very good. Can you make this kernel for custom firmware and add nethunter features (external wifi)?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] sploink:
Thanks man!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
Sorry, I'm having trouble managing flash and back light; I would like them to come on exclusively when a notification and/or call arrives but once the screen is turned off, the back light and flash keep blinking.

I am attaching my configuration... can anyone tell me how to fix this?

Thanks

Thanks
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] gnabtib8:
These new updates make using this device on higher refresh rates much more usable :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jomaryyy:
After triggering the recents, is it just me or it really opens recents right after swiping left on home screen or app drawer? It occurs after installing the 2.2.0 kernel.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
I’m guessing you’re using my armoury crate magisk module? It’s due to that, not the kernel.

can only reproduce it on stock launcher though. Doesn’t happen on 3rd party launcher.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jomaryyy:
Ohhh, I see. Sorry I thought it was on kernel. Is there any way to fix it?

And also I got one more problem. Sometimes when I'm swiping down on any app, the notification suddenly dropping down. Maybe you also have a fix for that. Thank you so much! I love your mods tho.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
the best workaround is to use a 3rd party launcher when using the armoury crate unleashed magisk module for now.

It´s probably due to my smali hacks removing the necessity to do double navigation gestures when an app is added to armoury crate.

I´ll look into it. Though maybe once I redo the mod for A11. If I find time, maybe earlier. For now the best thing is to use a 3rd party launcher.

If you find more issues, post them in the armoury crate thread, to not derail this thread further :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jomaryyy:
Thank you so much! Gonna try it later. I dont know that it's because on Armoury Crate module that's why I posted here. I'll post any future problems next time 🧡
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] founchki:
is there anyway to use this kernel AND pass safetynet/be able to use google pay?

no matter what i do i cant get safetynet to pass and google pay to work lol or is that not a thing that can be done anymore with google pay?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
safety net passes fine for me.

There are several things that can break safety net, like using xposed.

Make sure magisk hide is enabled, there’s another module called universal safety net fix from kdrag0n available. Although I don’t need that module (yet) on my rog3.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] founchki:
lucky, even with a blank, flashes and magisk only install on my phone, it still fails :/
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] xaloundros:
First Time use your kernel my phone run smoother and fps is very good from stock and sound a lot of better thanks for you awesome work!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] founchki:
what steps do you recommend taking to make safetynet pass? mines failing the CTSprofile and the evalType is only basic >.>

Re-flashing because i softbricked, but once its flashed, and updated to .143, what do you reccomend doing to pass Safetynet? id really appreciate the help! cuz im keen to use this kickass kernel
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
I´d try the universal safety net magisk module.

Releases · kdrag0n/safetynet-fix

Google SafetyNet attestation workarounds for Magisk - kdrag0n/safetynet-fix

github.com
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] founchki:
should i install magisk v21 or v22 first?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] xaloundros:
I use v22 and safetynet works well
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kpykpy:
android10/android11

magisk21/22

only enable magisk hide setting for hardware pass safetyNet
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] iampatricktan:
Hi thanks for the update. Btw just want to ask how's the quality of the 160hz refresh rate? Is it safe as the 144 now?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
quality is basically the same as on 144hz. It´s mentioned in the release post as well. I suggest to read all the most recent release posts. starting from 2.1.0, they are all linked in the first post.

It will also answer your question about the safety.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] founchki:
i got it working! now to get the kernel installed! :D
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] htctouchelfin:
there is no possibility to set voltages with this kernel right?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] JimmyMX:
hello

thanks for your hard work on this awesome kernel

I have a question, how can we get selinux to permissive using this kernel , or is that impossible on ROG III

Thank you
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
selinux can be set via terminal to permissive without a problem here.

It´s not recommended to run permissive selinux.

just a word of advice. I wouldn´t overclock the GPU of the ROG3.

There already has been one phone destroyed by overclocking the GPU.

There is zero benefit other than higher benchmark scores.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] MrxSiN:
OC GPU or CPU on mobile doesnt give too much benefit. Instead of overclocking, i would prefer to have ability to undervolt. Battery may not be improve, but the heat generated, nice.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] MrxSiN:
I should state that what I mean was undervolting the CPU.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] JimmyMX:
@Freak07

thanx for the FYI , I need permessive because I need V4A and pointer replacer

when you say terminal do you mean via pc adb

or terminal emulator on Android

+ can you give the command to do so
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] BLUEPOP:
is there a way to install this custom kernel without root?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] sarimabbas:
Bro can I have some profile for battery life and gaming ?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] htctouchelfin:
thank for your work boss :) anyway i don't want to overclock, but to underclock and undervolt :D
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
Too risky to install A11 beta 2 with the current kernel version?

Thx
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Pretty sure it won’t boot :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
Will we have stock display kernel in next versions ?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
switching between stock display and the new setting is as easy as enabling or disabling the option in the cleanslate config app as explained in the release post of 2.2.2 a few posts back.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] ongnoicuagod:
Hi , is this kernel help playing games like genshin more smooth?

tks in advance
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
backup stock boot.img as well as dtbo.img in TWRP so you can return back to stock kernel.

Flash this kernel and try it for yourself (y)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] ongnoicuagod:
the kernel make my phone smooth like never before. playing hardcore games like genshin impact show a huge improvement in fps stability . although theres some suttering when going to new region for about 1 minutes, but i think its the game optimization problem, not the phone itself. Thank you sir!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
My phone turn itself off and cant boot up 1-2 hours. In that time the phone feels warm. It happened 3 or 4 times last 2 weaks. Is it possible to being caused by last two version of this kernel , because in earlier versions I havent this issue?

Thanks!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
I havent any new apps since the issue appears... updates only. Battery usage screen looks normal. Im not using any kernel tweaking apps or scripts.

Here is the log when the issue happens I think.

The phone was off yesterday between 9:41 and 11:52 and it wont boot in that time.

Spoiler content hidden.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Balaram12:
Can this kernel work with the strix version of the phone?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Jeff88malaquias:
Yes
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] checkin1991:
Thanks dev! I have installed the kernel and clean slate, the performance is really good.

Screen low light has no black crush, but in high light black crush appears which doesnt happen in stock setting, may I have any suggestion?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Jeff88malaquias:
Try install app "screen balance" and this config in the img attach
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
Hi, Sorry 4 OT... it's possible that the latest update (*143) has removed the ability to record calls? Only today I realised that it no longer records... THX.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
No problems with call recordings on 143 here.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Gayrat1999:
please make this kernel to work on beta a11 forgive !!!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Balaram12:
Alright I've flashed the kernel and everything's smooth, display looks awesome now after the tweaks.

Thank you for your awesome work.

My only problem is the phone seems to not like going into deep sleep.

Not sure though, it might be a problem with the current firmware as i was getting much better battery life on the previous update compared to current version even when comparing stock vs stock kernels on both.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] xaloundros:
Same here after last update from asus
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Use better battery stats to determine what keeps your phone awake. It's available here on XDA. (y)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] sarimabbas:
Same problem occured with me 2 times and the phone doesn't boot up even if its charged when I plug in the charger after 5 min red led blinks and the phone has 25%charge but it was not booting up when I press the power button . Is dere any solution
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Seosam:
Any chances to port it for the Zenfone7 ?

Thanks.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
Do you have clean state config app installed ? If yes - try to uninstall it :)