yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] bleh815:
You can use AdAway which is an open source host list based ad blocker. See https://adaway.org
[Xperia Z5 Compact Android Development] eng3:
I don't see a reason to bake something into the ROM when there are many apps that can do it.

I think something like Xposed-type tweaks being put into settings would be more appropriate. Alleviating the need for xposed. But I don't think it makes sense to load random apps into the ROM.
[Xperia Z5 Compact Android Development] Berni-0815:
New version; please have a look at the first post
[Xperia Z5 Compact Android Development] RaunoT:
Awesome work, thank you so much! Flashing it now.

Just 1 question - do you know if encryption works on your builds?
[Xperia Z5 Compact Android Development] Berni-0815:
I've never tried it. I've not so good experience with encryption on a stock rom; so I've decided not to use this feature at all! :eek:
[Xperia Z5 Compact Android Development] torben5247:
Hi Bernhard.

Thanks for your hard work!

i have a question for you.... As i understand it you take all the changes/updates from the offifcial lienage and implement them into your own build. And add the changes as described in post 1.

Am i right about this?

I think that battery life is bad on the official compaired to the version you do.

Do you add battery improvements in your build?

Thanks in advance.

Torben 5247
[Xperia Z5 Compact Android Development] Berni-0815:
Oh, it is not so hard to do this, but, thank you! Sometimes I have to search a few hours or try (and revert) something, but in the end I've gotten everything to work as I like it to work.

I'm using the LineageOS repositories from github as they are, that's right. I don't use my own repo's; nzzane is doing this AFAIK (Klick). A few weeks ago I'm using other repo's, because LineageOS had bad (

will say:

not working) sources for our devices.

Yes! :good: One or two of my changes should be implemented into the "official" builds, but until now I don't understand how to use "commitments". Maybe in a few days... :angel:

No. Nothing like this.

On my own device battery life is about three days...
[Xperia Z5 Compact Android Development] Raphos:
Hi,

Like other persons, I don't want to have a lot of applications include in the rom. I want to choose the ones I use. This is one reason that made me come to alternative rom.

Another reason is that Lineage use less google s"hit" than stock rom.

So if you have the vision of more app and google stuff include, you better stay on stock. Alternative Roms offers me more freedom; but that's just my opinion...
[Xperia Z5 Compact Android Development] Cerhio:
This is prerooted? There are some of us out there that need to install certain apps before rooting.
[Xperia Z5 Compact Android Development] Berni-0815:
Yes.
[Xperia Z5 Compact Android Development] Berni-0815:
I've just committed three of my changes. We'll see if they will be merged... ;)
[Xperia Z5 Compact Android Development] igiona:
The brightness settings? I hope so:)

What else?
[Xperia Z5 Compact Android Development] RaunoT:
That's so great to hear, let's hope they get accepted.

Huge thank you for keeping this device alive Berni!
[Xperia Z5 Compact Android Development] Berni-0815:
I've tried to replace this file using the terminal in su-mode, but with that I had no sound at all. Maybe this is a problem of the user or the rights of this file. I don't know. Try it... ;)

There are ways to change a lot of things by creating/editing the file /data/local.prop (as build.prop looks like), but I don't know very much about these things... :(
[Xperia Z5 Compact Android Development] gekkolover:
Installed this build yesterday after getting sick of Sony not pushing security updates faster. No problems so far.
[Xperia Z5 Compact Android Development] TrulloF:
I use a root file explorer (total commander) to copy the file to system/etc.

You need to delete the original and after copying the new version to system/etc, don't forget to set read-write permissions of mixer_paths.xml to 644. After that you need to reboot to activate the new settings.
[Xperia Z5 Compact Android Development] neutrinobox:
The Headphone jack on my xperia is dead, so i cant test anything there.

I still have problems with noisy audio in camcorder.

I think that the audio decoder, not only the mixer iss the problem. With your values in the mixer_path.xml low frequency´s are clipping very hard because there is no high pass filter set.

it needs more testing.

Last Night i fixed Audio rec. in Camcorder from my Alcatel Idol 3 with Lineage OS 13.

There was no "audio_platform_info.xml" so i installed one with the camcorder value from a Nexus 5.

Now the recorded audio iss perfect !

I found that these devices dosn´t use the "dmic" as input source for camcorder audio.

They use a "adc" source.

That seems to be audio over a codec. So i had to try out something with my xperia

i placed the xperia Z3C with lineage OS 14.1 files in the attachment.

Take a look about this

The Audio (play and recording) quality is much better than on the Z5C
[Xperia Z5 Compact Android Development] Blu3ye:
So I did a clean install now with the newest version 20180108 (no additional apps/gapps) and tried bluetooth connection with my speaker "EE1145" and still get the same problem. After connecting to it it plays music for a second or so and then just noise. Trying to reconnect / re-/enable bluetooth leads to repeated fc of "bluetooth-freigabe". I´m using a couple of those speakers and therefore it´s mandatory for me to be able to use them with my phone.

Anything I can do to bugtrack?

Don´t really want to go back to stock...

EDIT:

Tried also latest nzzane 20170908, official nightly 20180105 and also Resurrection Remix OS 20171209 with same result. After connecting the speaker plays music but immediately after changing volume by using volume keys on the phone the playback stops or at least after reconnecting bluetooth again.
[Xperia Z5 Compact Android Development] neutrinobox:
Hi Berni,

yesterday i installed the official LineageOS for the z5c on the phone of my girlfriend.

I had to change the mainboard on her phone because there was no way to get sound out of the top speaker.

In the official Build the camcorder volume is a little better because they set the low gain to 104 an did some modification in other values.

But there is still no HPF and the record becomes distortion at low frequencies .

Call quality is also not good, much echo an not loud enogh .

I set the Gain Offset back to "74" / "94" an the quality is much better with no echo.

I do not understand what Sony is doing with audio processing in stock rom because in stock the audio is clear and in los it is noisy ......
[Xperia Z5 Compact Android Development] Berni-0815:
This could be a problem of the used speaker. In my car I've absoluteley no problems with the connection to my Alpine radio...
[Xperia Z5 Compact Android Development] Berni-0815:
I'm using the "official" values with some litte modifications.

Which values are you changing? Please give me a little bit more information... ;)

Me too... :(
[Xperia Z5 Compact Android Development] neutrinobox:
Not alone

We are not alone with audio problems....

https://jira.lineageos.org/browse/BUGBASH-275?attachmentViewMode=list

Many other devices have the same issue on LineageOS.
[Xperia Z5 Compact Android Development] Berni-0815:
I haven't touched these values!

They are set in all versions like this:

<!-- Gain offset target for dmic1 unit calibration -->
<path name="dmic1-adj-gain">
<ctl name="DEC7 Volume" value="84" />
</path>

<!-- Gain offset target for dmic2 unit calibration -->
<path name="dmic2-adj-gain">
<ctl name="DEC9 Volume" value="84" />
</path>

Maybe these values have been changes in "official" build; I haven't had a look at this for a while... :angel:

A few seconds later: No! (taken from https://github.com/LineageOS/android_device_sony_suzuran/blob/cm-14.1/audio/mixer_paths.xml)

<!-- Gain offset target for dmic1 unit calibration -->
<path name="dmic1-adj-gain">
<ctl name="DEC7 Volume" value="84" />
</path>

<!-- Gain offset target for dmic2 unit calibration -->
<path name="dmic2-adj-gain">
<ctl name="DEC9 Volume" value="84" />
</path>

Where does your values come from? :confused:
[Xperia Z5 Compact Android Development] Berni-0815:
So this really looks like a closed software or codec problem!
[Xperia Z5 Compact Android Development] neutrinobox:
Just take a look in last lineage OS build from 5th january

I´ve installed it on our third Z5c and the values are 88/82 or something.

90/70 are my values and they works perfect for in call volume.

I still working on audio quality and i hope that we can fix it.
[Xperia Z5 Compact Android Development] echo124:
[MENTION=7749536]Berni-0815[/MENTION] since Sony stock firmware has this feature already and most Lineage OS devices have it enabled, could this feature be requested please

https://review.lineageos.org/#/c/187950/

Maybe make official builds since no maintainer now ;)

Thanksyou!
[Xperia Z5 Compact Android Development] Berni-0815:
I'll take a look at this as soon as I've time... :angel:
[Xperia Z5 Compact Android Development] Berni-0815:
Just installed last "official" from 12th january 2018. The values are:

<!-- Gain offset target for dmic1 unit calibration -->
<path name="dmic1-adj-gain">
<ctl name="DEC7 Volume" value="84" />
</path>

<!-- Gain offset target for dmic2 unit calibration -->
<path name="dmic2-adj-gain">
<ctl name="DEC9 Volume" value="84" />
</path>

As you can see, they haven't changed anything.... ;)

What exactly is better?
[Xperia Z5 Compact Android Development] neutrinobox:
Than i´ve dreamed

With my values the echo iss really better.

I think the main bug comes from acdb parameters , just take a look in system/etc/acdbdata/sony , the main files are present but i think that they are not used .

In stock rom the features works good

On the Z3C it works perfect in Lineage os

On Alcatel it works great with Lineage os after modifying the "audio_platform_info.xml"
[Xperia Z5 Compact Android Development] Berni-0815:
What does this do? I'm not sure about it....
[Xperia Z5 Compact Android Development] Berni-0815:
Which modification has been done in this file?
[Xperia Z5 Compact Android Development] neutrinobox:
The camcorder from my IDOL 3 4,7 at LOS had a very bad audio quality. The recorded audio sound like underwater and the gain was very bad.

So i add this in the audio_plattform_info.xml :

Since this mod the camcorder records much better audio.

I use "open Camera" at both devices and the audio from alcatel is much better than the sony !

Also the in call quality iss very good.

No echo, loud. no distortion or background noise .

my friends tell my that the in call voice quality is much better than the sony...

it´s interesting because, the alcatel iss a cheap low budget phone and the sony is a high end device !

i think that the hardware from the sony isn´t right adressed !
[Xperia Z5 Compact Android Development] Berni-0815:
Where does this info come from?
[Xperia Z5 Compact Android Development] neutrinobox:
i searched google for hours to find a possible problems any other device thats similar to our sony.

Few devices com with mic problems on lineage os...

i read much to the audio_plattform_info.xml ...

So i take a look in the /etc Folder on my girlfriends Idol 3 5,5 an there was that entry.

on my Idol 3 4,7 there wasn´t it .

I add that and the camcorder works great .

but this works only on mtp device. It uses the "mtp" entries in etc/acdbdata/MTP

In xperia z5c there is an "sony" folder in "/etc/acdbdata ...

you can delete it and nothing happens.

The Z5c works the same way without this folder
[Xperia Z5 Compact Android Development] eng3:
I've had this issue for a while. Sometimes when I get a rental car and it does not even have bluetooth, I have to use a stereo aux cable to connect from the headphone jack to the car. Unfortunately, when I do this, the phone keeps thinking the headphone jack is being unplugged and then plugged back in like a bad connection. I know the cable is good because I used one that I use on my computer speakers and it works fine. The jack on my phone works fine with my headphones. I don't know the quality of the jack on the car but I've tried on many cars and its always the same.

The worst part is that the music automatically stops whenever it thinks the headphone jack is unplugged so I have to keep starting it again.

Has anyone else had this issue?
[Xperia Z5 Compact Android Development] echo124:
Allows to send/receive mms while data is off, very convenient!
[Xperia Z5 Compact Android Development] Berni-0815:
Ok, I'll implement it in the next version...
[Xperia Z5 Compact Android Development] neutrinobox:
this day i flashed a other rom because..... it sucks !

Now i´m on this rom and all the sony features works great again...

there must be a solution to get all the stuff in "/etc " working on Lineage OS.

If that works, I'll come back to LOS
[Xperia Z5 Compact Android Development] eng3:
I'm surprised the new ROM doesnt have this month's security patch. Is google late on their patch this month?
[Xperia Z5 Compact Android Development] bleh815:
I wonder if a patch like this could be included in order to pass SafetyNet checks? That would be awesome.
[Xperia Z5 Compact Android Development] Berni-0815:
Seems so...
[Xperia Z5 Compact Android Development] Berni-0815:
After a while of searching:

The files are in the same place as they are in stock rom; and they have the same names... I don't know why they seems to have no effect. :confused:
[Xperia Z5 Compact Android Development] Berni-0815:
I'm not sure what this is for? :confused:
[Xperia Z5 Compact Android Development] eng3:
You can already pass SafetyNet by installing Magisk
[Xperia Z5 Compact Android Development] Berni-0815:
What is SafetyNet? And what is it for? (I really don't know about it)
[Xperia Z5 Compact Android Development] Berni-0815:
1st Experimental version available!

New: Android security patch level from 05th january 2018 (see attached picture).

New: Enable data for MMS.

New: Remove additional SafetyNet flags to pass pass SafetyNet checks.

New: Audio calibration configuration changed.

Please test this version and report if one or some of these things are working or not.

For me this version is working as the others; I see no differences... :angel:
[Xperia Z5 Compact Android Development] eng3:
SafetyNet is Googles scan to see if your phone is rooted. I don't know the details but certain things will always cause it to fail, like xposed. Tampering with system files will cause it to fail too. Magisk effectively hides root from safetynet and allows you to switch xposed on and off fairly easily. That is why Android Pay will run with Magisk (eventhough the NFC part doesnt seem to work for some other reason).

Based on the description of the patch, I don't think the patch will do much.
[Xperia Z5 Compact Android Development] Berni-0815:
Thank you for the explanation. :good:

So, this should be tested. But I can't due to not using things like Android Pay...
[Xperia Z5 Compact Android Development] eng3:
Well, I don't think the issue with Android Pay has anything to do with Safetynet.

I am able to pass safetynet and get android pay to run with Magisk. (Otherwise it will dispaly a message when starting the app).

The issue is that nothing happens when trying to use the NFC eventhough the NFC will work for other things.

I only found one thread discussing the issue and point to this as a fix. However status is "Merged" so I assume we already have this.

This is also this: https://jira.lineageos.org/browse/BUGBASH-65 also marked as resolved
[Xperia Z5 Compact Android Development] Berni-0815:
I don't know; sorry.

Which app are you using? I'll try it myself...

Yes! We use the same sources!

Yes.

So, should I remove my changes? :confused:
[Xperia Z5 Compact Android Development] Berni-0815:
2nd Experimental version available!

I've changed the audio calibration configuration again.

In my release-versions these calibration files are placed like this (This is standard in LineageOS rom's):

system/etc/acdbdata/Sony/Sony_Bluetooth_cal.acdb \
system/etc/acdbdata/Sony/Sony_General_cal.acdb \
system/etc/acdbdata/Sony/Sony_Global_cal.acdb \
system/etc/acdbdata/Sony/Sony_Handset_cal.acdb \
system/etc/acdbdata/Sony/Sony_Hdmi_cal.acdb \
system/etc/acdbdata/Sony/Sony_Headset_cal.acdb \
system/etc/acdbdata/Sony/Sony_Speaker_cal.acdb \

In my 1st experimental version V1 they are placed like this (This is how AOSP rom's are handling these files):

system/etc/acdbdata/Bluetooth_cal.acdb \
system/etc/acdbdata/General_cal.acdb \
system/etc/acdbdata/Global_cal.acdb \
system/etc/acdbdata/Handset_cal.acdb \
system/etc/acdbdata/Hdmi_cal.acdb \
system/etc/acdbdata/Headset_cal.acdb \
system/etc/acdbdata/Speaker_cal.acdb \

In this version the volume is lower than before and in my eyes the sound is not as good as before. I have to turn up every output volume and the voice in voice calls seems to have more low frequencies (bass).

In my 2nd experimental version V2 they are placed like this (This is how stock rom's are handling these files):

system/etc/acdbdata/Fluid/Fluid_Bluetooth_cal.acdb \
system/etc/acdbdata/Fluid/Fluid_General_cal.acdb \
system/etc/acdbdata/Fluid/Fluid_Global_cal.acdb \
system/etc/acdbdata/Fluid/Fluid_Handset_cal.acdb \
system/etc/acdbdata/Fluid/Fluid_Hdmi_cal.acdb \
system/etc/acdbdata/Fluid/Fluid_Headset_cal.acdb \
system/etc/acdbdata/Fluid/Fluid_Speaker_cal.acdb \
system/etc/acdbdata/Liquid/Liquid_Bluetooth_cal.acdb \
system/etc/acdbdata/Liquid/Liquid_General_cal.acdb \
system/etc/acdbdata/Liquid/Liquid_Global_cal.acdb \
system/etc/acdbdata/Liquid/Liquid_Handset_cal.acdb \
system/etc/acdbdata/Liquid/Liquid_Hdmi_cal.acdb \
system/etc/acdbdata/Liquid/Liquid_Headset_cal.acdb \
system/etc/acdbdata/Liquid/Liquid_Speaker_cal.acdb \
system/etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb \
system/etc/acdbdata/MTP/MTP_General_cal.acdb \
system/etc/acdbdata/MTP/MTP_Global_cal.acdb \
system/etc/acdbdata/MTP/MTP_Handset_cal.acdb \
system/etc/acdbdata/MTP/MTP_Hdmi_cal.acdb \
system/etc/acdbdata/MTP/MTP_Headset_cal.acdb \
system/etc/acdbdata/MTP/MTP_Speaker_cal.acdb \
system/etc/acdbdata/Sony/Sony_Bluetooth_cal.acdb \
system/etc/acdbdata/Sony/Sony_General_cal.acdb \
system/etc/acdbdata/Sony/Sony_Global_cal.acdb \
system/etc/acdbdata/Sony/Sony_Handset_cal.acdb \
system/etc/acdbdata/Sony/Sony_Hdmi_cal.acdb \
system/etc/acdbdata/Sony/Sony_Headset_cal.acdb \
system/etc/acdbdata/Sony/Sony_Speaker_cal.acdb \

Now the volume is as high as in my release-versions.

Please test this/these version(s) and report if one or some of these things are working or not.
[Xperia Z5 Compact Android Development] eng3:
I use the standard Android Pay app from Google.

But the app will give an error message unless Magisk is installed with the Universal SafetyNet Fix module.

Once that is done, the app will let you in to add payment methods. However when trying to use the phone to pay for something, nothing happens. The NFC should trigger the app for payment, however I think there is some bug with NFC and/or the NFC driver eventhough NFC works fine for other things.

I don't know what that change really does but I probably doesn't affect anything either way.

I know alot of changes have been related to audio but what is the actual issue? I've never noticed any issue with audio other than the issue I reported the other day where when plugged into a car aux jack, the phone keeps intermittently losing the connection thinking the headphone is unplugged.
[Xperia Z5 Compact Android Development] Berni-0815:
I'm using the pico flavour of opengapps and there is no app for this...

So this fix is in fact useless for us and I'll remove it in my next version!

There is an unwanted noise (some kind of humming) when hearing music using a headset and there are some problems recording videos.

For me this is no problem at all, but other people mentioned it...
[Xperia Z5 Compact Android Development] eng3:
I havent had a chance to test to see if the patch actually did anything. I will try to do it today

This is the app I refer to:

https://play.google.com/store/apps/details?id=com.google.android.apps.walletnfcrel
[Xperia Z5 Compact Android Development] Berni-0815:
"This app is not available in your country" :rolleyes:
[Xperia Z5 Compact Android Development] Berni-0815:
After a lot of time of searching the web, I must say, there is no app for paying via smartphone available in Germany that I can use with my provider (T-Mobile); My Wallet has been shut down more than a year ago! :(

We are in 2018, right? What a mess... :rolleyes:
[Xperia Z5 Compact Android Development] eng3:
I tested android pay. The patch you did is related to SafetyNet though so I wouldn't have expected that to fix anything. It says "remove androidboot.enable_dm_verity and androidboot.secboot in case SafetyNet will check them in the future." So maybe some day it will be useful.

Interestingly enough, the audio issue I was having seems to have been solved. It no longer intermittently disconnects form my car via the headphone cord. I don't know if it's a coincidence or it fixed it. I think the max volume might be lower now, I noticed on a speaker call, even at max, it was pretty quiet. Note I was on a December build prior to upgrading to your latest one.
[Xperia Z5 Compact Android Development] TrulloF:
Audio (headphones) seems to work like it should now. I didn't recognize any hiss or crackling like before (tested with David Bowie, Space Oddity (2009 remaster)). The noise, which you could hear in the beginning of the song, is gone now. Nice. Thanks for your efforts. The other features I didn't test yet,but I'll try the SMS/MMS thingy soon.

After testing for 2 days it seems the battery drain is much higher than in previous builds (nearly double). I can't pinpoint the cause, because I need to install something like Better Battery Stats, but I'll just let it sit over night in flight mode and see (before it was nearly zero with the help of Amplify). I'll report back.

Other than that I only recognized, that if you are abroad (roaming) and get a call from that country you can't just use the call back from the call list, because it's omitting the country code when dialing. But that's not related to your changes.
[Xperia Z5 Compact Android Development] Berni-0815:
Ok. So, I'll keep it in my sources. Thanks! :good:

Which version (exactly)?
[Xperia Z5 Compact Android Development] Berni-0815:
FYI:

I'm using my 2nd experimental version...
[Xperia Z5 Compact Android Development] eng3:
The version you posted yesterday (Jan 19)

It seems to work well except the max speaker volume seems low.

But I really don't know if that is just normal for this phone
[Xperia Z5 Compact Android Development] TrulloF:
1st experimental version, I'll download 2nd later today and will test it. Thanks.
[Xperia Z5 Compact Android Development] Berni-0815:
Unfortunately it's not working as expected... :(
[Xperia Z5 Compact Android Development] TrulloF:
Unfortunately the noise is back in this version (v2). It's most prominent, when you watch a movie. When there are low volume passages it's extremely annoying. I'll replace the mixer_paths.xml with stock LOS and see, if that changes things.
[Xperia Z5 Compact Android Development] eng3:
That is what I would expect.

If you have Magisk installed and Xposed disabled then I would expect it to pass.

The patch seems to be for some future test Google may implement but I would assume the Magisk developers would take care of it anyways.

So whether you keep the patch or not probably doesn't matter

Since a solution already exists, I don't think it's worth spending time on safety net

I'd much rather see a NFC fix but that's an entirely different beast
[Xperia Z5 Compact Android Development] Berni-0815:
Hmmm, not good... :( This means, the changed names and directory of the audio calibration configuration files is affecting this and it is important to keep their original names and directory!

I think, they are not found if one of these things (name/directory) is changed.

Please report about it.
[Xperia Z5 Compact Android Development] Berni-0815:
100% agreement!