[KERNEL][17.12.22][A12][A13] Stock Kernel with exFAT for Pixel 4/XL - Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth

Stock kernel with upstream exFAT driver for Pixel 4/XL
Background
Read about the Google Pixel 6/Pro getting official exFAT support in Android 13 on an Esper article and dug around the source code for Android's vold. Seems like Android has "supported" exFAT since Pie/9 with this commit in platform/system/vold as long as the device comes with 1) exFAT driver in the kernel, 2) mkfs.exfat and fsck.exfat in /system/bin(weird that Google doesn't include this in Android). Thankfully, both are available for all devices with Linux kernel > 4.1 through the linux-exfat-oot exFAT driver and exfatprogs, both provided by the official Linux exFAT driver maintainer, Namjae Jeon. Some compilation and git clone-ing later and, here we are!
Code:
/*
* Your warranty is no longer valid, unless you lie.
*
* I am not responsible for bricked devices, strained relationships,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*/
Features
-Supports accessing exFAT disks in Android as you would a FAT disk
-Kernel built from the latest July security patch sources from Google, completely stock apart from exFAT driver and some debugging disabled
-exFAT kernel driver backported from Linux kernel 5.19.1
-exfatprogs built from master branch of namjaejeon/exfatprogs
-Kernel compiled with AOSP Clang 12.0.5, exfatprogs compiled with Android NDK r23
-Kernel built with CFI/LTO enabled and reduced debugging(floral_exfat_perf_defconfig)
Requirements
-Unlocked Bootloader
-Magisk
-Recovery or EX Kernel Manager/FKM app
Download
-Attachments below
How to install
1a. Download the kernel flashable zip(floral-stock-kernel-jul22-exFAT.zip or floral-stock-kernel-jun22-exFAT.zip depending on whether you are on July update or June update)
1b. Download the Magisk module zip(magisk-exfatprogs-aarch64-v1.zip)
2a. Install the Magisk module zip from Magisk app
2b. Flash the kernel zip in EX Kernel Manager or FKM app or in TWRP/Lineage Recovery
3. Connect an exFAT disk and try it out!
Source code
https://github.com/haoyangw/android_kerrnel_google_floral
Credits
- Namjae Jeon(exFAT driver maintainer)
- Google(for kernel sources)
- topjohnwu(for Magisk)
- osm0sis(for AnyKernel3)
- nathanchance(for his Github guides on compiling Android kernel with Clang)
- Zackptg5(for his MMT-Extended repo used for my Magisk module zip)
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Changelog
17-Dec-22
- Latest Android 13 kernel source for Pixel 4/XL
- October security patch
11-Jul-22
- First release
- Added exFAT driver as git submodule under Google's stock kernel sources
- July security patch
- Disabled some kernel debugging code

[Guide] How to port this to other Android devices
Requirements
- Android phone with Linux kernel >= 4.1
- armv7 or arm64 SoC/CPU
- CLI experience and a Linux PC with decent RAM/CPU for compilation
Points to note
- LTO/CFI takes a huge amount of RAM if your PC's CPU has a lot of cores since the LTO operations are parallelised. I couldn't find a flag to disable parallelisation/multi-threading of LTO so I had to enable ZRAM to give lld enough RAM. For me, I had a 4-core/8-thread CPU(Intel Core i7-8809G) with 32GB RAM and lld managed to eat up 19GB-25GB RAM(Jun security patch took 19GB, Jul security patch took 25GB before lld got killed due to OOM, didn't check RAM usage on successful compilation) when run with make -j2
Steps
1. Download your device's kernel sources
2. Add namjaejeon/linux-exfat-oot to fs/exfat under the kernel source, either as a git submodule or just download the repo as a zip and extract it
3. Perform steps 2 & 3 of jamjejeon's guide
4. Enable the exFAT driver by running 'make ARCH=<device architecture> <defconfig file>' and 'make ARCH=<device architecture> menuconfig', and then going to 'File systems' -> 'DOS/FAT/NT Filesystems' -> Press 'Y' key of your keyboard after moving the highlighted option to 'exFAT filesystem support'
5. Compile your kernel
6. Take the generated Image(.lz4)(-dtb) and dtbo.img files and use AnyKernel3 to generate a flashable zip
7a. Install either the 'magisk-exfatprogs-aarch64-v1.zip' or 'magisk-exfatprogs-armv7a-v1.zip' file attached below, depending on whether your device is 64-bit(aarch64) or 32-bit(armv7-a)
7b. You can also cross-compile exfatprogs from source by setting up the Android NDK according to Google's Use NDK with other build systems guide(autoconf section)

This too

Sorry for the delay, here's the latest stock kernel with exFAT support added for those on the final update of Pixel 4/XL, Android 13 October patch! Installation steps are the same as before. I'm not sure whether it'll support earlier stock Android 13 builds though, try at your own risk! Hope this is useful!

Related

[ROM][Unofficial][Stable][CM12.1] Samsung Galaxy Trend Plus/S Duos 2 (GT-S7580/GT-S75

#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Click to expand...
Click to collapse
This ROM compatible with L version in both S7580 & S7582
DO NOT SUBMIT BUG REPORT TO CYANOGENMOD.
Me status: No development until end of year
Screenshot:
Spoiler
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
!!!Q&A!!! READ THIS OR I WILL NOT ANSWER YOUR QUESTION:
Q: I found bug ABC which not in know bug, how I can fix it?
A: Post it in comment section and we will try to fix it.
Q: How long does bug XYZ get fixed?
A: I'm working as hard as I can to fixing all bug so please don't ask ETAs.
Q: How do I flash it?
A: First you'll flash Custom Recovery (TWRP) below depends on your model (S7580/S7582) by Odin and then find some tutorial about install custom ROM on Youtube. Remember to format /data; internal sd after flash ROM
Q: Why there is no Google Play?
A: Flash Gapps after Flash ROM.
Q: Error code 7 while flashing ROM
A: Flash MY recovery below and check if it's matched with your phone and downloaded ROM.
Q: No root? root access failed?
A: Download http://download.chainfire.eu/supersu and flash it in recovery like you've done with stock ROM.
Q: Do I need to wipe when update?
A: Look at [CLEAN FLASH] below
Q: Can I just update boot.img of new update without install whole ROM?
A: It's really not recommend to upgrade only kernel because I update CM source before every build so it might have fix/improve performance, if you stay on old platform then you'll never get benefit from new platform. I always clean format before flash every new stable build because I want to make sure no problem user reported are coming from unclean flash.
Q: Please fix [insert problem here]
A: Give me logcat and /proc/kmsg (dmsg) after problem happens, write "Please fix" won't get it fixed.
Q: Do I need to update every new recovery before flash new release ROM?
A: Any recovery build after 2 Nov will work just fine so you don't need to do it, I just made new recovery because some kernel fix can impact on file system, or I just have too much free time so I build another recovery, more details I will post in Changelog - Recovery.
- But I'd recommend for you to upgrade if you can.
Q: Can you add C-Apps, Xposed,...?
A: No, I want to keep CM pure, I will not add any external apps to platform, if you want those apps then install it yourself.
Q: Is this ROM support C-APPS?
A: I don't use C-APPS so i'm not sure if it 100% work or not, this ROM are supposed to be compatible with C-APPS but if after you flash then something broken, don't yell at me to fix it, it is your responsible for flashing C-APPS and the maintainer for C-APPS is The CyanogenMod Team.
Q: Unable to mount /preload (in recovery, latest build)
A: Update to latest TWRP recovery
Q: CM13?
A: Currently I have some final test school stuffs to do so CM13 development will start on ~Jan 2016
I WILL NOT ACCEPT BUG REPORT IF YOU ARE NOT USING LATEST BUILD WITH IT ORIGINAL KERNEL
Donate:
To me:
For people coming from Vietnam: Any Vinaphone prepaid card and sent to 0913194947, this is not a phone line for tech support dammit!
To my collaborate (Zim555), he helps me fix so much bug like hw decoder since CM11, he worked on this hawaii board longer than me and mostly android patch I get are from him:
Visa number: 4283 3712 0027 2388
Name: Kiyashko Vitaliy
Yandex money: 410012689247994
It would great if you could donate two of us.. but if you can't donate both then donate to Zim555 only
Special thanks:
- Google
- AOSP
- Cyanogenmod
- Zim555
- pawitp
- TheNikiz
- People that help me test it through development progress
-------------------------------------------------
S7580:
Download Recoveries (UPDATE 7 Dec 2015):
TWRP: https://www.androidf...269982087012787
Download ROM (UPDATE 7 Dec 2015):
Stable: https://www.androidf...269982087012775
-------------------------------------------------
S7582:
Download Recoveries (UPDATE 7 Dec 2015):
TWRP: https://www.androidf...269982087012792
Download ROM (UPDATE 7 Dec 2015):
Stable: https://www.androidf...269982087012776
-------------------------------------------------
Untested, daily updated and have latest CM code
Daily build: https://jenkins.sand...LEPROXX_CM12.1/
-------------------------------------------------
GAPPS 5.1.1 (PICO)
https://www.androidf...iles&flid=31528
Changelog:
+ Platform:
**- Resync CM12.1 source
**- New open source libstagefrighthw, replace proprietary from Samsung
**- Better icon texture
+ Kernel:
**- Fix lag
+ Recovery:
**- Latest TWRP source (android-6.0)
**- Newest kernel
**- Minimal size (disable unnecessary kernel feature)
**- Build based on CM12.1
**- Remove ability to mount /preload
CLEAN FLASH:
Spoiler
- Before install ROM package if you're currently use STOCK ROM/CM11, make sure to wipe data/factory reset; if possible then do a internal sd format first, else you'll get error. You don't need to wipe (even dalvik cache) if you upgrading CM12.1 with CM12.1; unless I told you to do so
+ HOW?
- When entering TWRP Recovery, it will ask you if you want to keep system partition Read only, check the box "Never show this screen during boot again" and swipe the lock bar, else you can't modify system partition in TWRP like install ROM, root...
Working:
- RIL
- WIFI/Tethering
- Bluetooth
- GPS
- INCALL
- HW Decoder
- 2 sim (GT-S7582)
- OTA Update [TEMPORARY HAVE PROBLEM]
- ...
Kernel feature:
Spoiler
+ I/O Scheduler:
** - TripNDroid
** - SIO
** - DEADLINE
** - FIOPS
** - BFQ
+ CPU Governor:
**- HOTPLUG
**- INTELLIDEMAND
**- INTERACTIVEX
**- LAZY
**- LAGFREE
**- INTELLIACTIVE
Know Problem:
- Dial animation laggy. [using GravityBox to go directly to dialpad without need to press show button]
- Offline charger sometime slow powering on.
Old builds:
GT-S7580: https://www.androidf...iles&flid=41729
GT-S7582: https://www.androidf...iles&flid=41730
For developer:
Spoiler
Device Tree (GT-S7580): https://github.com/S...samsung_kylepro
Device Tree (GT-S7582): https://github.com/S...msung_kyleprods
Kernel Source: https://github.com/S...msung_kyleproxx
Vendor Blobs: https://github.com/S...samsung_kylepro
#If you are going to post my work and or using my source code then please give credit, it's won't hurt you, but it will hurt me if you don't.
Credit to: SandPox
Sent from my GT-S7580 using Tapatalk
Title is cut off
Sent from my GT-S7580 using Tapatalk

[ROM]LineageOS 15.1 for Smartron srtphone[rimo02a]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
LineageOS is a free, community built, aftermarket firmware distribution of Android 8, which is designed to increase performance and reliability over stock Android for your device.
LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.
What's working :
EGL
Encryption
Camera
RIL (IMS, Calls, SMS, Data)
Wi-Fi
Bluetooth
Video Playback
Audio
Sensors
LED
GPS
NFC
Fingerprint
Known issues:
Permissive Selinux
Report bugs:
DO NOT Report bugs if you're running a custom kernel or you installed Xposed
Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues.
DO NOT POST BUGS WITHOUT LOGS AND PROPER STEPS TO REPRODUCE THE ISSUE
DO NOT POST BUGS IF YOU ARE USING CUSTOM KERNEL or ANY MODULE
Follow Instructions Carefully otherwise you will get error :
Reboot to recovery
Wipe cache, dalvik cache, system, data
Flash ROM & Gapps arm64 together
Done-Reboot Now
Enjoy the clean rom
Downloads :
ROM:
srtphone
RECOVERY:
TWRP
Source code:
ROM: https://github.com/lineageos/android
KERNEL: https://github.com/darshan1205/android_kernel_smartron_msm8976
Don't forget to press thanks
DONATIONS:
Please Consider to donate if you enjoy my work. It will be used for server expenses, Ty
Paypal donation link: https://paypal.me/darshan1205 (do mention device name while donating) PM for any other mode of transaction
XDA:DevDB Information
[ROM]LineageOS 15.1 for Smartron srtphone[rimo02a], ROM for the Android General
Contributors
darshan1205
Source Code: https://github.com/darshan1205/android_kernel_smartron_msm8976
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.10.x
ROM Firmware Required: FOTA6
Version Information
Status: Stable
Created 2018-09-30
Last Updated 2018-11-09
NOTE:
Remove your accounts & fingerprints before flashing this firmware.
If you are facing issues in enrolling fingerprints, Remove Saved Fingerprints from Settings & Delete all files starting with finger & with extension as so (ie finger*.so) from /persist/data/ & Reboot.
Enable off-mode charging by fastboot method:
How to use ADB & Fastboot? https://forum.xda-developers.com/showthread.php?t=2277112 Ignore if you already aware about it.
Instruction:
1. Setup your Fastboot tools https://forum.xda-developers.com/showthread.php?t=2317790
2. Reboot to bootloader
3. connect your device to usb
4. run this command on cmd
Code:
fastboot oem enable-charger-screen
5. reboot to TWRP recovery
Code:
fastboot oem reboot-recovery
6. select reboot -> poweroff
7. Done :highfive:
Thanks to @karthick mostwanted for charger-screen
Changelogs
20180929: Initial Build
20181006: Fix NFC & FP
20181108: Update to November Security Patch, Increase volume, Increase Volume Steps to 7 & 25 for call & media, Switch to OSS camera hal, Add toggle to enable navbar & disable hw keys.
20190112: Update to January Security, Fix audio & media related issues.
20190126: Update Camera, Add DT2W & Fix USB Tether.
20190217: Update to February Security & Update Audio Config.
20190312: Update to April Security & Kernel updates.
Awesome work
Update !
* NFC & FP fixed
Excellent work
Excited to see trying it now.
First trial got boot loop. Any tips.
Changelog:
* Update to November Security Patch.
* Increase volume.
* Increase Volume Steps to 7 & 25 for call & media.
* Switch to OSS camera hal.
* Add toggle to enable navbar & disable hw keys
Link: lineage-15.1-20181108-UNOFFICIAL-rimo02a.zip
Amazing,thanks bro
---------- Post added at 09:07 AM ---------- Previous post was at 09:07 AM ----------
Waiting for LOS 16 pie
Changelog:
* Update to January 2019 Security.
* Fix Audio related issues.
* Fix media crash.
Link: lineage-15.1-20190112-UNOFFICIAL-rimo02a.zip
Changelog:
* Add DoubleTapWake.
* Fix USB Tethering.
* Update Camera configuration.
Link: lineage-15.1-20190126-UNOFFICIAL-rimo02a.zip
Gps needs to be fixed, device only mode is not working ,rest all are working fine
Changelog:
* Update to February 2019 Security Patch.
* Update Audio configuration.
Link: lineage-15.1-20190217-UNOFFICIAL-rimo02a.zip
Hello @darshan1205
I'm totally newbie for this Rooting/Rom etc.
Still want to use something new/different os.
I have SRT.Phone (64GB) with Oreo 8.0 updated, can you please help me (step by step guide) on how to root my device without any issue?
Thank you
Changelog:
* Update to April 2019 Security Patch.
* Use sdfat for vfat.
* Enable CPUSET.
* Enable CPU BOOST.
* Add & enable BFQ I/O Sched.
* Rebase to CAF Tag LA.BR.1.3.7.c25-00900-8976.0 kernel.
* Merge CAF Tag LA.BR.1.3.7.c25-00900-8976.0 in prima.
Link: lineage-15.1-20190412-UNOFFICIAL-rimo02a.zip
this build has 500 call log limit? or there is a way to extend it?
Changelog:
* Update to May 2019 Security Patch.
Link: lineage-15.1-20190516-UNOFFICIAL-rimo02a.zip

Development [ROM][5.1.1][UNOFFICIAL][PHOENIX] CyanogenMod 12.1

CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.1.1 (Lollipop), which is designed to increase performance and reliability over stock Android for your device.
Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for CyanogenMod is available in the LineageOS Github Repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.
Device-specific source code:
Kernel source: https://gitlab.com/TipzTeam/LenovoPHAB/android_kernel_lenovo_phoenix/-/tree/cm-12.1
Downloads:
ROM: https://sourceforge.net/projects/ti...enovo PHAB Plus/Android 5.x/CyanogenMod 12.1/
Gapps: http://opengapps.org
Known Issues:
Accelerometer (most likely a kernel issue) Fixed with 20210425
WiFi MAC address write (for some reason, the wpa_supplicant doesn't use the one from libwcnss_qmi, which is read from qmi and is correct) Fixed with 20210321
LEDs (stuck at red) Fixed with 20210425
USB ID Fixed with 20210321
USB OTG Fixed with 20210425
Automatic reboot when switching SIMs
Camera (including flash)
Encryption
Battery showing full at when it is not (no risk of overcharging, and it continues to charge)
Random crashes when dozing
Probably more
Installation Instructions:
Make a backup.
Unlock your bootloader.
Install TWRP recovery.
Download the ROM and GApps
Reboot to recovery
Wipe data/factory reset if coming from stock or another non-CM ROM (You may get a "staus 7" error if you fail to wipe.)
Flash the ROM for your device and then optionally GApps
Reboot your phone
Enjoy!
Credits:
CyanogenMod team
ChangeLog
20210210
Initial build
20210321
Fixed WLAN MAC address (Removed a kernel commit)
Updated Kernel and WCNSS prima to LA.BR.1.1.3_rb1.54
Fixed USB ID
20210424
Nothing has been changed.
20210425
Fixed Accelerometer, which also fixes Auto Rotate
Fixed LEDs
Fixed USB OTG
Cleaned up rootdir, fstab, USB config, and sepolicy
Reserved
New build!
20210321
Fixed WLAN MAC address (Removed a kernel commit)
Updated Kernel and WCNSS prima to LA.BR.1.1.3_rb1.54
Fixed USB ID
Download
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
New build!
20210424
Nothing has been changed.
Download
New build!
20210425
Fixed Accelerometer, which also fixes Auto Rotate
Fixed LEDs
Fixed USB OTG
Cleaned up rootdir, fstab, USB config, and sepolicy
Download

[KERNEL][Snapdragon][4G/5G] PrimeKernel

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM/Kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Details:
Based on latest Samsung open source drop​
Compiled with the Clang 12 + full LTO GCC 12.2​
Instructions:
Assuming you have a custom recovery installed, simply download and flash the kernel zip. This kernel uses Anykernel 3 so no need to reflash magisk(if you use magisk) after installing it.
Join our Telegram group to get access to early releases: https://t.me/s20fesnapdragon
Kernel source code: https://github.com/pascua28/android_kernel_samsung_sm8250/
Did you like my work? Any support is much appreciated!
Patreon
Buy me a coffee!
Other ways to support me
Downloads:
Releases · pascua28/android_kernel_samsung_sm8250
Contribute to pascua28/android_kernel_samsung_sm8250 development by creating an account on GitHub.
github.com
Changelog:
v6.1 (December 31, 2022)
Fixed missed memory management code warnings due to recent changes in v6.0
Fixed coding warnings for better code quality
Enabled zero initialization for stack variables for better security and stability
Compiled with latest GCC 12.2.1
v6.0 (December 26, 2022)
Reverted more of CAF's memory management changes
Disabled memcg to allow lmkd to use the more efficient PSI (pressure stall information)
Disabled per-cgroup pressure tracking to reduce overhead
Disabled lots of debugging from the wlan driver
Disabled lots of logging spam
Disabled hardened usercopy to reduce memory overhead
Fixed incorrectly affined cpus for kgsl. This bug has been present since PrimeKernel v2.0 due to a coding mistake
Updated source base to latest Android 13 kernel source (G781BXXU4GVK6)
v5.2 (December 4, 2022)
Speed up pm_qos
Imported some optimized libs
Killed lots of logging
Reverted CAF's messed up memory management changes
Disabled process reclaim
Fixed memory safety issues for various MSM drivers for better stability and security
Disabled lots of debugging and logging from qcacld driver (this resulted in several hundred kilobytes shaved off from the kernel binary size)
v5.1-beta (November 16, 2022)
Rewrote ashmem for clarity and performance
Imported several optimized libraries
Converted cpumasks to atomic to reduce expensive operations
Selectively applied compiler optimizations to some parts of the kernel
Use kmem_cache for some drivers to reduce (de)-/allocation
Disabled some security suits
Disabled SCHED_DEBUG
Re-added MGLRU
Compiled with GCC 12.2 with LTO enabled
Note:
If you want to squeeze a bit more performance, just rename this zip file and add -perf.
Perf variant has fewer CPU frequencies for better performance​
v5.0 (November 11, 2022)
More stability fixes
Lots of under-the-hood optimizations
Fixed Google Play System update not working
Fixed some random reboots
Added 150MHz GPU freq
Overall code quality fixes
Compiled with latest GCC 12.2
v4.1 (October 21, 2022)
More stability fixes
Optimizations on GPU and iommu drivers
Compiled with Clang 12 ThinLTO
v4.0 (October 6, 2022)
Based on G781BXXS4FVF3
Compiled with clang full LTO for better performance
Compiled with O3
Added MGLRU for better memory management and performance
Code quality fixes for better stability
Added optimized libraries for better performance
Added kcal color control
Removed additional logging and debugging
v3.1 (June 7, 2022)
Based on G781BXXS4FVD9
Reverted Linux upstream since I can't thoroughly test this kernel and for better stability
Compiled with latest clang from clearlinux (Clang 13)
Removed dynamic allocation from several subsystems to speed them up
Removed more logging and debugging from several drivers on their hot code paths
Micro-optimizations for scheduler and workqueues
Sped-up pm qos by using atomic operations
Tweaked cpusets for better battery life and thermals
Improved audio driver a bit
Affined GPU and display IRQs to big cluster for better performance
Used optimized energy model and cpu frequencies
Undervolted GPU a bit
Code quality fixes for better overall stability
Compiled with O3 optimization
More under-the-hood optimizations
v2.0 (December 16, 2021)
Upstreamed to Linux 4.19.219
Converted some subsystems to use power efficient workqueues
Removed logging from various drivers
Removed F2FS additional tracings
v2.0-rc1 (December 1, 2021)
Display driver optimizations
Used BBR as default TCP congestion algorithm
Enabled BPF_JIT to improve network performance
Implemented optimized spinning loop
Updated to G780GXXU3AUI3 source drop
Speed up mremap
Removed msm_performance CPU boosting
Implemented optimized PM QoS for UFS
Changed zRAM compression algorithm to lz4
Disabled EAS_PREFER_IDLE for better power efficiency
v1.0 (Nov. 8, 2021)
Based on Samsung G780GXXU3AUH5 source drop
Disabled knox and Samsung security stuffs
Changed timer tick to 100Hz for better throughput and power consumption
Optimized GPU wakeup
Removed use of dynamic allocation from several subsystems
Disabled binder debugging
Optimized UFS irq handling
Updated lz4 compression used by zswap
Disabled input booster
Reserved 2
Reserved 3
Nice
this kernel supported g781u1 ?
flameteam said:
this kernel supported g781u1 ?
Click to expand...
Click to collapse
it should if you can unlock your bootloader and have TWRP or root.
¡¡¡¡Genial !!!!!
Maybe Open my bootloader .... !!!! Thanks for your time and work.. !!!
it's a great kernel thanks for your work
This kernel is based on G780GXXU3AUH5.
Does this kernel also work on the G781B?
I'm on FW G781BXXS4CUJ2.
Ubimo said:
This kernel is based on G780GXXU3AUH5.
Does this kernel also work on the G781B?
I'm on FW G781BXXS4CUJ2.
Click to expand...
Click to collapse
v2.0-rc1 is up!
*performs 'happy dance'
v2.0-rc1 running two days on G781B, everything seems to be fine.
Clang 13 is available: https://releases.llvm.org/download.html
Hi, after flashing a message tells me there some problems, thant I can use the phone as usual, how can I uninstall the Kernel?
HarryCustom said:
Hi, after flashing a message tells me there some problems, thant I can use the phone as usual, how can I uninstall the Kernel?
Click to expand...
Click to collapse
Download the build that you're in, extract the AP file and then, extract boot.img.lz4 from AP. Recompile the boot.img.lz4 to .tar with 7-zip, so you can flash with Odin.
if he's flashed this kernel with TWRP he can flash the extracted boot.img with TWRP (flash image).
@HarryCustom you'll need to download a command line app for LZ4 from github and figure out the command to extract the boot.img but it's not difficult.
Ok thank you I'll do it!
Anyway I own a G780G/DS, I only report that to me the kernel gave problems for anyone else who wants to use it with the same phone as me!
HarryCustom said:
Ok thank you I'll do it!
Anyway I own a G780G/DS, I only report that to me the kernel gave problems for anyone else who wants to use it with the same phone as me!
Click to expand...
Click to collapse
it's doing that for everyone, it's not a specific problem you have, everyone will get this.

[Kernel] kernelSu for P20 lite that support Erofs GSIs

KernelSu For P20 lite (hi6250) that also support Erofs​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​KernelSU is a root solution for Android devices, it works in kernel mode and grant root permission to userspace application directly in kernel space. More information about KernelSU from here​
Spoiler: information about Erofs
Erofs GSI refers to a Generic System Image (GSI) that is based on the EROFS (Extendable Read-Only File System) file system. The EROFS file system is a Linux-based file system that was developed by Huawei and was first introduced in the Linux kernel version 4.19.
The EROFS file system is designed to be an efficient, high-performance file system that is optimized for read-only scenarios. It uses a compression algorithm to compress data on the file system, which reduces the amount of storage space required and improves read performance. The EROFS file system also uses a hierarchical indexing structure to improve file lookup performance. Overall, the EROFS GSI is designed to provide improved read performance and reduced storage space requirements, making it a potentially useful option for developers and users who want to create or use custom Android firmware images
Changelog :
24-4-2023 version
Update to Kernel 4.9.319
Fix module load
23-4-2023 version
Fix Wifi issues
22-4-2023 version
sync. with kernelsu 0.5.5
21-4-2023 version
Initial release
​
Download​​KernelSu for P20 lite that support Erofs (it support ext4 as well)​​Download​​SOURCE CODE​​​
Spoiler: Installation
1- Flash the kernel form Fastboot or TWRP
- fastboot flash kernel kernelSu.img
2- install kernelsu manger App form here or here
Spoiler: older versions
1- Kernel 4.9.319 (KernelSu not working)
Spoiler: older versions
Download
SOURCE CODE
2- Kernel 4.9.148 Harmony os 2 based (KernelSu not working)
Download
Download permissive
Source code
Spoiler: How to get Erofs GSIs
You can convert any GSI to Erofs using this script
OR
@AltairFR has developed A13 Erofs GSIs
1-TrebleDroid-GSI from here (evn or egn)
2- Arrow from here
* arm64_evN : ARM64 A/B erofs lz4 compression read-only - Vanilia with no SU
*. arm64_egN : ARM64 A/B erofs lz4 compression read-only - Google Apps with no SU
update
Kernel now support KernelSU
Thank you will test and report back
The kernel works just fine but I have no idea how to install the actual su program xD
frituurvet said:
The kernel works just fine but I have no idea how to install the actual su program xD
Click to expand...
Click to collapse
There's kernelsu app similiar to magisk, it's easy to miss it in github releases: https://github.com/tiann/KernelSU/releases/download/v0.6.0/KernelSU_v0.6.0_10981-release.apk
also @Abdelhay.ali turex released .337, your github is still on .319 FYI
FYI I couldn't wait for an update so I updated it myself. I posted .337 with latest kernelsu (11023) to phenix thread.
[KERNEL][EMUI 9][P20 lite] Phenix kernel
PHENIX KERNEL Disclaimer: Use this kernel at your own risk. Flashing it may brick your device. I'm not responsible for any software/hardware and any kind of damages/losses. NOTE : Use only on EMUI9 base(stock or custom) REQUIREMENTS ...
forum.xda-developers.com

Categories

Resources