Development [KERNEL][12/13][A528B/N] Mesa's Custom Kernel R6

Search This thread

BlackMesa123

Recognized Contributor
Aug 29, 2015
2,226
3,937
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
that's right, vol+ w/ magisk, vol- w/o magisk. I chose vol+ ie. w/ magisk. but I don't see magisk app. I' don't have much experience in using magisk but and I'm wondering if I need to install something more like magisk manager to take advantage of installed magisk.
Yes you do have to install the Magisk Manager app separately.
 
  • Like
Reactions: geos_

BlackMesa123

Recognized Contributor
Aug 29, 2015
2,226
3,937
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
Release 6 is out now, this release contains some additional tweaks/adjustments compared to the previous one. As you might've noticed, I've decided to also release an AOSP version for the new upcoming AOSP ROM's based on @Simon1511 work, if you've currently installed LineageOS/PE/crDroid or any other AOSP ROM, please flash the MCK AOSP variant or you'll have some issues such as FOD not working. One UI/GSI's users can keep flashing the Vanilla R6 zip. Legacy R3 zip is still there in case you're using an older Android version and you're having issues with the latest kernel release (which should work just fine on Android 11/12).
 
There really isn’t a specific way to measure this. Try it out yourself, if you’re not satisfied you can revert to the stock kernel by restoring your previous boot/vendor_boot/vendor/dtbo partitions.
Yeah, thing is i didn't unlock the bootloader yet so i wanted to see if its worth it, but i guess i will do it either way now, i will post my results later.
 
Battery Test Results:
for the Battery test i charged it 100%, unplugged it and began the Tests one after another.
100% Installed (Setting up a Google Account and installing Geekbench and TikTok): Stock: 100% | MCK: 100%
Geekbench 6 CPU, GPU OpenCL and GPU Vulcan: Stock: 98,97,96% | MCK: 98,97,96%
1080p Youtube¹ Playback (WiFi) at 50% Volume: Stock: 94% | MCK: 94%
Scrolling trough TikTok for 10 Minutes: Stock: 92% | MCK: 92%
Geekbench 6 Scores:
Stock: CPU: Single: 1009, Multi: 2881 | GPU: OpenCL: 1885, Vulcan: 2339
MCK: CPU: Single: 1010, Multi: 2882 | GPU: OpenCL: 1926, Vulcan: 2325


¹The Youtube Video
*All tests were done at around 40% Brightness

!!!NO SETTING WAS CHANGED AFTER THE INITAL SETUP!!!
If you have any questions to the tests, feel free to ask them.

Pros/Cons:
- Really there are only Pros so here you go:
- Magisk (you can probably double your SOT time when watching tiktok/youtube with SmartHertz)
- Integrated Camera Fix
- Same/Better performance
 

batam

Senior Member
Oct 27, 2006
192
26
Battery Test Results:
for the Battery test i charged it 100%, unplugged it and began the Tests one after another.
100% Installed (Setting up a Google Account and installing Geekbench and TikTok): Stock: 100% | MCK: 100%
Geekbench 6 CPU, GPU OpenCL and GPU Vulcan: Stock: 98,97,96% | MCK: 98,97,96%
1080p Youtube¹ Playback (WiFi) at 50% Volume: Stock: 94% | MCK: 94%
Scrolling trough TikTok for 10 Minutes: Stock: 92% | MCK: 92%
Geekbench 6 Scores:
Stock: CPU: Single: 1009, Multi: 2881 | GPU: OpenCL: 1885, Vulcan: 2339
MCK: CPU: Single: 1010, Multi: 2882 | GPU: OpenCL: 1926, Vulcan: 2325


¹The Youtube Video
*All tests were done at around 40% Brightness

!!!NO SETTING WAS CHANGED AFTER THE INITAL SETUP!!!
If you have any questions to the tests, feel free to ask them.

Pros/Cons:
- Really there are only Pros so here you go:
- Magisk (you can probably double your SOT time when watching tiktok/youtube with SmartHertz)
- Integrated Camera Fix
- Same/Better performance
Thanks for this comparison 👍
 

Darayavahus

Senior Member
Nov 20, 2015
261
74
Wroclaw
Hi,

Any idea how to get rid of this SSRM prompt, which shows after every reboot? It's kinda annoying :/ I'm on stock FW.

This kernel actually helped me get rid of the camera bug, so I'm grateful for that. Safetynet fixes / zygisk / systemless hosts or whatever didn't do the trick for me.
 
Last edited:
  • Like
Reactions: BlackMesa123

Darayavahus

Senior Member
Nov 20, 2015
261
74
Wroclaw
For those struggling with google wallet neglecting their banking card, use this safetynet version. 2.4.0 and 2.2.1 doesn't appear to be working at all.
 

bobfrantic

Senior Member
As there's a problem with SSRM "fix" removing aps from add-list in battery options of system settings, I have attached the modified Samsung DeviceHealthManagerService.APK for those who have the SSRM prompt on stock kernel.

First of all - Use it at YOUR OWN RISK. It worked for me, it might not for you. But I can't think of the reason why it wouldn't, really.

Prerequisites:

1. Stock firmware / I'm using blackmesa123 kernel on top of it
2. Working root, obviously

How to:
1. Download attached file and copy it to your device (SG A52S 5g)
2. Remove "Samsung device health manager service" from your device. I used lucky patcher for that. Use what works for you
3. Copy the file apk to system\app folder with root permission. Use EX File manager from google play or anything you like, which will allow you to use it in 'root mode'.
4. Reboot
5. Verify if you can add apps to deepsleep in battery options in system settings, and whether the prompt is gone from the initial post reboot screen

In case of any failure - download stock apk from here and install it as mentioned above.

DeviceHealthManagerService IS NOT boot critical application. I had it uninstalled completely and system booted without any hiccups.
I followed the instructions to the letter. The SSRM warning didn't go away, I could add apps to the sleep and deep sleep. The worse thing is that it made my partitions read only and I couldn't rename, delete or copy anything to my system. So I was unable to put back the backup of the SamsungDeviceHealthManagerService and delete your file. Had to do a complete reinstall of firmware. I did notice that even though I didn't rename your file but copied it as is to system/app it was renamed after reboot to SamsungDeviceHealthManagerService so not sure what went wrong...
 
  • Sad
Reactions: Darayavahus

BlackMesa123

Recognized Contributor
Aug 29, 2015
2,226
3,937
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
I followed the instructions to the letter. The SSRM warning didn't go away, I could add apps to the sleep and deep sleep. The worse thing is that it made my partitions read only and I couldn't rename, delete or copy anything to my system. So I was unable to put back the backup of the SamsungDeviceHealthManagerService and delete your file. Had to do a complete reinstall of firmware. I did notice that even though I didn't rename your file but copied it as is to system/app it was renamed after reboot to SamsungDeviceHealthManagerService so not sure what went wrong...

An official fix for the SSRM warning at boot will be included in the next MCK release. https://github.com/BlackMesa123/and...mmit/831efea0b6414ed403131c698a966e41f6a8c061
 

Top Liked Posts

  • There are no posts matching your filters.
  • 25
    BlackMesa123 presents

    QpZ0u7E.png


    /* Mesa's Custom Kernel */

    /* Disclaimer */

    - I am not responsible about any damage of any kind that this kernel may cause.
    - You are allowed to use this kernel in your project with proper credits and links to this thread or source code.
    - You are allowed to base your projects on my sources by giving proper credits to the original authors.
    - Bugs can be reported in XDA or via the community's Telegram Group. Make sure you provide detailed info when reporting bugs (device variant and logs).


    /* Intro */

    Mesa's Custom Kernel (shortened as MCK) is my personal vision of a custom kernel for the Galaxy A52s 5G. This kernel aims to improve your daily usage of the phone by enhancing performance and battery life via implementing new features and optimizations.

    /* Features */

    - Built from A528NKSU2EWB4 source code
    - Linux 5.4.226
    - Upstream with CLO sources
    - Built with Clang 12.0.7 (r416183b1) Toolchain
    - Switchable SELinux status
    - Security Related Features disabled (RKP, KDP, Defex, FIVE etc.)
    - Magisk v26.1
    - Wireguard support
    - TTL/HL Target support


    /* Supported Devices */

    - SM-A528B (a52sxqxx)
    - SM-A528B (a52sxqzt)
    - SM-A528N (a52sxqks)


    /* How to Install? */

    To install the kernel, flash the zip provided in Post #2 with a Custom Recovery. It is recommended to create a backup of your Boot/Vendor Boot/DTBO/Vendor partitions before flashing.

    /* Source code */


    Available at GitHub

    /* Credits */


    - Samsung OSRC for providing the kernel source code
    - CLO and Google for providing the latest patches and updates for the Linux kernel
    - @davidarsene for his camera fix
    - The A52s Testers Team for testing out the kernel
    14
    /* Changelog */

    T (13)

    R6:
    - Additional support for rev 1 bootloaders
    - Updated Magisk to latest stable build
    - Support charging current/voltage text on AOSP
    - KGSL/GPU improvements
    - Disabled some debug features
    - Enabled LLVM Polly


    T (13)

    R5:
    - Updated kernel sources to EWB4
    - Merged LA.UM.9.14.r1-21300-LAHAINA.QSSI12.0 tag tree-wide
    - Updated Magisk to latest Canary build
    - Fix boot issues on devices with rev 2 bootloader
    - Fix external SD on AOSP/GSI ROM's


    R4:
    - Updated kernel sources to DVK5
    - Merged LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0 tag tree-wide
    - Switch to Clang 12 toolchain
    - Updated most of kernel routines
    - Backported LZ4_FAST_DEC_LOOP
    - Switch ZRAM compressor to LZ4
    - Reworked GPU freq table


    S (12)

    R3:
    - Reworked kernel tree
    - Updated kernel sources to CVH6
    - Added a52sxqzt support
    - Merged LA.UM.9.14.r1-20500-LAHAINA.QSSI13.0 tag tree-wide
    - Removed forced Permissive SELinux
    - Disabled ARM64 PAN
    - Disabled CORESIGHT
    - Enabled TTL/HL target support

    R2:
    - Merged LA.UM.9.14.r1-20500-LAHAINA.QSSI13.0 kernel tag
    - Disabled EDAC
    - Disabled sync when entering suspend
    - Enabled power efficient workqueues
    - Disabled ARM64 SVE
    - FS adjustments
    - KGSL adjustments
    - Other minor adjustments

    R1:
    - First stable release

    /* Download */

    Mesa's Custom Kernel T R6 (Vanilla/AOSP)
    Mesa's Custom Kernel S R3


    Which file should I download?

    /* Useful links */

    TWRP for Galaxy A52s 5G
    OrangeFox Recovery for Galaxy A52s 5G
    A52s Telegram Group (General)
    A52s Telegram Group (Development)
    4
    Release 5 is out now, this minor release contains updated kernel sources (One UI 5.1, latest CLO tag) and some minor adjustments such as compatibility with rev 2 bootloaders. Updated OP and links in Post #2.
    3
    Release 3 is out now. Updated OP and links in Post #2
    3
    will this work with android 11?
    Probably not, the kernel is based on the latest A12 (OneUI 4.1) sources