[KERNEL][MOD] Sony Stock Patcher for Xperia XZ - Sony Xperia XZ ROMs, Kernels, Recoveries, & Other

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
* 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.
*/
About the project
Sony Stock Patcher is a minimal and easy transition from Sony's Stock ROM
(flashed directly from an FTF for example) to a modifiable ROM that can be modded as you like.
Built out of my evolutions of libbootimg for MultiROM to support Sony ELF bootimages,
a custom modified kernel based on Sony's copyleft with a minimal set of needed custom changes,
and an automated installation process to patch completely a Stock ROM,
this will allow you to use the Stock ROMs as you wish to.​
Relevant features of Sony Stock Patcher
Using my Sony ELF 64bits port to libbootimg, Stock boot partition is automatically converted
Modified copyleft Stock kernel to support alterations and remove limitations
Patches the ramdisk to disable automatically Sony RIC security
Patches the fstab automatically for verity
Injects my init_sony project used on Sony custom ROM projects
Supports making the ROM usable as secondary MultiROM
List of changes made to the kernel
Disable Selinux trap security (allows to boot with stock ramdisk sepolicies)
Disable Device-Mapper verity (needed for example to patch system partitions)
Disable kernel modules forced validation (avoids failures on modules signature)
Disable coresight (unneeeded and irrelevant, just to avoid unsupported error logs)
Disable Sony RIC security (needed to use a recovery and alter /system, /data, ...)
Inline kernel modules compilation (to avoid kernel installation fragmentation)
Clearpad touchscreen updates for MultiROM UI
Minor kernel updates
Installation
Needed: Device has to be with an Unlocked Bootloader
Use Stock ROM or flash a clean FTF ROM from Nougat
Needs a working TWRP flashed into the FOTA partition (fastboot flash recovery...)
> Fully working TWRP builds : See below with downloads
Boot to TWRP (Power and Volume -)
Flash the relevant sony_stock_xz_patcher: n for 7.x
(Optional) Flash SuperSU by Chainfire if you want to have root access
Reboot to Android
Reasons to use this project ?
Unlocked Bootloader customizations allowed on Stock
Converts the bootimage to support systemless tools
Ability to root with tools like SuperSU
Retains the original Sony bootimage files
Minimal needed changes, no additional kernel mods
Downloads (Unlocked Bootloader only)
Xperia XZ : https://mega.nz/#F!K8kUDSaD!LNVmLKHANgwYPuc-aFO-Mg​
Personal TWRP releases
TWRP 3.x.x : https://mega.nz/#F!bg9QhDzC!TTkhy2Fi6cNTZ1ojlmobRQ​
Source code
Kernel sources - https://github.com/AdrianDC/kernel-sony-copyleft (branch 41.2.A.7.xxx)
libbootimg sources - https://github.com/AdrianDC/multirom_libbootimg (branch master)
init_sony sources - https://github.com/AdrianDC/device-sony-common-init (branch master)
MultiROM sources - https://github.com/AdrianDC/multirom_core (branch master)
TWRP sources - https://github.com/AdrianDC/twrp_development_sony/commits/device_sony_kagura (branch device_sony_kagura)​
Sony Stock Patcher for Xperia XZ created also thanks to :
- Sony for their original copyleft kernel sources
- Tasssadar for the original libbootimg / MultiROM sources
- The XperiaMultiROM team for our evolution of MultiROM
- Everyone involved in testing it​
XDA:DevDB Information
Sony Stock Patcher for Xperia XZ, Kernel for the Sony Xperia XZ
Contributors
AdrianDC
Source Code: https://github.com/AdrianDC/kernel-sony-copyleft
Kernel Special Features:
Version Information
Status: No Longer Updated
Created 2017-03-20
Last Updated 2020-08-15

Reserved
Changelog
Code:
Sony Stock Patcher for XZ - 23/10/2019
=================================================
* Update release to resolve 3.18 ramoops (o_v7.2.157)
> See commit 71d1aa14bdae1f38a56be10468556d43f108478a
Sony Stock Patcher for XZ - 08/09/2018
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.149/157 (o_v6.2.157)
Sony Stock Patcher for XZ - 19/05/2018
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.128 (o_v5.2.128)
Sony Stock Patcher for XZ - 24/03/2018
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.99 (o_v4.2.99)
Sony Stock Patcher for XZ - 12/03/2018
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.75 (o_v3.2.75)
Sony Stock Patcher for XZ - 25/12/2017
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.24 (o_v2.2.24)
Sony Stock Patcher for XZ - 17/12/2017
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.0.401 (o_v1.0.401)
Sony Stock Patcher for XZ - 26/11/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.76 (n_v8.7.76)
Sony Stock Patcher for XZ - 25/09/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.65 (n_v7.7.65)
Sony Stock Patcher for XZ - 19/08/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.53 (n_v6.7.53)
Sony Stock Patcher for XZ - 16/07/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.35 (n_v5.7.35)
Sony Stock Patcher for XZ - 08/06/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.8 (n_v4.7.8)
Sony Stock Patcher for XZ - 21/05/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.2.223 (n_v3.223)
Sony Stock Patcher for XZ - 26/04/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.2.199 (n_v2.199)
Sony Stock Patcher for XZ - 21/03/2017
=================================================
* Initial release for Stock 7.0 (n_v1, 39.2.A.0.442)
* Based on my initial releases for Xperia X Performance

I've already tested this patcher and can confirm, it works like a charm :good:
My steps:
- Flashed the current 442 ftf via FlashTool (ejected the ext sd after poweroff, ofc), checked every checkbox in the wipe sector (don't know, if that's really neccessary).
- rebooted into system to check, if it boots fine, then power off again
- installed Adrian's current TWRP 3.1.0 via fastboot command (fastboot flash recovery <name of the recovery>.img)
- boot into recovery (<power> + <vol-> together until one time vibration, then left <power>)
- flashing the provided patcher.zip via TWRP and reboot, then - after booting - choose reboot
- now wait until vibration and the purple led, then push <vol+> => now you have to be in TWRP :good:
- flash the SuperSU.zip, if you want root
- if you want also the drm fix:
Connect your device via usb and type:
# adb -d shell
# su
# dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/kernel.img
Then pull the kernel.img from /sdcard/kernel.img and go on with the unofficial rootkernel 5.23 @serajr I said yes to everything but SuperSU, TWRP and busybox (but test it by your own, it's not related to this thread). Btw, if you've managed to backup your ta before unlocking your bootloader, you can also use the PoC @munjeni for that (I unfortunately can't, because I don't have such a ta backup). But no mor ot here
I can confirm, it works like a charm - and it's like in mm times: you don't have to poweroff your device; just wait for the purple led and push <vol+> = enter TWRP :good::good::good:
Thank's @AdrianDC for your brilliant job :highfive:

You have just made the news!
@AdrianDC Congrats :good:

...

So it's works for both XZ (F8331 and F8332)?

Ryuu. said:
So it's works for both XZ (F8331 and F8332)?
Click to expand...
Click to collapse
Just try it and report back! Create a backup of your boot partition via TWRP before, of course

@AdrianDC
Thanks for your work
TWRP 3.10 works perfect on F8332 XZ Dual
I installed Stock Patcher on my patched kernel with PoC for load Kcal Module from here
after load kcal module got reboot and that module cant be loaded , any Help ?

@ AdrianDC
Thanks for your work
TWRP 3.10 works perfect on F8331 XZ

Can you make a Overcloked and Undervolted version? Thanks
Enviado desde mi F8331 mediante Tapatalk

RomanSkyline said:
Can you make a Overcloked and Undervolted version? Thanks
Enviado desde mi F8331 mediante Tapatalk
Click to expand...
Click to collapse
It's only possible with a custom kernel. On the other hand, it's really not neccessary, because battery drain and performance are really awesome as it is :good:

RomanSkyline said:
Can you make a Overcloked and Undervolted version? Thanks
Click to expand...
Click to collapse
It is "possible" but I won't do it, the purpose is not to waste time creating a 'modded custom' kernel,
but to stay as close as possible to the official Stock kernel while providing a modifiable ROM / bootimage.

Klaus N. said:
It's only possible with a custom kernel. On the other hand, it's really not neccessary, because battery drain and performance are really awesome as it is :good:
Click to expand...
Click to collapse
I disagree, the battery life on my XZ is TERRIBLE, recharging 2-3 times a day, to be fair though my day starts at like 4a and one Fridays ends at like 10p so meh lol... any recommendations for me?

Announcement said:
I disagree, the battery life on my XZ is TERRIBLE, recharging 2-3 times a day, to be fair though my day starts at like 4a and one Fridays ends at like 10p so meh lol... any recommendations for me?
Click to expand...
Click to collapse
Try my kernel, duality kernel and ROM. See if it helps
@AdrianDC great, might use this for my kernel

_LLJY said:
Try my kernel, duality kernel and ROM. See if it helps
@AdrianDC great, might use this for my kernel
Click to expand...
Click to collapse
I can't confirm @Announcement's statement. On my device it works very well; also the battery consumption is ok: I charge my device most of the time the 2nd day since the last charge, sometimes even on the 3rd day :good:
But it's a question of use, indeed!

Awesome work as always, Adrian!
The new patcher for the 7.1.1 fw (41.2.A.2.199) works flawlessly as expected! :good::good::good:

As mentioned by Klaus :good::
New release for Sony 41.2.A.2.199 release, Android 7.1.1.

There's only one little issue (only for me?) atm: When entering TWRP by pushing <vol+> while the purple led lights up, the display doesn't react. I've to turn off/on the display, then swipe to unlock the display. After doing that, it works as it should.

Regular TWRP 20170521: TWRP 3.1.1 release, including changes
to match 7.1.1 touchscreen init (to confirm for XZ) and Nougat decryption of course.
Regular TWRP 20170524: Re-release that avoids a touchscreen init race condition
on a specific variant of the device's touchscreen that prevented use without lock / unlock.

Made public the new release for Sony 41.2.A.2.223, Android 7.1.1.

Related

Sony Support for Magisk

Currently one of the issues with Magisk is that it doesn't support stock Sony kernels because according to @topjohnwu:
Currently Known Issues (v10.2):
Sony devices generally: Stock Sony boot images seems to use ELF kernel that is unpatchable, or some has two ramdisks (inner + outer).
If you know any addition information about Sony boot image modifications, please contact me
Click to expand...
Click to collapse
There have been some recent developments in the Sony forums and there is now a tool (RootKernel) for modifying the stock Sony kernel on most Sony devices (Z1-Z5, X, XZ, etc. Android 5.x - 7.x). This tool is able to disable dm-verity, disable Sony RIC, inject TWRP, inject root, and inject Xposed. This tool does not inject Magisk, nor do I believe that the tool should, I think it would be more beneficial to the community for Magisk to support Sony kernels.
With that said I am hoping that the information in this thread can serve to help add Sony support to Magisk. Source code for the Root Kernel tool and Sony boot.img can be found in the links below.
Source Code for RootKernel tool - https://github.com/tobiaswaldvogel/android_rootkernel
Source Code for modifying Sony boot.img - https://github.com/tobiaswaldvogel/and_boot_tools

[ROM][7.X.X]LineageOS [Suzuran]

LineageOS 14.1 for the Sony Xperia Z5 Compact
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.
*/
Known Bugs: Video Record may be broken
Download: Get LineageOS
Kernel sources: https://github.com/nzzane/android_kernel_sony_msm8994
Tree sources: https://github.com/nzzane/device_sony_suzuran
Unofficial OTA: https://github.com/nzzane/LineageOTA
If you enjoy this rom why not Donate to support future releases and hosting
Additional Information: This is the FIRST ever released Z5 Compact custom AOSP ROM that is using the Stock kernel and blobs. What this means? Not much, exept for the stock like camera of cause, if that is something you care about
Now stop reading this post. Seriously. You are wasting your time. FLASH THIS AND TAKE PICTURES!
HUGE THANKS; to all the lineage and kitakami devs who have been working on this, and continue to work hard on this to get you (and me) the best rom that they can!
NOTE:This uses stock kernel and blobs - meaning NO RECOVERY. Please know how to use "fastboot boot boot.img" if you get stuck anywhere
NOTICE:
It has been really fun porting and Lineage and Carbonrom top the Z5C, and it has been amazing to see you guys (The community) try it out for yourselves and make your own builds. Due to my Z5C being broke I have passed it on to a recycling company - meaning I can no longer test or update builds. Please do feel free to link your own builds in the comments (As long as they do not breach the rules of course )
Thanks for the support this year - and I want to thank those who are keeping their own builds up to date!
XDA:DevDB Information
[ROM][7.X.X]LineageOS [Suzuran], ROM for the Sony Xperia Z5 Compact
Contributors
nzzane, myself5
Source Code: https://github.com/LineageOS
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: TWRP 3.0.2
Based On: AOSP, Cyanogenmod
Version Information
Status: Beta
Current Stable Version: 20170827
Stable Release Date: 2017-08-27
Current Beta Version: 20170219
Beta Release Date: 2017-02-19
Created 2017-02-07
Last Updated 2017-12-20
INSTALLATION:
Download the latest LineageOS zip from the download link in the OP
Download GAPPS Arm64 - 7.1
Reboot into recovery and make a backup incase something goes wrong
Wipe Data - System - Delvik and Cache
Flash LineageOS and gapps in recovery and reboot your device - When flashing lineage you WILL get 2 unknown command errors, this is normal
Reboot and enjoy!
Work Status
STATUS: UP TO DATE
Thanks to all the supporters of this project, and a special mention to the following
@CubeDev [Build Server - While mine was being repaired]
@Myself5 [Sumire development - LineageOS development]
@Triflot [Keeping things alive and fixing some bugs relating to wifi and wakelocks]
@Berni-0815 [Keeping things alive and fixing bugs + Substratum]
And to all the donors who support the time that has gone into this project
Changelog:
Full changelog from cmxlog (Some will not be pushed into my releases due to incompatibilities)
Code:
[COLOR="Green"]2017-xx-xx[/COLOR]: []
Updated device brightness [URL="https://gist.github.com/zachariasmaladroit/10ad7d4190f22b3a9c5c309846bc8ecf"]Thanks to zacharias.maladroit[/URL]
[COLOR="Blue"]2017-09-08[/COLOR]: [Latest]
General stability and some security patches
Kernel patched as per the [URL="https://github.com/nzzane/android_kernel_sony_msm8994/commit/bd9380a1443858941178bc9b5520d0527a9c1bb6"]Git[/URL]
[COLOR="Black"]2017-09-03[/COLOR]:
Source updates
Working on getting a changelog built with the ROM
[COLOR="Black"]2017-08-27[/COLOR]:
General Speed
Source updates
wakelocks fixed
Kernel settings editied for stability and battery
Fixed ringtone / notification volume being way too loud
[COLOR="Black"]2017-07-29[/COLOR]:
Fingerprint speed
Wakelocks (Including fingerprint wakelock) Disabled
Better battery
Better stability and speed
Substratum support
Latest LineageOS code including updated camera configs
Planned weekly updates*
[COLOR="Black"]2017-05-06[/COLOR]:
Kernel: Fix FPC1145 wakeup
Kernel: Kconfig added for bcmdhd (BCM43455)
Updated to latest Lineage Source
Updated to latest XperiaDev source
[COLOR="Black"]2017-02-19(20170219-2)[/COLOR]: [SIM]
-Reconfigured kernel defconfig to get sim working
-re-got stock blobs using cm helper
[COLOR="Black"]2017-02-18[/COLOR]:
-reconfigured defconfig in Lineageos Kernel to fix camera and some other issues
-SIM and WIFI support getting closer
-Fixed kernel bug spamming logcat
[COLOR="Black"]2017-02-15[/COLOR]: [Pre-ALPHA]
-Device tree reconfigured to attempt to fix wifi
[COLOR="Black"]2017-02-08[/COLOR]: [PULLED]
[COLOR="Black"]2017-02-07[/COLOR]: [PULLED]
-Initial release
Thank you, I would like to ask the development of Resurrection Remix rom?
waiting for download link
nzzane said:
INSTALLATION:
Download the latest LineageOS zip from the download link in the OP
Download GAPPS Arm64 - 7.1
Reboot into recovery and make a backup incase something goes wrong
Wipe Data - System - Delvik and Cache
Flash LineageOS and gapps in recovery and reboot your device
Reboot and enjoy!
THERE IS CURRENTLY NO bootlogo
I am working on getting this fixed as well as getting proper recovery and adb working
A test build will be made public tomorrow.
Click to expand...
Click to collapse
Great work !
Finally we're able to detach from Sony's shackles, it's annoying to be limited by that proprietary crap (e.g. texfat module) in pushing the kernel or the ROM further
Not sure what wifi driver you're using and how you got it to work on suzuran but I had to fix it up + add some bits from the AOSP kernel source to make it work:
https://github.com/zachariasmaladro...fter=Y3Vyc29yOjnl8U/KoCJ0vxtid/9CHbUMypTwKzY5
nasbdh9 said:
Thank you, I would like to ask the development of Resurrection Remix rom?
Click to expand...
Click to collapse
I can definitely look into that, once LineageOS is in working order
Thx for lineageOS.. Waiting for that
Awesome! I'll start flashing this one soon.
Nothing but a black screen?
Clean installed it multiple times, with and without gapps, everytime same result.
Thanks for the effort and build though.
I hope we can all enjoy LineageOS soon
Dn_nS said:
Nothing but a black screen?
Clean installed it multiple times, with and without gapps, everytime same result.
Thanks for the effort and build though.
I hope we can all enjoy LineageOS soon
Click to expand...
Click to collapse
Okay - I am trying another build now, Thanks for your patience
Nothihg to test, phone can`t boot.
Okay, i think i will jump back to bandwagon once boot issue is fixed ....waiting.
Boot issue fixed? want to try a new rom, Whats the difference in this rom?
Sorry just seen in the first post the issue is being worked on
do_salah said:
Sorry just seen in the first post the issue is being worked on
Click to expand...
Click to collapse
Hey - all good
Update for everyone - Lineage is being a little crap and not wanting to boot
I am trying to fix it as soon as possible
nzzane said:
Hey - all good
Update for everyone - Lineage is being a little crap and not wanting to boot
I am trying to fix it as soon as possible
Click to expand...
Click to collapse
Was just about to install it right now. Thanks for updating us
Biting fingernails and waiting....[emoji51]
Great job on this ROM. Hope more things will start to work when they release the kernel source compatible with the new N blobs. ?

[Unofficial][Stock based] Lineage 15.1 for Xperia XZ [EOL]

Lineage 15.1 for Xperia XZ [Stock based]​
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
* 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.
*/
About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 9.x (Pie),
which is designed to increase performance and reliability over stock Android for your device.
All the source code for LineageOS is available in the LineageOS GitHub repo.
And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.
Official LineageOS website : http://lineageos.org
About LineageOS Legal : http://lineageos.org/legal/
Important Information
1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
2. This ROM will never work with any versions of Google Camera (GCam)!
3. You need to flash Stock 41.3.A.2.157(Dual) or 192(Single) before flashing this ROM.
4. This ROM is suitable for dual and single model.
5. VoLTE is supported, but you need to enable it on stock firmware at first.
Downloads Links
LineageOS 15.1:
Unofficial: https://www.androidfilehost.com/?w=files&flid=316520
A special twrp recovery for this ROM:
https://www.androidfilehost.com/?fid=8889791610682924109
Google Applications (optional):
OpenGapps: http://opengapps.org/ (ARM64->Android 8.1->Pico, Nano or Micro)
Information: Flash the GApps before the first boot. If not, a clean flash is recommended.
Flashing and updating
LineageOS clean install:
Download the latest build of LineageOS ROM
Full wipe and factory reset (recommended / backup to make sure not to loose data)
Flash the LineageOS ROM zip from the Recovery
Flash the GApps to have the Google Applications (optional)
Every additional zip you want to flash (optional)
Reboot
LineageOS update/upgrade:
Download the latest build of LineageOS ROM
Wipe cache and dalvik cache
Flash the latest LineageOS ROM zip from the Recovery
Every additional zip you want to flash (optional)
Reboot
LineageOS addonsu for root access:
Download the addonsu for arm64: LineageOS Downloads / Extras
Flash the zip on a working Lineage installation (once)
Upon ROM updates, the addonsu is preserved
Reboot
About the builds:
Source: https://github.com/sony-msm8996
Issues and reports
Report issues only if you are using the ROM kernel
If an additional mod is installed, make sure it's unrelated, and mention it
Make sure the issue wasn't discussed earlier in the threads
Share a log of the error with CatLog for example
Also thanks to:
The LineageOS Team
The CyanogenMod Team
The SODP Team.
Chippa_a
Everyone involved in working and testing
Contributors
Sjll, Olivier
ROM OS Version: 8.1
ROM Kernel: Linux 3.18.x
Version Information
Status: Stable
FEATURES AND ISSUES
Code:
- Boot: Ok
- Bluetooth: Ok
- WiFi: Ok
- WiFi Hotspot: Ok
- RIL - Phone - Data: Ok
- VoLTE: Ok
- GPS: Ok
- Camera: Ok
- Camcorder: Ok
- Lights: Ok
- MicroSD: Ok
- Accelerometer: Ok
- Compass: Ok
- Gyroscope: Ok
- QTI sensors: Ok
- Touchscreen: Ok
- FM Radio: NA
- Fingerprint: Ok
- Vibrator: Ok
- Microphone: Ok
- Audio & music: Ok
- Bluetooth audio: Ok
- NFC: Ok
- Kernel: Ok
- Graphics: Ok
- 3D Rendering: Ok
- Clock: Ok
- DRM: No test
- Offline Charging: No
- USB: Ok
- USB Tethering: Ok
- USB OTG: Ok
- Encryption: No
- SEPolicies: Permissive
Sjll said:
FEATURES AND ISSUES
Click to expand...
Click to collapse
Next los16 based stock ?
I'm ready to test
I think you should specify which version it is.
The post starts with android 9 thou its 8.1 ROM.
Kryshoft said:
I think you should specify which version it is.
The post starts with android 9 thou its 8.1 ROM.
Click to expand...
Click to collapse
Also , it says that xperia xz dual rom! can we use for xperia xz single sim too!
Anyway, I use m-rom 2.3.1 on my xperia xz f8331 but rom is for dual sim.
I delete ads in m-rom 2.3.1 then flashed on my f8331. it works well.
@Sjll:
Does this build support ExFat on External SDCards ? This was one of the main issues (for me) on your last build ...
Hello, is still necessary flash Stock 41.3.A.2.157 for F8331 before flashing this ROM ??
thanks for answer
Kryshoft said:
I think you should specify which version it is.
The post starts with android 9 thou its 8.1 ROM.
Click to expand...
Click to collapse
If I didn't write it is for dual or single, theni it is suitable for both.
2faraway2 said:
@Sjll:
Does this build support ExFat on External SDCards ? This was one of the main issues (for me) on your last build ...
Click to expand...
Click to collapse
Yup
sohun said:
Hello, is still necessary flash Stock 41.3.A.2.157 for F8331 before flashing this ROM ??
thanks for answer
Click to expand...
Click to collapse
Stock oreo FW is OK.
Hi, i just wanna report that after turning on the rom is really slow to detect the sim card and connect to the service, and sometimes light sensor just makes the screen dim for a second. Otherwise it is one of the best roms for the device.
Bugs & lags
1. Second sim not detected (but los 16 detects both sim with same base rom).
2. Top speaker not working on loud speak call (very low sound on loudspeaker).
3. Cannot reduce volume while call (slider moving in UI but not functioning).
4. Better battery compare to other custom roms but not as stock (same apps consuming more than from stock).
5. Takes long time to goto TWRP.
J.M.Siyath said:
Bugs & lags
1. Second sim not detected (but los 16 detects both sim with same base rom).
2. Top speaker not working on loud speak call (very low sound on loudspeaker).
3. Cannot reduce volume while call (slider moving in UI but not functioning).
4. Better battery compare to other custom roms but not as stock (same apps consuming more than from stock).
5. Takes long time to goto TWRP.
Click to expand...
Click to collapse
Also on my device it randomly goes to lockscreen andturns off the screen.
Hi. For Dual-SIM model, need flash 157 or 192 ROM?
Anty666 said:
Hi. For Dual-SIM model, need flash 157 or 192 ROM?
Click to expand...
Click to collapse
you can flash 157 or 192. it just need a stock oreo base rom.
J.M.Siyath said:
you can flash 157 or 192. it just need a stock oreo base rom.
Click to expand...
Click to collapse
So both are good, as I understand it? Thank you.
Hi! Thank you for this ROM. My phone is alive again... It works way more flawlessly so far than the latest stock ROM.
Not sure if I miss something from camera and screen quality. What I kind of miss is sony music and album apps witch I actually enjoyed using..
The only con is that I cannot encrypt my phone and use TWRP and do flashing without a format (is there a workaround for that?)
Also when I have fingerprint activated the power button scans all the time for fingerprints even if the phone is sleeping, without having to press it first.. So it scans every time there is a skin contact, leading on too many attempts or accidentally turned on..
Best rom eva.
Though I had to use somewhat old gapps because when flashing the new ones the android/architecture version is reported mismatching.
Assuming the previous poster did try them and didn't have issues, I believe it was probably this to cause breakage (maybe it was a bad idea to ship the same custom recovery for both the Oreo and Pie roms?)
For the remainder this rom is rocking better than anything other (*touch wood*, I said the same about the SODP 15.1 version and it turned out crashy shortly after).
Fingerprint and also android auto works! This is a first ever, not just with AOSP roms but in general for the entire phone.
The only small defects are the the internal call speaker is pretty quiet and calls have to be answered from the notifications.
Sim detection could also be somewhat improved I guess (I get OP has a dual sim model, but there are no excuses not to ship the incredible universal patcher)
Thread closed at op's request.
Thank you for your contributions :highfive:
strongst
Forum Moderator

Development [Kernel][5.4.144] WETA Kernel R5.19 (snapdragon) G998 [p3q]

WETA Kernel SM-G998U/U1/0 Snapdragon only
*** This will only work on Snapdragon devices with an unlocked bootloader..
SM-G998U/U1 - SM-G9980
Telegram thread at bottom of this post
See post #2 for install steps
Changelog...
R5.02
Telegram thread merged into N20.S20 group, check new links.
Upstreamed to 5.4.127
all modules now inlined, no need for magisk helper module.
added wireguard
Power usage tweaks
More
R4.04
Upstreamed to 5.4.123
R4.03
Upstreamed to 5.4.122
R4.02
Upstreamed to 5.4.121
R4.01
Upstreamed to 5.4.120
R4
Testing phase complete
Upstreamed to 5.4.119
R3
Rebased off UAG source code
R2
Upstreamed to 5.4.118
Fixed Torch/Flash
R1
built using CU8 kernel source
Upstreamed to 5.4.117
Fully permissive
KNOX disabled
Wireguard
Misc debugging disabled
Kernel Downloads
Telegram thread
--------------------->
Beer fund
XDA:DevDB Information
Kernel for the Samsung Galaxy S21 Ultra
Contributors
Mentalmuso, mentalmuso
Source Code: - Kernel Source
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: R1
Created 2021-05-10
Last Updated 2020-05-10
*** Be aware, there may be a need to wipe data if you desire to go back to stock kernel, my suggestion is to backup your stock BOOT partition and DATA before flashing. This way you can return to your original setup easily. It is unknown at this stage what data is causing an issue going back to stock. If you find it, be sure to share.
* You must have bootloader unlocked and rooted your device with Magisk before flashing this kernel. Magisk is essential for camera and wacom.
* Boot times are approx 60-75sec at the moment, itll sit on the yellow triangle splash for approx 60sec and the bootanimation for 5sec.
* When flashing this kernel, an AnyKernel helper module is installed. This is a Magisk Module that is essential for the operation of Camera and Wacom. Removal of this module while running this kernel will break camera and spen.
* Kernel zip labels have either a P or E in them, P=Fully Permissive, E=Enforcing (switchable)
To install
download and flash the kernel installer zip in TWRP or any custom recovery
--->
mine 2
Amazing to see some development, i thought this phone thread was gonna be dev dead
I am a little surprised myself.
Status update
I have found a couple of bugs I'm working on, #1 camera module only loads on permissive version of kernel, #2 the flash doesn't work, #3 random reboots maybe 4-5 times a day.
Working on having a stable R2 this week.
Edit: so it seems the hourly bootloop happens on stock kernel for me also. So it isn't an issue with this kernel. Though I do need to fix the flash
WETA Kernel R2
Upstreamed to 5.4.118
Fixed Torch/Flash
--->
WETA Kernel R3
Starting from scratch with different source code. It seemed there were problems booting for most. The new test kernels have been successful.
This is a basic start, with the intention of upstreaming and testing along the way.
--->
WETA Kernel R4
Upstreamed to 5.4.119
* Testing was successful with the different source code kernel
* Remember you MUST have magisk installed Pryor to flashing this kernel, this kernel needs it's ak3-helper magisk module for camera operation.
--->
I have used your Kernels in the past for other devices, really loved them. Was wondering if you plan to make a custom kernel for the s21 ultra Exynos in the future ?
Excuse my ignorance but please elaborate on "knox disabled"? I have unlocked bootloader/magisk and knox is already disabled as far as I know. Would this mod to the kernel allow me to use knox locked features that have been lost, eg biometric security for some apps? Thank you for your work, look forward to trying it out
dsdavis6 said:
Excuse my ignorance but please elaborate on "knox disabled"? I have unlocked bootloader/magisk and knox is already disabled as far as I know. Would this mod to the kernel allow me to use knox locked features that have been lost, eg biometric security for some apps? Thank you for your work, look forward to trying it out
Click to expand...
Click to collapse
Kernel based Knox ncm is disabled, it has nothing to do with your "Knox fuse" which is blown when your bootloader is unlocked.
paul_cherma said:
I have used your Kernels in the past for other devices, really loved them. Was wondering if you plan to make a custom kernel for the s21 ultra Exynos in the future ?
Click to expand...
Click to collapse
I don't plan on building anything for devices I don't hold in my hand. Reliable testing is hard otherwise
WETA Kernel 4.02
Upstreamed to 5.4.121
--->
Just a note regarding boot times, I can achieve a 35sec boot time, though in doing so it breaks double tap to wake, and fingerprints. I won't release a version with those broken items.
WETA Kernel 4.03
Upstreamed to 5.4.122
--->
WETA Kernel 4.04
Upstreamed to 5.4.123
--->

[EAS/HMP][UNOFFICIAL]Lineage OS 15.1 for Xperia XZ

Lineage OS 15.1 EAS/HMP Version​
#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.
*/
What is EAS?
Energy Aware Scheduling (EAS) is an enhancement to Linux power management, placing CPU power control directly under the Linux scheduler. When enabled, EAS uses the task load and a CPU Energy Model to select the most efficient CPU to run on, taking advantage of power and performance of Arm big.LITTLE and Arm DynamIQ-based systems.
About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 8.x (Oreo),
which is designed to increase performance and reliability over stock Android for your device.
All the source code for LineageOS is available in the LineageOS GitHub repo.
And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.
Official LineageOS website : http://lineageos.org
About LineageOS Legal : http://lineageos.org/legal/
Important Information
1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
2. This ROM will never work with any versions of Google Camera (GCam)!
3. You need to flash Stock 41.3.A.2.192 before flashing this ROM.
4. This ROM is suitable for dual and single model.
5. VoLTE is supported, but you need to enable it on stock firmware at first.
Downloads Link :
EAS :
ROM : lineage-15.1-UNOFFICIAL-EAS.zip
HMP (Ultra Smooth) :
ROM : lineage-15.1-20220414-UNOFFICIAL-kagura.zip
About the build:
tone-common : https://github.com/angelokimhui/android_device_sony_tone-common
kagura : https://github.com/angelokimhui/android_device_kagura
kernel : https://github.com/angelokimhui/android_kernel_msm8996
Also thanks to:
The LineageOS Team
The CyanogenMod Team
The SODP Team.
SJILL
Chippa_a
Awesometic
joshuous (VoxPowerHal for EAS)
Contributors
Sjll, Olivier, angelokimhui(gnz11)
ROM OS Version: 8.1
ROM Kernel: Linux 3.18.x
Version Information
Status: Stable
CHANGELOGS :
UPDATE (04-18-2022)
Rebuilt EAS version from Ground up. Imported Vox PowerHal for smooth UI without relying on HMP version of perfd in stock based vendor. All sort of optimizations for EAS was added. And of course, the final latest security patch for lineage 15.1 is there too. This might be my final ROM for this device as there's no reason to update for the public. No one's using this phone anymore lol.
UPDATE (04-14-2022)
Complete rebuild from source with my own commits to source of SJILL along with migration from squashfs vendor to ext4 to speed up boot and fix twrp oem mount.And also, the final latest security patch for lineage 15.1 is applied.
HMP VERSION :
This is an optimized version I created for this device. Give feedback if how's your experience using this version.
UPDATE (03-22-2022)
I have the OEM(vendor) image updated to fix the errors about the sched_boost error spam in logcat and time_daemon crashing making long uptime becoming unstable and requiring restart. Those 2 major concerns I have are fixed now. Flash it directly to the ROM if you are currently running it.
GPS might be unstable but you can use GPS fixer app from playstore (requires root) to try and optimize GPS data in the device.
INITIAL RELEASE (03-18-2022)
Initial release of EAS based kernel and some vendor partition modification.
Reserved #2
GN-z11 said:
You need to flash Stock 41.3.A.2.157(Dual)
Click to expand...
Click to collapse
Sorry for a stupid question. It is necessary only 157 for dual? 192 isn't compatible?
MiniGNU said:
Sorry for a stupid question. It is necessary only 157 for dual? 192 isn't compatible?
Click to expand...
Click to collapse
I'm sorry but it's actually okay to have 192. I have the dual version too.
**Edited the OP now.
Is there are any custom ROM fo XZ with working GPS?

			
				
I have my GPS working though.
Well, I haven't.
MiniGNU said:
Well, I haven't.
View attachment 5565167
Click to expand...
Click to collapse
Would you mind sending me a logcat and dmesg? Just to see if there's some conflict with drivers to your device?
GN-z11 said:
logcat and dmesg?
Click to expand...
Click to collapse
I've looked into it and seems like there's some data missing, I updated the vendor image today and you can try flashing it directly to the device. And use GPS_Fixer app from playstore to set your geo to the nearest place you're in.
how step to install this OS and vendor.. im. newbie... sorry... i already installed .192 stock firmware dual sim
adul2017 said:
how step to install this OS and vendor.. im. newbie... sorry... i already installed .192 stock firmware dual sim
Click to expand...
Click to collapse
Install TWRP using fastboot and then flash the ROM first then the update vendor.
how many hours does the battery? What is screen time sot? i searching best battery rom for my xperia xz
kablohesabi123 said:
how many hours does the battery? What is screen time sot? i searching best battery rom for my xperia xz
Click to expand...
Click to collapse
It's fair in my case, but I have another version dropping with much better SOT and smoother UI but I discontinued EAS. It's not worth it for me actually with it running with kernel 3.18 so I just tried to optimize HMP as much as I can
whats another version?
kablohesabi123 said:
whats another version?
Click to expand...
Click to collapse
New HMP optimized version available.
GN-z11 said:
New HMP optimized version available.
Click to expand...
Click to collapse
Hello
Does it work on single sim?
Is this rom exFAT compatible?

Categories

Resources