yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Original Android Development] RGK1:
Hi [MENTION=6407372]tarkzim[/MENTION],

Thanks for fixing the camera, it's buttery smooth now when taking pictures, however, when using zoom it's another story, in multiple camera apps the camera view is very choppy about 3 FPS, with very delayed response to changes in zoom.

On another note, are people using Greenify or naptime or both for this ROM, if so please tell me what your settings are and also your screen off stats.

Many thanks

Ryan
[Xperia Z5 Original Android Development] Olaf_:
I have been following this thread for quite some time and can only thank you for your great work.

I flashed my Z5 E6653 with TWRP 3.2.3 over adb sideload and most of it runs fine.

Even the camera works now. Thanks again for that.

Only some sensors refuse to work (gyroscope, compass, approach, light,...)

Back to the original system via the original Sony ftf-file I couldn't get it to work either.

Does anyone have a tip how to activate the sensors? The manual alignment of the screen via separate apps is a bit annoying.

Best regards

Olaf
[Xperia Z5 Original Android Development] dim.on:
Try running

restorecon -RF /persist

from a root shell.
[Xperia Z5 Original Android Development] Berni-0815:
What does this command do?
[Xperia Z5 Original Android Development] dim.on:
It applies recursively the default security context for the persist directory.

see: file_context
[Xperia Z5 Original Android Development] Berni-0815:
I'm not sure that I really understand what that's meaning, but thank you. :angel:
[Xperia Z5 Original Android Development] glennza:
Thanks, this worked for me! I downloaded an app called Gyroscope Test, it showed me that my phone didn't have gyroscope, accelerometer, magnetometer or Google VR compatability. Followed your instructions and now they are all detected.
[Xperia Z5 Original Android Development] glennza:
I don't suppose anyone has gotten Google Pay to work on this ROM? Everything is set up correctly but it just does nothing when you use it at the checkout.

I hope there will be more updates to this ROM, it is excellent. I was thinking about getting a new phone but this is just like having a new one!
[Xperia Z5 Original Android Development] maphios:
Really nice work here :good:. I installed the ROM because my old Xperia Z is slowly phasing out with some hardware problems.

Installation went flawless and everything is working really smooth for me. But I have a rather big problem with the battery drain in standby.

Before last night I charged up to 100 % then simply pulled the charger and let the phone alone. This morning the battery was at 77 % so in 8 hours of doing really nothing the drop was 23 % :rolleyes:.

When I look at the battery stats from Android there is always the mobile network standby at the top. I even tried Leandroid to switch my network to 2g when the screen is off but that did not help much.

What is your experience with the battery drain in standby?
[Xperia Z5 Original Android Development] Spyop3:
On the Z5c rom we noticed it's linked to bluetooth being turn on (bug on this bluetooth driver)

You can turn it off and reboot to fix

Try and tell us if it worked for you too
[Xperia Z5 Original Android Development] maphios:
Unfortunately the behaviour did not change when I switched bluetooth off and rebooted.

I still experience a rather high battery drain in standby and always the mobile network standby is on top of the battery stats.
[Xperia Z5 Original Android Development] sandronejm:
Hey guys!! Where is tarkzim's Lineage 18 for Xperia Z5?! It just disappeared from xda forum 😢
[Xperia Z5 Original Android Development] Berni-0815:
Since the update to the new platform, some threads are missing. The xda staff is working on it. Please be patient!
[Xperia Z5 Original Android Development] glennza:
This ROM is close to perfect, just a couple of things to sort out. Please don't abandon it!!!
[Xperia Z5 Original Android Development] sandronejm:
Message removed by the user
[Xperia Z5 Original Android Development] glennza:
Tried it but lost all audio (mic, headphones, speaker) in FB Messenger. Crashed every time I tried to make or receive a call in Whatsapp.

Don't know why that would happened but I put the original file back and it is working again
[Xperia Z5 Original Android Development] sandronejm:
I noticed that it only works for my device do not ask me why.

But I can guide you how to increase Microphone gain low on Whatsapp by editing Mixer_path:

Replace those lines with:

Line 1518: <ctl name="DEC7 Volume" value="108" />

Line 1523: <ctl name="DEC9 Volume" value="108" />

Line 1892: <ctl name="DEC7 Volume" value="99" />

Line 1893: <ctl name="DEC9 Volume" value="99" />

Line 1898: <ctl name="DEC7 Volume" value="90" />

Line 1898: <ctl name="DEC9 Volume" value="90" />

Line 1904: <ctl name="DEC7 Volume" value="105" />

Line 1905: <ctl name="DEC9 Volume" value="105" />

Line 1910: <ctl name="DEC7 Volume" value="111" />

Line 1910: <ctl name="DEC9 Volume" value="111" />

Line 1920: <ctl name="DEC7 Volume" value="105" />

Line 1925: <ctl name="DEC7 Volume" value="90" />

Line 1930: <ctl name="DEC7 Volume" value="105" />

Line 1935: <ctl name="DEC7 Volume" value="111" />

Test if it works.
[Xperia Z5 Original Android Development] nero10:
my edit program isn't showing line numbers, which program is this?

and my whatsapp mic sound is not low, it's like mute! no sound on whatsapp video calls!
[Xperia Z5 Original Android Development] sandronejm:
Hey man, use this app for see lines

QuickEdit Text Editor - Apps on Google Play

QuickEdit is a fast, stable and full featured text and code editor.

play.google.com

For resolve your problem with no microphone when videocall, replace the following lines:

Line 2501 to 2505:

<path name="camcorder-mic">

<path name="camcorder-mic-common" />

<ctl name="DEC7 Volume" value="84" />

<ctl name="DEC9 Volume" value="84" />

</path>

Line 2507 to 2523:

<path name="camcorder-mic-gain-low">

<path name="camcorder-mic-common" />

<ctl name="DEC7 Volume" value="84" />

<ctl name="DEC9 Volume" value="84" />

</path>

<path name="camcorder-mic-gain-mid">

<path name="camcorder-mic-common" />

<ctl name="DEC7 Volume" value="97" />

<ctl name="DEC9 Volume" value="97" />

</path>

<path name="camcorder-mic-gain-high">

<path name="camcorder-mic-common" />

<ctl name="DEC7 Volume" value="106" />

<ctl name="DEC9 Volume" value="106" />

</path>
[Xperia Z5 Original Android Development] glennza:
My built-in mic seems to work okay, it's only when I plug in the headset that the mic doesn't work. This is just for audio calls, I don't often use video!

But same - no mic audio at all. Don't know if the "camcorder" mods will fix it but will give it a go.

Really, this is the ONLY thing that is a pain with this ROM. Everything else is great.
[Xperia Z5 Original Android Development] glennza:
Just checked and these are all correct in my mixer_paths.xml
[Xperia Z5 Original Android Development] sandronejm:
Apply a search for headset or headphone and find out the microphone gain volume variable and apply a change to it. Restart the phone and check. Several times of testing should be necessary until figurint it out

Edit: if your headphone microphone is muted look for a "0" value.
[Xperia Z5 Original Android Development] glennza:
The only ones I could find that seem low are...

<path name="headset-mic-rec">

<path name="headset-mic-rec-common" />

<ctl name="ADC2 Volume" value="13" />

</path>

<path name="headset-mic-rec-gain-high">

<path name="headset-mic-rec-common" />

<ctl name="ADC2 Volume" value="18" />

</path>

<path name="headset-mic-rec-gain-mid">

<path name="headset-mic-rec-common" />

<ctl name="ADC2 Volume" value="17" />

</path>

<path name="headset-mic-rec-gain-low">

<path name="headset-mic-rec-common" />

<ctl name="ADC2 Volume" value="5" />

</path>

But these are the same in your file too! Otherwise, there are too many different ones and I don't want to mess anything up. I didn't see any device set to "0"!
[Xperia Z5 Original Android Development] glennza:
It seems to be a bigger problem than just a mixer_paths setting. I downloaded a few "headset test" apps from the playstore and either they say "no headset detected" or just crash!! Will have to see if we get an update with a fix
[Xperia Z5 Original Android Development] glennza:
I'm guessing that copying over a 7.1.1 mixer_paths file isn't going to work?
[Xperia Z5 Original Android Development] Berni-0815:
Sometimes it's not possible to edit this file directly on the device itself! It's always better to flash this file (it is a flashable ZIP containing my file mixer_paths.xml) via TWRP. You can edit the included file to your needs and then flash it again.
[Xperia Z5 Original Android Development] glennza:
Thanks. Have you tried modifying it and have you got it to work on messaging apps?

I did read somewhere that, in Android 10, these mods have to done as Magisk modules or they get overwritten.
[Xperia Z5 Original Android Development] glennza:
I pulled out an old Bluetooth headset to try. It connected and worked but after I turned Bluetooth off I lost ALL audio on my phone. Nothing. No media sound, notifications. Nothing. I recopied the original mixer_paths and it's working again. I hope we can get this sorted out
[Xperia Z5 Original Android Development] Berni-0815:
No. I don't use messaging apps in other ways than writing messages...

Do you have a source for that?
[Xperia Z5 Original Android Development] glennza:
"The only way to make changes to the /system partition is to make a Magisk module that mounts the files you modified instead of the original ones."

https://xdaforums.com/t/mount-system-as-rw-on-android-10-with-magisk-20-4.4081043/post-82672385

Please bear in mind that I am not a "software person". I read that while I was researching, I don't know if it applies in our case
[Xperia Z5 Original Android Development] Berni-0815:
When flashing a file via TWRP you are not running the "normal" system. TWRP is mounting /system with its own mount routines!
[Xperia Z5 Original Android Development] sandronejm:
You misunderstood the point. It is simple like that: you can just edit mixer_path just by modifying it with QuickEdit app and requesting a fast reboot on Quick Reboot app, the phone will restart only the Android processes and the changes on mixer_path will work.

I did apply some modifications to my mixer_path going through this edit and fast rebooting process. In my experience it works well and you don't really need to flash a mod for modifying mixer_path.
[Xperia Z5 Original Android Development] sandronejm:
I'm happy with tarkzim rom , Lineage OS 17.1 for Xperia Z5, it made a improved experience using Xperia Z. Wow!!
[Xperia Z5 Original Android Development] nero10:
it worked but at the same time speaker sound also increased.

handsfree still not working.
[Xperia Z5 Original Android Development] Shandiiman:
does this rom support gcam?
[Xperia Z5 Original Android Development] nero10:
don't install for camera. waste of time.
[Xperia Z5 Original Android Development] Shandiiman:
Okay, thanks
[Xperia Z5 Original Android Development] Shandiiman:
Is that the same in Los 18?
[Xperia Z5 Original Android Development] marcosfm40:
[QUOTE = "Shandiiman, postagem: 84128451, membro: 11346285"]

este rom suporta gcam?

[/ CITAR]

I have a GCAM and Open Camera app on my E6683 and it works perfectly. Although these apps are unable to use the full resolution capability of the rear camera.
[Xperia Z5 Original Android Development] Shandiiman:
posso ter o link gcam?
[Xperia Z5 Original Android Development] nero10:
same...
[Xperia Z5 Original Android Development] marcosfm40:
[QUOTE = "Shandiiman, postagem: 84132315, membro: 11346285"]

posso ter o link gcam?

[/ CITAR]

Eu uso o GCAM deste link https://smart-loads.com/en/Sony_Xperia_Z5_Compact/programs_android/4445-google-kamera.html
[Xperia Z5 Original Android Development] Berni-0815:
Hmmm... The forum's preferred language is English...
[Xperia Z5 Original Android Development] marcosfm40:
Thanks. adjusted
[Xperia Z5 Original Android Development] mahbod.es.1996:
New updates? 👀
[Xperia Z5 Original Android Development] hidden.hero:
the camera does not focus on nearby objects, how can I solve this problem?
[Xperia Z5 Original Android Development] glennza:
It would be great to get headset/bluetooth working with messaging apps. And fix the intermittent fingerprint sensor. That's really all that's needed to make this ROM perfect.
[Xperia Z5 Original Android Development] glennza:
I've been playing around with this app and I have managed to get my headset mic to work. It allows you to force a particular device to become active

Lesser Audioswitch
[Xperia Z5 Original Android Development] arrauko:
Great job, nice to see the z5 up and running again.... Only problem I had is it would fail to flash with twrp every time, would just show an error regardless of whether I done it from internal storage or sd... but flashed fine with batik revovery...

And I can't say this is a bug but it actually fixed a problem I've had since day one, long before I rooted my device... After a reboot or my battery died my SD card would say it was corrupt even though it wasn't but I couldn't use it, I've not had that problem once with this even after a lot of reboots , it's actually a lot faster than the nougat version of lineage and stock ROM, better ram management without playing with the kernel, great stuff.... I can't get a device fingerprint for magisk tho, no big deal, it's not my daily driver phone
[Xperia Z5 Original Android Development] Berni-0815:
Wrong TWRP version
[Xperia Z5 Original Android Development] arrauko:
Same one as linked in the post, I even tried other version with same result
[Xperia Z5 Original Android Development] Berni-0815:
Then something else is going wrong. Please share a screenshot with your error when trying to use TWRP.
[Xperia Z5 Original Android Development] marcosfm40:
I've been following this topic for some time and I just have to thank you very much for your excellent work.

I have a Z5 E6683 and installed the 03/11 version after using the 26/10 version of Lineage 17.1 and everything works fine now, including the camera. Thanks again for that.

About the use of ROOM in order to contribute to its development, I bring up the issue of battery consumption. As images the Z5 was designed for 5h30min of battery life with Android 5.1. So naturally with Android 10 it is difficult to achieve this usage time. But I believe that even 02h41min of battery usage time with Android 10 is very little. So I leave the prints to contribute, as I believe it is possible to reduce the consumption of 30% of the battery by the system.

Thanks for the work.

Regards,

Marcos
[Xperia Z5 Original Android Development] kerimcem:
thank you. good rom.
[Xperia Z5 Original Android Development] cizer.zoe:
Go update please, @tarkzim :(
[Xperia Z5 Original Android Development] kevin0408:
Thank you for your effort. I successfully flashed your 17.1ROM on the Sony Z4 (although I know it was used for the Z5), but it did succeed, except that the camera crashed. So I want to ask if it is realistic to transplant the camera driver of Z4 to this system. To make the camera work, do I need to copy the driver files or recompile the source code? Thank you.
[Xperia Z5 Original Android Development] hamed_ah:
hi, can i flash this rom on z5 dual variant? Will I have sim card data and signal?Is Wi-Fi connected?tnx
[Xperia Z5 Original Android Development] tarkzim:
Sure.
[Xperia Z5 Original Android Development] TheZeroth:
Do we know if MHL (HDMI out) work? what about wireless cast (chromecast)?
[Xperia Z5 Original Android Development] hamed_ah:
fingerprint have issue and many times not working, camera is broken and can't use it for other apps (video call, scan qr and...) and now after flash this rom on my z5 dual,i will downgrade to stock rom with flashtool but flashtool say can't flash this stock(e6633) rom because your phone is e6683, how can i fix this problem?:(
[Xperia Z5 Original Android Development] Plbg:
I installed this version yesterday and my first impression is that it is working very well. Big thanks and please all give a donation to our developer :)

But I have one question:

One app which uses the official identity card from Germany to identify online (AusweisApp2) needs Extended Lenght at NFC. I did much research yesterday and as I understood is that the system needs a configuration that it allows more than 261 characters. It seems to be that the Hardware of the NFC chip is able to handle this. The code should be hidden in a configuration file but I did not find one on my device which contains this code or a similar one. This code comes from a Samsung device:

# Extended APDU length for ISO_DEP. If not supported default length is 261.

# CHECK in VTS Test case

# ISO_DEP_MAX_TRANSCEIVE=xFEFF

ISO_DEP_MAX_TRANSCEIVE=261

The 261 should be exchanged with a higher number.

My source is this: https://www.lineage-os-forum.de/Thread-Personalausweis-auslesen but I looked for many sources but I didn't find anything other than a Xposed extension (https://play.google.com/store/apps/details?id=de.derappkoch.nfcextendedlengthfix&hl=de&gl=US). But unfornately I don't get Xposed working via Magisk :-(
[Xperia Z5 Original Android Development] Berni-0815:
Yes. The chip can handle more than 261 characters. I've fixed it in my z5c builds some time ago.

@tarkzim :

los17.1:
========
packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
Line 1931:
return NfcConfig::getUnsigned(NAME_ISO_DEP_MAX_TRANSCEIVE, 512);
and
packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/NativeNfcManager.java
Line 354:
return 512; // Will be automatically split in two frames on the RF layer

los18.1:
========
packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
Line 1963:
return NfcConfig::getUnsigned(NAME_ISO_DEP_MAX_TRANSCEIVE, 512);
[Xperia Z5 Original Android Development] K9100ii:
This should be done instead of that:

sumire: nfc: set ISO_DEP_MAX_TRANSCEIVE to 0xFEFF in libnfc-nci.conf. · K9100ii/android_device_sony_sumire@b17fa87

Change-Id: I2b0d7a6802cbed2ce6f454d1380dba0fb658afcb

github.com

If possible, you should avoid modifying out-of-tree code.
[Xperia Z5 Original Android Development] tarkzim:
Thanks, will add it to my LOS18 builds.
[Xperia Z5 Original Android Development] Berni-0815:
I can confirm that this patch is working for los17.1 and los18.1!
[Xperia Z5 Original Android Development] Plbg:
Thank you very much :-)

I added this small piece of code from @TALUAtXDA and it seems to work.

So it will also work when I upgrade to LOS11 in a couple of months.

Thanks to all for your help :-)
[Xperia Z5 Original Android Development] Plbg:
Hey,

I would like to share my experience for the first weeks of using.

The device is running really great and really smooth. So it's working perfectly. Thank you very much.

At the beginning some apps were crashing but after a couple of days the problem disappeared. Also configuration for notifications for apps needed some time but now all seems to work great.

There are some things which I would like to mention and maby some of you can help me:

1. How can I disable the notification LED? In the previous rom I used (Android 7.1) I found an option for this but not in the actual rom.

2. The battery life is not the best. When using the device (Messanger, news apps, Browser, no games) it often gets really warm and battery is draining quite fast. So I think the CPU is on high load. Is there a possibility to throttle that down?

3. The battery is draining over night. Over night the device is in flight mode but I loose 0.5 -1 % battery per hour. At the beginning it was between 1 and 3 %/h but I installed "Force Doze" which has made it really better. Using "Accu Battery" I get the information that my device is using about 40 - 60 mA during turned off screen. And it seems to not matter if network connection is activated or not (My Nexus 7 2012 needs < 10 mA with turned off screen). Also "Accu Battery" tells me that my device does not go into "deep sleep". So i Think this could be the reason...
[Xperia Z5 Original Android Development] Mizaki_Len:
About the camera, anyone using magisk can help confirm does this module work? Its for pie, plus its magisk simple to remove if it doesn't work.

https://xdaforums.com/t/magisk-sony-media-apps-18062019.3938579/
[Xperia Z5 Original Android Development] Ahaohao:
nice
[Xperia Z5 Original Android Development] Jogsn:
Thanks for bringing new life to my Z5.

Is there any chance to get the latest security patches onto this build? I tried the 18.1 build but I had major issues with crashes... The phone crashed whenever launching certain apps and every now and then it crashed about 15 seconds after boot. 17.1 is working flawlessly.
[Xperia Z5 Original Android Development] diimdeep:
Hello, is there high temp problems even with easy load with this ROM like in 18.1 ?

+1 for security patches !
[Xperia Z5 Original Android Development] diimdeep:
So far only problem is that I can not make or recieve a call in LTE mode, had to switch to GSM. Other than than, camera obviously isn't working properly, but there is no thermal problems and apps is not crashing. First ROM except stock that you can actually use.
[Xperia Z5 Original Android Development] diimdeep:
LTE issue is fixable by manually setting network mode.

Overall solid ROM.

Camera obviously castrated by SONY® brainless implementation. I just tried to make photo of few A4 pages for half a hour, this camera can not even focus in this simple case, complete garbage.
[Xperia Z5 Original Android Development] diimdeep:
I suffer on LOS 17.1 due to overheating, throttling and draining acc.

I am interested if there is custom core and the hardware cooling mods?

I want to understand how much it can help, so please, if anyone interested, please use the CPU Throttling Test to take a 10-minute measurement.

In the options, the number of streams is 50, turn on the temperature on the charts.

In this tests, at full brightness, had it lying on the table and in vertical position without a cover at an ambient temperature of 28 *C.

According to the graph, it can be seen that it throttles from maximum performance in 15 seconds to 80%, by 30 seconds to 60%, by 1.5 minutes to 40%, and from 7 minutes to 25%.

So far, I think that the Z5 can not be fixed in this regard, it seems that it's just an unsuccessful device. ;/ But prove me wrong, please.

Number of threads 50

On the table, at ambient t 28 C

Number of threads 50

in vertical position, at ambient t 28 C

Number of threads 20

In the refrigerator on a glass shelf all the time

Number of threads 50

In the refrigerator on a glass shelf all the time (pre-cooled)
[Xperia Z5 Original Android Development] diimdeep:
I have found this awesome hardware cooling mod, if it is successful and improves cooling, it might solve all problems with throttling https://xdaforums.com/t/xperia-z5-thermal-hardware-mod.3876970/

Might be worth doing !
[Xperia Z5 Original Android Development] psi78:
I managed to fix the camera Autofocus problems on crdroid 11 for sumire like this:

Edited /system/build.prop in TWRP (mount system partition first, then use TWRP File Manager in Advanced section, click on the file and edit) and set

camera.disable_zsl_mode=0

(instead of 1).

Now photos with the camera are sharp, especially in a closer distance/for documents, QR codes or the like.

See image comparison here:

https://xdaforums.com/t/rom-kernel-unofficial-11-0-crdroid.4284023/post-87384349
[Xperia Z5 Original Android Development] psi78:
Use the tweaks i used for crdroid 11 on sumire, should work on this rom too, mainly use a kernel manager to set cpu governor to something like relaxed, removing unneeded system apps,enable power saving, disable Google Assistant Voice.

See https://xdaforums.com/t/rom-11-0-unofficial-lineageos-18-1-sumire-stable.4174189/post-87323539

and

https://xdaforums.com/t/rom-11-0-unofficial-lineageos-18-1-sumire-stable.4174189/post-87324661

and https://xdaforums.com/t/rom-11-0-unofficial-lineageos-18-1-sumire-stable.4174189/post-87324921

/

https://xdaforums.com/t/fixed-root-...ry-drain-due-to-google-play-services.4406617/

and

https://xdaforums.com/t/rom-11-0-unofficial-lineageos-18-1-sumire-stable.4174189/post-87327525