yashsingh1/xdaforums huggingface dataset:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
- Update - 1.6.0 -​

This update is interesting for users who still don't plan to use Magisk, and need Adblocking without third party adblocking DNS providers

K.AdAway built-in kernel hosts

- Dynamically switchable without reboot from Config app - Force stop the browser/app to let the block/unblock take effect

- Doesn't require Permissive SELinux after decryption, does the job before decryption

- Mostly all apps, not just Chrome will have this feature working (Firefox, in-app Google ads), except YouTube and streaming apps

- Fixed adblock hosts file built into kernel from SteveBlack hosts https://github.com/tbalden/android_kernel_asus_sm8250/blob/cleanslate_q/binaries/hosts

--- needs new Cleanslate config app version 2.15.4 - option is in Gestures & Extras tab

- Make sure to have your data backed up this time on Google or elsewhere, I have done extended testing, but as this is a brand new feature/approach, I really recommend that

- minor fix for long tap corner gesture, now correctly, long taps won't register on the UI when using with pull down notifications mode, and will correctly stop to track for swipe gesture after that long tap

CleanSlate Q 1.6.0 Downloads:

Rooted installer zip:

CleanSlate Q 1.6.0: https://www.androidfilehost.com/?fid=8889791610682950082

Non rooted boot image base wwe 2008.78 :

boot image CS 1.6.0: https://www.androidfilehost.com/?fid=8889791610682950081

Cleanslate Config App free version 2.15.4

https://androidfilehost.com/?fid=8889791610682949477

Read first post in thread for installation details.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Been working on something I've been circling around for a few years now, and these last few features, like adblock and using property settings while unencrypted and using permissive selinux temporarily.

I always wanted to add a way to create additional permissions for the kernel without switching to permissive selinux, but the solution always eluded me, being it a pretty complex topic.

But now after the last weeks, trying to grasp how it works, I've finally found a way, found the right place to add this kind of temporarily elevating the permissions of only the kernel side machinations.

So it's finally here, and I dubbed it already with a name, "kernel permissive selinux".

I'm replacing the previous "fully permissive for a few seconds before decryption" approach with the kernel permissive mode's refined process. Again it's only used temporarily for the shortest time, making sure the elevation is not lasting more than the bare minimum needed.

Testing and releasing it in a few days.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mkljn:
Black crush issue with rog 3

Are black crush issue and colour accuracy resolved with this kernel?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
No. Let me know where do you find a solution for that, so I can take a look.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mkljn:
Enabling "Disable HW Overlays" in Developer Mode is solving black crush issue associated with online video players. But it may create some rendering problems. Can anyone confirm that this is a fixable software issue and not the hardware issue?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tachiquan3:
Wow thanks! Somehow lessen the issue.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jcliu0:
gonna ask stupid stuff here, if i flash the boot image CS 1.6.0 will it delete my data on the phone?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
When unlocking the phone with the asus unlock tool, the process does that once.

Flashing the kernel won't.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jcliu0:
havnt done this since like samsung s7, could you walk me through anything or link me to what i need to do?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
It's all in this forum :) just click around guides section.

One here: https://xdaforums.com/showthread.php?p=83368289
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
- Update Android Q Stable - 1.6.1 -​

Moving to "KernelPermissiveSELinux"

- 'KernelPermissiveSELinux' - brand new CleanSlate feature,

---- moving to a new enhanced version of kernel side security level elevation for KAdaway

---- kernel permissive mode allows to narrow down permissions for Kernel originating operations for CleanSlate features - like the ones listed above,

---- and so avoids opening up the SELinux enforced mode to temporary Full permissive.

----- This way the integrity of booting the device is still as much intact as possible to achieve these features.

- Input and Flashlight/Notif reminder features config access simplified

---- under the hood, instead of constantly reading from UCI driver

---- less time spent in spinlocks, and more efficient RCU times achieved. Thanks [MENTION=3428502]Freak07[/MENTION] for reporting the "stall" issues

Android 10

CleanSlate Q 1.6.1 Downloads:

Rooted installer zip:

CleanSlate Q 1.6.1: https://www.androidfilehost.com/?fid=10763459528675557674

Non rooted, Android Q image (Based on: 1-17.0823.2008.78)

boot image CS 1.6.1: https://www.androidfilehost.com/?fid=10763459528675557673

Read first post in thread for installation details.

Make sure you use latest 2.15.4 Config app https://androidfilehost.com/?fid=8889791610682949477
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jcliu0:
i've already done the unlock tool, just scared i will lose my data on the phone, i can go ahead and install thie kernel and wont lose data?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Great. Then if you're on wwe firmware and latest .70 or .78 asus update, you'll be fine. Worst case you can flash back the stock boot image.

Do you plan to flash the zip version with a rooted kernel manager or twrp?

Or do you plan to use the boot img version?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jcliu0:
i rather keep the phone rootless, so it would be the booot img version if possible.

Problem is that i am not on the .70 or .78 update yet.... do i need to do that first? (so meaning i will prob lose data haha)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
You need to update, and you won't lose data because of that.

As you have unlocked, the easy and safe process to update is to download the full firmware zip .78 place it in the root of the phones internal sdcard, reboot and after a while a notification appears about the update, and you can start it.

This is because after unlock ota is not an option, instead you need the full firmware.

Firmware here: https://dlcdnets.asus.com/pub/ASUS/...S_I003_1-ASUS-17.0823.2008.78-1.1.63-user.zip
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Yashny:
After flash 1.6.1 I got random reboots and no wake-up issue. Never happened before

And congratulations for your excellent work!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
When did the random reboot happen? Did you do any specific thing or happened something, like a phone call, or it being idle for a while?

Do you use forced fps feature?

Any logs maybe?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
No wake up means exactly what? Double tap? Power?

I noticed that proximity sensor sometimes get stuck on stock too and until you wave have over it, double tap won't wake
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Yashny:
I just leave it at the table and just rebooted

No wake-up issue is on but don't respond after lock and screen off for a while.

About the sensor...nothing close to sensor when that happened

---------- Post added at 12:52 AM ---------- Previous post was at 12:43 AM ----------

Yes I'm using forced screen hz
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Do you have Block power button while in pocket option set?

I have this issue of phone proximity sensor getting stuck. A hand wave before the sensor helps the issue, I can wake it after that normally.

As for the forced fps, I suspect it might cause an issue of phone getting stuck on a new call and then reboots, when forced fps is on.

Do you know if you had a call incoming when the reboot happened?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Yashny:
No I didn't an call missed.

I will try again today..I needed alarm to go work xD and I reflashed backup of anteriorly kernel.

I have fps force enable but I will try off

I don't use to block power button.

Today I give you feedback
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
I'm working on a new feature to enable saving logs and kernel crash logs to sdcard without root.

That could help us to identify the issue easier.

Thanks

If you are magisk rooted you can already grab the crash log likely.

You'll find it under /sys/fs/pstore/console-ramoops-0
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Yashny:
I will check the log for you.

PROBLEM SOLVED

FLASH cleanslate last

Uninstall 2 cleanslate apps

Reboot

Install again 2 apps

Good to go!

---------- Post added at 09:43 AM ---------- Previous post was at 09:31 AM ----------

Now another issue..during the call after about 5 seconds just shutsdown
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Were you able to fetch a log?

Also are you on latest firmware?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Yashny:
Logs folder is empty :(

Yap im running ww.78.

Returned to older build of kernel but I have to unsintall and install apps even on older build
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Which older version is that, and what exactly happens if you don't uninstall the apps?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Yashny:
Flashed latest kirisakura kernel with cleanslate 1.5 build.

The issues are call ends after 5 to 10 seconds
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Ok, we cleared this up. It was a magisk module replacing the adreno driver that caused all the issues it seems.

So first thing one should check before reporting issues here is to make sure you disabled any magisk modules and try to reproduce then. Otherwise it's very hard to tell what causes what.

I'll add this to the original post a bit later.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Working on another long time thought, to make kernel log and kernel crash log after reboot accessible without rooting.

With this new feature, pressing a button in the companion app will produce the data to the internal storage, sdcard, no root/magisk needed. You can then check it or report back with it in here in case there were an issue happening.

Again based on kernel permissive feature, no fully permissive selinux is being set, just temporary kernel rights elevation.

View attachment 5112643

In the meantime I'm also updating apps to target newer Android sdk 29, the time for older sdk is up, Google won't allow app updates with that. Fortunately it won't mean much change to the functionality, except issues around wifi access point name based profile activation. :/ I'll have to think how to reebable that, for now it won't work in the config app.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
- Update Android Q Stable - 1.6.2 -​

Kernel log feature update

- new: kernel log dump to sdcard feature - no root/magisk needed

-- From companion app, with Kernel Log button you can

---- export last console-ramoops-0 file to sdcard /sdcard/__console-ramoops-0.txt

---- and print latest kernel log (dmesg) to /sdcard/__uci-cs-dmesg.txt

- Fix: remove s.youtube.com from in-built KAdaway Adblocking list, to let Youtube playback progress history work

- Use latest CleanSlate Companion app 3.1.0 for kernel log export feature

Android 10

CleanSlate Q 1.6.2 Downloads:

Rooted installer zip:

CleanSlate Q 1.6.2: https://www.androidfilehost.com/?fid=10763459528675559853

Non rooted, Android Q image (Based on: 1-17.0823.2008.78)

boot image CS 1.6.2: https://www.androidfilehost.com/?fid=10763459528675559852

Read first post in thread for installation details.

Make sure you use latest 3.1.0 Companion App https://androidfilehost.com/?fid=10763459528675559850
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jcliu0:
Hey sir, i forgot to ask, which ADB tool are you using from the PC to reboot into bootloader?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Using the official Google Android SDK's platform tools.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] adhiduzz:
well nice!!

i just wake up from my hibernation after 4 years not doing this things :D

it arouse me to do so

hope you can help for further process if i get the issue, seems that i should learn everything from the beginning :D

well, i read the post this ROG3 can be relock bootloader, is it so real? :D

one thing for sure, i do read this thread from the first page then this kernel has ability seamlessly for banking apps

i'm afraid one of banking apps/electronic money apps of my country tracking not from root/not, but from bootloader

are you sure for this?

please let me get the line if i was wrong :D
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Yes, you can relock the phone.

Yes, newer banking apps try to detect boot loader state, and this is where the custom kernel helps, faking the bootloader state as much as possible.

That's how safetynet test also passes as of now, and so banking apps so far usually work. I also use two banking apps that usually wouldn't work without the custom kernel, yet they work fine with cleanslate.

So worst case you try, and if it fails you can still flash back a full firmware and relock the boot loader.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] adhiduzz:
glad to hear buddy :o

can i use XQ55 method to unlock BL then flash your kernel via adb ?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
No idea about that method. I just used the official unlock tool from Asus site ROG3 downloads section. That did the job perfectly without issues
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] rolandliu:
First time trying to install custom kernel, I would like to know do I have to unlock bootloader? AFAIK unlock bootloader will wipe data from my phone so will installing kernel wipe my data?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Unlocking the boot loader will indeed wipe data.

Then afterwards, you can install kernels, firmwares without wiping data. So it's a one time wipe at unlock.

If you plan to relock the boot loader, make sure you flashed the stock full firmware on the phone including the stock kernel, as after relock you can only boot with stock/signed firmware. If you don't do so, your phone won't boot, so never relock without flashing back to stock firmware. Also relock will wipe data if I remember correctly.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] LRNZ09:
Hey [MENTION=3088420]tbalden[/MENTION] I just tried to flash the latest boot image for non-rooted phones, but it gives me an error, what should I do?

This is the fastboot log:

Sending 'boot_b' (39576 KB) OKAY [ 0.060s]
Writing 'boot_b' FAILED (remote: 'Cannot flash non-official image without unlocking first.')
fastboot: error: Command failed
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
[MENTION=5077288]LRNZ09[/MENTION]

Non rooted doesn't mean locked phone. When you unlock the phone it is not yet "rooted". Rooted rather means you added a framework/ application like magisk to be able to give superuser permission to apps and processes..

This usually means you could have issues with apps that detect magisk.

Cleanslate not being rooted is about not having magisk/superuser on the phone and still configure kernel features with a special interface of the Kernel. Usually traditional custom kernels require superuser's rights/rooting to be configured. Cleanslate doesn't need that.

So, as detailed in the installation process, you'll need an unlocked boot loader. But the kernel tries its best to hide the fact that the boot loader is unlocked. This gives much better chances of successfully running banking apps, and also means no risk is taken by allowing apps to run with superuser rights.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] LRNZ09:
You're right, thanks for the great explanation
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jcliu0:
hey tbalden, i forgot to update i have successfully flashed cleanstate on my phone, very happy with your help sir!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
- Update Android Q Stable - 1.6.4 -​

Important bugfix update

- Fix: Kernel freezes when using "Vibrate for calls in DND" and call vibration boosting feature

-- Occasionally the phone got hung when receiving calls

Android 10

CleanSlate Q 1.6.4 Downloads:

Rooted installer zip:

CleanSlate Q 1.6.4: https://www.androidfilehost.com/?fid=10763459528675568767

Non rooted, Android Q image (Based on: 1-17.0823.2008.78)

boot image CS 1.6.4: https://www.androidfilehost.com/?fid=10763459528675568766

Read first post in thread for installation details.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Glad to hear [emoji847]
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] JEANRIVERA:
Is it normal for this kernel not populate information in the about section in settings? I installed through FKM if that makes any difference.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Hey man, good to see you around! :)

Yes, well it's an ASUS thing with the rom. You can't check it there since like forever. You need to run config app or Termux 'uname -a'

For some reason it doesn't get there, asus settings cannot parse the format altho it's rather standard.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
- Update Android Q Stable - 1.6.5 -​

Wifi based profile activation coming back

- This is interesting only for those who use the Premium config app and Wifi AP name based profile changing

--- extending uci/userland: now wifi ssid name is passed from kernel to the Config app

--- using that information now the Config app in play store 3.x will be able to change profile in the background

--- wifi driver now built-in to kernel (that's why zip/img size increased)

--- Use the latest Config app from Play Store, rolled out today (3.0.3).

- Minor fix to kernellog export to make it work at the first time being invoked from Companion app

--- use new Companion app 3.1.2 for this fix

- Minor fix for Chromatic Charging LED light getting stuck after usb disconnect, when the System Settings / Display / Use LED is off.

Android 10

CleanSlate Q 1.6.5 Downloads:

Rooted installer zip:

CleanSlate Q 1.6.5: https://www.androidfilehost.com/?fid=10763459528675570425

Non rooted, Android Q image (Based on: 1-17.0823.2008.78)

boot image CS 1.6.5: https://www.androidfilehost.com/?fid=10763459528675570426

Read first post in thread for installation details.

latest 3.1.2 Companion App https://androidfilehost.com/?fid=10763459528675570411
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
[MENTION=3088420]tbalden[/MENTION]

Sorry tbalden... still a strangeness ?

The previous problem I solved just like you told me to:

https://xdaforums.com/showpost.php?p=83575315&postcount=79

Now it only happens if I activate X Mode.

In the X Mode settings I think I checked everything but didn't solve it; maybe in the kernel settings, in your application?

Could you tell me which setting to check?

Thank you very much
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
What I noticed is that different screen fps uses different gamma settings. And it is very apparent on lower brightness levels. I think what you notice is that it changes screen refresh rate and that comes with another gamma calibration. This is a stock behavior and I think you can't do much about it.

Especially apparent when you force to 160hz mode.

Xmode changes screen refresh rate
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] adhiduzz:
hi

battery saver level : 1-3

can you explain level 1 means?

i mean, which level saver is it 1 or 3?

anyway, my banking apps passed successfully with this kernel :laugh:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Hey,

Excellent news [emoji106][emoji106][emoji846]

Level 1 is the least strong saving and 3 is the heaviest

More info: https://xdaforums.com/showthread.php?p=83529837
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] adhiduzz:
well, technically in real life level 3 i can use all day for saving (chat apps and so on), then i can change to level 1 (or switch profile which has level 1) for gaming..

correct me if i'm wrong :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Yes, that's correct.

Also 'Battery saver touch limiting' is better left off for gaming.

if you set touch limiting on and switch to save level 3, you will notice that animations get less fluid, like when switching between applications. Well, that's the strongest setting possible, level 3+touch limiting
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] adhiduzz:
thanks buddy

one thing for sure, should i turn on clean slate apps from startup manager or nothing to worry if i let it off?

edit: nvm, i just read that it shouldn't be optimized :laugh:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Sorry, what's start up manager?

So the apps need to start after each reboot. They are set to Auto start too. Without that the features won't be activated.

Also I recommend to remove them both from battery optimization and also hibernation should be off. Otherwise a lot of the kernel features won't work while the phone sleeps, like notification related ones or proximity sensor based ones.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] adhiduzz:
meeting profile has 2, instead of gaming profile..

the icon is true for gaming :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Indeed, thanks for pointing it [emoji106] will fix it with next app update
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] adhiduzz:
if i uncheck that, does it remove info in silent notification?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Since android ten it only moves between the two categories of silent and non silent notifications. Earlier it was possible to not show it among the icons
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] adhiduzz:
i play games with this settings is hotter than stock

is it normal? :laugh:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
This will work exactly as stock, so sounds like a placebo warmth to me. This setting will leave the scheduling and freqs as stock. Sooo no idea what's happening :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] skkozz:
Hi good sir, can I flash the cleanslate boot.img in magisk Manager to get root access? or could you share the original boot.img? I'm on 2008.78 firmware. Thanks in advance.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
You can patch the cleanslate image as well then flash it, for magisk/rooting
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Yashny:
Can flash with no problem on last. 98 rom build?

---------- Post added at 05:51 PM ---------- Previous post was at 05:44 PM ----------

Tested and working
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
Yes, by the look of the source drop it should work.

I'm preparing the update just now, will be up in a bit
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tbalden:
- Update Android Q Stable - 1.6.6 -​

Official Asus sources for .98 firmware update

- Stock source update, fixes a few things, charger and fingerprint/wake related issues, and more

- September security patch level

Android 10

CleanSlate Q 1.6.6 Downloads:

Rooted installer zip:

CleanSlate Q 1.6.6: https://www.androidfilehost.com/?fid=10763459528675573178

Non rooted, Android Q image (Based on: 1-17.0823.2009.98)

boot image CS 1.6.6: https://www.androidfilehost.com/?fid=10763459528675573177

Read first post in thread for installation details.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
Sorry tbalden, you have .98 full zip?

Thx.