yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] Berni-0815:
Here is a compressed (uncompress it before usage!) boot image file that contains this fix. You can flash this file by typing

fastboot flash boot boot.img

in a terminal window in fastboot mode.

Please report if this is working or not.
[Xperia Z5 Compact Android Development] Paulthe2:
Big thank you Berni!

I will report if my XZ5c is stable after flashing that.

Later on, when I confirm a few Y cables I will report it in more details.

BR,

Paul
[Xperia Z5 Compact Android Development] Paulthe2:
Hi 1ggn3,

I’ve bought one cable (seems to be passive).

According to the seller, the OTG Y cable will power/charge only connected USB gadgets.

But I wouldn’t be so sure. With latest Berni’s LineageOS the cable works as OTG cable when not connected to the power at all or as a charging cable when not plugging any gadgets – depending on what was connected first. So, I guessing the logic is controlled by a phone. That’s why I asked Berni to make a change in the firmware. Then, there are other cable described in Internet. Typical Y cable – with power (red and black cables connected parallelly to regular OTG cable) or the solution described on DIY page – a cable with a switch. I’m going to check them all to find a right solution. But the prerequisite for that task is having ACA enabled in the firmware.

BR,

Paul
[Xperia Z5 Compact Android Development] 1ggn3:
Thanks, I know it might be a bit off topic here, but I have been searching a bit for such a cable for my tablet, which has only one USB-OTG port for charging and data (Dell Venue8Pro/"5830"). I kind of assumed that those cables died out when USB-C took over, good to hear I just haven't looked hard enough.
[Xperia Z5 Compact Android Development] darkangel32:
When someone tries to call to my z5c, i can hear the ringtone going, but screen doesnt light up, neither am i able to answer the call. After the caller hangs up, i get the notification of a missed call. Anything i have to change in the settings, or is it a rare rom glitch?

If i try to call back/call someone, the phone is not showing the actual phonecall attempt, just the same screen but the phone call is actually placed (the recieving end sees the phone call).

Must the phone calling app?
[Xperia Z5 Compact Android Development] RyuX_12:
The same case in my phone
[Xperia Z5 Compact Android Development] darkangel32:
Anyone that doesnt have these issues? Im going to try and flash the latest rom (clean). I am on the april one currently.
[Xperia Z5 Compact Android Development] Berni-0815:
My device is working flawlessly!
[Xperia Z5 Compact Android Development] RyuX_12:
Deep clean is recommended?
[Xperia Z5 Compact Android Development] Berni-0815:
Give it a try...
[Xperia Z5 Compact Android Development] darkangel32:
Things work as they should after a normal install (clear dalvik/cache/factory reset) to a new latest rom. Only thing is, when someone calls to my z5c, it shows a notification someone's calling etc etc, but when the caller hangsup, the phone keeps ringing anyway, answering it just shows the dailer as if calling with the caller, but no sound etc (obviously) :p

Otherwise no problems, its possible to call/hear eachother etc.
[Xperia Z5 Compact Android Development] Berni-0815:
I can only repeat myself:

My device is working flawlessly!
[Xperia Z5 Compact Android Development] norabitox:
Hello

Why not try installing the rom without gapps?
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 August 2021

Hopefully the obb files issue is fixed!

I've tested this by downloading the game "The Walking Dead: Road to Survival" successfully.
[Xperia Z5 Compact Android Development] mbrodala:
My banking app (Consorsbank) complains that the device is rooted (which is wrong). Running the "RootBeer Sample" app complains about "Dangerous props" and "TestKeys". The latter can be fixed easily with a signed build: https://wiki.lineageos.org/signing_builds.html

Before (with LOS 14.1) I was building updates myself using https://github.com/lineageos4microg/docker-lineage-cicd and after adding keys and signing the build, the banking app was happy.

Is there a recommended way to have these builds signed?
[Xperia Z5 Compact Android Development] Berni-0815:
I've tried to build signed builds but I failed!

I've never tried it again...
[Xperia Z5 Compact Android Development] mbrodala:
Not sure how you build ATM but the mentioned Docker image makes it rather easy to sign builds with custom keys. If your code was in the official LOS repo, I could likely try this myself. Otherwise I'd need to check how to do a custom build with your device tree integrated ...
[Xperia Z5 Compact Android Development] Berni-0815:
I don't remember the thrown error message. It's too long ago (july 2020.

I only remember sudden crashes and reboots...
[Xperia Z5 Compact Android Development] darkangel32:
It seems that my bankapp does work (sweden), atleast installing and starting it (havent try and login with it).
[Xperia Z5 Compact Android Development] Berni-0815:
Some banking apps are complaining about unsigned builds or rooted device, others not.
[Xperia Z5 Compact Android Development] steve8x8:
For whom it may concern: With end-of-July opengapps 18.1, I ran into problems with the Google Account (setup keeps nagging that I haven't setup one, and I never planned to do that). Back to April MindTheGapps for now.
[Xperia Z5 Compact Android Development] Berni-0815:
At which point of the start procedure of this app does this error message appears?
[Xperia Z5 Compact Android Development] mbrodala:
There is a message on the very first app start / login which specifically talks about root. This message does not appear anymore afterwards.

In addition to that there is an option in the app settings called "device binding" (German: "Gerätebindung") which allows for login without TAN. This option cannot be enabled as long as the phone is "rooted". Trying to enable it shows a message that an integrity check was performed and the verdict is that device binding cannot be enabled.

Signed builds did allow me to enable this option however.
[Xperia Z5 Compact Android Development] Berni-0815:
Here is a signed test build. Please try it and report any issues.

Please keep in mind: I'm not responsible for any damages or lost data or malfunctioned devices.

Maybe you need to make a clean flash!
[Xperia Z5 Compact Android Development] glubzor:
Hi Berni,

A point remains unclear for me :

Should we make clean flashes for each upgrade of the rom or only when installing it on a "new" device ? And what about installed apps if we don't wipe ?

(I am unable to experiment because save and restore tools I am used to use -Migrate NG and Alpha Backup- don't work anymore)

If we can upgrade reliably without fully wiping first, may be could you add this point in the OP.

Many many thanks for your relentless efforts anyway. :):):)
[Xperia Z5 Compact Android Development] Berni-0815:
No. *)

Yes.

I'm using my own TWRP (see 1st post) for backup and restore.

*) Sometimes a so called "dirty flash" (flashing a new version over an exiting version) causes problems. Some users reported about no longer working sensors for example.

In this case you need to make a clean flash!
[Xperia Z5 Compact Android Development] Berni-0815:
Is it working or not? I need feedback... :cool:
[Xperia Z5 Compact Android Development] casouzaj:
I'm using your TWRP, but it refuses to install your signed build, either dirty or clean flashng attempts. It complains about wrong digest.
[Xperia Z5 Compact Android Development] Berni-0815:
That should not happen! I've installed it myself; no problems! Maybe your download is corrupt?

But the checking for signed zip must be disabled.
[Xperia Z5 Compact Android Development] groggog:
I made a clean install from Bernis TWRP last yesterday without issues. Well I had issues but that was sd card related I think since after swapping around a couple one did the job.

Has anyone gotten magisk to work with the safetynet test? I installed the app, patched the boot.img and flashed the boot.img with fastboot then wiped data, dalvik cache but still failes the test. Suddenly it worked and passed the test, not entirely sure why...!

It says in the first post that banking apps are not working but are there any plans to attempt making them work?

Thank you so much for the work you're putting in, it's giving my phone new life :)
[Xperia Z5 Compact Android Development] groggog:
I flashed the update and the phone works fine, no bootloops or anything, but my banking app is still complaining about the phone being rooted. :confused:

Magisk is installed and patched the updated boot.img, it clears the safetynet test.
[Xperia Z5 Compact Android Development] darkangel32:
As a side question, is anyone xperiencing 'hangups' switching between apps? Its not really smooth (but works very well though).
[Xperia Z5 Compact Android Development] groggog:
THAT WORKED! :D

I had magisk hide enabled but didn't know that applying it individually to apps is a thing. The way to do it is also not obvious or well documented, or maybe I'm just blind. Pushing the shield symbol on the menu at the bottom of the screen in Magisk and then MagiskHide gives the menu to choose what apps to hide root from.

Now I don't know if Bernis test update made any difference here since I didn't try this before applying it.

Thank you TRKARTAL, I was actually downloading the stock rom last night since I am very reliant on that banking app and thought I had to go back. But now it seems I have a fully working phone! Thanks Bernie too! Let me know if there's anything I can do on the testing side of things.
[Xperia Z5 Compact Android Development] mbrodala:
This solved my issue. :)

After flashing this build (sideload, no factory reset, only the usual cache wipe) I was prompted by my banking app to enable fingerprint login and device binding. So the app is happy with the signed build. Also Rootbeer Sample now shows that the "TestKeys" check is green. (I don't use/need Magisk or any other root solution.)

Thanks a lot for this build! Can you sign all subsequent builds, too?
[Xperia Z5 Compact Android Development] threader:
Hey, i wanted to let people know that if they want to experiment from where I'm now taking a break to focus on bringing up another kernel project, they can revert the two commits in the kernel:

Revert "binder: create userspace-to-binder-buffer copy function" … 80a5357c2aa810801a3ac4361ce66bd208b93e47

Revert "UPSTREAM: binder: add flag to clear buffer on txn complete" … 4830fce8295b756fd71618812cae99619499f996

and follow - or hack lru_page*, i would prefer to follow.

https://android.googlesource.com/kernel/common/+log/refs/tags/android12-5.10-2021-07_r5/drivers/android/binder.c

These are basically the commit's that start to differ us from google main's binder now:

7a67a39 binder: add function to copy binder object from buffer by Todd Kjos · 2 years, 6 months ago

8ced0c6 binder: add functions to copy to/from binder buffers by Todd Kjos · 2 years, 6 months ago

1a7c3d9 binder: create userspace-to-binder-buffer copy function by Todd Kjos · 2 years, 6 months ago

(and don't forget this 1698174 binder: fix incorrect calculation for num_valid by Todd Kjos · 1 year, 8 months ago )

Or enable CONFIG_BINDERFS which is missing some headers and god knows, but would allow multiple binder instances and seems to get lot of focus now

https://android.googlesource.com/kernel/common/+log/refs/tags/android12-5.10-2021-07_r5/drivers/android/binderfs.c
[Xperia Z5 Compact Android Development] Paulthe2:
Hi Berni,

First of all, I'm not able to reply on your(mine) thread regarding CONFIG_USB_MSM_ACA. The last page I can reply is 31. On rest pages I cannot reply. I'm logged in but options are not present.

Then, sorry for the delay in responding, it took me long to double check all 3 kinds of Y cables with you patch.

Basically, it does not work with any of the cables.

Moreover, I noticed a difference in behavior on the cable I bought after applying you patch. Previously, the cable worked as power cable or OTG depending what was connected to USB-A male or female. From microUSB side the cable is always OTG (ID connected to GND). Now, after patching, the same cable cannot work in power mode anymore.

Best regards
[Xperia Z5 Compact Android Development] Paulthe2:
Hi Berni,

Sorry for the delay in responding, it took me long to double check all 3 kinds of Y cables with you patch.

Basically, it does not work with any of the cables.

Moreover, I noticed a difference in behavior on the cable I bought after applying you patch. Previously, the cable worked as power cable or OTG depending what was connected to USB-A male or female. From microUSB side the cable is always OTG (ID connected to GND). Now, after patching, the same cable cannot work in power mode anymore.

Best regards
[Xperia Z5 Compact Android Development] Berni-0815:
If your banking app complains about a rooted device, my latest build will NOT solve that, because it is a signed build. That has nothing to do with root or so.
[Xperia Z5 Compact Android Development] Berni-0815:
I'll try it
[Xperia Z5 Compact Android Development] Berni-0815:
I'm a little bit confused! Shall I revert my changes? Shall I remove "CONFIG_USB_MSM_ACA"
[Xperia Z5 Compact Android Development] kyraxd:
Recently found this thread and flashed Bernie's image on my Z5c. Never thought that it would run so smooth, almost considered getting another phone, but now I'm sure I'll keep this one for much longer :) Thanks @Berni-0815 for your great work!

One question I do have is about the camera (although it's noted in the first post), I'm pretty happy with it currently, although wondering if the focus problem is fixable? Do you have any idea what the problem is? Because if that would be working then it would just be wonderful!

Second camera related question, in the Sony image I could press the camera button when te phone was in sleep mode and then the camera app would open. Is this configurable (I can't find in the settings) ?

Many, many thanks again for the great work!
[Xperia Z5 Compact Android Development] groggog:
Settings -> System -> Buttons: Camera button - Launch camera
[Xperia Z5 Compact Android Development] Berni-0815:
I'm sorry, but this is currently not fixable by us.
[Xperia Z5 Compact Android Development] kyraxd:
I'm sorry to hear that :cry: I'm able to focus the camera also on short distances though (just by slowly moving towards the object), but it's kinda difficult sometimes. Also barcode and QR reader apps have difficulties.

Out of curiosity, do you know what is the cause why focussing isn't working?

For the rest, I'm pretty impressed by the overall experiences, haven't found any issues until now, and seems like battery drain is also very low (better than the 7.1.1 sony image)!
[Xperia Z5 Compact Android Development] threader:
Try the open source app 'Insular' it's a sandboxing app i used with success on a particularly anti root banking app where even magisk hide failed. It's in Fdroid at least, I've not checked the play store but i suppose it's there.
[Xperia Z5 Compact Android Development] Berni-0815:
No. :(
[Xperia Z5 Compact Android Development] jeydenn:
Hi, I would like to ask what is the issue with payment. Is it buggy, or it doesn't work at all? Thanks for your answer.
[Xperia Z5 Compact Android Development] mbrodala:
@jeydenn What do you mean exactly? Or: what behavior do you see?

I did set up a few cards in Google Pay but could not do a payment this way. NFC was enabled, one terminal did not respond at all, another one claimed "invalid card number" and prompted me to enter one.

So Google Pay does not work for me but I'm unsure why. I did disable the lockscreen via profiles (to keep using fingerprint), not sure if that's the reason.
[Xperia Z5 Compact Android Development] jeydenn:
Well, I don't have the os installed yet, so I don't see any behavior. I was just asking about it because it is mentioned in the main post among things that are not working, but later it is stated that it should be working now. There are no further mentions about it after that. I wanted to upgrade, but not being able to use this feature is a huge downside for me, so I just wanted to know what is the status on that.
[Xperia Z5 Compact Android Development] Berni-0815:
It is marked as not working, because until now it is not working, as far as I know.

And, yes, after the latest update, it should work (with this commit)! But since I don't use (and don't want to use) GPay, I can't say if it is working or not...

Only a test could state it.
[Xperia Z5 Compact Android Development] napthemax:
Been away from the whole rooting/ROM/Android world for years, but found my old Z5C in a drawer recently. Went from official 7.1.1 to this build in under an hour (I'm not a developer, just eager to learn new things). Big KUDOS to all who continue to develop these! Have not found a single issue (yet, maybe I should say :-) )!.
[Xperia Z5 Compact Android Development] Wolfblitz_:
I must say it's been a long time since my Z5c last looked this good. Loving this ROM and the fact that I get Android 11. :cool:
[Xperia Z5 Compact Android Development] qwerta12:
imx 300 was installed on many models, such as XZ, XA2, which have everything in order with the camera, why not try to pull something out of there? @Berni-0815 listen please, can this really work?
[Xperia Z5 Compact Android Development] Berni-0815:
What is "imx 300" and why should it help is with our problems with ancient and closed-source vendor blob's?
[Xperia Z5 Compact Android Development] qwerta12:
Imx 300 is a rear camera module of our device, which was installed on newer Sony models. They also have android 11, the camera works well there and there are no problems with focusing
[Xperia Z5 Compact Android Development] Delfinololo:
I am looking forward to test it. As soon as I can I will check and let you know!
[Xperia Z5 Compact Android Development] Berni-0815:
Have you seen my comment "why should it help is with our problems with ancient and closed-source vendor blob's?"?

That will answer all of your questions...
[Xperia Z5 Compact Android Development] kyraxd:
Most likely because the blobs have been compiled for a specific kernel+libs and the newer devices (running Android 11) have a much newer kernel... so it's not easy (or even impossible) to re-use them...
[Xperia Z5 Compact Android Development] 1ggn3:
It would be so much easier if Sony and Qualcomm could just dump their whole stuff on the internet. Seriously, this phone is more than 5 years old now, even the cheap Chinese clones are better now..
[Xperia Z5 Compact Android Development] Delfinololo:
I tryed It but unfortunately it didn't work out as before the update. NFC is enabled and Gpay works fine but It just doesn't work when you try to pay contactless. Thanks for trying to solve though.

Your rom is awesome, it's just GPay that doesn't work and some camere issues (like really slow video frame rates and the camera that stops working after like 5 minutes of videocall until I restart -i can try to send logs if you don't get this issue).

A curiosity: in your opinion, is there any chance you'll want/be able to put android 12 on Z5C when it will be the time?
[Xperia Z5 Compact Android Development] Berni-0815:
Yes... :cool:
[Xperia Z5 Compact Android Development] darkangel32:
It would be so much easier if Sony (and other android phone brands) would just simply support their devices abit longer like Apple does to theirs. If a one man team like Berni can port the latest android in a quite well-working order, then i'm just going to assume a large a company as the Sony Xperia sub devision could release some more OS updates than simply one or two OS revisions.

I know Qualcomm/google have some influence on this, but still, its certainly possible for sony, samsung etc to give a 4/5 year OS update program, in special with in mind that sony has access to source codes which makes things much easier.

But ok, its good we have the community on sites/forums like these.
[Xperia Z5 Compact Android Development] luidgiking:
Hi Berni, first off kudos to you for keeping this little beast updated. I installed the latest 14.1 build, but no 60 fps video recording, is there a port or an app that can take full advantage of the z5c camera?

Also which of your builds has the best battery life and stable build as for a daily driver?

Thank you! I always come back to the mighty e5823, might just get into development like you. Regards
[Xperia Z5 Compact Android Development] RyuX_12:
Hi berni,i was updated to your last build,everything was cleaned except one,wifi was disconnected and connected again if i playing music from poweramp,in yt music or anything streaming app sometimes disconnected for several minutes
[Xperia Z5 Compact Android Development] Berni-0815:
WiFi is a weird thing. I can't figure out why it sometimes works and sometimes not.
[Xperia Z5 Compact Android Development] RyuX_12:
Wifi solved,i was use wrong wifi antenna cover for SO-04H Japanese model and my phone is E5803
[Xperia Z5 Compact Android Development] norabitox:
Hello Berni

Thanks for your rom I use it every day.

In my country, the message app uses LINE.

LINE notification lights don't work well when in sleep mode

Sometimes the lights work, which is not always the case.

When you turn on the screen, there is a LINE mark on the status bar properly

I tried variously change the settings, but can not be resolved

Is there something solution.

Please forgive my weird english

Best regards.
[Xperia Z5 Compact Android Development] Berni-0815:
I really don't know what LINE is... :unsure:
[Xperia Z5 Compact Android Development] RyuX_12:
This is LINE messaging app
[Xperia Z5 Compact Android Development] Berni-0815:
Ok. Do other messaging apps show the same behaviour at your device?

Since I'm only using Threema, Signal and Telegram, I can't reproduce it here. They are working as intended.
[Xperia Z5 Compact Android Development] norabitox:
Thank you for your prompt reply.

Is that so

I don't use other messaging apps so I don't know.

I'm sorry for the local question.
[Xperia Z5 Compact Android Development] darkangel32:
No problems with facebook messenger, notifications and lights work as intended, whenever the screens locked/turned off or not.
[Xperia Z5 Compact Android Development] norabitox:
It may be a problem of the app itself.

Thanks.
[Xperia Z5 Compact Android Development] RyuX_12:
oh i've problem again,if i want screen recording use device media,it not came,the sound in recorded screen is disabled after recording the screen use device media
[Xperia Z5 Compact Android Development] RyuX_12:
Sorry if u dont understand,recorded screen use device sound (this case is internal music,not from mic),no sound appears if i playing those video from gallery
[Xperia Z5 Compact Android Development] Berni-0815:
Yes, I really don't understand...

How do you record screen? I can't follow you...

Please give me a step to step guide to reproduce your issue.
[Xperia Z5 Compact Android Development] RyuX_12:
From this,i test it to record my sd card music from poweramp,no sound appears but i test it from youtube,it works
[Xperia Z5 Compact Android Development] Berni-0815:
Ok. Now I've understood. Sorry, but I've never seen or used this feature before.

I tried as suggested and I can hear my poweramp sound with every tested video player (google player [com.android.gallery3d], gallery [com.simplemobiletools.gallery.pro] and file manager [com.alphainventor.filemanager]) as expected.

So, I don't know what you've done wrong or what I've done right... :cool:
[Xperia Z5 Compact Android Development] Berni-0815:
BTW: Coldplay is cool! But Adele.... :eek:
[Xperia Z5 Compact Android Development] RyuX_12:
Maybe test it with earphone