yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] snorlex:
hi

i made a clean install and everything is ok. i think the phone is too old :D.

One question: this rom has support for aptx? on stock rom when phone connect to a aptx device it show a popup, on this rom i dont know where that info apears.

Thanks for reply so quickly.
[Xperia Z5 Compact Android Development] Berni-0815:
That's exactly what my idea was... ;)

Yes/no. It is in fact an old device; but it should work as expected!

Yes. But it is an experimental support without any warranty

I don't think that there is a popup at all. Since I don't have an aptx device I can't test it...
[Xperia Z5 Compact Android Development] EmmJottAah:
Thanks for this gift ;)

The z5c works fine after a clean install.
[Xperia Z5 Compact Android Development] Berni-0815:
You're welcome
[Xperia Z5 Compact Android Development] Max 95:
Thank you.

Works very well on my Z5C.
[Xperia Z5 Compact Android Development] yaceq8:
I finally installed it - works great, thanks!

I can confirm, that paying with NFC doesn't work even with unrooted my phone (as wrote on 1st page). Google Pay doesn't let me even add any card, but my other bank app allowed me to create virtual card. I was deluding myself that it would work, but unfortunately not :( NFC is on, this bank app is set to default but when I touch phone to payment terminal nothing happens - tried two times in different shops.
[Xperia Z5 Compact Android Development] vajra_naga:
Thanks again for your continued efforts.

Bluetooth avrcp still not functioning.

Screen jump/glitch when switching apps. Status bar changes scaling is what it looks like.

A few random restarts and battery empty moments (freezes, restarts, battery reads 10-15% less than before freeze.

Still okay for me as daily driver. Huge thanks for keeping this phone usable.
[Xperia Z5 Compact Android Development] jordirpz:
Thank you very much!
[Xperia Z5 Compact Android Development] I_did_it_just_tmrrow:
You try to build with that kernel the LOS17.1 but the maintainer writes down that oreo should work too. Perhaps this is also nice for this rom here?

Can you try to build the LOS14.1 with this kernel? If it runs, I think this could bring us closer to the LOS16 or 17.1 fixes.

ByTheWay thx for the new security fix build.
[Xperia Z5 Compact Android Development] Berni-0815:
I'll try it asap...
[Xperia Z5 Compact Android Development] potentialdiffer:
Hey,

I found an issue using the german ausweisapp2, which is officially supported by the sony z5c. However, lineage os gives me an extended length error when trying to use NFC. I found out, this could be a driver issue.

Berni, do you have any idea about this and could possibly implement a fix in your next release?

Thanks for building this rim btw!
[Xperia Z5 Compact Android Development] Berni-0815:
Please grab logs (dmesg and logcat *) ) directly after this issue occurs and send my these via PM. You're german? You can use german language in that PM.

*) How to grab logs is described very often... :angel:
[Xperia Z5 Compact Android Development] oguzhantemiz:
when there is no charge and the phone is off, animation starts from 20% when you plug the phone into the charger. It becomes 0% after 3-4 seconds and it charges normally. as if the battery stores 20% charge. it doesn't actually end 100%. sorry for my bad eng.
[Xperia Z5 Compact Android Development] Berni-0815:
That's normal. 20% seems to be an initial value...

No. After a few seconds the real state of charge is recognized.

Tried it yesterday. My device charges until 100%
[Xperia Z5 Compact Android Development] Berni-0815:
Here you can download a bugfix-version.

This version fixes the "extended length" error when trying to use the german "ausweisapp2" app. Thanks to [MENTION=10511761]potentialdiffer[/MENTION] for reporting this!

Important:

This version has neither new features nor other bug fixes. There is no need to download it if you don't want to use the mentioned app.

Use it at your own risk! Reports are always welcome
[Xperia Z5 Compact Android Development] Berni-0815:
[MENTION=8357892]NetRoot[/MENTION]

I'm not compiling the kernel separately from the rest of the rom. I'm just making a

mka bacon

and build the whole stuff in one step.

So, no. I'm sorry.
[Xperia Z5 Compact Android Development] Hogwarts:
Can anyone comment on the Camera quality using this? I've read there is problems with the camera after unlocking boot loader.

Also is bluetooth working well?

Thank you for any information!
[Xperia Z5 Compact Android Development] DevelLevel:
For me Bluetooth is working well, I have tested with 3 different Bluetooth speakers. I can not say anything about the camera quality because I have not compared it to stock rom. But at least camera is working.
[Xperia Z5 Compact Android Development] Berni-0815:
Nothing left to say! :good:
[Xperia Z5 Compact Android Development] Hogwarts:
I installed this build and I cannot get the OTG working. Can anyone explain to me how it works? Thank you very much.

edit: Thank you berni for your work on this :) much appreciated.
[Xperia Z5 Compact Android Development] Berni-0815:
Klick. Maybe it helps...
[Xperia Z5 Compact Android Development] Hogwarts:
This fixed it, for anyone who has this question in the future. You have to use the quick menu at the top and there is a pencil icon to "Edit" the quick menu

then just scroll near the bottom and you will see "USB OTG" , drag it towards the top and you are done !
[Xperia Z5 Compact Android Development] hinki:
Thanks for your work

Hi Bernhard,

I just registered in this forum, to say: Thank you!

Your ROM is working pretty well for some months, now.

Regards,

Hinki
[Xperia Z5 Compact Android Development] Berni-0815:
You're welcome.
[Xperia Z5 Compact Android Development] alexgill2020:
Same here. I installed it a month ago now. And had the stock Lineage running for about a year. Wasn't able to ever adjust the mic on calls, and was a mess. With that perspective, some fine work. Danke fr NYC!
[Xperia Z5 Compact Android Development] biokomiker:
Installation from unrooted stock

Installed the build last weekend and very happy about it :o

Works great and is smoother than my stock which was a bit screwed up by now.

I had to gather the info from some places, so that's how I did it from unrooted stock, maybe helpful for somebody else ...

Unlock Bootloader:

https://developer.sony.com/develop/...d/unlock-bootloader/how-to-unlock-bootloader/

fastboot oem unlock 0x<insert your unlock code>

Flash recovery:

TWRP: https://xdaforums.com/crossdevice-dev/sony/twrp-3-1-0-z5-z5c-z5p-t3571050

fastboot flash recovery recovery.img

Boot into recovery with volume down & power

I did this to check whether I flashed correctly.

restart does not work, device gets stuck at white Sony image; forced power off: volume up/power

Boot into recovery with volume down & power

backup stock (It is saved somewhere but I did not find it again)

wipe Dalvik/ART cache, System, Cache and Data

install rom, Gapps nano (arm64), su-remove

very long animation

Enter your google account details

restore apps & data from google server

I left the device unrooted: Safety Net passed, all banking apps work fine except efinance

battery usage similar as before

THANKS again for the great build !!!!!!

I want to keep the phone for a while because of its small dimension.
[Xperia Z5 Compact Android Development] casouzaj:
[MENTION=9142612]biokomiker[/MENTION], one thing I consider to be very important is to make a backup of your phone's TA partition (which holds all the DRM keys) prior to unlocking the bootloader. Once the bootloader is unlocked, those keys are lost forever. This tool works only on Marshmallow, but our Z5C phones still happen to have Marshmallow ROMs available (e.g. those Commercial and Journalists, and such, at the end of XperiFirm's list after 'Check All'). As the bootloader unlock process wipes the user's data, I guess it wouldn't hurt much to wipe the data partition after flashing a MM ROM. Besides, if you plan to stay with a stock Nougat ROM, it would be possible to patch the stock kernel (boot partition) to include the backed up TA partition, and, after rooting through Magisk (and setting it up correctly), Safetynet tests would pass and the system would behave as if the bootloader was still locked.
[Xperia Z5 Compact Android Development] biokomiker:
Hi casouzaj: So saving TA partition is too late now. Do I understand correctly that the DRM in the TA partition would help be to hide rooting better? I am sure not planning to go back to stock. Rather hoping for newer LOS versions ;)
[Xperia Z5 Compact Android Development] casouzaj:
Yes, if you haven't made a backup of your TA partition before you unlocked your bootloader, your DRM keys are gone for good. If you keep using custom ROMs, they use to come with a subset of DRM keys, such as Google Widevine. You can still hide root with Magisk, and run e.g. Netflix. Good luck!
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
For some reason, I can't install APKs. The install button doesn't respond.

Anyone else affected by it?
[Xperia Z5 Compact Android Development] Jakic007:
Is there any gcam port that works with this rom? If not, what is the recommended camera app other than aosp?
[Xperia Z5 Compact Android Development] Berni-0815:
I'm using OpenCamera
[Xperia Z5 Compact Android Development] bbb555:
[MENTION=7749536]Berni-0815[/MENTION] as always thank you for your work on the Z5C.

I know you are busy, but I was wondering if it would be possible to build the kernel for the next update for 14.1 (if there is one) with support for swap enabled? I was reading the recent posts on the 17.1 thread about using swap and I would like to do so using the kernel and not something like the Swap app on Google Play.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post. Android security patch level: 5 April 2020
[Xperia Z5 Compact Android Development] biokomiker:
VoLte not working

Hi,

I do net get VoLTE working. I phoned the provider (swisscom), everything should be enabled from their side. Any idea how to troubleshoot this?
[Xperia Z5 Compact Android Development] Berni-0815:
No. From the rom side this should work too. If not, I actually don't know what to do. I'm sorry.
[Xperia Z5 Compact Android Development] Hogwarts:
I'm getting a bluetooth lag on my PS4 Controller paired. Is this just because of the LineageOS or is there some way I can fix it?

I tried turning on "Bluetooth scanning" in the options as I was told this might fix it, but it didnt solve the lag.

Any suggestions are greatly appreciated. I'm willing to try anything. Or if I have to maybe try another custom firmware.

Thank you!
[Xperia Z5 Compact Android Development] Berni-0815:
I've never heared anything like that. Therefore I can't help you.

Try it
[Xperia Z5 Compact Android Development] Hogwarts:
Ok after researching a lot of information regarding controller input lag in 4.x+ builds of android . I have found that the HIDSSRHostMaxLatency is responsible for the huge controller lag experienced by Nintendo joycons and DS4 controllers.

The value to change is in system/bt/bta/include/bta_hh_api.h

Changing this to 0 will disable SSR if the controller doesn't specify HIDSSRHostMaxLatency.

Berni do you think this sort of edit is possible with your development?
[Xperia Z5 Compact Android Development] Berni-0815:
Sure! I can change this value from one second to the other.

But, can you guarantee that there will be no unwanted side-effects?

My experience is as following: If I change anything to satisfy one user, several others are reporting stange issues after that.

So, I've decided not to so such things.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 05 May 2020
[Xperia Z5 Compact Android Development] momomomonsterbill:
Hi Berni, thanks for maintaining good old Suzuran :) I've been using your ROM without GApps and now I'm thinking about using the german Corona-Warn-App. I assume Gapps are necessary for it to work. Do you (or other users) know what would be the minimim Gapps-Package required for the Corona-App?
[Xperia Z5 Compact Android Development] pleniceanu cristian:
I cannot install it. It doesn't recognise my device, 5823. Twrp 3.1.1, renamed the file, zip verification, nope, not working.

I managed to install lineage 14 in the same session, file for lineage 14 extracted with the same program on computer as the one for lineage 17.
[Xperia Z5 Compact Android Development] skysurfer1111:
https://xdaforums.com/showpost.php?p=76212670&postcount=471
[Xperia Z5 Compact Android Development] Berni-0815:
Wait a moment! You're doing WHAT?

You should NOT rename any file!
[Xperia Z5 Compact Android Development] Berni-0815:
:good:

No! You can get this app using the included Aurora Store App!

AFAIK no GApps is required. But if you like to flash GApps: I'm using pico
[Xperia Z5 Compact Android Development] momomomonsterbill:
Yes, I can install it, but it will not work, because the app depends on the latest Google Play Services and will throw an error message without it (... com.google.android.gms.com mon.api.ApiException: 17: API: Nearby.EXPOSURE_NOTIFICATION_API is not available on this device. ...)

Did you already try the Corona App, if it will work with pico?
[Xperia Z5 Compact Android Development] LzBz:
Haven't tested with the corona app. But other apps, that need Google Play Services for extended features (DB Navigator, Vivaldi) work fine with pico, so pico should be enough.
[Xperia Z5 Compact Android Development] pleniceanu cristian:
Isn't that what the first post says? "Maybe you have to rename the md file..."
[Xperia Z5 Compact Android Development] Berni-0815:
Oh, I'm sorry! Didn't know about that!

Yes!
[Xperia Z5 Compact Android Development] Berni-0815:
Yes. That's right: Maybe you have to rename the md5 file to *.md5sum; depending on the twrp version you are using (3.1.1 uses *.md5sum, 3.2.x uses/needs *.md5!)

My first thought was, you renamed the .7z file to .zip. My bad.

I just saw that you are trying to install los17.1 (see screenshot). But that's the thread for los14.1!

To install los17.1 you have to use TWRP version 3.2.1 or higher.

For los17.1 related topics please switch to the los17.1 thread.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post. Android security patch level: 5 June 2020
[Xperia Z5 Compact Android Development] pleniceanu cristian:
I installed this ROM but... man, this is a battery killer. I use this phone only for music without sim but the battery is drained even in stand by without internet, is drained very hard by Google apps. Of course, I could use it for music without gapps but that way I can't use my paid apps.

That being said, I don't know how your phones handle the battery drainage, I have even paid for Greenify, but almost useless.

Every lineage ROM that I tried is a battery killer but for this phone, all the lineage ROMs are worse than that. The only ROM that worked fine from this point of view was MROM, not updated anymore, I was happy with 0,3 % per hour drain with sim in it.

Maybe you use other kernels, I don't know but I see nobody is complaining about battery here
[Xperia Z5 Compact Android Development] Jakic007:
Hmm, these are my tips for improving battery life that I do on all my phones with gapps.

Install pico gapps

Disable google location history

Disable wifi and bluetooth scanning

Do not install Google App (main source of battery drainage)

Enable location only when needed

This way you will not have google assistant but imho that thing is not worth when you compare battery drain it creates and features you get.

LineageOS has solid kernel, that should not be your problem. Also, keep in mind that we are talking about Snapdragon 810 which is battery drainer by itself...

Same thing is one my Oneplus 2 with that SoC. Even worse actually because of bigger screen and higher resolution.
[Xperia Z5 Compact Android Development] pleniceanu cristian:
Pico - yes

Location history - usually not activated

Wifi scanning- I disable it every time I activate it by mistake when pressing location on maps and the apps asks it

Google app - disabled on almost every device. Well, almost every phone, I have an XA2 with latest Pie and I have Google app but the battery is not drained

Location- only when needed.

Google play apps scanning- disabled

Device admin-disabled

Find my device- disabled

I only use Chrome, gmail and maps from Google but none of them in this device, in mean Z5C.

If I activate all of these from Google on XA2, the battery will still last longer than Z5C's but not because of the battery itself, kernel, android and Google are the main drainers of Z5C's battery. Even in stand by.

Even when I reach 3 or 4 ours of screen time in one charge, Idle device is on top consumers, maybe the second, maybe the third consumer.
[Xperia Z5 Compact Android Development] Berni-0815:
Yes. We know about that. But unfortunately we have no idea to fix it. Sorry. :crying:
[Xperia Z5 Compact Android Development] esrevinu:
Hi,

Thanks for the great work.

I have a small issue. There are two vibrate icons on the sound panel of the power menu.

Please check out https://review.lineageos.org/c/Line...res/res/layout/global_actions_silent_mode.xml

global_actions_silent_mode.xml in framework-res.apk is different from the latest one of LOS 14.1.
[Xperia Z5 Compact Android Development] Berni-0815:
I don't know what you mean. Could you please send a screenshot?

Yes. But not every mentioned change is really done.
[Xperia Z5 Compact Android Development] esrevinu:
This is the original appearance. There are two vibrate icons. One is for 'priority only' mode.

I modified framework-res.apk by myself. Now it looks like
[Xperia Z5 Compact Android Development] Berni-0815:
I've never seen such a menu. How can I enable it to verify what you're meaning?
[Xperia Z5 Compact Android Development] esrevinu:
I am using my phone in Korean, so names may not be exact.

You can turn on items on the power menu from Settings > Buttons > Power Button > Power Menu.

It is 'Sound Panel' having 4 icons to adjust the silent mode.

https://tunecomp.net/set-up-priority-interruptions-on-android-7-nougat/
[Xperia Z5 Compact Android Development] Berni-0815:
Oups! Thanks. Never seen that. I'll take a look into it asap. Please be patient.
[Xperia Z5 Compact Android Development] Berni-0815:
Bug fixed! See 1st post for download link.

1st screenshot: Power menu settings.

2nd screenshot: Detail view of status bar when vibration and priority is activated.
[Xperia Z5 Compact Android Development] hereby2020:
Hello Berni, I just wanted to Thank You for all your work on the z5c.

This ROM is very smooth and stable.

Thanks!
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 July 2020
[Xperia Z5 Compact Android Development] chinaski33:
HI Berni,

I use your rom since the end of the official support of los. I want to use microg but i can't it, after download gms core apk, a reply returns me that there is a conflict with an existing package. What can i do if i want to use it?

I want to precise that i am a little newbie and i apologize for my english (sorry i'm french).

Thanks for your advice.

Best regards
[Xperia Z5 Compact Android Development] Berni-0815:
MicroG needs the so called "signature spoofing". My ROM does not have it because that is a lot of work. Please take a look to this or this site.
[Xperia Z5 Compact Android Development] chinaski33:
Ok, finally i succeed.

Thanks.
[Xperia Z5 Compact Android Development] chinaski33:
I still have another question. I installed microg with nanodroid patcher. When I update the rom, should I redo the operation (this messed up my applications, I had to reinstall them one by one)

cordially
[Xperia Z5 Compact Android Development] Berni-0815:
I can't answer your question, because I've never used nandroid.
[Xperia Z5 Compact Android Development] udaemon:
hi, I'm experiencing this strange behaviour with latest of Bernis builds (but also with the previous one) that when I make a phone call the display goes off even if I don't put the phone onto my ear. and likewise, it is not illuminated when I move the phone away from my ear. this way I can not hang up when calling nor make any key inputs and so on. only coincidentally, the screen comes back when I press the power button or make funny faces. I have not figured out yet if it is connected to some (weird) setting or what else the reason may be.

does anybody observe a similar behaviour and/or can anybody share some hints to solve this? cheers!

by the way: thanks, Berni, for keeping this device alive!!
[Xperia Z5 Compact Android Development] skysurfer1111:
Check your proximity sensor. Press on the upper right corner of your phone.
[Xperia Z5 Compact Android Development] udaemon:
thanks for replying! i thought about that sensor, too. tried to access the service menu because i remembered there were test scripts for testing different device modules, but the so-called secret code *#*#7378423#*#* doesn't work.

not sure, if "pressing the upper right corner" where the sensor is, as you suggest, works. will try with the next call. but are there any other ways to check if the sensor itself is ok?
[Xperia Z5 Compact Android Development] Liquidator:
GPS Status conveniently includes a "Diagnose sensors" option that also tests the proximity sensor. Maybe give that a try, it's helped me before. :)
[Xperia Z5 Compact Android Development] udaemon:
thanks to the hints of skysurfer1111 and some research I can tell: it's nothing to do with the rom but is a hardware problem as reported by many people. due to different reasons the display slightly comes off the bezel, that's why you can help against black screens during call by pressing it slightly. I will try to glue it.

thanks for your comments and help!
[Xperia Z5 Compact Android Development] Berni-0815:
I think it's broken!
[Xperia Z5 Compact Android Development] Berni-0815:
This menu is not available in LineageOS!
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 August 2020
[Xperia Z5 Compact Android Development] lgehr:
Hello,

quite recently the microG Project released a new update with support for the Exposure Notifications API as used by COVID-19 contact tracing apps. (microG Services Core v0.2.12.203315)

I would like to install this but I am not sure if this ROM supports Signature Spoofing as requested by microG (see Signature Spoofing on microG's Github page).

Since this ROM comes with UnifiedNlp it maybe is the case already?! I am a little confused by the Singature Spoofing topic. :confused:

If the ROM does not support this can I use NanoDroid to do it myself?

Any help is greatly appreciated!

[MENTION=297280]berni[/MENTION]: Thank you for your great work keeping the Z5C alive! :good::good:

lgehr
[Xperia Z5 Compact Android Development] &(*):
The Sevicemenu.apk is available, ( https://xdaforums.com/xperia-z-ultra/servicemenu-apk-t3010473 ). Try installing it and see if it works (might require framework). I remember reading through a thread where someone did have it working with custom roms, this may or may not be it.
[Xperia Z5 Compact Android Development] TrulloF:
worked out of the box for me on my z5 compact. signature spoofing seems to be integrated with this rom. if not, just use nanodroid patcher. works pretty seamless too.
[Xperia Z5 Compact Android Development] udaemon:
thank you!

i found an app which made possible to figure out if the proximity sensor is working properly. but with the servicemenu you provide it's easier.

and in the meantime i repaired the display which came off the bezel due to old glue or whatever by glueing it with a glue called t-7000. seems to work very well. only tricky thing is that you have to carefully take the display out and remove the remains of the glue and dirt both from display and bezel. but that's no big issue if you take your time.