yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] liquid286:
YES, that worked perfectly :good:! I had tried before updating to RB9 and had the same error that I had with RC5, but I didn't have the USERDATA file and with that it worked flawlessly, maybe that's why I couldn't update straight to RC5 and I needed the USERDATA file for that one

---------- Post added at 09:00 PM ---------- Previous post was at 08:53 PM ----------

I finally got it to work with the help of [MENTION=8412803]bboii86[/MENTION], what I did was use odin to install RB9 using the userdata he shared and then upgraded to RC5 with the OTA file he shared on this link:

Download here: CRB9-TO-CRC5

The files for RB9 are here

User data for RB9 here

[MENTION=5347640]l.hieunghia1999[/MENTION] try this as well, maybe it'll help
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] striker661:
Thanks [MENTION=8412803]bboii86[/MENTION]. Never have issues with your uploads.
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] bboii86:
No problem. Glad to help out. ?
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] mmessina:
Worked 1st time. :good:
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] CougarBroker:
If I'm on CRC4 will this take me to CRC5, or do I need to Odin CRB9 then go to CRC5?
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] bboii86:
Yes, it will take you flash odin CRC5, if you're on CRC4. You can also Odin CRB9 and update to CRC5. Either or is fine.
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] BerkTemelli:
I have an AT&T Unlocked S8+

I live out of U.S. for now thats why I can't update my phone with OTA

Model Number SM-G955U

Android Version 7.0

Baseband Version G955USQU2BQK5

Build Number NRD90M.G955USQU2BQK5

Can you tell me exactly what should I do to update my phone to android 8.0

Thank you
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] bboii86:
Flash CRB9 using odin.

Download here: G955USQU2CRB9

USERDATA_ATT

You need to download odin version 3.13.1. Download the odin files CRB9 and Userdata. Extract the files on the PC. Put each file into the correct slots and flash. If you aren't familiar with using Odin or how it works, let me know. I'll provide you with further instructions on how to.
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] BerkTemelli:
Thank you! I'm on android 8.0 now (:
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] CougarBroker:
Thank you!!

Any update above this will kick me from being official right? Like if I flash CRD7?
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] bboii86:
The latest official version is CRD4. Odin files are already out.
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] luisdeoon:
hi

it may be because the binary of your device is different since this is binary 2 the system
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] Dmush88:
Sorry for the noob questions.

Does this works for G955U AQK1 or BQL1 ?

Also, is this rooted ?

I Rooted my phone a while ago but im experiencing some freezes. :crying:

Thank you.
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] Josephigloe:
This CRC5 is a stock odin file, or is not rooted, as long as your on bootloader 2 you can flash. And you will be bone stock.

*Example of bootloader 2

2CRC5 OR 2BQL1 the 5th number from the last is your bootloader number.
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] Dmush88:
Thank you very much man, i have BL 1 then, im going to search how can i change to 2.

Thanks again !
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] Josephigloe:
You can flash BL2 over BL1 no issues, just you wont ne able to go back to BL1 but there's no reason to...lol.

---------- Post added at 11:12 PM ---------- Previous post was at 11:06 PM ----------

You can flash BL2 over BL1 no issues, just you wont ne able to go back to BL1 but there's no reason to...lol.
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] Dmush88:
Thanks my dude, just last thing i just flash bl2 first and then i flash this one ?

and where i can find the BL2 xD
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] Josephigloe:
BL2 is included on CRF5 so you can just odin CRF5 and your all set.
[AT&T Samsung Galaxy S8+ Guides, News, & Discussion] Dmush88:
Ty sir, u are the best !
[Xperia Z1 Android Development] remilia15:
#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 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

I/O Schedulers (these were actually added in upstream kernel source)

BFQ

CFQ

DEADLINE

FIOPS

NOOP

ROW [DEFAULT]

ZEN

CPU hotplugs: intelli_plug (ENABLED BY DEFAULT)

CPU thermal control: intellithermal (ENABLED BY DEFAULT)

Governors

conservative

elementalX

intelliactive

interactive

ondemand

powersave

performance

zzmoove [DEFAULT, profile: 3 (ybatext)]

CPU

Support for Multi-Core Power Saving, reduce CPU usage (available in CPU tab of Kernel Adiutor).

Reduced CPU Average-Load drastically (Less CPU-Load=Cool Device=More Battery-Life).

Support userspace CPU voltage controlling

GPU

Support for Adreno Idler algorithm, reduce high GPU frequencies usage for better battery performance

Support for Simple GPU Algorithm

Memory

Support for Adaptive Low Memory Killer (ALMK) (kill any process that cause thrashing scenario)

Support for Kernel Samepage Merging (KSM).

Support for zRAM compression algorithm (updated to upstream Linux 4.8)

Support for LZ4HC (LZ4 high-compression rate) compression algorithm for zRAM

Other tweaks and optimizations

Init.d support

Support Faux Sound Control (use Faux Sound app to set audio gain profiles)

Optimized Integer SQRT. for upto 3x faster operation.

OVERCLOCKED CPU to 2,5GHz

Westwood TCP congestion algorithm (small boost on network speed)

Hacked swappiness up to 200 by using hacks from Samsung kernel sources (default swappiness is 130)

SELinux Permissive (for V4A and etc...)

Disabled some battery-hogging WAKELOCKS

Support zswap for better memory compression

XDA:DevDB Information

RZ Kernel for Sony Xperia Z1 (honami), Kernel for the Sony Xperia Z1

Contributors

remilia15, SuperLamic

Source Code: https://github.com/remilia15/android_kernel_sony_msm8974

Kernel Special Features:

Version Information

Status: Testing

Created 2018-04-04

Last Updated 2018-09-14
[Xperia Z1 Android Development] remilia15:
Download link: Drive

CHANGELOG

v1.0: Initial release

v1.5: Post #11

v2.0: Post #17

v2.5:

Post #48

Support for stock 14.6.A.1.368: Post #52

v3.0: Post #97

v4.0 [FINAL]: Post #147
[Xperia Z1 Android Development] remilia15:
Small notes

The kernel is tested on C6902/C6903/C6906 model. Not sure about other Z1 variants (don't confuse with Z1c). Testers are welcome

As written in the thread name, make sure you're on ROMs mentioned in the thread name. Please report if other ROMs work with this kernel

The kernel is based on [MENTION=4311238]SuperLamic[/MENTION]'s msm8974 kernel source, and other features were cherry-picked from other sources as well. Original credits goes to them

For dt2w, tap 2 fingers at once on your touchscreen (as mentioned in Modified-kernel thread)
[Xperia Z1 Android Development] remilia15:
Reserved for future usage
[Xperia Z1 Android Development] iga64828:
Twrp included ?
[Xperia Z1 Android Development] pokepokepoke:
Any plans for oreo version?
[Xperia Z1 Android Development] SUPERUSER:
Is it possible to disable dt2w?

I remember way back it was usually done by modifying a file like

echo "1" > /sys/android_touch/ *some dt2w file*
[Xperia Z1 Android Development] remilia15:
Well, you have to install it separately through FlashTool

Maybe, after Oreo gone stable

You can disable it from Kernel Adiutor -> Wake -> DoubleTap2Wake

Or sysfs way:

echo 0 > /sys/class/input/input1/wakeup_gesture
[Xperia Z1 Android Development] gibbykshmr:
nice set of features,,,, gonna give it a test
[Xperia Z1 Android Development] gibbykshmr:
Bootloops on RR Nougat 7.1.2 (yeah yeah yeah, read the disclaimer on support for other ROMS, just curious to test this kernel). Strange but offline charging works as expected and even booting into TWRP works. But while in TWRP I notice the device temperature begins to rise rapidly, causing it to reboot,,,,,hope this works in future releases. Device: C6902
[Xperia Z1 Android Development] remilia15:
RZ v1.5 is up! Changes

Implemented power efficient workqueues (thanks to franciscofranco)

Disabled DT2W by default

Enabled multi-core power saving by default

Reverted GPU OC, obviously because it doesn't do anything

Built with UBERTC 4.9

Disabled battery-hogging wakelocks (thanks to franciscofranco)

Enabled intelli_plug and intellithermal by default (you'll need to disable mpdecision from Kernel Adiutor so intelli_plug will work properly)

RZ v1.5 is available on my Drive folder. Please checkout OP for download link!

Cheers,
[Xperia Z1 Android Development] remilia15:
Confirmed working with latest Carbon N ?
[Xperia Z1 Android Development] SerikKr:
Good work on my c6903 LOS 14.1 SuperLamic.
[Xperia Z1 Android Development] kalte:
Nice work. It's working fine on my C6906 running LOS 14.1 from SuperLamic with Magisk installed and working fine too. My phone was charging too slow but now it's fixed.
[Xperia Z1 Android Development] Seand1796:
Hello, remilia15.

Thank you for your work.

This kernel is flash like update.zip in trwp recovery?
[Xperia Z1 Android Development] remilia15:
Yes, the kernel is packed inside a flashable ZIP, so just flash it through TWRP
[Xperia Z1 Android Development] remilia15:
RZ v2.0 is up! Changes

Added support for userspace voltage controller (available in Kernel Adiutor)

Added support for Adreno Idler (reduce high GPU frequencies usage due to msm-adreno-tz overhead), and Simple GPU algorithm

Added governors: zzmoove [DEFAULT], elementalX

Disabled mpdecision and thermanager by default (through my own ramdisk implementation, may support other ROMs for sure, as confirmed with Carbon N and LOS N)

Added support for zswap (ported from Samsung msm8974 kernel source)

Added IO schedulers: zen, fiops (default is still ROW)

Added 100MHz GPU step (should reduce battery consumption on light usage)

Added support for Dynamic Fsync (disabled by default), powersuspend driver (default: HYBRID mode)

Reduced CPU standby voltage

Fixed dt2w deep sleep state (it should function properly now)

RZ v2.0 is available on my Drive folder. Please checkout OP for download link!
[Xperia Z1 Android Development] Luncer:
Hi

thanks for your works buddy

can u make kernel for other roms like RR too?

u can use anykernel :fingers-crossed:
[Xperia Z1 Android Development] remilia15:
I'm using the very first version of AnyKernel with very minimal patching commands

Somehow it's pretty hard for me to adapt to a newer AK version so I decided to write my own noob-friendly ramdisk patching script instead (compatible with all Z1 AOSP boot.img)

My kernel boots currently on LOS N and Carbon N. For RR, idk why it bootloops. Probably need some other kernel commits maybe?
[Xperia Z1 Android Development] SUPERUSER:
Runs nice..but I needed to flash the stock kernel from superlamic lineage os and then flash this kernel because the phone went in to a bootloop on the sony logo.

Just a reminder to what to do when your next update is coming

edit: no its magisk thats acting up.. wont't boot when installing this after flashing the kernel

Phone is booting with magisk on stock kernel so something is not right.

I don't have more time atm for this so im gonna let it be
[Xperia Z1 Android Development] Themaniacboy:
Same here, except that solution doesn't work for me. It still gives me a bootloop.
[Xperia Z1 Android Development] remilia15:
I don't use Magisk so idk what's the real problem. Maybe due to hardcoded SELinux state I made or my ramdisk modification with Magisk-patched boot.img

Here I use addonsu to get root instead of Magisk or SuperSU, and it booted fine also
[Xperia Z1 Android Development] remilia15:
Guys, I've re-uploaded RZ v2.0 build. The build seems working with Magisk now (I'm using v16.0 atm)
[Xperia Z1 Android Development] SUPERUSER:
Thanks!

I still had to do what I did in the post before. "Dirty" flashing the kernel wont work.

First flash the stock kernel in fastboot and let it boot.

Then flash this kernel and let it boot.

Then flash magisk zip in recovery and let the phone boot.

But...uh.. the phone was stuck at the sony logo for a solid minute then booted in failsafe mode with the bootanimation going in slow motion :eek:

After I force rebooted again it worked out.
[Xperia Z1 Android Development] remilia15:
Well, that's kinda weird. I just dirty flashed the latest RZ (of course check for boot state first), then flashed Magisk ZIP then it booted normally
[Xperia Z1 Android Development] SUPERUSER:
I dirty flashed v1 and v1.5 but v2 didn't boot up.

But who knows..this phone has so many faults I don't know where to begin.

Its probably just mine thats acting up and I was given this phone so its not a huge loss on my end anyway
[Xperia Z1 Android Development] Themaniacboy:
2.0 still doesn't work for me. Strange thing is, after trying to flash 2.0 and then reflashing 1.5 gave me the same bootloops. Only after flashing superlamic's kernel it booted fine. My phone is a C6903.
[Xperia Z1 Android Development] SUPERUSER:
I tried that. You cannot downgrade per say with this kernel. It wont boot.
[Xperia Z1 Android Development] raschad:
can you build a kernel for Oreo Aicp 13.1? Or you need the kernel source?
[Xperia Z1 Android Development] remilia15:
The first posts I've talked about building for Oreo. I'll do it once Oreo reaches stable state, or at least the camera must be working because that's what I needed most from this phone

Update: the next build I won't edit boot.img ramdisk anymore. Nougat supports init.rcs on system partition so I'll use that instead. Magisk-patched ramdisk has its own specific flags that we don't support (actually I'm planning on a common kernel zip which is flashable on all ROMs), and it's the reason why updating kernel with Magisk boot.img won't let the phone boot
[Xperia Z1 Android Development] remilia15:
Guys, again, I've reuploaded new RZ v2.0 build. This one doesn't requires patching ramdisk as I've moved custom power init scripts into /etc/init (which Nougat supports), so it shouldn't have problems with Magisk as before

Please check it out and report me if the problem still exist. For me it booted successfully with Magisk-patched boot.img

Thanks
[Xperia Z1 Android Development] Themaniacboy:
Thank you for the efforts. Now it works fine for me.
[Xperia Z1 Android Development] pokepokepoke:
Hey ,Carbon Rom oreo is much stable now can you build rz kernel for it? If yes please make in enforcing for safety net pass
[Xperia Z1 Android Development] remilia15:
1. I haven't managed to boot O kernel yet, though I've made O branch for further testing

2. Default RZ's SELinux settings is always Permissive. You can switch to Permissive through apps like Kernel Adiutor. This should fixes some issues with some apps like V4A, which deny libraries to write its values on boot process. Because SELinux state is switchable so SafetyNet should pass

Edit: Somehow CarbonROM doesn't allow writing SELinux enforcing state through sysfs or even androiboot.selinux flag so maybe I should keep the kernel Enforcing
[Xperia Z1 Android Development] crazy_sniper1000:
Sony c6903 clean lineageos-14-1. Flash your core, the phone stops loading, just a black screen.
[Xperia Z1 Android Development] remilia15:
Oops, I'm seriously sorry for that. I accidentally uploaded my test build into my Drive folder and it was broken

I've reuploaded a working build just now. Please check it out if the problem still persist with your device

Thanks
[Xperia Z1 Android Development] crazy_sniper1000:
does not work either with version 1.5 or with version 2. After the flash the phone turns off and does not turn on in any way. Only fastboot helps.
[Xperia Z1 Android Development] remilia15:
Kinda weird tho. I still have it run normally with latest LOS 14.1 build
[Xperia Z1 Android Development] crazy_sniper1000:
If the error was related to the firmware, then there would be at least a boot screen. Can I have a failure in the boot partition?
[Xperia Z1 Android Development] remilia15:
It won't be, since LOS use mkbootfs to pack ramdisk and RZ uses that method also. Which TWRP are you using btw?
[Xperia Z1 Android Development] crazy_sniper1000:
twrp - 3.0.2-0
[Xperia Z1 Android Development] SerikKr:
Does I will try flash this kernel on my oreo aicp c6903?Or it's bad idea?Now I have so stable work, but I think, if restore, after unstable or bootlogo work of this kernel, so my system don't worked stable and restores full.
[Xperia Z1 Android Development] remilia15:
Thanks for reporting. I'll try to find out the proper issue afterwards
[Xperia Z1 Android Development] SerikKr:
Good work on my Lineage OS superlamic's.Magisk is 16.3(beta) and all was fine!
[Xperia Z1 Android Development] remilia15:
Sup guys. I have a good news here: RZ Kernel has booted on O (here I'm testing with drakonizer's Carbon O build)

v2.5 will come with Oreo and Nougat support. It'll be released soon after I've done some simple tests

Thanks
[Xperia Z1 Android Development] gibbykshmr:
Still no chance of getting this to boot RR Nougat? :(
[Xperia Z1 Android Development] Comstock:
U can try install via fastboot boot.img LOS 14.1 and after install RZ kernel. Make a backup before this.

Boot.img u can take in the zip Los ROM.
[Xperia Z1 Android Development] remilia15:
v2.5 is up! Changes

Added support for Oreo

Added zswap driver from upstream Linux 4.9 (more multitasking)

Switched back to Intelliactive governor as default (IMO this is the best governor having balanced performance and battery)

Decreased default zram disksize from equals to 100% RAM to 50%

Default ROW I/O scheduler for internal storage and zen for SD card

[NOTE]:

Since I rebased RZ branch from N to O (based on Carbon sources), there's a remaining bug for it, which is rebooting to recovery

This RZ version boots on both N (except RR as reported) and O ROMs (I've tested on my C6902). If you have any problems flashing, just report it here

Thanks

And as usual, the Drive folder has been updated. Please check OP for download link!
[Xperia Z1 Android Development] heman96:
Were you able to get 3G connection working on C6902?? Because carbon rom took a very long time to connect to internet and sometimes it wouldn't.
[Xperia Z1 Android Development] remilia15:
Unfortunately, I couldn't get any mobile data connections at all. I've tried reading logcat but seems nothing interesting (or maybe I'm too noob to read radio logs)
[Xperia Z1 Android Development] Themaniacboy:
I just wanted to report that the phone feels much smoother after the 2.5 update. Thank you for your work.
[Xperia Z1 Android Development] remilia15:
Guys, I've updated v2.5 support for stock LP. Currently it booted on my .368 stock, but I'm sure it'll boot on the others. Please test and report if it boots on other stock versions

And as usual, check OP for download link. Stock version has "-stock-LP" suffix in zip names

P/s: I don't know for what reason the prima module is so damn huge, as a result of huge zip size. Still, it's needed for wireless xD

Thanks

Edit: I've uploaded a new build with stripped wlan module. ZIP size has been decreased
[Xperia Z1 Android Development] :
Hey, i just want to thank you for your kernel! I've been using it since v1 and my phone feels like it's new! :) Again, thank you! :D
[Xperia Z1 Android Development] Comstock:
Better kernel for our phone. Kernel v2.5 work perfectly. Thank you.
[Xperia Z1 Android Development] remilia15:
Anyone tested stock build?
[Xperia Z1 Android Development] miXXed404:
Hi, im having issues with RZ Kernel 2.5 on carbon rom oreo, after flashing zip with kernel on twrp and rebooting very often phone is not booting anymore, sometimes it displays sony logo, and very rarely boots up but when i restart phone its happening all over again, no reaction besides vibration after pressing power button, someone can help me?
[Xperia Z1 Android Development] heman96:
Flash it again using the unofficial twrp
[Xperia Z1 Android Development] miXXed404:
Same issue, sometimes it boots up and working normal, sometimes it just vibrates and it does not boot up anymore, no sony logo, no bootanimation
[Xperia Z1 Android Development] trunglevt:
Thanks for the awesome kernel. Do you plan to make the kernel work for .236 stock?
[Xperia Z1 Android Development] remilia15:
Kinda weird. Are you sure you didn't flash anything irrelevant?

Please test if you could. I think it'll work too
[Xperia Z1 Android Development] trunglevt:
I flashed over MX Rom v 8.5 and no boot. Only flashes red light and i have to restore the stock kernel.
[Xperia Z1 Android Development] miXXed404:
Yes i'm sure
[Xperia Z1 Android Development] remilia15:
Could you please send me its boot.img?

What's your phone model?
[Xperia Z1 Android Development] miXXed404:
C6903
[Xperia Z1 Android Development] trunglevt:
Do you mean the .236 boot.img ? It is here if u want.

https://drive.google.com/open?id=1brTvKEkEX-hgL2a1W--z7fcU8PjNjMV8

---------- Post added at 09:35 AM ---------- Previous post was at 09:33 AM ----------

The boot.img for .236 is in:

https://drive.google.com/open?id=1brTvKEkEX-hgL2a1W--z7fcU8PjNjMV8
[Xperia Z1 Android Development] C.T.E:
Is it working on aıcp 8.1?

---------- Post added at 02:36 PM ---------- Previous post was at 02:25 PM ----------

Yes It is working ?
[Xperia Z1 Android Development] Comstock:
Today i installed kernel to Resurrection Remix and it working.
[Xperia Z1 Android Development] gibbykshmr:
What version of the kernel did you install please? Bootloops on Resurrection Remix for me.
[Xperia Z1 Android Development] Comstock:
2.5 version, install after at once install ROM.
[Xperia Z1 Android Development] ch3mn3y:
Hi, just found this kernel, but it seems to be prerooted by SuperSU. Any chance for unpatched version to use it with MAGISK?

EDIT: Ahh, it seems it may be Hexagon kernel that is already patched...
[Xperia Z1 Android Development] jos3nava:
Flashed today on Ressurection Remix (C6903 device) and works
[Xperia Z1 Android Development] gibbykshmr:
Confirmed, v2.5 working on RR Nougat.

Thanks [MENTION=7969495]remilia15[/MENTION]
[Xperia Z1 Android Development] trunglevt:
Hey how is the ram management? Does it lag when u switch apps?
[Xperia Z1 Android Development] gibbykshmr:
Occasionally, but nothing terrible. This kernel has been awesome so far.
[Xperia Z1 Android Development] Bo201202:
v2.5 working smoothly on RR Nougat.

Thanks [MENTION=7969495]remilia15[/MENTION]
[Xperia Z1 Android Development] trunglevt:
[MENTION=7969495]remilia15[/MENTION] Is it possible to port the native tap to wake from xperia Z to Z1 because by looking at the source code, they have the same synaptic chip and the codes are very similar too. Your work is awesome btw.

https://www.xda-developers.com/tap2wake-function-available-on-the-sony-xperia-z-zr-and-zl/

https://github.com/DooMLoRD/android_kernel_sony_msm8974/commits/exp_dt2wake_native_port_from_z
[Xperia Z1 Android Development] heman96:
I dont think so because our digitizer doesnt support it and that's the reason it was never included in the stock rom
[Xperia Z1 Android Development] remilia15:
LOL, I have picked dt2w commit from [MENTION=2659069]red-[/MENTION]-code source and from DooMLoRD's too. You can enable it from Kernel Adiutor -> Wake tab
[Xperia Z1 Android Development] iskot:
sorry for this question just came back after months away and completely forgot how to install and flash this can anyone help me. Tia
[Xperia Z1 Android Development] ch3mn3y:
Boot TWRP and flash the zip with kernel.

SONY Xperia Z Ultra ✓ᵛᵉʳᶦᶠᶦᵉᵈ
[Xperia Z1 Android Development] hfaz63:
Warning

Kernel causes blank bootscreen on [ROM][7.1.2]Xperia Shift 2.5.3 for Honami [Stereo MIC]

phone stuck on bootloader
[Xperia Z1 Android Development] heman96:
Flash it again because the developer of that rom got it working with RZ kernel