• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

LineageOS 17.1 for Xperia Z2

Search This thread

NeoArian

Recognized Developer
Nov 25, 2017
1,271
2,900
Sony Xperia Z2
Sony Xperia Z3 Compact
2okPze5.png


Introduction
LineageOS, an open-source Android distribution, is available for several devices,
with more being continuously added thanks to the biggest, yet ever growing, Android open-source community.
Join us and breathe new life in your device, be it old or new.
If you don't know LineageOS and would like to read about it before installing it you can take a look at the official Website.

Features
Individuality
Customization is paramount to productivity.
That’s why LineageOS promises to push for user personalization and preference.
Everyone is unique and your device should be too.
Security
Your data, your rules. With powerful tools such as Privacy Guard, you are in control of what your apps can do whenever you want.
Trust will help you understand the security of your device and warn you about possible threats.
We take security very seriously: that’s why we deliver security updates every month to all our supported devices.
And to make your device more secure, lock everything behind an enhanced lock screen.
Longevity
LineageOS extends the functionality and lifespan of mobile devices from more than 20 different manufacturers thanks to our open-source community of contributors from all around the world.

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. You can also view the Changelog for a full list of changes & features.

Downloads
Download LineageOS 17.1 for Xpeira Z2.

Installation instructions
Prerequisites:
  • Unlocked Sony Xperia Z2
  • Fastboot drivers to install TWRP
  • Micro-USB Cable to connect your phone to your computer
Install:
  1. Reboot to TWRP. *
  2. Wipe cache, dalvik cache, data and system.
  3. Format data to get rid of encryption.
  4. Install ROM.
  5. Install 10.0 Gapps for ARM. **
* recommended TWRP: Post #2
** optional

Update:
  • Get the latest build
  • Boot into TWRP
  • Flash the downloaded build
  • Reboot
Note: If you don't wipe system, backuptool will reapply your modifications that support addon.d, for example: GApps.

Reporting 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 it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
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. Any bug not reported in the bug report format below may be ignored.

Code:
What is your--
LineageOS version:
Gapps version:
 
Did you--
wipe:
 restore with titanium backup:
reboot after having the issue:
 
Are you using--
a task killer:
a non-stock kernel:
other modifications:
 
Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:


XDA:DevDB Information
LineageOS 17.1 for sirius, ROM for the Sony Xperia Z2

Contributors
NeoArian
ROM OS Version: Android 10
ROM Kernel: Linux 3.4.x
ROM Firmware Required: 23.5.A.1.291

Version Information
Status: Stable

Created 2020-02-21
Last Updated 2020-07-30
 
Last edited:

NeoArian

Recognized Developer
Nov 25, 2017
1,271
2,900
Sony Xperia Z2
Sony Xperia Z3 Compact
Known Issues
  • FM Radio quality is worse then on stock, bit we can't do much without Sony's source probably. I am not working on that right now.
  • Disk Encryption: Disk Encryption is working, however not with the default password (no password). Workaround: Set password first, then start disk encryption, not the other way round!
  • You tell (with logs please)...

TWRP
Download TWRP 3.3.1 for Xperia Z2!
How to install this TWRP
  • Rename the downloaded twrp image to twrp.img
  • Reboot to fastboot by holding volume up while connecting your device to your computer
  • Open a terminal and go to the directory with TWRP in it
  • Type
    Code:
    fastboot flash recovery twrp.img
  • Boot into TWRP; while the device is powered off press the power and volume down button


A big THANK YOU to @OLDST4R for donating the Xperia Z2 to me!
 
Last edited:

@kitokit

Senior Member
Mar 15, 2017
352
66
I'm currently on aex rom pie. How do I install it? Do I need to go back to stock mm? Or I can just wipe system, data, dalvik and then install the rom.?
 

0LDST4R

Senior Member
May 2, 2018
287
205
I very happy to see our phone live again. Thank you for work in z2 i try it soon
Thank you @OLDST4R for preparing new Android version to our device and thank you to @NeoArian for build this rom


I only spent a device to @NeoArian, i did'nt prepared anything... :)

Credits must go to @NeoArian and all the other devs, rom cooks and testers in the past and now, in Shinano family, like @Myself5, @drakonizer, @rcstar6696, @okij - there are many, many more. Simply be grateful, respect their work, and be happy with new software for our devices. ;)

Greetz,

0LDST4R
 

NeoArian

Recognized Developer
Nov 25, 2017
1,271
2,900
Sony Xperia Z2
Sony Xperia Z3 Compact
Delay and very slow response, sometimes auto restart :(
Problem is fixed, new build is uploading. If someone cares: The problem was because of a mismatching dalvik heap configuration which caused the phone to slow down incredibly.
Sorry for the bad start :eek:
Download: https://osdn.net/projects/ephedrace.../lineage-17.1-20200223-UNOFFICIAL-sirius.zip/
It would be great if someone can confirm that RIL (SIM, Telephony, SMS, Mobile data) works fine because the SIM slot is physically broken on my Z2.

Happy flashing and have a nice day!
 
Last edited:

devilgloom

Senior Member
Sep 25, 2015
102
33
Manhattan
I only spent a device to @NeoArian, i did'nt prepared anything... :)

Credits must go to @NeoArian and all the other devs, rom cooks and testers in the past and now, in Shinano family, like @Myself5, @drakonizer, @rcstar6696, @okij - there are many, many more. Simply be grateful, respect their work, and be happy with new software for our devices. ;)

Greetz,

0LDST4R

Thank you for your great personality,I have great respect for you.

---------- Post added at 01:07 PM ---------- Previous post was at 01:03 PM ----------

Problem is fixed, new build is uploading. If someone cares: The problem was because of a mismatching dalvik heap configuration which caused the phone to slow down incredibly.
Sorry for the bad start :eek:
Download: https://osdn.net/projects/ephedrace.../lineage-17.1-20200223-UNOFFICIAL-sirius.zip/
It would be great if someone can confirm that RIL (SIM, Telephony, SMS, Mobile data) works fine because the SIM slot is physically broken on my Z2.

Happy flashing and have a nice day!

You not bad start you start something awesome i go to flash new build and i check RIL and feedback here
 
  • Like
Reactions: 0LDST4R

devilgloom

Senior Member
Sep 25, 2015
102
33
Manhattan
Hey again
I'm test RIL and that works perfect I test SMS and telephony and I sent this feedback with mobile data all RIL that work perfect thank you.

Edit: I'm call with headset and that work now I test without headset and find a bug speaker and microphone both not working without that.
 
Last edited:

NeoArian

Recognized Developer
Nov 25, 2017
1,271
2,900
Sony Xperia Z2
Sony Xperia Z3 Compact
Hey again
I'm test RIL and that works perfect I test SMS and telephony and I sent this feedback with mobile data all RIL that work perfect thank you.

Edit: I'm call with headset and that work now I test without headset and find a bug speaker and microphone both not working without that.
Great to hear. Can you please describe that Bug more Detailed? I don't understand it.

Does anyone know if the camera, camera hardware button, video streaming works?
The camera and the camera Button Work. What do you mean by Video Stream?
 
  • Like
Reactions: devilgloom

psi78

Member
Feb 22, 2020
7
0
Great to hear. Can you please describe that Bug more Detailed? I don't understand it.


The camera and the camera Button Work. What do you mean by Video Stream?

Good to hear, great work!
With video streaming i meant playing flash videos in a browser on various websites other than youtube (that was broken for me on another device using Lineage OS 14.1).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Which file inside microSD card exactly?

    The restored twrp backup showed model as d6502. But i want to double check.
    I'm not talking about a file, I'm talking about a physical tag which has a bunch of information that's specific to your phone, such as model number and IMEI, among others. Here's what you should be looking for:
    1.JPG2.JPG3.JPG

    Also, you said...
    Can any of you tell me which version i am using? If it's d6502 or d6503. I had a twrp backup of original firmware but the backup refuses to boot
    You'll need to make sure your backup includes the kernel and recovery. If you're restoring a stock firmware backup which doesn't include these files, use FlashTool (not Emma) to flash just the kernel and fotakernel images by excluding everything else. See the attached pic.
    howto.png
    1
    Thanks man.
    Since this is not my phone. I just wanted to flash custom rom in old phone, i didn't know that.
    I had never pulled out microSD slot.
    Edit: and it is d6502
    I'm always glad to help.

    Hope you get that phone back in working order. I wouldn't bother flashing custom ROMs on other people's phones unless they're so inclined, and I mean that as in: they're curious people who are willing to deal with the ocassional bugs and have their way around them. Stock .291 was pretty damn stable, leave it at that.

    For the heating issue the dev told that its the soc itself and i am not the only one having that issue.
    Trust me, this phone doesn't overheat that much, it could be worse, I have the Z5 Premium which literally becomes unusable unless I use thermal management tweaks haha.
    1
    For the heating issue the dev told that its the soc itself and i am not the only one having that issue.
    Yeah, the SoC can heat up a lot on the Z2. I find that lowering the performance in the Battery settings helps.
    1
    I think we'll need a new thread for 18.1.
    The official website tells us that LineageOS 18.1 has been released for Xperia Z2.
    Check it out here:
    1
    I have super su preinstalled on custom Rom but not staisfied how can i install magisk (uninstalling super su) D6503 on stock rom
    As I already said, try flashing Magisk v20.3 or an older release (such as v18) from TWRP. BTW I think your post is accidentally misquoting me haha.

    I think we'll need a new thread for 18.1.
    The official website tells us that LineageOS 18.1 has been released for Xperia Z2.
    Check it out here:
    Nice! Straight from the offical LineageOS download site! We'll have to wait for OP to create a new thread when the time is right.
  • 46
    2okPze5.png


    Introduction
    LineageOS, an open-source Android distribution, is available for several devices,
    with more being continuously added thanks to the biggest, yet ever growing, Android open-source community.
    Join us and breathe new life in your device, be it old or new.
    If you don't know LineageOS and would like to read about it before installing it you can take a look at the official Website.

    Features
    Individuality
    Customization is paramount to productivity.
    That’s why LineageOS promises to push for user personalization and preference.
    Everyone is unique and your device should be too.
    Security
    Your data, your rules. With powerful tools such as Privacy Guard, you are in control of what your apps can do whenever you want.
    Trust will help you understand the security of your device and warn you about possible threats.
    We take security very seriously: that’s why we deliver security updates every month to all our supported devices.
    And to make your device more secure, lock everything behind an enhanced lock screen.
    Longevity
    LineageOS extends the functionality and lifespan of mobile devices from more than 20 different manufacturers thanks to our open-source community of contributors from all around the world.

    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. You can also view the Changelog for a full list of changes & features.

    Downloads
    Download LineageOS 17.1 for Xpeira Z2.

    Installation instructions
    Prerequisites:
    • Unlocked Sony Xperia Z2
    • Fastboot drivers to install TWRP
    • Micro-USB Cable to connect your phone to your computer
    Install:
    1. Reboot to TWRP. *
    2. Wipe cache, dalvik cache, data and system.
    3. Format data to get rid of encryption.
    4. Install ROM.
    5. Install 10.0 Gapps for ARM. **
    * recommended TWRP: Post #2
    ** optional

    Update:
    • Get the latest build
    • Boot into TWRP
    • Flash the downloaded build
    • Reboot
    Note: If you don't wipe system, backuptool will reapply your modifications that support addon.d, for example: GApps.

    Reporting 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 it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    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. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    LineageOS version:
    Gapps version:
     
    Did you--
    wipe:
     restore with titanium backup:
    reboot after having the issue:
     
    Are you using--
    a task killer:
    a non-stock kernel:
    other modifications:
     
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:


    XDA:DevDB Information
    LineageOS 17.1 for sirius, ROM for the Sony Xperia Z2

    Contributors
    NeoArian
    ROM OS Version: Android 10
    ROM Kernel: Linux 3.4.x
    ROM Firmware Required: 23.5.A.1.291

    Version Information
    Status: Stable

    Created 2020-02-21
    Last Updated 2020-07-30
    22
    Hi everyone :)
    I am working on Android 11 for sony shinano currently and as some of you might know, my Z2 has a broken SIM-card slot. Hence i need your help to test if RIL works fine on this build: https://sourceforge.net/projects/ep...0/lineage-18.0-20201205-UNOFFICIAL-sirius.zip
    This build is NOT ready to use yet, but most stuff should work fine.
    Greetings, Arian.
    19
    Known Issues
    • FM Radio quality is worse then on stock, bit we can't do much without Sony's source probably. I am not working on that right now.
    • Disk Encryption: Disk Encryption is working, however not with the default password (no password). Workaround: Set password first, then start disk encryption, not the other way round!
    • You tell (with logs please)...

    TWRP
    Download TWRP 3.3.1 for Xperia Z2!
    How to install this TWRP
    • Rename the downloaded twrp image to twrp.img
    • Reboot to fastboot by holding volume up while connecting your device to your computer
    • Open a terminal and go to the directory with TWRP in it
    • Type
      Code:
      fastboot flash recovery twrp.img
    • Boot into TWRP; while the device is powered off press the power and volume down button


    A big THANK YOU to @OLDST4R for donating the Xperia Z2 to me!
    14
    Good evening,
    I'm uploading a new build to https://sourceforge.net/projects/ephedraceae/files/sirius/lineage-17.1/ (should be available witin 15 minutes, sourceforge need to mirror it)
    Since it has been a while i don't have a changelog but D6502 should be supported now and the problem about forgetting time should be resolved.
    Please give feedback about D6502 and happy flashing!
    13
    Good evening.
    I have uploaded a new build: https://sourceforge.net/projects/ep...-17.1-20200514-UNOFFICIAL-sirius.zip/download

    Assisted GPS should work now, that means a way faster fix should be available now as long as you have an internet connection, please report back about this.
    Happy flashing