yashsingh1/xdaforums huggingface dataset:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Hey everybody,

So here´s the deal about the XDA Migration. While I welcome the change to basically get a faster and more modern forum there are also some problems that happened during the migration.

The biggest problem right now is that all of my OPs got reset several months back and I currently have lost the content of these months. That means all changes I added during that time (most obviously changelogs, but feature updates/additions etc, repair broken links) are missing completely.

It seems there is still work being done in the background, but all of those threads have not been repaired or showed any signs of changes during the last week while the migration happened.

I got not very clear replies when asking for help in the thread we all were supposed to reply to in case certain parts are broken or missing. I had hoped XDA would fix my threads in time for the security updates on the Pixels at least. But with today being patchday (probably), I don´t have high hopes it´s going to happen.

It´s unfortunate, because I think my OPs contain a lot more information or links when compared to other OPs. In the end this is a loss not only to me, but mostly the whole forums and its users. So I really hope it will be fixed soon.

But what I will do is the following:

I´ll just change the thread title to reflect the correct date and kernel version. I will not update the OP until there is clear information that either the content will not or will be restored.

I´ll just put a release post here in the thread once the new update for this months security patch is ready or I will update the kernel.

Until then I link the latest download here, which is 1.5.0 that is intended for November Firmware:

Kirisakura_OBIWAN_1.5.0.zip | by Freak07 for Generic Device/Other

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

The release post for 1.5.0 can be found here:

https://xdaforums.com/t/kernel-29-1...-rog-phone-3-aka-obiwan.4155505/post-83815367

Once the release post for December Update is ready I´ll just post it here and update the thread title.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jokono421:
Hello, this kernel looks great. I wanted to purchase this phone 16gb. Does this kernel Handel that model? Or is there a specific model running best with tweaks? Also is the refresh rate altered. I plan on using phone for optimal gaming.Any info or suggestions would be great. I don’t mind trying betas or testing. Or helping when I do purchase.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
yes the kernel runs just fine on the 16GB model.

refresh rate works the same as on stock. you can choose the desired refresh rate in settings.

some games/apps restrict the fps. there´s an option with the kernel to force certain fps on the panel. Although you have to keep in mind that if the game renders at 60 fps, forcing the screen to 144fps will not change how the game renders. However it´s there as an option. :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jokono421:
After some reserarch i found the mobile game bans users because of the 3rd party app to control triggers. So I'm hoping to hide it's visibility with magisk and ed xposed. If not worst case,always disable it before playing. Have you had any issues playing online games like cod,pubg?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] gnabtib8:
This kernel is running great and enjoy a coffee or beer on me
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] NaYmaD123:
Hello, I have a question ... So I just flashed the kernel without magisk and I dont really want to have my device rooted is there any benefits from running it with no root or is it useless in that case?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Can’t give you a definitive answer. I don’t think just using air triggers like provided in armoury create will provoke a ban. But better ask in some gaming related forum/group.

Glad to hear it works out well for you. Thank you very much, it’s greatly appreciated.

There are no benefits when running without root. The kernel depends on magisk. without magisk certain functionality will be lost. the fan will be broken, external display, the led for the lighting case I fear. You’ll also loose some optimization.

If it works out for you without root, you can run it but it’s not optimal.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Update to 1.8.2

Hey guys and girls,

New Update. It includes the source for the new firmware 17.0823.2012.122.

Make sure to update to this firmware, before flashing the kernel. The zip won´t flash by default on older firmware.

On 1.8.2 Linux-Stable Upstream is merged, as well as CAF-Upstream.

Memory improvements, small update to the scheduler, vdso32, and some others are mentioned in the changelog as usual. Some with links for those that like to read it.

Disclaimer/Important:

Since Release 1.5.0 Selinux-Mainline patches are backported now that Magisk 21.0 and greater support it. This gives selinux a performance boost.

You need to have upgraded to magisk 21.0 before flashing the kernel!

The download can be found here: https://github.com/topjohnwu/Magisk/releases/download/v21.0/Magisk-v21.0.zip

Alternatively download latest magisk manager from here: https://github.com/topjohnwu/Magisk/releases/download/manager-v8.0.2/MagiskManager-v8.0.2.apk

Go to Settings and set Magisk Channel to Beta to get Magisk 21.0!

If you´re on of those that can´t boot 21.0 or greater with the stock kernel, update to 21.0 or higher and flash Kirisakura Kernel without a reboot. Your device should boot up fine.

More details in the changelog below and on GitHub as usual.

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:

- Update Source Code to Asus Source 17.0823.2012.122 (make sure to update your phone before attempting to flash the kernel)

- Linux-Stable Upstream 4.19.164

- Merge latest CAF-Upstream

- kernel/common updates

- vdso32 patches as found on Google Pixel devices (brief documentation here)

- Backport to enable CONFIG_HAVE_MOVE_PMD (see here) , thanks @arter97

- Backport to enable CONFIG_HAVE_MOVE_PUD (commit here) , thanks @arter97

- enable lse atomics

- arm64: lse: Prefetch operands to speed up atomic operations, thanks @kdrag0n

- f2fs improvements

- scheduler improvements

- other changes please take a look at github

I wish you all a nice day/evening!

Download is below :)

Download:

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

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 you need to download both CleanSlate Apps:

Please take a look at the CleanSlate thread for CleanSlate features. On the CleanSlate thread you will find links to both apps, companion and configuration app, to control the CleanSlate features.

If you use the CleanSlate features and benefit over time, maybe think about giving something back to @tbalden and purchase them from PlayStore. :)

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] Freak07:
hey,

I´m not able to reproduce this issue. My bluetooth is always enabled and the current uptime of the device is over 4 days now.

Started a custom session in better battery stats and the device is sleeping just fine on my end and no issues with scaling of small cores.

Make sure you´re not using any magisk modules, sound mods, kernel modifications or other modifications to the system that alter default behaviour. I´m sorry but I can only provide support for a stock configuration. If you decide to explore tweaking yourself you´re a bit on your own.

The issue you´re describing sounds like an app or service is getting stuck and has issues that might be linked to requesting bluetooth functionality. As soon as you switch on and off bluetooth this app/service kills/restarts itself and the issue is gone.

It´s probably some service/app that falls into the "background" cpuset category if only small cores are getting maxed out.

My advice is to maybe check top command in terminal when the issue happens. It might give you a hint if an app is at play.

Next step would be to observe logcat when the issue happens.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] locthanh3005:
I updated last version, but I have a problem, my phone show warning Hardwarestub Service.

See image.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
that´s unrelated to the kernel. You´re running WW firmware on CN device.

I´m pretty sure you´ll find ways to hide this notification when using google or searching the forum here :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] MrxSiN:
Download Notification Off [Root] from play store. Remove the notification then uninstall the app. It will stay hidden even after udating FW to new version. Im using CN device with WW Firmware too.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] sploink:
I got 600+ single core score. Does the kernel responsible for this?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] badral07:
I've accidentally managed to remove this notification by flashing raw firmware. Because yesterday, I soft bricked my phone and had to flash the raw firmware and when the phone turned back on, I installed the latest firmware again. After that, the hardware stub notification was gone forever so weird. I can even participate in the beta program now.

Do it at your own risk mate. It might not work for everyone but I'm so happy that it's gone.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] badral07:
After many unsuccessful attempts, I've managed to flash this kernel to my ROG 3. I'm not sure, but I feel like the performance is much much smoother than the stock kernel.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
I attach a magisk module to this post that disables hardwarestub service.

Flash it in magisk manager, reboot and the notification should be gone.

By disabling hardwarestub, you won´t be able to switch refresh rate, but the notification will be hidden on converted devices.

I think it´s essentially the same that the ncleaner app does, but I don´t want people to have to rely on paid apps.

nice, welcome on board. :)

do you know what was your issue in the end? maybe you can share here so other might benefit in case they face the same issue?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
Idle battery drops much faster than stock kernel. I lose 10-15% for 8 hours at night.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Nothing to do with the kernel. I lose 0-3% during 8 hours.

An app or service keeps the device awake or a mod conflicts.

Remove all mods, magisk modules or other modifications and do a reboot. That includes apps to modify sleeping behaviour, play services, disabling services or change doze.

If the issue persists use better battery stats to determine which app/service keeps the phone awake. better battery stats is available for free for xda members.

edit: see posts above yours, for an example how apps that change sleeping behaviour and aim to improve it, can in the end cause more harm than good.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
I installed BBS and I cant see any app or service prevent the phone going to deep sleep. Everything looks ok , but battery drops very fast on deep sleep. Im not using any different programs since being on stock kernel except magisk manager 8.0.6 , magisk 21.3 and adaway. I dont know how to change doze.

Maybe I dont know where to look at because im not android guru :)

Any help will be good :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Make sure bbs is installed and working fine.

To debug what might cause the drain, tap the three dot menu in the top right corner.

Set a custom reference.

Now put the phone to sleep, face down and screen off on a desk for at least an hour. Better a few hours overnight.

Afterwards wake the phone. Then take screenshots of summary tab, partial wakelocks, kernel wakelocks and alarms that display time passed during that custom reference point. Attached are a few example screenshots.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
I updated magisk manager and magisk to latest versions. Removed 2 modules (debloater and magisk for twrp mm) and now things are far better. I lost 5% , but BBS reported 3% I dont know why.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
There is *.131 update for the phone. I put it in root on internal storage, update manager detects it, but cant update. Is it nescesery to flash stock kernel to update or there is another way ?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
you either need to wait for full firmware zip (not incremental OTA.zip) or read in the TWRP thread how to update your phone with TWRP and the incremental OTA.zip.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] kepetrov:
Ok , if I update it with full firmware zip will I need to flash magisk , twrp and your kernel again after that ?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
That’s also answered in the FAQ in the twrp thread. Just follow the steps to update with full firmware and keep magisk/twrp.

After successfully updating you will have to flash the kernel again, correct. And usually it’s best to wait until I have merged the new source code and release an updated kernel for the new firmware before flashing the kernel. Otherwise you might run into issues.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Marella ram_youtubr:
I am trying to compile a kernel with dm-verity disabled for nethunter.Can you tell which clang and comilers did you use to make your and gave me short guide of commands,Last time i compiled a kernel for android 7 ,But now everything changed with clang.Can you please povide a small guide for me ?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
clang and gcc can be found on official google repos.

platform/prebuilts/clang/host/linux-x86 - Git at Google

Gcc 4.9, 32 and 64bit as well on google prebuilts:

platform/prebuilts/ - Git at Google

for commands look at the root of my repo: build_kirisakura.sh.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Marella ram_youtubr:
By the way

What python version do you use and do you have any list of dependecies, I just use

bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev \

SOURCE (https://wiki.lineageos.org/devices/I001D/build)

And any solutions for dm-verity disable?

Can you provide the link of yout DUTOOLS (DTC)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Mrkara13:
buddy what do you think of nfs injector? would it help
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Whatever phyton my ubuntu installation brings with it.

Dependencies no idea specifically. My guess is there are quite a few that accumulated over the time I develop kernels. Usually if errors pop up you'll be notified what's missing.

dtc I compiled from aosp.

You should be able to use the one in the OP from here:

https://xdaforums.com/t/tools-necessary-tools-for-building-the-pixel-2-xl-kernel.3693955/

No it will not help. Adjustments tailored to the kernel are automatically applied after boot when flashing the kernel. It's recommended to not tweak anything with the configuration. If you do and face issues you're on your own.

Such apps can have no idea about the work I did to the kernel.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Mrkara13:
Thank you very much for your answer. I'm new. I do not know much about these issues. I just want a smoother experience. So what should be cpu governor?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Marella ram_youtubr:
What about disabling dm-verity?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
There are no issues with smoothness on the default settings when the kernel gets flashed for me.

Follow the instructions in the first post and everything will be fine (y) there's no need to change anything.

No need for performance "improvement" or battery saving magisk modules or apps/tweaks.

default governor is schedutil. Do not change governor's it's the only one working correctly with EAS.

SM8250: disable avb on vendor partition · omnirom/android_kernel_asus_sm8250@2267100

Contribute to omnirom/android_kernel_asus_sm8250 development by creating an account on GitHub.

github.com
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Marella ram_youtubr:
It just gives permissions for just vendor or all super partition?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
If you want to mount super rw, because you want to edit something that's not going to work. You have to create a magisk module to replace files systemlessly.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Marella ram_youtubr:
Thank you soo much, I have successfully compiled my kernel but in your kernel zip there is a file called dtb.Where can i find that in my output folder?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
you won´t find it in your output folder you need to create it yourself.

android_kernel_asus_sm8250/build_kernel.sh at rog3_recovery · CaptainThrowback/android_kernel_asus_sm8250

Contribute to CaptainThrowback/android_kernel_asus_sm8250 development by creating an account on GitHub.

github.com

Line 65 should give you an idea how to create it :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Update to 1.9.4

Hey guys and girls,

New Update. It includes the source for the new firmware 17.0823.2012.131.

Make sure to update to this firmware, before flashing the kernel so no conflicts arise.

1.9.4 includes latest Linux-Stable Upstream as well as CAF-Upstream.

I also created a magisk module to hide the hardwarestub service warning for those with converted devices on my kernel. No paid app is required for it. Flash it via Magisk Manager and the notification will be hidden.

Please note that refresh rate can´t be changed when the module is flashed. To able to change refresh rate or to remove the module, simple remove it in Magisk Manager and do a full reboot. I´ll attach it to the third post on this thread. There will be no support for this module from my side and no other support for converted devices.

Disclaimer/Important:

Since Release 1.5.0 Selinux-Mainline patches are backported now that Magisk 21.0 and greater support it. This gives selinux a performance boost.

You need to have upgraded to magisk 21.0 before flashing the kernel!

If you´re on of those that could not boot 21.0 or greater with the stock kernel, this issue is solved on magisk 21400 and above.

More details in the changelog below and on GitHub as usual.

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:

- Update Source Code to Asus Source 17.0823.2012.131 (make sure to update your phone before attempting to flash the kernel)

- use latest clang 12.0.2 prebuilt by google and fix clang errors

- Linux-Stable Upstream 4.19.172

- Merge latest CAF-Upstream

- kernel/common updates

- updates to usb_accessory

- f2fs-stable upstream

- implement fast refcount checking

- other changes please take a look at github

I wish you all a nice day/evening!

Download is below :)

Download:

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

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 you need to download both CleanSlate Apps:

Please take a look at the CleanSlate thread for CleanSlate features. On the CleanSlate thread you will find links to both apps, companion and configuration app, to control the CleanSlate features.

If you use the CleanSlate features and benefit over time, maybe think about giving something back to @tbalden and purchase them from PlayStore. :)

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] Marella ram_youtubr:
Do you have any method to decrypt phone(disable force encryption)?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] KasyaDMHH:
I came from Samsung devices. If I root my phone, can I still receive OTA update?

If Im choosing to go back to stock kernel, where can I find the stock boot.img and dtbo.img?

If I would have any problems with my bank applications (I know, Magisk should work), Can I go back and relock the bootloader?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
As soon as you unlock the bootloader you won't receive any OTAs from asus even if you relock.

stock boot and dtbo.img can be extracted from full firmware zip.

https://xdaforums.com/t/guide-how-to-extract-payload-bin-from-ota.3830962/

alternatively you can backup boot and dtbo.img via TRWP.

yes you can relock the bootloader again.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jokono421:
I finally got this phone. I was hpoping to run this kernal. Having issues even getting bootloader unlocked. If you have some spare time.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jokono421:
i have a ww rom uknown bootloader and some obiwan kernal. it's 128gb 12gb ram. Says tencent gaming on it. At first 5 trys it sayed unable to validate or something. then last 5 times it processed and restarted phone. I can't find unlock bootloader in phone. I tried doing fastboot and adb commands. only one that works is adb fastboot reboot bootloader. I currently screwed my laptop. thought it was my distro. How do i ckeck to see bootloader unlock?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jokono421:
Well it looks like, I have a cn phone with ww flashed on it and bootloader relocked. I see no oem unlock in settings. If someone can advise a process. I think I may have to flash cn raw ,then unlock bootloader, flash twrp, After ww rom ,magisk root. Finally this kernal. Is this right?. How do I flash cn? In bootloader,fastboot or device on normal? Commands in terminal? I tried other threads instructions can't get any help. Sorry to blow up your thread.If anyone can pm that had same issue.firm ware is baseband m2.23.3.20-obiwan_00561. Qkq1.200419.002.WW_Phone-17.0822.2005.11 build number. Kernal 4.19.81 pref android @mcrd1-19 #1 Thursday jul 9 cts 2020. I have some experience using odin, adb, and fastboot to root devices on android N,O,P . I tried system ota and it says I'm up to date.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Mrkara13:
bro, is there an option to increase the gpu clock. 587mhz to 650?