yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Original Android Development] NeoArian:
Did you install the ROM with the recommended recovery and have you not mounted system before installation?

In case you are sure that's the case, can you open a shell with root access on your device (while the system is booted) and send me the output of these commands please?

# strings /dev/block/bootdevice/by-name/LTALabel | grep MODEL
# sha1sum /vendor/firmware/m*

Additional to this it would be nice if you can grab adb logcat while the device boots up (type "adb logcat > log.txt" in a shell on your computer, hold the power button pressed on your device for 3 seconds and plug your device into the computer and unplug it when it has booted).
[Xperia Z2 Original Android Development] Y-per25:
Hi

Using lineage-18.1-20210710 couple of days and never use custom roms for this device before

First of all, I have to thanks @NeoArian for this amazing build. It's so good to see z2 is still alive :cool:

All the basic functions work fine, except for a few defects that we should expect them from Lineage OS and not this one! For example:

-Notification badge number replaced with simple dots.

-Drawer apps list only sorted by name and can't sort by any different order. and other annoying stuff

For minor overheating I selected battery performance profile to Efficiency mode that makes cooler with no noticeable performance loss

Hope to this build goes official soon and get the rid of "this build was signed with public keys" message ;)

If I found any bug, I'll report here
[Xperia Z2 Original Android Development] Samir2298:
Thanks for supporting our device. I hope it gets the "Official" label soon.

The only thing pushing me back from installing it is the previously bad experience I had on AOSP roms. They always heated up the device way more compared to the stock ROM. I want to ask is that the case too with this one?
[Xperia Z2 Original Android Development] Creeper123:
Would flashing this recovery followed by the new build cause any problems with the data partition? Do I need to clear it? Can I still continue using the TWRP that you gave here?

I currently use this phone, with an older build of your custom ROM (which has a few bugs but nothing which makes it unusable), as a daily driver, so I just want to be sure.

Best regards.
[Xperia Z2 Original Android Development] Pixelado:
Hello, I wanted to say thanks for the ROM! I'm currently on day 1 of saying good bye to the stock 6.0.1 Sony ROM and tasting some LOS goodness on this old Z2.

Thanks again!

------------------------

UPDATE: the ROM works very well except for GPS. I'm not sure if it's just my phone, but apps don't seem to even try to get GPS signal, judging by the location icon not staying for longer than a few seconds on the status bar.

Yes, I've explicitly granted location access to the apps I've tested, and none can get a GPS lock.

For the record, I've disabled google's location services and scanning features.
[Xperia Z2 Original Android Development] Dred65:
Ur awesome ty. Can I dirty flash this on my d6503? Any1 know? Already on lineage 17 previous build with trwp. Tx again 🙇‍♀️
[Xperia Z2 Original Android Development] @kitokit:
Clean flash
[Xperia Z2 Original Android Development] Dred65:
Bugger. Tx for reply. I will have to look into to, how to do a clean flash.

#1 Looking at official docs

Install LineageOS on bacon | LineageOS Wiki

wiki.lineageos.org

Just need to in twrp, Factory Reset, then Format data / factory reset, then install zip via twrp?

is this right pls any1?

#2 no I think its,

wipe data, cache and system, then install zip, is this right pls?

#3 https://wiki.lineageos.org/devices/PL2/upgrade

have to use adb etc

🤷🤷
[Xperia Z2 Original Android Development] @kitokit:
I use #2
[Xperia Z2 Original Android Development] Dred65:
Ty 👍👍
[Xperia Z2 Original Android Development] Pixelado:
Wiping /data is often enough.

Some ROMs will fail to install if you wipe /system because their installer scripts look for the model number declared in places such as "/system/build.prop". I'm not saying this is the case for LOS 18.1, but knowing this will probably save you some headaches down the line.

########################

Going back on topic:

- Battery life on this ROM is surprisingly good! I can get a bit over a full day of light use out of this old phone.

- I've given up on the GPS problem and ended up enabling google's location services for the time being. Perhaps the apps I've tried to use are just too old for Android 10 (example: Cycledroid)

- I've experienced some problems related to mobile data last week, which had me rebooting or using airplane mode just to get things to load, but it was probably just my carrier being unstable.

- The camera experience can be hit-or-miss, depending on which app you use. Snap (included with LOS) is downright bad, OpenCamera is pretty good and actually uses the hardware camera button for focusing and shooting, but HDR is out of the question.

- My favorite music player is Sony's Music app, too bad it crashes on Android 10 and there doesn't seem to be a proper port (that I know of) yet. Yes, I've tried the magisk modules that promise compatibility, but no dice.
[Xperia Z2 Original Android Development] Dred65:
Ty 4 reply, did no #2 all went well. So far so good.🤞

Noted to skip wiping system next time 👍

Looking forward for official release now. Awesome work developer. ❤️
[Xperia Z2 Original Android Development] Pixelado:
@Dred65 no probs, dude.

Is it just my phone, or is the haptic feedback (vibration) from pressing the navigation softkeys really subtle/weak? I went as far as replacing my vibration motor, but the change wasn't very noticeable.
[Xperia Z2 Original Android Development] Dred65:
I can't tell much difference in the vibration but my z2 is a backup pH for me. I have realised I don't got no location data. No app can get my location.🤷 yes location toggle are on. All I installed was lineage.
[Xperia Z2 Original Android Development] Pixelado:
Yeah, GPS location is broken. It seems like any app that requests fine location (a.k.a. GPS location) instead of coarse location (a.k.a. network-based location) doesn't work. I'm still on LOS17.1 though, I haven't upgraded to 18.1 yet.

Good to know that I'm not the only one with this problem, I thought my GPS antenna was broken. The vibration problem, on the other hand...
[Xperia Z2 Original Android Development] Dred65:
👍 we must hope and believe the Dev can fix it. You can do it NeoArian!
[Xperia Z2 Original Android Development] Creeper123:
I am currently using the previous build of Lineage 17.1 by NeoArian and I installed Gapps by following the instructions on the LineageOS wiki. Wi-Fi and Bluetooth scanning are disabled but Gogle Location Accuracy is enabled. I think that fine location (so in Google Maps) also worked when the latter was off. With my setup, location works. Hopefully the developer will fix the problem for those affected.

The only problem which I have is with (possibly) SystemUI. When turning on the phone's screen, it can sometimes take a while as the lockscreen seems to be reloading. You then get the animation of the lockscreen appearing. Thankfully notifications and media controls in the quick settings are not lost.

I've also experienced a weird problem where Wifi and Mobile Data where shown as disabled on the UI but they were still active (apps could connect to the internet). This is what caused important standby battery drain in my first few days of use when I didn't know about the problem. I am unsure if Android recorded the mobile data used when the interface showed them as disabled.

Thank you NeoArian and the other people who are still using and caring for the Xperia Z2!
[Xperia Z2 Original Android Development] omaer_94:
I have D6502 ,and I have installed the latest version of this OS , and my phone can't find Wi-Fi networks anymore.

Fix this problem Or write note "this version is not suitable foe D6502".
[Xperia Z2 Original Android Development] user-001:
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.

And i have a problem of phone overheating even if the phone is performing simple task. This problem was in stock too. If anyone know how to fix that?

I tried flashing d6502 lollipop firmware but the problem is still there. and i cannot find marshmallow firmware for d6502. i remember this phone having marshmallow firmware.

and one more crucial detail, the wifi was working perfectly in previous 17.1 build. i want to solve the overheating problem so i need to figure out if it's d6502 or d6503 firmware to flash proper stock firmware.

Edit: i was able to restore the old twrp backup and my model was d6502. i will flash the new build and report the findings.
[Xperia Z2 Original Android Development] user-001:
i booted the latest lineage 18.1 build fine through LOS recovery. Sim, wifi seems to be okay the modem seems to be fine if that is what modem does.

one problem it shows my device as d6503 in device info HW app but in stock one (the original backup which i installed) it showed d6502. now i am more confused which device i really have.

i haven't tested much for overheating. i set battery performance profile to efficiency. lets hope that does the trick.

Thankyou devs for supporting this device for this long.

Edit: In attached screenshot. i just wanted to show the model number not the error. and the scrambled part is imei which i tried to hide.
[Xperia Z2 Original Android Development] Pixelado:
If you're unsure about your model: take a look at your phone's identification tag, which sits inside the microSD card compartment. Pull it out and see for yourself.
[Xperia Z2 Original Android Development] user-001:
Which file inside microSD card exactly?

The restored twrp backup showed model as d6502. But i want to double check.
[Xperia Z2 Original Android Development] Pixelado:
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:

Also, you said...

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.
[Xperia Z2 Original Android Development] user-001:
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
[Xperia Z2 Original Android Development] user-001:
Yes i did backup everything from twrp even though it was stock rom.

And i already flashed everything(for d6502) from flashtool.

For the heating issue the dev told that its the soc itself and i am not the only one having that issue.
[Xperia Z2 Original Android Development] Pixelado:
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.

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.
[Xperia Z2 Original Android Development] Creeper123:
Yeah, the SoC can heat up a lot on the Z2. I find that lowering the performance in the Battery settings helps.
[Xperia Z2 Original Android Development] Rodney242:
Hello Arian,

first of all thank you for LineageOS 17.1 (it made my Xperia great again :D). I was just wondering when can we expect an official release of lineage 18.1 ?

Best Regards
[Xperia Z2 Original Android Development] phil_87:
Hello, can you say me in the Lineage OS 17.1 for Sony Z2 give it root with magisk? My Magisk actually will not function. Please help me. thank you.
[Xperia Z2 Original Android Development] Pixelado:
I think you should try flashing Magisk v20.3 instead of the latest releases. That's how I rooted mine, the latest one wouldn't do anything.
[Xperia Z2 Original Android Development] CtrlPlusXYZ:
I have super su preinstalled on custom Rom but not staisfied how can i install magisk (uninstalling super su) D6503 on stock rom
[Xperia Z2 Original Android Development] mhasadi78:
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:

LineageOS Downloads

download.lineageos.org
[Xperia Z2 Original Android Development] Pixelado:
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.

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.
[Xperia Z2 Original Android Development] tabbeber:
AFAIK there's a difference in the init files that magisk modify and those which the phone actually load. This will probably be fixed for the next release but a workaround is described here https://github.com/topjohnwu/Magisk/issues/3636#issuecomment-859224940
[Xperia Z2 Original Android Development] @kitokit:
I'm running official lineage 18.1 on my Z2 and rooted.
[Xperia Z2 Original Android Development] Y-per25:
Is this message gone?

Trust: "this build was signed with public keys"
[Xperia Z2 Original Android Development] @kitokit:
I don't have that message on my phone..
[Xperia Z2 Original Android Development] fire_z:
Is the new build stable?
[Xperia Z2 Original Android Development] @kitokit:
So far, I didn't find any issues, I basically use my phone for calling and messaging only, no heavy apps,
[Xperia Z2 Original Android Development] phil_87:
thank you so much this version i installed it and yes that s functionally Version.
[Xperia Z2 Original Android Development] mhasadi78:
Is there a difference between D6502 and D6503 ROM files? or same file can be used for either?
[Xperia Z2 Original Android Development] Creeper123:
Did you flash the official build over your existing unofficial installation? Did everything work correctly?
[Xperia Z2 Original Android Development] @kitokit:
No. I did a clean flash to avoid any issues, that was the recommendation of the developer.
[Xperia Z2 Original Android Development] Creeper123:
I've managed to successfully install the nightly, upgrading from an unofficial build. These were the steps that I followed:

Backup important data in Android and using TWRP.

Reboot into fastboot to flash the nightly recovery.

Reboot into bootloader and:

Format cache and system

Apply update from ADB and install the newest nightly build and then MindTheGapps (make sure to choose arm and not arm64).

Reboot into Android!

Hopefully I won't have any problems because I haven't formatted the data partition. We'll see.

Naturally, as it is an official build, SELinux is enforcing and the Android security patches are up to date, as written in Trust.

I agree, this is the best choice if you can. I did not find this to be worth the hassle right now.
[Xperia Z2 Original Android Development] NeoArian:
No, you can flash the regular sirius builds on Z2 and it will install the D6502 modem firmware if your device is detected as D6502.
[Xperia Z2 Original Android Development] fire_z:
Is there a work around to make GPS work on Lineage 18?
[Xperia Z2 Original Android Development] fire_z:
FYI

The latest Lineage 18 Oct 6 build fixed GPS :)
[Xperia Z2 Original Android Development] kgursu:
Hi everyone. I encountered a problem, possibly solved before by using a method I could not find right now.

I'm using latest Canary of Magisk. While updating to the latest version, my device became unbootable. No matter how I tried, I could not run latest two new Magisk canary builds.

(Later, I saw that only 64-bit systems are given support for these canary builds.)

After flashing original boot.img with ADB, the system became bootable. After flashing manually Magisk-patched boot.image (Magisk version 23001) the device seems to be bootable, but Magisk could not show me that the kernel is Magisk-patched. Tried both ADB and TWRP methods for flashing Magisk-patched boot.img.

​

Used ADB method:

- Booted into TWRP​

- Connected device to PC​

- Run ADB commands:​

adb reboot bootloader​

fastboot flash:raw boot boot.img​

(Used updated ADB. fastboot flash boot boot.img gave me an error.)

After unsuccessful attempts, I also did try uninstalling Magisk completely by flashing latest Canary uninstall.zip, but it did solve the problem I encountered.

Any thoughts?
[Xperia Z2 Original Android Development] Pixelado:
Interesting. Gotta try that one. I'm still on LOS17 and no GPS is really frustrating.
[Xperia Z2 Original Android Development] pbgapski:
I am running official builds of lineageos 18.1 on my Z2. My setup is pretty simple, and does not include gapps or magisk. I frequently use the phone with battery saver on, with extreme savings set. The phone has been running great, with excellent battery life.

However, I have experienced launcher3 crashes with the last 2 builds (20211020 and 20211027). I have messages of launcher3 crashing, then after a while the screen goes black and phone reboots to los recovery with the option to factory reset. This may be triggered by long deep sleep periods.

In the end I had to factory reset, once with 20211020 build, soon upgraded to 20211027, where I did it another 2 times.

I reverted to the 20211013 build and have not experienced this problem again since (couple of days).

Anyone experiencing something similar?
[Xperia Z2 Original Android Development] pootler:
Hi,

I am on 18, but despite having a provider who does wifi calling, I cannot see it in any settings?

i also do not have Volte?

My previous Nokia phone ( also with lineage 18 ) provided the options

I have merely tranfererd the sim from the Nokia to the Sony - with necessary APN adjustments.

Anybody any experience with this?

pootler
[Xperia Z2 Original Android Development] Vahid0067:
how to install?
[Xperia Z2 Original Android Development] Creeper123:
The steps outlined here are more or less what I followed. I didn't follow the steps that use Flashtool.

This may also help:

I unlocked the bootloader like that:

Good luck!
[Xperia Z2 Original Android Development] NeoArian:
Neither WiFi calling not volte is supported on this ROM. If I recall correctly this device never supported WiFi calling on the stock operating system. The proprietary implementation of volte for this device does not work on recent android versions (and neither does an implementation of another device out of this era). There won't be volte and neither vowifi support for this device on LineageOS 18.
[Xperia Z2 Original Android Development] pootler:
Thank you for your reply.
[Xperia Z2 Original Android Development] saltylemondrops:
Thanks a lot for 10. Rom is so smooth. No issues so far.

One little thing only: Rom does not include advanced display settings, I mean kcal. We are able to tune RGB but not hue, saturation, value etc... Other than that, It's great.
[Xperia Z2 Original Android Development] tunasahinn:
May i see your device sources?
[Xperia Z2 Original Android Development] tazmsn:
D6502 Marshmallow baseband patch doesn't work any longer on this ROM. Any other option?
[Xperia Z2 Original Android Development] NeoArian:
All msm8974 and shinano common sources are up at https://github.com/LineageOS. The Sirius tree is at my personal github until I push it to the official repo. https://github.com/ArianK16a/android_device_sony_sirius
[Xperia Z2 Original Android Development] @kitokit:
I flashed this

https://xdaforums.com/crossdevice-dev/sony-themes-apps/port-stock-camera-nougat-roms-t3628791

When I was using this on my previous Aex pie rom, and was working.

Now when I flashed this one in this ROM, I don't see the app in the drawer, any ideas ?
[Xperia Z2 Original Android Development] maisdoiscorregos:
You try this? https://xdaforums.com/crossdevice-dev/sony/exrxths-z1-z1c-z2-z3-z3c-z3-xperia-z5-t3250139
[Xperia Z2 Original Android Development] @kitokit:
I flashed it through twrp with no errors, but I don't see it in the app drawer. Any ideas? How about you, have you tried flashing it?

---------- Post added at 03:32 AM ---------- Previous post was at 03:29 AM ----------

Still bootloops
[Xperia Z2 Original Android Development] 0LDST4R:
I noticed some problems with older flashable zips too in my Z3 / Z3C with TWRP 3.3.1 and LOS 16 / 17.1 if files will be written in /system/priv-app.

You can TRY the following procedure, but don't put the finger on me if your device explodes. ;)

Extract the zip, move the 3 folders ( CameraCommon, CameraWearableBridgeHandheldServer, SemcCameraUI ) from /system/priv-app to /system/app, then delete the /priv-app folder. Repack your new zip. Rename the zip to " modified " or " test " or whatever. Boot in TWRP, now MOUNT SYSTEM MANUALLY, then flash your modified zip. Do this twice. Now check in the file manager ( still in TWRP - advanced/file manager ) if your files were correctly placed in /system/app. Reboot and report. I had success with this procedure with other mods, which i flash after a rom update.
[Xperia Z2 Original Android Development] NeoArian:
The problem with old zips is probably that they are not designed for system as root. Since android 10 we have system as root for legacy enforced. That means system is mounted as root so the old system would be in system/system in recovery where system is still mounted at system instead of root. You could try to modify the updater-script to flash it correct.
[Xperia Z2 Original Android Development] @kitokit:
How about viper4android? Do you think it's the same case?
[Xperia Z2 Original Android Development] darknessmc:
I noticed that when trying to flash magisk module. In recovery it's /system/system that's cause infinity booting.

Btw, thank you so much for this rom?
[Xperia Z2 Original Android Development] 0LDST4R:
WHAT??? :) :) :) :) :)

Too much " system " in your post. I'm a user. :) :) :)

Joking, thanks for the explanation... :good:
[Xperia Z2 Original Android Development] maisdoiscorregos:
whatsapp videos are not playing, anyone else with this symptom? but play on other players. I just need that, so that the ROM is perfect.
[Xperia Z2 Original Android Development] Dred65:
Works. Tx so much for effort. 10/10. Succesfully gave middle finger to google ?
[Xperia Z2 Original Android Development] darknessmc:
I've this issue in stock dialer too. The call is good but when turn on speaker, the voice gone and microphone doesn't work too even if I turned of the speaker.
[Xperia Z2 Original Android Development] koraymers:
TWRP download link is dead or I can't download it for any other reason
[Xperia Z2 Original Android Development] @kitokit:
https://osdn.net/projects/ephedraceae/storage/sirius/recovery/twrp-3.3.1-sirius-20200221.img
[Xperia Z2 Original Android Development] a95i:
battery drain&no signal

hi thanks for rom but battery drain fast and no signal please slove:o
[Xperia Z2 Original Android Development] devilgloom:
Which model you flash rom ? I flash this rom for two z2 device and i have not any single problem relate to signal and battery drain. You sure your battery is health?
[Xperia Z2 Original Android Development] koraymers:
do a clean flash
[Xperia Z2 Original Android Development] sbcontt:
Thanks for keeping this old phone alive through these updates.

However, there seems to be some incompatibility between this ROM and every version of TWRP I tried. Every TWRP gave me ERROR 255: Can't execute '/tmp/updater': Exec format error

Only thing that worked for me is the LineageOS recovery provided in the nightly channel. Not having TWRP is a minor bummer (It is still way better than being stuck with the stock ROM tho). Is this the only way?
[Xperia Z2 Original Android Development] Vahid0067:
gps isnt work in 18.1 os
[Xperia Z2 Original Android Development] kgursu:
Who did this mod? Could we find similar modded versions anywhere?
[Xperia Z2 Original Android Development] Khalid47:
what features do i lose if i flash this?