yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] torukk:
This is the patch which should make camera work on kitakami platform, I hope its complete and the result can be reproduced.

https://mega.nz/file/4kFRQKjJ#xREbfbQXpFABNgQnHD2zuv6BGMeNfeP9GCRuhkN2bTc

So far, I had picture taking and video recording working in snap and opencamera both front and rear camera (but I did so many builds that I didn't thoroughly tested everything over and over again, so there may be regressions).

Things to do: I don't remember how capable was video recording on stock or los14.1, because here it offers video resolutions above FHD up to 4k, but tested in opencamera with camera2 api, in FHD resolution the video is barely smooth (only in plain HD video is ok and smooth). If I select lower FPS, in osd menu it always shows full FPS ~30, however after inspecting recorded video it has always variable FPS. Switching between AVC and HEVC works. So, I suspect maybe hw encoding is not used at all, but if it really is, which would mean that the hardware is really not capable of recording above FHD resolution, it would be better to remove it from supported video modes (because for example simplecamera choose by default max resolution, and I was wandering why recording in this app is broken).
[Xperia Z5 Compact Android Development] tarkzim:
I know you guys probably make camera to work, but what exactly did you do to the "prebuilt wrapper" from suzu? i mean between your LOS15 "patch" and LOS17 "patch"?

AFAIK, this is not the proper way to support the camera, and for me you patch didn't work on my Z5 R builds, have you done any hexediting or manual patch to the prebuilt kanged wrapper (camera.qcom.so)?

Since suzu wasn't open sourced so we can't build our own working wrapper for now, and your git patch for shim is just the same as my LOS17 tree, which sources are you basing off?
[Xperia Z5 Compact Android Development] sabar_op:
Yes....it's not working for Z4 tablet at first try...but after I disable iddd service, the cam works using the open camera (snap still not working), then I use the shim from shinano common which make snap working...

Perhaps that way can make other Z5 works as I am using your source to build los17.1 for Z4 tablet.
[Xperia Z5 Compact Android Development] torukk:
I just copied it from suzu los16.0 image (btw kugo is binary same) and the one for 15.1 was copied from suzu los15.1 (created by Chippa_a), and I didn't do any modifications to the binary.

Yeah, the shim is from your sources, and as I mentioned already I'm primarily basing my repo to your sources and Berni's sources, I don't have github account for now so my sources are not public yet however I'm doing my own research and development and once I think that 17.1 is completed for my daily usage I'll publish the sources (or if I find something very crucial I'll share it immediately).

So I understand that it does not work yet on z5 R, lets wait if it works on suzuran and satsuki.
[Xperia Z5 Compact Android Development] tarkzim:
Okay guys, i just get the OOS wrapper to work on my Q and R builds, without any "Prebuilt" patch.

take a look at my sources, and [MENTION=2705776]sabar_op[/MENTION] can you stop copy-pasting our git commits? or should i call it "files"?

Try to learn how to use git commands properly, no offense, but i think you have to keep the authorship of every commit.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

New: Camera working; both built-in camera (Snap) and 3-rd party camera apps.

Snap may be a little bit laggy, please use 3-rd party camera app instead; for example OpenCamera. If you're running into errors, please report.
[Xperia Z5 Compact Android Development] :
I've been trying the rom for a few hours and it's wonderful, great job!

The only odd thing i noticed is that the both cpus are underclocked by about 200/300 mhz each, why this?
[Xperia Z5 Compact Android Development] Berni-0815:
I really don't know because I don't know for sure that we have built in such a "feature".
[Xperia Z5 Compact Android Development] :
You can verify this yourself using cpu-z (or similar apps) and trying to change the max. cpu speed with smartpak/kernel adiutor and other apps.

This is the first time i see a maximum of 1.34 ghz for little cores (instead of 1.55) and 1.72ghz for big cores (instead of 1.90).

Also, the camera does work but only up to 8 mpx, another thing that could be improved.
[Xperia Z5 Compact Android Development] Berni-0815:
I do believe you but please believe me that we doesn't have built in such a "feature"!

We are so happy that we have managed the camera to work after such a long time of try and error, that the maximum resolution is quite unimportant for now.
[Xperia Z5 Compact Android Development] :
Then it's a bug...
[Xperia Z5 Compact Android Development] Aeny:
The working camera is awesome! I'm now running this rom as my daily, upgraded from the official image. Has anyone gotten microg to work? I seem to have issues getting signature spoofing to work properly.

EDIT: after a clean install of the version released on the 29th, it seems that signature spoofing is no longer included in this rom. It was included in the first version released this month. I wonder if this is a conscious decision or if it was accidentally excluded from the last build? I'll see if I can get NanoDroid to work and update this post again with my findings :)
[Xperia Z5 Compact Android Development] :
Another issue i'm getting after the locked CPU frequencies: there is a lot of static noise in audio when using wired headphones. Both at low and high volume. Very noticeable and annoying.

Maybe mixer_paths need some adjusting? I didn't have this problem using aex 4.6.
[Xperia Z5 Compact Android Development] Aeny:
Well seems I have found why the cores are not clocked as high as they should be. I cloned the kernel repo and took a quick look (see attached screenshot). Feel fee to fix it [MENTION=7835385]TheVan28[/MENTION].

As for the static noise, yes it's there. I tested this with Sony WH-1000XM3 and with the 3.5mm plugged in there's indeed static noise, the static seems to be gone when using Bluetooth though.

EDIT: commit id: cc60ad48c121b237a52334d64f26d8cfbbfb9b97
[Xperia Z5 Compact Android Development] :
I don't know how to fix it though... Berni should remove this limitation.

I was able to fix this myself by using another mixer_path.xml that i found when people were having similar problems on Lineage 14 (don't remember if it's from stock rom or not)

I can still hear just a little bit of static when very low volume or when there is nothing playing but it's much less noticeable

I'll attach it to this post.

No idea how it affects microphone gain and other stuff, didn't test that.
[Xperia Z5 Compact Android Development] florstat:
You can just compile and reflash the kernel. You have to modify source and then

make bootimage

Those limitation are needed as snapadragon 810 has serious heating issues when not underclocked ( I personally ended to just turn off BIG cores to solve the problem ).
[Xperia Z5 Compact Android Development] Aeny:
I diffed the file attached to your post with the one in the sources linked in the first post and the only differences I spotted at first glance are the ones introduced by Berni in his commit to avoid echo (but I could be wrong)

https://github.com/Professor-Berni/...mmit/c926f566763bea31b81b95f78b3519df3c4aa0b1

I think at this point it is down to a personal preference in sound and perhaps replacing mixer_path.xml is an okay solution to that.
[Xperia Z5 Compact Android Development] :
1. i think underclocking should be up to the user, if i want my cpu underclocked i can do that myself.

2. Compiling and reflashing the kernel isn't something everyone can do, i'm not a developer and i don't know how to edit and compile the kernel.

3. I also turned off the big cores to resolve the problem, and that's the reason why i think limiting the little cores is dumb... Why underlock the power efficient cores? That only means the big ones work more often...

And btw, there is no need to do this for heat, the thermal driver will throttle the cpu anyways.
[Xperia Z5 Compact Android Development] Max8719:
Hello Berni,

thank you for your great rom. I really appreciate your work. The rom is very smooth and stable. The camera also works good. Only video recording in higher resolutions is very unstable (main camera and frontcamera).

I also have a problem with the fingerprint reader. He works, but when i lock the phone and after some time i want to unlock the phone the fingerprint reader does not react anymore and i have to type in my pincode. Would be nice if you could have a look at it.

Keep up your great work. :good:

Best regards from Austria
[Xperia Z5 Compact Android Development] Aeny:
So, Installing the NanoDroid patcher via TWRP didn't work for me, but I got it working by installing NanoDroid patcher via Magisk, it seems to work perfectly so far. I used the latest version as of writing (NanoDroid-patcher-23.0.1.20201029). This gives you access to signature spoofing so that microg and the fakestore work properly. :)

Screenshot included in attachment as proof.
[Xperia Z5 Compact Android Development] uncle-sam:
First of all: thank you for the effort and trying to keep the suzuran alive!

Now i'm trying to get into the discussion. I've installed the last build with gapps pico and magisk yesterday and played with it round about 4-5h. I've encountered some strange problems:

- Main Problem (for me) is a really fast battery drain. In normal use i lost 10 percent in five minutes. Before i used the stock 7.1.1 rom with modified kernel -> battery for up to 48h. No i did not try to remove the suggested apps to improve battery consumption.

- Also phone gets pretty hot.

- system partition is read only. -> Build.prop is not editable. (tried to set up Google Camera)

- connection to 4G/LTE seems laggy (Telefonica o2), needs some time to connect, seems to "prefer" 3G (even with changed preferred network to 4g).

- audiovolume is (when starting to play a song) for a pretty short time really loud.

- not possible to use custom song for phone ring etc. You can select it but it will not be set.

But i am really surprised about the overall performance. And all the stuff that is working for now.

Update 2020/11/05:

I completely reinstalled with (again) full wipe and now it's working better within acceptable range. I think the battery consumption may due to the type of gestures you're using. It appears to me that using the gestures instead of the classic 3-Button-Type consumes a lot more battery. Could be possible because of heavier animations.

Another bug that occured on my phone:

-light and proximity sensors are not working. I'm not sure they functioned in the first try, but i think the light sensor was working.
[Xperia Z5 Compact Android Development] :
Can confirm CPU clock is fixed, didn't notice improvements on the headphone audio static though.
[Xperia Z5 Compact Android Development] Xoxu:
I have this static on headphone on lineage 14. Didn't tried 17 for the moment.

Only when you have quiet moment on movies...
[Xperia Z5 Compact Android Development] Berni-0815:
:good:

Ok. Then it is a general issue. If I have a little bit more time, I'll take a closer look into it. Thanks for your feedback.
[Xperia Z5 Compact Android Development] beflythis:
tried flashing both the late Oct and early Nov builds (coming from Los 16 build) with a data/system/cache/dalvik cache wipe (twice) , flash zip, flash arm 64 pico gapps, stuck in a system loading screen with animation for an overly extended time with no OS boot. First time I left it for about 45 minutes while I washed my car and it still didn't boot; appears to be the same issue with the Nov build and the same steps.

What am I missing?
[Xperia Z5 Compact Android Development] Max8719:
Concerning the fingerprint issue. I found out that the sensor reacts always if bluetooth is activated all the time. So maybe the issue has something to do with the bluetooth. :confused:
[Xperia Z5 Compact Android Development] Berni-0815:
You're sure that you're coming from suzuran los16? I don't know that there is a los16 build out there...
[Xperia Z5 Compact Android Development] beflythis:
apols, Los 15. Any guidance for not booting?
[Xperia Z5 Compact Android Development] :
It's more likely that it stays on all the time when bluetooth is activated because it doesen't enter doze mode, and when the device dozes it stops detecting fingerprints.

Same thing happens when device is charging.

by the way, it's not an issue but a feature. I would prefer it to be disabled though. (someone in the lineage 17 z5 thread mentioned that it can be done, but the rom creator has to do it)
[Xperia Z5 Compact Android Development] Berni-0815:
No. I'm sorry. You should be able to grab a LOG in this state by typing this line in a terminal:

adb shell logcat -b all -d> logcat

Send my this LOG file via PN, because it might contain personal data... :angel:
[Xperia Z5 Compact Android Development] beflythis:
Thanks. At what stage in the process should I do this, and where does it output the log file?

edit: does the fact that I'm on low battery (20ish or below) prevent or somehow block the system from a first boot? I've left it plugged while flashing and booting.
[Xperia Z5 Compact Android Development] Berni-0815:
After the Sony splash screen disappears and the bootanimation starts. Before this there is no adb connection possible. You can see this whether the connection is established or not.

If you're not able to connect, you should break the boot process. This procedure is described in some earlier post.

I assmue you are using linux. Then the output file is written at the place where you start the command. Normally in /home/<username>

No.
[Xperia Z5 Compact Android Development] Max8719:
Okay then the fingerprint is useless. Because if he only works if doze mode is not working battery drain would be way too high.
[Xperia Z5 Compact Android Development] Aeny:
Did a clean install with this version and now signature spoofing works out of the box! :D
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
For some reason, the boot animation pops up briefly, then it powers off.

Deleted NanoDroid modules and other Magisk modules, and reinstalled NanoDroid & other modules. That fixed it.
[Xperia Z5 Compact Android Development] Berni-0815:
I'm not sure that I've understood what you're meaning... :angel:
[Xperia Z5 Compact Android Development] :
user "glennza" wrote this on the lineage 17 for z5 thread:

"I had a look at the config.xml. It also says this...

"Should we listen for fingerprints when the screen is off? Devices

with a rear-mounted sensor want this, but certain devices have

the sensor embedded in the power key and listening all the time

causes a poor experience"

I noticed that the fingerprint sensor on my Z5 was live all the time. I'm not sure this is a good thing???"

Doesen't this mean that the fingerprint being always on can be disabled before compiling the rom? Or am i mistaken?
[Xperia Z5 Compact Android Development] oguzhantemiz:
I noticed that. When the fingerprint sensor does not work, it starts working when you press the emergency on the pin screen and return back.
[Xperia Z5 Compact Android Development] beflythis:
-actually not using linux (windows), but I would run adb in a command prompt, remotely, which I think achieves the same result? (using your cmd line)

-sounds like the log would then be in the root adb folder.. i can poke around and find out.

about to do a backup and try another flash. will shoot you the log in PM if the same. big thanks in advance.
[Xperia Z5 Compact Android Development] Berni-0815:
I really don't know how to do that.
[Xperia Z5 Compact Android Development] Berni-0815:
In your LOG file I can't see any reason for that! Have you tried without gapps?
[Xperia Z5 Compact Android Development] Max8719:
I found a discussion in a XDA thread about similar fingerprint issues like in this rom. They found a solution for there rom ( Lineage 15.1). Maybe someone can modify the code and find a solution for this rom.

https://xdaforums.com/xiaomi-redmi-4x/development/rom-2017-08-07lineage-14-1-t3653016/page233
[Xperia Z5 Compact Android Development] Berni-0815:
I'm sorry, but this solution does not apply to our devices.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 November 2020
[Xperia Z5 Compact Android Development] beflythis:
just tried without Gapps (flashing only the Oct build .zip) and get the same result. :crying:

Interesting that the red LED is ON (lit red) for the first part of the boot, then goes off at some point, but the phone still won't break the LOS boot animation. :(

Any extra steps I can take including deeper data wipes, partitions, etc to attempt to get this build running?

edit: just flashed the latest Nov 9 zip incl verification (no issues) and no gapps, and still stuck on LOS animation. le sad.
[Xperia Z5 Compact Android Development] Berni-0815:
No. If you're coming from los15 everything that's needed should have been done.

Which has been the last original Sony ROM that had been installed at your device? It MUST be 32.4.A.1.54, because that version changes something at your device I can't explain exactly. I think, it has something to do with baseband.
[Xperia Z5 Compact Android Development] Shmee007:
Ant+

Thanks [MENTION=7749536]Berni-0815[/MENTION] for the amazing work and effort you put in.

I used Ant+ regularly, any chance that you'd be able to get this working?
[Xperia Z5 Compact Android Development] Berni-0815:
I really don't know. Since I've never used or missed it, I can't say, if it's possible or not. At the moment I don't have enough time to take a closer look into that.

No. Never ever! I have enough work with my current projects to open a new one!!!!
[Xperia Z5 Compact Android Development] Berni-0815:
My los15 does not support signature spoofing. You're in my thread for los17 and this version does support it. But I can't say if microG is working or not. I don't use it.

Give it a try.
[Xperia Z5 Compact Android Development] Berni-0815:
Los15 is pre-rooted, that is not possible in los17; but you can use magisk for rooting purposes.

Los15 is more stable, los17 still have some minor bugs. For example the camera is a little bit buggy.

Which is the best ROM for you? I can't decide it, you have to test it yourself... :angel:
[Xperia Z5 Compact Android Development] Spyop3:
microG works perfect on last build !

And that's something I especially wanted to thank you for Berni, one step closer to remove google from my life ;)
[Xperia Z5 Compact Android Development] udaemon:
hi, I'm also facing some problems with flashing or restoring a back up (with twrp 3.2.1), namely that the the phone is stuck booting (at the lineage logo). I observed the problem on two different phones. yesterday I did a completely new rooting and flashing twrp 3.2.1 and los17, since I bought another z5c. I had to flash the rom, i. e. los17 several times until I got it running. firstly, I flashed it and then magisk, but booting stuck. then I went back to twrp, wiped cache, dalvik, data reflashed the rom. stuck again. wiped everything incl. system, reflashed. stuck again. finally, I reflashed it without wiping and this worked. but I remember that this time I didn't opt for twrp's offer to install the twrp app right before rebooting into system. don't know which was the relevant act. it seems to be matter of luck (?). :)

maybe you could try to wipe everything again (system, data, cache, dalvik) and flash the rom without anything else, reboot without letting twrp install its app (if that's the case on your phone). if it gets stuck, try to just reflash the rom.

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

Minor bug fixes. For example, the German app AusweisApp2 refused to work.

Updated fingerprint HAL version from 2.0 to 2.1.
[Xperia Z5 Compact Android Development] Berni-0815:
At my device every sensor is working as expected.
[Xperia Z5 Compact Android Development] Ermann123:
Is the encryption working on this ROM?

:confused:

---------- Post added at 10:15 PM ---------- Previous post was at 10:13 PM ----------

After Nougat Xposed has been replaced by EdXposed Module.

Or do you mean, that even this one is not (yet?) supported in Q?
[Xperia Z5 Compact Android Development] udaemon:
hi, I have just bought another used xperia z5 compact as my other device has gotten old. after I received the new one I almost directly rooted it installed twrp and flashed lineageos 17. I have not made a call or so when it was still running stock rom. after Berni's great los17 rom (vielen dank!) was running for a while I recognized that the microphone is not working during calls, only if the speaker is enabled. also when i want to record audio or use the tuner it doesn't work.

I would like to find out if it is a hardware problem or if it can be solved by some setting or so. therefore: is there any possibility to get the service menu running? I've read it offers microphone check and settings of the noise reduction mechanism.

thanks for your hints!
[Xperia Z5 Compact Android Development] :
Something i wanted to report:

I was able to take full res 23 mpx photos with HTC Camera, A Better Camera and Camera FV-5. they look just as good as with lineage 14 or other android 7 roms.

The only issue is that the viewfinder doesen't work with these resolutions, i can take a picture and focus on things but the screen is black
[Xperia Z5 Compact Android Development] petefoth:
On stock software, the service menu is invoked by entering the following in dialer

*#*#7378423#*#*

It offers microphone check and a whole lot of other useful checks that are worth running on a newly bought phone to check everything is working.

I had a very similar problem with a Z5 C I bought from Ebay and, having run the service menu tests, I was able to get a refund from the seller as the phone clearly was not working as advertised. However, I did that *before* unlocking the bootloader and flashing a custom ROM. I'm not sure whether the service menu is present in the ROM and, if so, how you would invoke it.

At a push you could reflash the stock ROM with flashtool and try invoking it as described.
[Xperia Z5 Compact Android Development] Berni-0815:
This menu is only available in stock ROMs.
[Xperia Z5 Compact Android Development] Ermann123:
on XZ2c with (official) Lineage 17.1 the Edexposed Modul is working!!
[Xperia Z5 Compact Android Development] &(*):
Pete & Berni,

The apk for services menu is available here ( https://xdaforums.com/xperia-z-ultra/servicemenu-apk-t3010473 ) and works with custom roms from my understanding based on my undertanding of another's response on the 14.1 thread .

---------- Post added at 01:46 AM ---------- Previous post was at 01:36 AM ----------

Here is the servicemenu.apk: ( https://xdaforums.com/xperia-z-ultra/servicemenu-apk-t3010473 )
[Xperia Z5 Compact Android Development] halbleiter:
Hi, at first a short thank you for your work.

I switched to Los17.1 beginning with the 20201029 version, which worked with only minor bugs, which were however acceptable for daily use.

Anyway since yesterday the camera can't focus anymore, using opencamera, built in as well as Whatsapp. When you tap on the screen, it tries to focus, but it always ends with a red "unfocussed" rectangle. However when you switch to video mode in opencamera, where the camera focusses automatically without tapping on the screen, the focus works.

Flashed the 20201112 version today, but doesn't improve.

Does anyone know a solution for this behaviour?

Thanks in advance.
[Xperia Z5 Compact Android Development] udaemon:
Hi &(*) and thanks for your help. unfortunately this apk doesn't work here on los17 neither it did on los14. copied the apk into /system/app/ServiceMenu (created the ServiceMenu folder according to the fact that every other app here has its own folder) and after rebooting I tried to invoke the menu by the known dialing command (*#*#...): nothing happens.

maybe I'm missing some dependency or so?

kind regards!