yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Original Android Development] haktug:
Sound modes (dolby atmos, XZ2 sound mode etc.) over TWRP except Magisk 20.4. Nothing was loaded. This issue is only present in lineageos and crDroid system. WHY IS THAT?
[Xperia Z3 Original Android Development] DoktorDe:
Why is it not possible to root LOS 17.1 any longer using Magisk? Updating my z3 in Dec. '20 root access vanished, since then it is not possible to root it again - neither from the app, nor from TWRP (3.3.1). Even direct patching a firmware file ends with an error. SuperSU does not work either. Any workaround known?

Many thanks!
[Xperia Z3 Original Android Development] araujo99:
So, do I have to turn on the device first before flash recovery?
[Xperia Z3 Original Android Development] araujo99:
not...
[Xperia Z3 Original Android Development] haktug:
of course it is :cautious: If the problem is with you, what can I do
[Xperia Z3 Original Android Development] cmhdream:
you must try.. Because I see it in the internet.. & I did it.
[Xperia Z3 Original Android Development] Mahmaod Rad:
Hi there

I will ask about z3 dual what is last build and link for it
[Xperia Z3 Original Android Development] araujo99:
1. flash rom .291 stock

2. flash by flashtool kernel .575

3. flash fastboot flash boot boot.img extracted linageos

4. flash fastboot flash recovery "recovery- filename.img"

5. off, turn it on, green led will vibrate, press volume down, led turns blue

6. logo twrp
[Xperia Z3 Original Android Development] araujo99:
lineageos installed. now how to get root access? magisk or suprsu does not work.
[Xperia Z3 Original Android Development] haktug:
you must flash magisk 20.4.
[Xperia Z3 Original Android Development] nikapos:
magisk 20.4 certainly works. try renaming the magisk apk file to .zip and flashing it with twrp. then install the apk file to have the manager on your device
[Xperia Z3 Original Android Development] Mahmaod Rad:
Ues magisk 20.4 for root access it tested and working
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
LineageOS 18.1 based on Android 11

LineageOS 18.1 just went official for the Z3 (D6603)!

Z3Dual won't be officially released any time soon, but I made a test build ans would be happy to get some feedback from you.

ROM:

https://hidrive.ionos.com/lnk/ODgqEhd8

MD5: c94597a72188540e207857657cd05ae2 for lineage-18.1-20210715-UNOFFICIAL-z3dual.zip

Recovery (LineageOS recovery for Z3dual):

https://hidrive.ionos.com/lnk/QpAKEmxp

Sources:

GitHub - LineageOS/android_device_sony_z3dual

Contribute to LineageOS/android_device_sony_z3dual development by creating an account on GitHub.

github.com

GitHub - LineageOS/android_kernel_sony_msm8974

Contribute to LineageOS/android_kernel_sony_msm8974 development by creating an account on GitHub.

github.com

What to expect:

No major issues. Especially wifi should work fine.
[Xperia Z3 Original Android Development] Pyro Phoenix:
Hi there, I'm on lineage-17.1-20210708-nightly-z3-signed. Having issues with mobile data / wifi:

When turning off screen, after some time WhatsApp stops receiving messages / WA Web is unable to contact phone.

Seems like wifi

and

mobile data are going into sleep mode.

How to stop this behavior?
[Xperia Z3 Original Android Development] Mahmaod Rad:
Ok I'll flash the new build for z3dual and i will but my phone number on telegram to tell me what to do

Or this https://t.me/Mahmaod_Rad And i will start backup to flash it and download it (my internet speed is low 220 kps ) and last thing can you upload the rom in another site because hidrive does not support Resumption like drive or mega and thinks for the build
[Xperia Z3 Original Android Development] mndo:
Hello,

Just updated my Xperia z3dual from LineageOS 17.1 version (20210331) on which I had major issues with wifi to this version and wifi is working fine \o/

The only bug i found until now is that it no longers recognizes my SD card - it wants to format it. The card is just fine because I installed the rom from there and if i boot into recovery mode I can navigate it without issues.

Please pointers on how to sort this out?

Thank you again for your great work! You just breathe new life on this device.

Best regards.
[Xperia Z3 Original Android Development] Mahmaod Rad:
Dose root work with you
[Xperia Z3 Original Android Development] mndo:
I did not tested with SuperSu and Magisk does not appear to be working.

I tried both methods: by renaming the apk to zip and flash it from recovery and by patching the boot.img and flash it but the app always says Installed: N/A.

In the meantime I found another bug on the ROM. The default camera does not even open but OpenCamera works just fine.
[Xperia Z3 Original Android Development] Mahmaod Rad:
I tried evrey magisk reles 21 21.4 23.0 non of them worked and for camera app worked fine with me so it a rom proprom
[Xperia Z3 Original Android Development] nikapos:
20.4 definately works
[Xperia Z3 Original Android Development] Mahmaod Rad:
20.4 dose not support android 11 r

And i tried to flash it it falid with unable to mount vendor
[Xperia Z3 Original Android Development] nikapos:
sorry, i thought u were talkong for los 17.1
[Xperia Z3 Original Android Development] Mahmaod Rad:
It normal becaues los 17.1 nees 20.4 but on los18.1 i cant root at all right now i trying evrything
[Xperia Z3 Original Android Development] nikapos:
i m on 23 on android 11 on a different device...
[Xperia Z3 Original Android Development] Mahmaod Rad:
Hi i found on GitHub this post that somebody have the same thing and was able to fix it so does any one try what he did ( and i will try to do it ) and if anyone made it just upload the boot.img to fix magisk root on los18.1 https://github.com/topjohnwu/Magisk/issues/3636
[Xperia Z3 Original Android Development] Mahmaod Rad:
Hi everyone i have great news i read all GitHub post and found magisk that work with los 18.1 and i tested it and worked 😁😁😁
[Xperia Z3 Original Android Development] Mahmaod Rad:
And the link for it https://github.com/topjohnwu/Magisk/files/6330986/Magisk-v22.1_mod_sony.zip
[Xperia Z3 Original Android Development] mndo:
I tested with version 23, and the patch works and magisk is installed \o/
[Xperia Z3 Original Android Development] araujo99:
I already tried and it doesn't work
[Xperia Z3 Original Android Development] Mahmaod Rad:
For which one 17.1 or 18.1 ?

Use this attached one for 18.1 and if 17.1 ues 20.4 or attached one https://github.com/topjohnwu/Magisk/files/6330986/Magisk-v22.1_mod_sony.zip
[Xperia Z3 Original Android Development] araujo99:
what was it! thank you guys! but it was hard to understand!
[Xperia Z3 Original Android Development] Phenom23:
Magisk 23 is very buggy in my experience, i have downgraded to 20.4 (although for you it still doesnt work)
[Xperia Z3 Original Android Development] Mahmaod Rad:
Please read up because we found fix for it
[Xperia Z3 Original Android Development] burn_the_house:
I'm on 18.1 and tested the Magisk 22.1 Sony mod and it's not working, also the same for 20.4....
[Xperia Z3 Original Android Development] Mahmaod Rad:
What happened to your phone how magisk not work
[Xperia Z3 Original Android Development] burn_the_house:
Fresh install of Lineage 18.1 and tried several magisk versions but no luck, so I went back to v17, this one is ok only Magisk 20.4 works but it's fine for me!
[Xperia Z3 Original Android Development] Mahmaod Rad:
What happened to your phone how magisk

On lineageos 18.1 only recovery that's work is magisk sony mod otherwise not

And on 17 last magisk will work is magisk 20.4
[Xperia Z3 Original Android Development] will734:
FM Radio worked!! everything seem perfect !! but D6653 show d6603 ?
[Xperia Z3 Original Android Development] OMAKE:
Hm. Fm radio works but scan is not.

I need to switch freqs manually and add favorite.

How to fix?
[Xperia Z3 Original Android Development] Androi100:
ROM Lineage oficial 2021/06/24 Sony z3

LineageOS Build Archive
[Xperia Z3 Original Android Development] nhicko95:
can someone upload the rom elsewhere ie: mega or androidfilehost seems like i cant download it on hidrive please :(
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
Thank you for that feedback. What is the issue with hidrive?
[Xperia Z3 Original Android Development] nhicko95:
im just getting 10 to 30 kb/s download speed even i use a vpn i badly needed the rom now since the one idownload is corrupted file please help me :crying::crying:
[Xperia Z3 Original Android Development] Wael othman:
No sim

Why when i flash this rom or any other rom the sim card is not working and no imei ..befor 4 month i used carboon rom and sim card is worked then i flash sony rom 6 marshmello and then sim card work then any rom the sim not work
[Xperia Z3 Original Android Development] nikapos:
with flashtool you press the button "xperifirm" and download the lateste official firmware for your device. then you proceed with flashing the twrp
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
I have now uploaded the ROM zip to an alternate file hoster, see post #2.

If you have an instable or slow internet connection, please use the provided md5 checksum to verify file integrity before flashing.
[Xperia Z3 Original Android Development] Kurotaku:
Vibration don't work

Hey, the OS is great but there is one anoying thing that I don't understand.

Whatsapp, Signal and my Alarm Clock vibration doesn't work when the vibration is enabled.

I downloaded a function test app and there the vibration worked.

Can anyone tell me please a solution for that issue?

Nevermind It was disabled by default in the options and didn't knew that notification vibration can be disabled.

Only the alarm clock vibration doesn't work because its not a notification :(
[Xperia Z3 Original Android Development] nikapos:
i d like to test this rom but z3 is still my daily driver, so i d like some feedback from those who have tried it. i m on carbon 6 (oreo) and quite happy with this but a newer faster rom is always tempting...
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
Please be reminded not to use the last build as a daily driver, mainly because

Deactivated SELinux --> missing security

No Encryption --> missing security

Thermal issues (unverified)

[MENTION=8746471]NeoArian[/MENTION]: I just started to build now from the official LineageOS-17.0 revision repositories , mainly with just cherrypicking your ten-shinano commits, will that work? If so, shall I upvote these commits on gerrit?

Does it make sense already to go to SEPolicy Enforcing mode already, or are there still issues with the main LineageOS sources which prevent that anyways?

Stupid question: Does anybody know what [DNM] stands for in commit headlines? I guess it's not "Dialogue Not Monologue":silly:, something like "temp"?
[Xperia Z3 Original Android Development] NeoArian:
I have not updated the ten-shinano topic but I will within the next hours. Encryption worked last time I tested iirc. On enforcing I didn't got the camera to work yet. DNM stands for do not merge, that's stuff just for bringup. As always I appreciate code review/verified on Gerrit, of course also -1 if something doesn't work :svetius:
[Xperia Z3 Original Android Development] dhacke:
Can you inform us when the ten-shinano is updated and merged?

Then i will build linageOS 17 on my machine too.

Do we need a new twrp or is the current enough for lineageOS 17?

PS: Very nice that we have a working encryption now.
[Xperia Z3 Original Android Development] NeoArian:
The topic is updated but not merged. You can see that yourself on Gerrit. You need a new twrp.
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
Highly appreciated, thanks a lot to share that!

I do not even manage to build with enforcing at all.:

libsepol.context_from_record: type sysfs_disk_stat is not defined
libsepol.context_from_record: could not create context structure
out/target/product/z3/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp: line 1001 has invalid context u:object_r:sysfs_disk_stat:s0
Error: could not load context file from out/target/product/z3/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp

And that seems to originate from here: device/qcom/sepolicy-legacy/legacy-common/file_contexts:

# Block/storage
/sys/devices/msm_sdcc\.[0-9]/mmc_host/mmc[0-9]/mmc[0-9]:[0-9]+/block/mmcblk[0-9]/stat u:object_r:sysfs_disk_stat:s0
/sys/devices(/platform)?/soc(\.[0-9])?/[a-f0-9]+\.sdhci/mmc_host/mmc[0-9]/mmc[0-9]:[a-f0-9]+/block/mmcblk[0-9]/stat u:object_r:sysfs_disk_stat:s0

And I tried to fix that with something like this patch. (Obviously not exactly this because LineageOS now seems to use the AOSP platform/system/sepolicy repository if I look at the default manifest.)

How do you manage that in LOS16?
[Xperia Z3 Original Android Development] mister_r:
Running the latest version of this. Works ridiculously well. GPS can now be made to work with Pico G-Apps instead of Nano, so for the Google-haters, like me, this is even better :)
[Xperia Z3 Original Android Development] nikapos:
briefly tried it, quite snappy, minor bugs (bet percentage not showing on status -as stated earlier, camera does not launch with dedicated button etc. The recomended TWRP is perky as well. It will definately become my daily driver as soon as it passes testing phase! Thnx [MENTION=9647158]ronidianpatisa[/MENTION] and [MENTION=8746471]NeoArian[/MENTION]
[Xperia Z3 Original Android Development] jmpcarceles:
Do not forget [MENTION=838709]Mr.Tom_Tom[/MENTION], :svetius:
[Xperia Z3 Original Android Development] Rooted_Ansh:
My question may sound dumb.. but I just want to know if this rom could also work on Xperia z3+ (E6553) ?
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
E6553

Definitely not, sorry
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
Update

Just to give an update on what I have been working on the last days. I did have very little time to spend on that project, but at least there's some progress.

My goal right now is to build Lineage 17 based on the latest sources, with SE Policy enabled and with the "ten-shinano" commits figured out by NeoArian. Currently I am struggling that the recovery image gets too large during the build process ("error: +out/target/product/z3/recovery.img too large (17467392 > 16777216)"), I could work around that because we do not need that anyways as we are using TWRP, but I'd like to understand the root cause. At least it looks promising that I am getting close to a successful build. Then there might be a lot of debugging afterwards, and I must admit thet I have little to zero experience with SELinux.
[Xperia Z3 Original Android Development] NeoArian:
Well that means that the generated recovery image is larger then the recovery partition size. You can work around it like that: https://review.lineageos.org/q/I0d1cd50fb96a6936f35fa94f30bb8ac2724d37fb

I am already doing that for TWRP anyway and support to our custom Sony init for lzma has also been added: https://review.lineageos.org/c/LineageOS/android_device_sony_common/+/252923

Our sepolicy is done in a really bad way (not by me, but I'm too lazy to redo it) since neverallows are disabled for our legacy platform anyway you can pretty much allow everything. Without changes it already booted for me but camera and some other stuff was been broken I guess.
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
Cool, I didn't think it would be that easy with LZMA, I'll try that for my next build.

Regarding SEPolicy: Yes, I saw the warning on SELINUX_IGNORE_NEVERALLOWS already, looks like a dirty hack somehow.

Do you have an idea why there is the following error during building:

ERROR: Failed to run e2fsdroid_cmd: set_selinux_xattr: No such file or directory searching for label "/lta-label"

I don't know where this comes from since you've dropped that mount with https://review.lineageos.org/c/LineageOS/android_device_sony_shinano-common/+/264280

I could temporarily solve that by doing this:

# in file.te:
type lta_file, file_type;

# in file_contexts:
/lta-label(/.*)? u:object_r:lta_file:s0

But that doesn't look right to me.
[Xperia Z3 Original Android Development] NeoArian:
That happens when you create an folder at the root out which is not labelled. Instead of labelling it i have dropped the mount because it is not used by our devices. It was used to detect wether we have the LTE version of the tablet iirc but we don't support that tablet currently.
[Xperia Z3 Original Android Development] foli2:
help

what about z3 dual?pleaseeeeeeeeeeeeee
[Xperia Z3 Original Android Development] adxpax:
hello and tnx.

can you port this for sirius.?

tnx a lot
[Xperia Z3 Original Android Development] NeoArian:
Good evening, not that I can guarantee something but I will probably get a Z2 next year. I will try to make that official then, same as z3c.
[Xperia Z3 Original Android Development] jmpcarceles:
Also z3 become official?

Merry Christmas!!!
[Xperia Z3 Original Android Development] adxpax:
TNX A Lot!!!!!

merry Xmas!

z2 still alive!:D:o:fingers-crossed:
[Xperia Z3 Original Android Development] Sahoca:
I can’t download this link, can you upload to another file sharing service? https://my.hidrive.com/lnk/LYgKkKZD#file
[Xperia Z3 Original Android Development] yahyazadeh58:
Hi

is this rom stable?
[Xperia Z3 Original Android Development] Mr.Tom_Tom:
Status Update und FAQ

Please see Post #2, an alternate download link is provided there. What's not working with the HiDrive link for you?

No, it is EXPERIMENTAL only and not recommended for daily use.

As written earlier, I am trying to get the ROM working with SELinux. Without that, it cannot be considered safe & stable. I do have some newer builds but they do not boot correctly, I need to do some troubleshooting first.

I am optimistic that we might soon see an official LineageOS 16 and an updated (but still experimental) LineageOS 17 for the Z3. :highfive:
[Xperia Z3 Original Android Development] Sahoca:
Thanks for the warning, I installed and uninstalled because I had problems with gaps!
[Xperia Z3 Original Android Development] Zerikwan:
Yeah, bro.

We'll be waiting for that. And I'll be your tester.
[Xperia Z3 Original Android Development] Tux111:
Sounds like this is pretty much dead
[Xperia Z3 Original Android Development] Tux111:
[MENTION=9647158]ronidianpatisa[/MENTION] some news on this project?
[Xperia Z3 Original Android Development] PioneerSeeker:
I'm unable to flash android 10's twrp recovery on my Z3. I was able to flash carbon cr7 and cr6.1 recoveries smoothly but this recovery annoying me. I flashed it both on boot partition and on recovery as well but in vain.

Any possible way will be highly appreciated...
[Xperia Z3 Original Android Development] Tux111:
Don't, pretty much an alpha
[Xperia Z3 Original Android Development] Technoolli:
Can't get into Recovery and Custom ROM Android

C:\adb>fastboot flash recovery TWRP-Z3-recovery-Android10-2019-10-11-TESTING.img

sending 'recovery' (13310 KB)...

OKAY [ 0.687s]

writing 'recovery'...

OKAY [ 0.906s]

finished. total time: 1.594s

fastboot reboot-bootloader

However, I no longer get into recovery and the Android system, but I still get into Fastboot mode.

Now I thought I flashed the recovery again but I can't boot in there .....
[Xperia Z3 Original Android Development] ronnay ryukay:
For building testing, you can already try OpenGapps stable for Android 10, and it works well
[Xperia Z3 Original Android Development] ronnay ryukay:
You can download the latest build in the thread, there are many improvements and it is working fully even though there are some that are still under development
[Xperia Z3 Original Android Development] Itroublve:
Can I update from LineageOS 16.0 nightly 20200209->LineageOS 17.1 latest? Without formatting and losing any apps.
[Xperia Z3 Original Android Development] ronnay ryukay:
No, you have to install it clean with lineage recovery or twrp
[Xperia Z3 Original Android Development] Itroublve:
Thanks. One last question... I have made a backup using TWRP with data/media included, does that mean I won't lose any apps or stuff. Because if not I would be happy to test this rom and tell about the bugs I find if any :o

NOTE: I'm not trying to be off topic or anything but if I'm in anyway: SORRY!
[Xperia Z3 Original Android Development] lethienphuc:
just using this ROM for a week and here what's i found out:

1: this rom working almost stable on sony z3, despite some minor bug, i have plan to use this as my daily driver, thanks to you guys.

2: here is some minor bug i got:

- if you turn on battery saver, your z3 will become supper laggy

- world clock doesnt work right, i have to adjust time manually

- some app crashes when i install it from google play, and i cannot cancel installing, it just stuck at the icon installing on the main screen.

- Suppersu in Magisk doesn't work, it shows that i have root access but i cant delete apps or change anything in system.

- Bootloop when i try to install Viper4Android (so sad)

Pixel Experience work flawlessly.

sorry for my bad english :D

-
[Xperia Z3 Original Android Development] jmpcarceles:
Hi guys.

I'm trying this amazing ROM since several days.

i use it as my daily driver, from i know only noticed one problem:

- i can't play videos inside whatsapp, run for 1 or 2 seconds and it get stopped

Thanks for this great job.
[Xperia Z3 Original Android Development] ronnay ryukay:
Now all can to download new beta version on post :)
[Xperia Z3 Original Android Development] PioneerSeeker:
Why I'm ending up by looking at twrp 3.0.2

While I downloaded and flashed a 3.3.1 twrp from different links but all are ending up 3.0.2 after flashing
[Xperia Z3 Original Android Development] ronnay ryukay:
It usually happens if you choose the wrong partition during flash, make sure the partition you are using is FOTAKernel and make sure that you have actually flashed the TWRP that we provide in this thread.
[Xperia Z3 Original Android Development] ronnay ryukay:
If you are still confused, please contact me via Telegram [MENTION=7016828]ronnayryukay[/MENTION]_official

I will try to help to the end
[Xperia Z3 Original Android Development] jmpcarceles:
Nice.

Can i dirty flash it over 20200209 release?

Thx
[Xperia Z3 Original Android Development] ronnay ryukay:
You can renew it immediately without removing the old one
[Xperia Z3 Original Android Development] Technoolli:
I wanted to install the following recovery as follows: fastboot flash FOTAKernel twrp-3.3.1-z3-20200212.img but after restarting I'm still on the old version 2.8.0.1

I can update to version 3.2.3.-2 twrp_z3_2019-03-13.img but not to the latest ...
[Xperia Z3 Original Android Development] quansanity:
Z3 Dual D6683

Can I install this rom ? my device is sony z3 dual D6683. Thanks
[Xperia Z3 Original Android Development] KnowledgeSeekerPart2:
Yeah I agree with you. And after several attempts and struggles to install twrp 3.3.1 I have no doubt to say that this all is drama ? :D going on here. There's no lineage os 17.1 (android 10) for Sony Z3. joke of the year...
[Xperia Z3 Original Android Development] jmpcarceles:
I recommend you to start the process from the beginning,

I think you don't have enabled FOTA partition, that's why FOTAKernel doesn't work and TWRP 3.2.3 still remains.

Have you tried to flash stock ROM .291 with flashtool?

Once you flash .291 try to flash again 3.3.1 twrp with FOTAKernel option.

Good luck.
[Xperia Z3 Original Android Development] ronnay ryukay:
There is no joke here, if you can't install, it all happened because of your mistake or your ignorance about it, make sure you are in the latest firmware. 291 to start flashing, if you know the conditions of installation, things like that don't will happen, and maybe our team is saying that you did a joke :)

Follow as [MENTION=4637019]jmpcarceles[/MENTION] says

https://xdaforums.com/showpost.php?p=81860611&postcount=74
[Xperia Z3 Original Android Development] jmpcarceles:
[MENTION=10467291]KnowledgeSeekerPart2[/MENTION]

Please, see the following post of Lineage 16 thread:

https://xdaforums.com/showpost.php?p=81850897&postcount=34

He managed to flash TWRP successfully like we told you.

Good luck.
[Xperia Z3 Original Android Development] mer5ad:
Please FIX WIFI COUNTRY CODE. i live in iran and i cant use WIFI via this ROM.