yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] Flounderist:
Give a try to 3.0.2.

Make a clean flash and backup before wiping data.

If flashing goes wrong, it won't harm your device.

Latest option, reflash last stock firmware and restart from scratch. Keep bootloader unlocked.

---------- Post added at 07:09 PM ---------- Previous post was at 07:07 PM ----------

Clean flash required?

EDIT: Silly me. Oreo 8.1 requires specific Gapps.

I downloaded some unofficial OpenGapps from https://cloud.kenzoroms.club/?dir=opengapps/20180106/arm

Wiped cache, dalvik and data in TWRP and flashed ROM, Gapps and latest Magisk for root.

On reboot I had tons of FC during setup, it could be due to Gapps, in doubt try some different ones like

https://androidfilehost.com/?fid=817906626617953520 or

https://drive.google.com/drive/folders/1aHAWTK5qmsD7r18CRmiCTaB7Bkan0ctX

If setup stucks at "verifying information" tap back to wi fi section and restart setup.

Once booted, ROM is fine, even better than 8.0 one.
[Xperia Z Original Android Development] kebgo23:
Ok so there is newer version i try this one.i will download stock rom first
[Xperia Z Original Android Development] Daedroza:
Though I don't support anything else than OpenGApps, you could use these: https://xdaforums.com/android/software/app-minimal-gapps-gapps-lp-20150107-1-t2997368

Or simply download any OpenGApps package and open it using a Zip program.

Open "installer.sh" and change req_android_sdk & req_sdk_version to 27 and 8.1.0
[Xperia Z Original Android Development] MAHDI.TX:
this time I wiped the Cache/Dalvik but result was same as before :(

How about using Titanium Backup ? If I clean install the Rom and use Titanium Backup, my launcher and substratum settings and ... will be as the same as my current Rom ?
[Xperia Z Original Android Development] samhhmobil:
:confused: Hhhhmmmmm... for me it works as it should, ...

Make a NAND-Backup in TWRP (for reinstall later, if necessary) , and try to make a clean new fresh install, to see if that works. Maybe, there is any kind of bug in the hardware? (I have two Z's, and the behaviour of one of it sometimes is even strange...) The device is quite old, and some minor hardware bugs are to expect from time to time.

No more ideas yet... :(

samhhmobil
[Xperia Z Original Android Development] eichenbast:
vendor update

Hi. I flashed lineageos 15.1 on my Xperia Z with Jelly Bean OS - do I really need a "vendor-update" ? Now I have lineage-15.1-20191108-nightly-yuga-signed.zip running on the device. I can see in /system/vendor/build.prop: "ro.vendor.build.date=Fri Nov 8 00:002:57 UTC 2019" . Does that mean, it is not necessary to update bootloader/radio (to Lollipip 5.1.1)?

Thanks for answering.
[Xperia Z Original Android Development] Flounderist:
ROM is just updating your boot and system partition. The other ones are still the same you had on JB.

I would have updated to latest official firmware before unlocking the device.

I am not sure LP firmware to be mandatory to get everything working BTW.
[Xperia Z Original Android Development] samhhmobil:
YES! You should do so (updating firmware to the latest from 5.1.1) before flashing/running LOS.

samhhmobil
[Xperia Z Original Android Development] eichenbast:
Unfortunatly the Lolipop-binaries are not provided from Sony (https://talk.sonymobile.com/t5/Android-5-x-Lollipop/Xperia-Z-C6603-Lollipop-Binaries/m-p/1125257).

So far no problems with JB-binaries. But maybe a little bit more security with 2015- binaries, cause I read, that most of the security issues are vendor-based.

I think, for that reason I will not have an alternative, and flash the 5.1.1-rom ... annoying. (Or flah a CAF based rom and than again LOS? )

I am a beginner ...

What do you think?
[Xperia Z Original Android Development] eichenbast:
For all, who want to go temporarily back to stock: the only solution for me was flashtool 09.18.6, flashing Android 4.2.2.
[Xperia Z Original Android Development] samhhmobil:
...and after that, flashing - even with flashtool - the latest stock rom Android 5.1.1 (which includes latest firmware, radio fw for example...)

samhhmobil
[Xperia Z Original Android Development] eichenbast:
"Can't open content at the moment": that is shown with a sand glass, when I open "Downloads". I can download files/photos/etc. but the "Downloads" - App does not show anything. Nevertheless, the content appears in the "Download"-file of the internal storage. I do not have that problem (for example) with LOS from 17.10.2019.

Anybody else with the same problem?
[Xperia Z Original Android Development] eichenbast:
To make it more clear: no problem with 15.1	lineage-15.1-20191108-nightly-yuga-signed.zip (and before!) . But with updating to lineage-15.1-20191115-nightly-yuga-signed.zip "Downloads" does not work correct: it appears: "Can't open content at the moment": that is shown with a sand glass. Downloads are possible but u will see the message: "android.process.media has stopped". (U will find the downloaded content in the "Download" file of the inner storage.)

No difference in lineage-15.1-20191121-nightly-yuga-signed.zip , the problem continues.

Anybody else with that problem?

Edit: works again with the new build: lineage-15.1-20191129-nightly-yuga-signed.zip . Thanks ! Problem solved.
[Xperia Z Original Android Development] Diatomix98:
Was fooling around with this ancient device and came across another 8.1 rom which is updated on a weekly basis and maintained by Daedroza as well. Sorry for hijacking the thread, I just wanna share this out since this device has got very limited choices of ROMs to play with nowadays. It's the Mokee Rom, no idea why it hasn't got a thread here. This is the download link.
[Xperia Z Original Android Development] jamesthedisciple:
Although Mokee is generally a good rom, I've used it before, it does have one huge drawback - it "phones home" and you need a special script run in root (which is available on the forums here (Moto x 2014), I have a copy also) to disable them.
[Xperia Z Original Android Development] ISPG:
Hi:

I have seen that the last Nightly is from February 21, and although several changes appear for the next, there are no new ones. Normally, each version was weekly, but now they are being delayed. Any forecast for the next one?

Regards,
[Xperia Z Original Android Development] ProtonCar:
Hey everybody, same here...still using this device as a daily driver...are there more updates to come or would you recommend using [ROM][FINAL][9.0] LineageOS 16.0 for Xperia Z ?

Regards
[Xperia Z Original Android Development] esver:
I have build from the source (like my build of LinegeOS 16.0).

My build is here : https://drive.google.com/drive/folders/1PwFalC5CzlsLwOs8bp9FrQZJb4qOQapX

I've not tested this build, the only thing I have done is a script that will normally build from the official source every Thursday and upload to my drive.

If nothing change at https://download.lineageos.org/yuga/changes/ I will stop my script.

For the moment, the only thing I want is a rom with the last security update. I do not plan to do anything more than build as it is.

It's because I found that lineage-15.1 is dead : https://github.com/LineageOS/hudson/commit/4838aba0b3e9a71f0e7e07f9901c6ed81ea6fd80
[Xperia Z Original Android Development] ProtonCar:
Hi,

so I flashed your ROM yesterday. Dirty flashing didn't work - all of my apps crashed. I reflashed the ROM (clean installation without wiping system) and now everything seems to work. I'm still setting up my privacy features (Xprivacy Lua and PMP). I'll post if I find any issues. Until now everything seems to work like a charm. ROM even seems to be a bit snappier than the official one (could be a result of clean installation as well).

Keep on with your good work!!
[Xperia Z Original Android Development] esver:
Thank you for your feedback.

I'm waiting to see if the April security update will be backported to the source and if it is, I will switch my phone to this release too.

I went to 16.0 because I did not understand how to compile (make breackfast a first time, then as the error is normal recover the proprietary blobs on my phone and redo a breackfast)
[Xperia Z Original Android Development] ProtonCar:
Thanks for providing this nice ROM. There's just one issue I was wondering about: In the "official" release I was able to run a VPN app and route all my traffic throug VPN. In your release I cannot do this - thus VPN App is connected. None of my apps "sees" internet.

I googled a little and found this issue:

https://piunikaweb.com/2017/12/21/google-fixes-android-8-1-wifivpn-issue/

Could it be that in the "official" port this issue was already solved and in your port it is still missing? Are you able to use VPN connection?
[Xperia Z Original Android Development] esver:
I build it with the instructions available at https://wiki.lineageos.org/devices/yuga/build

From what I understand, I use the official source and I don't think anything is missing. I've not tested the 8.1 but on 9.0 (lineage 16.0) the VPN is working for me (on gsm).

It seems to work on wifi but as I am confined (I'm in France) and the VPN is from my home, I can not test on another wifi connection.
[Xperia Z Original Android Development] ProtonCar:
Hi, thanks for your reply. I'll try and download your LOS16 ROM today. I'll give you an information as soon as I was able to test VPN.
[Xperia Z Original Android Development] truefriendcz:
esver... Do you can please patch for kernel to SELinux to permissive? (flash img for TWRP)
[Xperia Z Original Android Development] esver:
I you can explain how to do it and revert, I'll try to add it to my script.
[Xperia Z Original Android Development] TrueFriend-cz:
ok, but on Kernel layer. Not on " (su -> setenforce 0)" layer, and this script layer...

https://github.com/evdenis/selinux_permissive/releases

...It is not solving problem.

I want for use app Linux Deploy and for it i must have SELinux Permissive on kernel layer.

Sources: https://github.com/meefik/linuxdeploy

Product: https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy&hl=cs

If i not have SELinux Permissive ... i have this problem...

https://github.com/meefik/linuxdeploy/issues/1182

and more (from other issues).
[Xperia Z Original Android Development] truefriendcz:
Any changes news?
[Xperia Z Original Android Development] esver:
I'am not a developer, I only build as https://wiki.lineageos.org/devices/yuga/build

To have the SE Linux permissive, I need the step by step procedure that you use to build your version and a step by step procedure to be back to original rom.
[Xperia Z Original Android Development] samhhmobil:
Hello out there,

does someone has the latest NIGHTLY yuga build (20200221 AFAIK) from the official 15.1 LOS distribution saved for download? I tried to get it today from lineageos.org, and the device is no longer present there.

Sigh...

Thanks in advance,

samhhmobil
[Xperia Z Original Android Development] Zerikwan:
Here you go, pal.
[Xperia Z Original Android Development] samhhmobil:
Thanks, you're great. I did install it, and it runs clean!

:)

samhhmobil
[Xperia Z Original Android Development] ze7zez:
lineage microg

Good news for Oreo users.

Yuga received a new unofficial lineage 15.1 with security_patch=2020-08-05.

https://download.lineage.microg.org/yuga/
[Xperia Z Original Android Development] anonym6x6:
I'm actually on LOS 14.1. Is a Dirty Flash ok? Or is a clean Flash recommend? Or how to Upgrade?

14.1 is a lil bit slowly for Facebook, Youtube.... I will use the Xperia Z daily For Facebook, Youtube and on some days for make pictures. But when i unlock my screen the Phone is ****ing slowly. And i have a lot of RAM and space free. Sometimes there isn't a lag. I don't understand why.... Now i will try this Version. LOS 16 slow. LOS 14.1 is better, but slow and lag too. I hope LOS 15 is the solution for my problem :D
[Xperia Z Original Android Development] cschen:
Don't know if any body still interested in 15.1... I have managed to build my first LineageOS image, to make a (probably) FINAL version of LineageOS 15.1 @ Xperia Z, with security patch level of 2021-10-05. (Below screenshot in Chinese)

If anyone would like to test it, here is the file:

lineage-15.1-20230715-UNOFFICIAL-yuga.zip

md5: 53aa89e86dab2eb7ff470daa492e9a07
[Xperia Z Original Android Development] Nexonian:
When you try to start Firefox, the phone reboots. This was also the case with the last official 15.1 release. Any idea?

Edit: A documented bug in LOS: https://github.com/mozilla-mobile/fenix/issues/5663#issuecomment-565834747

Maybe you can implement the patch which seems to be available?
[Xperia Z Original Android Development] cschen:
Tried merging this patch and successfully built a new image, however after flashing the phone reboots to fastboot after minutes of logo animation in the first run. Guess the patch not compatible with older versions of LineageOS and/or APQ8064, as you may notice the patch commit is against LineageOS 17.1 and MSM8974. Maybe you can check if the bug persists in later versions of LineageOS builds?
[Xperia Z Original Android Development] Nexonian:
The bug is fixed in the 18.1 build by @tarkzim. This is the most stable version I have found so far.
[Xperia Z Original Android Development] cschen:
Okay, I finally made a dirty hacked (being claimed by ninja in kernel string:ROFLMAO:) image which is bootable. Testing with Firefox 116 seems fine. The image follows:

lineage-15.1-20230806-UNOFFICIAL-yuga.zip

md5: afea0d190f5d5bd86a3892d10045cbfe

==

EDIT: a not-so-DIRTY image is available now. Feel free to test it; if everything works fine I will remove 0715 and 0806 images in September...

lineage-15.1-20230820-UNOFFICIAL-yuga.zip

md5: cac8f06ae84a6f6598e502dabe785b05

The patched kernel source is now available at GitHub.
[Xperia Z Original Android Development] Trunars:
Can you do for ZL as well.
[Xperia Z Original Android Development] cschen:
Maybe, however I do not own an actual ZL device so testing is impossible. If you would like to take the risk flashing an untested image, I can try to build one this weekend.

EDIT: An image is now posted in the ZL forum.
[Xperia Z Original Android Development] raditzava:
Can you build lineage 17.1 for xperia z ?
[Xperia Z Original Android Development] cschen:
After my last (20230820) build my building machine (a rather old 6th-gen i7k) becomes somewhat malfunctioned, randomly showing ANOMALY: meaningless REX prefix used error, which broke repo and brunch procedures in WSL2 environment. However the daily Windows task still works fine, and I do not have time to reinstall Windows or build a new machine. So I shall postpone further LineageOS building for a while.

Although I did not build 17.1, I did build a 18.1 image (before the 0806/0820 kernel patching). Check the 18.1 thread for details.
[Xperia Z Original Android Development] raditzava:
Wew thanks
[Xperia Z Original Android Development] raditzava:
Can you make SE linux enforcing??
[Xperia Z Original Android Development] kebgo23:
In returning to stock rom is there a flashable file of stock rom or i really need to use ftf?
[Xperia Z Original Android Development] kebgo23:
who has screenshots of this rom? specially the messaging part :)
[Xperia Z Original Android Development] Flounderist:
Use flashtool.

---------- Post added at 10:50 AM ---------- Previous post was at 10:50 AM ----------

Screenshot option is not enabled yet.
[Xperia Z Original Android Development] BeatB:
Yes Screenshots are not mentioned in any settings.

But pressing volume down + power button will do a Screenshot.

Gesendet von meinem Xperia ZL mit Tapatalk
[Xperia Z Original Android Development] kebgo23:
is anyone tried to flash this using 3.0.2?
[Xperia Z Original Android Development] kebgo23:
i successfully install this using 3.0.2.. does anyone try this on games like AOV and mobile legends? before i use LOS14 mobile legends is bit laggish..

Thanks..smooth rom.

---------- Post added at 01:36 PM ---------- Previous post was at 12:49 PM ----------

how to enable root permission on oreo rom?
[Xperia Z Original Android Development] Flounderist:
Flash latest Magisk. I am happy you were able to upgrade. Try upgrading twrp now. Maybe it works.
[Xperia Z Original Android Development] MAHDI.TX:
From where I can get the OpenGapps for Oreo 8.1 ? The micro pack

Like this ?

this installer
pkg_names="pico nano micro";

# Installer Name (32 chars Total, excluding "")
installer_name="Open

GApps micro 8.0 - ";
req_android_arch="arm";
req_android_sdk="27";
req_android_version="8.1.0";

It's OK ? I downloaded 8.0 pack from http://opengapps.org/ and edited "installer.sh" like you said

Flash Magisk(v15.2) before the first boot or after ?

I want use twrp 3.0.2
[Xperia Z Original Android Development] OracionSies:
How do I take screen/snap shots!?? I checked couldn't find any options to enable the function for screen/snap shots!??
[Xperia Z Original Android Development] Flounderist:
Flash it whenever you want.

---------- Post added at 10:18 PM ---------- Previous post was at 10:17 PM ----------

As per [MENTION=2987761]BeatB[/MENTION] suggestion, power+volume down did the trick.
[Xperia Z Original Android Development] kebgo23:
is twrp included on this rom?
[Xperia Z Original Android Development] Flounderist:
You should just reboot recovery to discover it :silly:
[Xperia Z Original Android Development] OracionSies:
Thanks bro, it worked!! :laugh::good:
[Xperia Z Original Android Development] S.N.A.P:
anybody facing the same problem as I am ???

the rom seems to be not as smooth as LOS 15.0 and also the device is warm all the time,either I only use wifi or keep it idle
[Xperia Z Original Android Development] unrealRage:
Everything is fine for me.No heat problems,ROM is smooth and battery life is okay.Make sure you're running TWRP 3.1.2 and that you've clean flashed.

But,does anybody know how to turn off lockscreen shortcuts?I can't seem to find an option.Maybe it's not added yet?

And also,when you search for an setting in settings search bar and then you open some search result,settings crash.

Overall,it's stable for daily driver.Thanks dev!
[Xperia Z Original Android Development] Simon G.:
Where is the twrp for the Rom. ??

Gesendet von meinem EVA-L09 mit Tapatalk
[Xperia Z Original Android Development] Ryan.XM:
If U found the bugs, tell me okay.

I'll be wait to try this rom. Thanks.
[Xperia Z Original Android Development] Hossein777:
I installed this ROM and used it for 3 days, I have not seen any problems yet, everything is fine. The search in the settings is good, no problem,

Just the camera has a bug.

I first wiped everything, then installed rom, then I installed gapps 8.1 and twrp 3.2.1.

Now everythings is fine,

For root:

I installed magisk apk in first boot and then in recovery mode I installed magisk v15.2 zip.(for twrp 3.2.1 volume+ in Sony logo)
[Xperia Z Original Android Development] Zerikwan:
no built in twrp, buddy. Use TWRP 3.2.1 by CyberWalkMan. Google it, you'll find it.

where did you get gapps 8.1?
[Xperia Z Original Android Development] unrealRage:
Strange.I must've done something wrong then.I have a video bug on every camera app.Video records but you can't stop recording and UI becomes unresponsive.

Also,settings when searching don't fc anymore.
[Xperia Z Original Android Development] Flounderist:
I posted 3 different links for unofficial 8.1 Gapps a few posts above. Dev also posted some info on how to edit official 8.0 gapps to work on 8.1 ROM.
[Xperia Z Original Android Development] kebgo23:
i am already using it and update the twrp thanks men
[Xperia Z Original Android Development] Simon G.:
Why not the Files in Startpost.

1. Right Twrp

2. Right Magisk Files.

Its very easier for Users as every every get ask and ask and ask the same Questions here.

How i flash it.

Where Recovery's

How Root bla bla bla etc.

Sorry

Gesendet von meinem EVA-L09 mit Tapatalk
[Xperia Z Original Android Development] Hossein777:
I tested the camera again and again. The video recording has a bug and can not save the video or stop the camera program.
[Xperia Z Original Android Development] Flounderist:
In post n°2 you can check what is working and what is not. Camcorder is one of the (few) bug on this ROM.

My main concern would be SELinux policies fixed.

If needed, you will find a good V4A porting for xperia devices that is working very well on this ROM in the mod section of the forum.

:highfive:
[Xperia Z Original Android Development] majedjahjah:
Hidden WiFi not working. After add my hidden WiFi my connection still (save connection)!!!! this issue happened just with hidden WiFi users. please help?
[Xperia Z Original Android Development] OracionSies:
I'm facing some issues while flashing the gapps. I tried/followed both Daedroza & Flounderist gapps links & methods but always ends up with failure.

Step1: wipe data, devlink & cache

Step2: flashed LS 15.1

Step3: flashed gapps but fails with an Error# 40

Sry I couldn't find the gapps logs to share the error
[Xperia Z Original Android Development] Ryan.XM:
About twrp, are u instal twrp flashable zip?

Sory for my bad english.
[Xperia Z Original Android Development] Hossein777:
twrp 3.2.1 is a flashable zip file and you have to install it in recovery mode. There is no other way to install it except recovery mode.
[Xperia Z Original Android Development] Flounderist:
I did the same steps and succeeded using gapps in first link I provided.

Error 40 should be due to a wrong package. Are you sure you are flashing the latest build?
[Xperia Z Original Android Development] Hossein777:
For gapps 8.1, I used this link, it work for me, no problem.

Oreo Base Gapps package for 8.1.0 (arm):

https://xdaforums.com/redmi-note-3/development/gapps-opengapps-t3720449
[Xperia Z Original Android Development] OracionSies:
Yes, I flashed latest LOS 15.1 ROM without any errors.

But for some reason gapps fails to flash for me.

I tried the gapps from the link provided by Deadroza and it did go through but got numerous FC on the first boot and unable to proceed as it keeps closing. Even tried rebooting the device once more n cleared cache n reflashed gapps but didn't help.

So tried his method of downloading any opengapps n by opening installer.sh and changing req_android_sdk & req_SDK_version to 27 & 8.1.0 but this didn't work and failed to flash.

Finally, I tried yours gapps from both the android file host & google drive links and they failed to fash too. But i didn't try it from the kenzoroms link since you have mentioned that you got tons of FC with the gapps from kenzoroms.

Will try again today & update you.

Finally found the error logs. Attaching them if it helps.
[Xperia Z Original Android Development] OracionSies:
Thank you, will try and update you. :)
[Xperia Z Original Android Development] Flounderist:
Solution is provided in the log itself.

Wipe system partition before flashing gapps.

It looks like your current gapps package is not compatible with OpenGapps.
[Xperia Z Original Android Development] Ryan.XM:
Ok thanks.. I try this rom but my device very heat. Maybe I wait this rom more stable for my device. Hehe

Waiting update..
[Xperia Z Original Android Development] OracionSies:
Thank you again bro for going through the logs and finding out the issue for me.

I have been always doing just twrp default factory reset. My bad.

So, I need to select the "System" under the advanced wipe option in twrp & wipe them before flashing the ROM & gapps!??
[Xperia Z Original Android Development] kebgo23:
does anyone try to down the adreno gpu drivers in magisk?? how to improve ram usage of this rom?any suggestioms?
[Xperia Z Original Android Development] Flounderist:
Wipe dalvik, cache, data and system, then flash ROM and gapps. If needed add magisk for root.

Setup should give some FC anyway, but keep them skipping or in case tap some steps back.