• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][STABLE] LineageOS 15.1 for the Xperia Z5 Premium

Joel16

Senior Member
Sep 3, 2013
976
782
93
LineageOS is a free and open-source operating system for various devices, based on the Android mobile platform.

Disclaimer:
It is your decision to install this software on your device. Neither LineageOS developers nor I take any responsibility for any damage that may occur from installing this software on your device.



Notes:
This rom does not come pre-rooted or bundled with any modifications or apps. The device tree is heavily based off of Sumire's officical lineageOS repo with only the necessary modifications required for Satsuki (Z5 Premium).

Download:
Android File Host: lineage-15.1-20201208-UNOFFICIAL-satsuki.zip

Prerequisites:
- Make sure you're coming from firmware 32.4.A.1.54 before flashing this rom.
- Bootloader needs to be unlocked.
- Ensure that you have TWRP recovery from here.

Install:
1) Reboot into TWRP Recovery.
2) Select Wipe -> Swipe to factory reset -> Advanced Wipe -> Dalvik /ART Cache, System, Cache and Data -> Swipe to Wipe.
3) Go back to TWRP's main menu -> Select Install -> Locate and choose lineage-15.1-20201208-UNOFFICIAL-satsuki.zip file -> Swipe to confirm flash.

Currently Working:
- WiFi
- Sensors (lights, gyroscope, accelerometer etc)
- Bluetooth
- GPS
- Audio/Mic
- Camera
- Sim service
- Flashlight

Bugs:
- Live display does not work

Sources:
Kernel
Device Tree (Satsuki | kitakami-common)


XDA:DevDB Information
LineageOS 15.1, ROM for the Sony Xperia Z5 Premium

Contributors
Joel16
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.x

Version Information
Status:
Beta
Current Stable Version: 20201208
Stable Release Date: 2020-12-08
Current Beta Version: 20200101
Beta Release Date: 2019-01-01

Created 2019-12-21
Last Updated 2020-12-08
 
Last edited:

Joel16

Senior Member
Sep 3, 2013
976
782
93
Initial Release 20191221 - BETA
Code:
[U]Currently Working:[/U]
- Audio/Mic
- Bluetooth
- Fingerprint
- GPS
- Sensors (lights, gyroscope, accelerometer etc)
- WiFi

[U]Bugs:[/U]
- Camera and flash does not work.
- No sim detection (no sim service)
- Live display does not work

20191228 - BETA
Code:
- Applied kv123's DTS patch for dual sim SD card fix.
- Fix sim card detection. (Calling/Message - Needs testing/logs)

20200101 - BETA
Code:
- Fix Null ptr dereference in UID-based routing: This fixes issues with many apps crashing and resulting in a kernel panic such as YouTube.
- Enable TARGET_BOOTANIMATION_HALF_RES: Much smoother boot animation + no more lag.
- Update sec_config: Add security rule for WLFW service and change permissions for DIAG services.
- Allow the use of invalid pthread via board flag.
- Exempt latency-critical interrupts from balancing. 
- Bunch of code clean up (Removing unnecessary configs, service calls, reorganizing makefiles etc)

20201022 - STABLE
Code:
- Upstream changes from lineage 15.1 sources
- Fixed RIL signal strength.
- Fixed RIL manual network search.
- Fixed NFC.
- Fixed camera. (Thanks to the wrapper by Chippa_a and the findings by torukk)
- Fixed flash light toggle.
- October security patches.

20201208 - STABLE
Code:
- Upstream changes from lineage 15.1 sources
- Back-ported camera wrapper from 17.1 sources. (No more half-assed closed source camera wrapper)
- Fixed front camera force close in Snap.
- Fixed video camera fps in Snap.
- Bumped finger print HAL from 2.0 -> 2.1.
- Bumped WiFi HAL from 1.0 -> 1.1.
- Switched to lineage power HAL.
- Picture adjustment is now working, however livedisplay is disabled due to a kernel panic.
- No longer listens to fingerprints when the screen is off - hopefully should help battery life.
- November security patches.
 
Last edited:

Mike3009

Senior Member
Jun 22, 2017
72
4
0
Excellent work! I would love to test this but since I only have this phone at the moment, I need the Sim card detection to at least work. You're doing an excellent job and you've gotten farther than anyone else! Keep up the good work and best of luck. Can't wait to start testing it if you're able to get Sim card detection working.
 

Joel16

Senior Member
Sep 3, 2013
976
782
93
Excellent work! I would love to test this but since I only have this phone at the moment, I need the Sim card detection to at least work. You're doing an excellent job and you've gotten farther than anyone else! Keep up the good work and best of luck. Can't wait to start testing it if you're able to get Sim card detection working.
Even if I get sim detection working, it doesn't mean calls/SMS is guaranteed to work. I'll need testers on that eventually. I do have a SIM on my Z5 but its a pretty old SIM that needs to be reactivated. I can only check to see if it's actually picking up the cellular network at most.
 

Mike3009

Senior Member
Jun 22, 2017
72
4
0
Even if I get sim detection working, it doesn't mean calls/SMS is guaranteed to work. I'll need testers on that eventually. I do have a SIM on my Z5 but its a pretty old SIM that needs to be reactivated. I can only check to see if it's actually picking up the cellular network at most.
I'd definitely be happy to test it for you and let you know if calls and SMS work after you get sim card detection working. Keep up the good work, you're doing an excellent job!
 

Joel16

Senior Member
Sep 3, 2013
976
782
93
New Release 20191228

- Applied kv123's DTS patch for dual sim SD card fix.
- Fix sim card detection.

I'll need testers for testing anything sim related. For both dual and single sim. I do have a sim but it is from another country and is temporarily disabled. I can only check to see if it picks up a signal but cannot use it to test calls/messaging. If you find any issues please report them and provide logs using the following command (Make sure you run it for up to a minute and use a site like pastebin to post your logs):

Code:
adb shell logcat -v main,radio,system,crash > logcat.txt
 
Last edited:
  • Like
Reactions: yeshuabainz

Joel16

Senior Member
Sep 3, 2013
976
782
93
Awesome work! I'll test it out and let you know. All that is left is the camera, right?
If everything network related is working fine, camera should be the only *difficult* thing left. I was playing with the ROM earlier and noticed the youtube app causes the phone to crash and reboot. I'm not sure if its just me, but youtube works fine on the browser, the app however crashes so that's also something to look into.

Currently FMRadio isn't implemented and I haven't tested NFC. And unless there's some issue I'm not aware of, that's currently all there is to fix.
 
  • Like
Reactions: Mike3009

Joel16

Senior Member
Sep 3, 2013
976
782
93
I got error code 7 when trying to flash it over.
Weird, which TWRP version are you using? Error 7 usually means the ROM being flashed is for a different device. Also did you wipe? Coming from lineage 14->15 dirty flash (without wipe) is not recommended.
 
Last edited:

Mike3009

Senior Member
Jun 22, 2017
72
4
0
Weird, which TWRP version are you using? Error 7 usually means the ROM being flashed is for a different device. Also did you wipe? Coming from lineage 14->15 dirty flash (without wipe) is not recommended.
I'm using TWRP 3.1.1-0 and I did the wipe exactly as shown in the first post. Coming from 14.1 on an e6853.
I can try updating my TWRP to the latest but I've never had issues before.
 

Joel16

Senior Member
Sep 3, 2013
976
782
93
I'm using TWRP 3.1.1-0 and I did the wipe exactly as shown in the first post. Coming from 14.1 on an e6853.
I can try updating my TWRP to the latest but I've never had issues before.
That TWRP 3.1.1-0 build for satsuki is pretty old. I would recommend updating it going forward. If this issue still persists let me know.
 

Mike3009

Senior Member
Jun 22, 2017
72
4
0
That TWRP 3.1.1-0 build for satsuki is pretty old. I would recommend updating it going forward. If this issue still persists let me know.
Working now after flashing over the latest recovery you posted. Thanks, I'll test it and report back.

---------- Post added at 07:02 AM ---------- Previous post was at 06:58 AM ----------

With just some quick minimal testing, calls and sms work fine. It also detected my sim card right away. Great work!

---------- Post added at 07:06 AM ---------- Previous post was at 07:02 AM ----------

This is a very fast rom. Really hope you can get the camera working.
 
Last edited:

PenguenBOI

Member
Nov 2, 2019
8
2
0
Few bugs noticed so far on xperia z5 premium dual E6883,
Chrome crashes device and doesnt open,
Youtube Vanced loads but crashes device when try to load videos.
Would be great if theres a discord or something that we can contact you easier
 

Joel16

Senior Member
Sep 3, 2013
976
782
93
Working now after flashing over the latest recovery you posted. Thanks, I'll test it and report back.

---------- Post added at 07:02 AM ---------- Previous post was at 06:58 AM ----------

With just some quick minimal testing, calls and sms work fine. It also detected my sim card right away. Great work!

---------- Post added at 07:06 AM ---------- Previous post was at 07:02 AM ----------

This is a very fast rom. Really hope you can get the camera working.
Thank you! Please make sure you can receive calls and sms fine as well.

Few bugs noticed so far on xperia z5 premium dual E6883,
Chrome crashes device and doesnt open,
Youtube Vanced loads but crashes device when try to load videos.
Would be great if theres a discord or something that we can contact you easier
Funny chrome worked for me, but youtube crashes the device. Also noticed "connected devices" also results in a crash if you try to open it in settings.

I do have a discord but I feel like telegram would be more suitable, I've noticed most people here use telegram? But anyways here's an invite link to better keep in touch: Xperia Z5 Premium (Satsuki dev)
https://t.me/xz5pdev