yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] Berni-0815:
Ok. I haven't heard about this command before.

I can confirm that it's working.

My question is, what does this command change? Maybe I can add this in my builds?
[Xperia Z5 Compact Android Development] Berni-0815:
FYI:

I've tried this with los18.1!
[Xperia Z5 Compact Android Development] casouzaj:
I guess it systemlessly changes ro.buid.fingerprint. Contact the module's developer for further details.
[Xperia Z5 Compact Android Development] Berni-0815:
That's my guessing too. Currently I'm trying to find a solution that will work without using Magisk.
[Xperia Z5 Compact Android Development] adytwjy:
Hi again @casouzaj , with your guide, I manage to make SafetyNet pass on both test app from Play Store and Magisk built in test.. Thank you for your help :)

Unfortunately, after did the MagiskHide things, renaming Magisk Manager, the particular app still detect my z5c as rooted. But no problem with that, perhaps I try another workaround when I have time.

I try to write it down here (along with screenshot), in case anybody want to try pass the SafetyNet test for another purposes:

1. Installing Magisk, and MagiskHide Prop Config module

2. Activating built-in terminal app from developers option

3. Run "props" command in the terminal app

4.a. Choose 1 - Edit device fingerprint

b. Choose f - Pick a certified fingerprint

c. Choose 27 - Sony

d. Choose 31 - Sony Xperia Z5 Compact E5823 (7.1.1)

e. Choose y - Do you want to continue?

f. Choose y - Reboot now

That would be all, thanks :D
[Xperia Z5 Compact Android Development] Berni-0815:
I've got it! Currently I'm building this for los17.1. In los18.1 it's working as expected.

Both versions will be up in a few minutes (or less than an hour).

I will post it asap.
[Xperia Z5 Compact Android Development] adytwjy:
Thank you so much @Berni-0815 :giggle:(y)
[Xperia Z5 Compact Android Development] Berni-0815:
New version out;see 1st post.

SafetyNet test passed successfully
[Xperia Z5 Compact Android Development] casouzaj:
Just confirming that the latest build passes the CTS profile test without the MHPC module. Well done!
[Xperia Z5 Compact Android Development] Berni-0815:
That has been my intention, because I know a lot of people who don't want to root their device.
[Xperia Z5 Compact Android Development] adytwjy:
Yes, I can confirm that too @Berni-0815 Thanks!

@casouzaj Can you please check that with this CTS profile test passed, all your usual banking and working apps can run without root? Because the one particular app (that running well on the other device with official LOS17.1) and several others (I've tried installing other banking apps, too) are still detecting my z5c is rooted o_O and MagiskHide also doesn't help :censored:
[Xperia Z5 Compact Android Development] casouzaj:
Which apps, specifically, accuse your Z5C to be rooted? There is one brazilian bank app which doesn't run for me, not because my phone is rooted, but because I'm currently living in Japan.
[Xperia Z5 Compact Android Development] casouzaj:
Of course I did it!
[Xperia Z5 Compact Android Development] casouzaj:
Yup! This particular brazilian banking app doesn't run even on an unrooted phone here in Japan.
[Xperia Z5 Compact Android Development] adytwjy:
This is the one particular app that I mention: https://play.google.com/store/apps/details?id=com.uob.id.digitalbank , but perhaps the app is regional based and not available in Japan.

In my z3c with official LOS17.1 installed, this application can run with or without root / MagiskHide, while on my z5c it can't.. Since the SafetyNet is now passed, there must be something else that triggered the root detection and cannot be masked using MagiskHide
[Xperia Z5 Compact Android Development] Berni-0815:
You're right (see screenshots). I have to take a closer look at this issue. Maybe a LOG will tell me how to fix it...
[Xperia Z5 Compact Android Development] petefoth:
Hi

The 'Features' section says

Are these the blobs in your `proprietary_vendor_sony` or did you build using the extracted files directly?

Thanks
[Xperia Z5 Compact Android Development] Berni-0815:
Since los17.1 we are using our own vendor tree. For example, I'm using this one: Klick

Basically it's an extraction from nougat's (Android 7.1) stock system.ext4 file but some files have been changed and some have been kanged from other devices with similiar hardware.
[Xperia Z5 Compact Android Development] adytwjy:
Thank you for trying that out @Berni-0815

Could you tell me how to get specific LOG that you need?
[Xperia Z5 Compact Android Development] Berni-0815:
I've fetched LOG's:

01-27 15:27:13.776 8007 8007 I .id.digitalban: Thread[1,tid=8007,Native,Thread*=0x7e72594010,peer=0x7311bba8,"main"] recursive attempt to load library "/data/app/~~5VInqPOWUolC28Pf0F5wcA==/com.uob.id.digitalbank-9d5JveOjJVwcDPFbQVJczQ==/lib/arm64/libsecurefileio.so"
01-27 15:27:13.789 8007 8007 W System.err: at com.uob.securetoken.c.a(SourceFile:46)
01-27 15:27:13.789 8007 8007 W System.err: at com.uob.securetoken.c.a(SourceFile:88)
01-27 15:27:13.789 8007 8007 W System.err: at com.uob.securetoken.c.a(SourceFile:134)
01-27 15:27:13.789 8007 8007 W System.err: at uob.com.digitalbank.features.base.LauncherActivity.a(SourceFile:151)
01-27 15:27:13.789 8007 8007 W System.err: at com.uob.securetoken.b.b$a.onReceive(SourceFile:51)
01-27 15:27:13.811 8007 8007 W System.err: at com.uob.securetoken.c.a(SourceFile:46)
01-27 15:27:13.811 8007 8007 W System.err: at com.uob.securetoken.c.a(SourceFile:88)
01-27 15:27:13.811 8007 8007 W System.err: at com.uob.securetoken.c.a(SourceFile:134)
01-27 15:27:13.811 8007 8007 W System.err: at uob.com.digitalbank.features.base.LauncherActivity.a(SourceFile:151)
01-27 15:27:13.812 8007 8007 W System.err: at com.uob.securetoken.b.b$a.onReceive(SourceFile:51)
01-27 15:27:13.842 8007 8007 I wm_on_top_resumed_lost_called: [157442786,uob.com.digitalbank.features.base.LauncherActivity,topStateChangedWhenResumed]
01-27 15:27:13.867 1074 2224 W ActivityManager: Unable to start service Intent { cmp=com.uob.id.digitalbank/com.vkey.android.secure.overlay.OverlayService } U=0: not found
01-27 15:27:13.903 1074 2593 W ActivityManager: Unable to start service Intent { cmp=com.uob.id.digitalbank/com.vkey.android.secure.overlay.OverlayService } U=0: not found
[Xperia Z5 Compact Android Development] Berni-0815:
The same result with or without Magisk hide.
[Xperia Z5 Compact Android Development] adytwjy:
@Berni-0815 If you need to compare the LOGs from z3c, please tell me how to fetch it.. because the app run in z3c installed official LOS17.1, with or without MagiskHide

EDIT: I found the way to fetch it, kindly check attached file which is the LOG from unrooted z3c with official LOS17.1 and MagiskHide, I will unroot it then fetch LOG without rooting again
[Xperia Z5 Compact Android Development] Berni-0815:
I can't see any reason why the app is working with a z3c and not with our z5c
[Xperia Z5 Compact Android Development] adytwjy:
@Berni-0815 Sorry it takes a little while, attached file is the LOG from rooted z3c, perhaps you can check from the differences between 2 LOGs.. Thank you..

EDIT:

Somehow I cannot attached the LOG from z3c rooted, so please check it here

Thanks
[Xperia Z5 Compact Android Development] adytwjy:
Well noted.. Thank you
[Xperia Z5 Compact Android Development] erickcersosa:
How can I rooth this one? I tried Magisk but doesnt work, and supersu neither
[Xperia Z5 Compact Android Development] Berni-0815:
Latest Magisk should work.
[Xperia Z5 Compact Android Development] skysurfer1111:
Yes, Magisk works. Flash the .zip with TWRP, not with the manager.app
[Xperia Z5 Compact Android Development] casouzaj:
At first, the TMRW app threw that root detection warning and, upon being hitted OK, closed itself. Nevertheless, when I was trying to grab a logcat | grep command in a terminal emulator app, in order to try to diagnose that banking app's behavior, the app went further. I haven't gone that far since I'm not Indonesian. Haven't quite understood what really happened. Why the app suddenly accepted my Z5C phone?
[Xperia Z5 Compact Android Development] Berni-0815:
Here is a ROM with slightly modified kernel. Please test this version regarding charging and report if it's working or not.

Changelog
[Xperia Z5 Compact Android Development] adytwjy:
Thank you for trying that @casouzaj Did u happen to try and open the app several times after its sudden closed? There are some people who suggesting that trick, but I haven't try. At first I thought some other apps/folder/files triggered the root detection. But even though I clean installed it after flashed the rom, it never succeed.

That's okay. I personally think this rom build by @Berni-0815 is the best thing ever happen to my z5c, so doesn't matter if I cannot use the app. Thanks for the support :)
[Xperia Z5 Compact Android Development] adytwjy:
Hello,

I'd like to ask if anyone experiencing low mic volume using speakerphone while calling in the latest build? I just knew it when using zoom few hours ago, then I tried it with whatsapp video/voice call and the other side said the same thing about my sound is very low and not clear. I'm doing some testing using sound recorder app to compare direct recording and using earphone. With earphone I can get clear and loud voice.

Because I didn't experience this in LOS 14.1, so I think this is not hardware problem.

Please advice.. Thank you
[Xperia Z5 Compact Android Development] florstat:
I had the same problem when trying to edit mixer_paths.xml

For future reference, there are permission issues, this is how I managed to solve them. No need of Root as it use twrp terminal.

From twrp, mount system and open terminal.

Now set permissions and ownership of the new file ( assuming you put it in /sdcard folder )

# chmod 644 /sdcard/your_mixer.xml
# chown root.root /sdcard/your_mixer.xml

then remove the old one and copy the new one in the right folder ( /system/etc ) changing his name

# rm /system/etc/mixer_paths.xml
# cp /sdcard/your_mixer.xml /system/etc/mixer_paths.xml

That's it, tried multiple times and always working.

Another way to edit it is using vi file editor from terminal, which could be convenient for minor editings especially if you have a usb-otg cable and you can then connect your desktop keyboard to the phone.
[Xperia Z5 Compact Android Development] MixEcoSystem:
Berni you absolute god. A ROM for the Z5 Compact with pretty much everything working--especially the camera. I thought my Z5c would be stuck on Nougat forever!

How did you get the camera working? Last time I was here Nougat was the latest version with a working camera.
[Xperia Z5 Compact Android Development] Berni-0815:
That hasn't been only my work. The most work has been done by @tarkzim

You may follow our work here.

But there is also LineageOS 18.1 (Android 11) available: Klick
[Xperia Z5 Compact Android Development] wuhans:
Thanks Berni for the good work! (y)

The camera's focusing problem was the only major issue that bothered me personally, so I've been looking around to see how to fix it.

After many hours of searching and testing I can report, that every camera-app should "work"(only in manual or continuous focus mode), that supports:

Camera2 API

Continuous Focus

and ideally also: Option to disable Focus before capturing

Manual Camera works goof out of the box (no special settings required), is relatively fast with focusing and clutterfree, but costs 3$. It produces very small jpg-sizes, but image quality seems better than the bigger files from OpenCamera.

Moto Kamera 2: Simple free Camera that works out of the box. Except Selfiecamera doesn't work!

Camera ZOOM FX is another app that works quite good. Just enable continuous Video Focus to find your focus. Picture Quality is good. Perhaps slightly better than Manual Camera, but filesize is also much bigger. Costs 4$, but there is a free limited version to try out.

OpenCamera or HedgeCam works, if you use the continuous focus option. But it's very slow and it happens that focus misaligns before capturing. Free and Open Source.

Nearly all those Camera-Apps(except Moto camera 2; Moto Camera 3 has manual focus but other flaws too) can also handle the focus manually. It is needed in low light situations when no focus is found.
[Xperia Z5 Compact Android Development] roohooo:
Hi,

I have to chime in with THANKS and DANKESCHOEN to Berni for this ROM! I got a Z5C a couple of days ago and installed LOS17.1 yesterday without any issues.

So far, I haven't encountered any problems aside from the well-known ones which are not specific to this ROM (camera close-focus, no VoLTE & VoWifi).

I've been toying around with several mods to get VoLTE working, which - as expected - did not pan out. Among them are modifying build.prop and replacing the CarrierConfig / CarrierSetup with an APK from a Z5C with Stock ROM. And here's a question: With the Stock ROM, there is a folder called /system/etc/customization/modem, where config files for various providers are stored. This folder does not exist in LOS17.1 and I would like to know how and where LOS17.1 is getting it's modem config. I'm assuming this is a somewhat generic configuration so the second question is, if it will differ from the Stock ones in terms of frequencies and bands used. To get to the point: Will I get the same signal strength and quality with LOS17.1 as I would with a Stock ROM using for example German Telekom's modem config?

Cheers und Gruesse,

r.
[Xperia Z5 Compact Android Development] Berni-0815:
To be honest, I can't answer your question!

For me it's working good enough. I see no remarkable difference.
[Xperia Z5 Compact Android Development] roohooo:
Thanks a lot for sharing your findings! What is your experience with close focus on these apps (see below)?

I've also tried various camera apps yesterday (Snap, OpenCamera, Footej, HTC camera, Camera ICS, GCam) and my bottom lines are:

All of these apps suffer from the close-focus issue, that is, the inability to reproducibly achieve correct focus at a distance of less than approx. 30cm. This is even with those apps that have been reported working, but at the cost of a missing viewfinder image (HTC camera, Footej).

The image quality of built-in Snap app appears to be superior to most of these apps, at least in terms of sharpness.

Open Camera allows to take equally sharp pictures when using manual focus.

Using manual focus is currently the best way to take pictures at close distance; an app that gives focusing aid by temporarily zooming in and/or highlight edge contrast (e.g. OpenCamera) works best here.

QR code reading (e.g. banking app) does work, but most times not as instantly as with the stock ROM; it appears it's working best if putting the camera very close (almost in touch) with the code and then slowly moving it further away. With my banking app I will get a valid scan after roughly 3..10s.

I will do some more testing in the future.

Cheers,

r.
[Xperia Z5 Compact Android Development] wuhans:
That's the cool stuff, that close focus works perfect and fast with Manual Camera (everything works out of the box) and Moto Kamera 2 (only problem: front Camera not working).

If you enable continuous focus mode with Camera ZOOM FX the focus is also doing its job fine on close distance.

OpenCamera or HedgeCam work also with continuous focus, only very very slow. But manual mode is perfect.
[Xperia Z5 Compact Android Development] roohooo:
Wow - that's an important discovery, thanks! I will try myself later but I guess this will be great news for many people.

@Berni-0815: If this proves to be working for other people, I suggest referencing wuhans' post #640 on the first page.
[Xperia Z5 Compact Android Development] wuhans:
I am not sure about that. I've done some comparison tests and it's not that easy to spot the difference.

Attached are 4 photos, each shot with a different app(Snap, Manual Camera, Camera Zoom Fx, Moto Camera 2). The focus was set on the text of the hard drive. The file size is very different, but when you zoom into the photos the difference in quality/sharpness is much less than expected. If you can tell any difference at all. But judge for yourself.

JPG-Filesize-Comparison:

Snap(Image-Quality: High): 2.9MB

Manual Camera(no Quality Setting possible, 16:9, 8MP): 1.6MB

Camera Zoom FX(Jpeg 100%): 2.6MB

Moto Camera 2(no Quality Setting possible, 16:9, 8MP): 1.7MB
[Xperia Z5 Compact Android Development] roohooo:
Hehe, nice work - thanks! However, based on the compressed files you uploaded, it's not easy to tell. Assuming that focus was spot-on in all four shots, a side-by side comparison of the readability of text & numbers on the HDD as well as the plant and the painting on the cup would lead me to the conclusion that Snap & Manual Camera are the winners, Moto is very close and ZoomFX is the least sharp. However, it appears that Manual Camera gives a little higher contrast, which could be an advantage. But this might as well be due to a somewhat different lighting situation.
[Xperia Z5 Compact Android Development] wuhans:
It seems that spot/tap-focus doesn't work on close distance with any app(i've tested 20+), but some apps automatically focus very good on close distance if light condition is good enough.

Proshot, for example, automatically focuses at close range, but as soon as you do tap-focus, it goes out of focus.

Watch the video: https://streamable.com/2yt2w3

The app starts automatically with good focus. When I enable spot-focus(the big white circle), it doesn't find focus anymore. When I disable it at the end of the video, it finds again automatic its focus.

If anyone ever gets point focus settled at close range with any app or hack, please let us know.

At least there are some alternatives that work better, than Snap currently does at close range.

To sum my experience up: Short-range focus works indeed with various apps, but it seems like tap/point-focus at close distance doesn't.
[Xperia Z5 Compact Android Development] Delfinololo:
Hi, everything on the Rom works fine except that I can't use Gpay because NFC seems to not work.

Is there a solution? Does NFC works to you?
[Xperia Z5 Compact Android Development] Berni-0815:
If you are willing to use the search, you will find a lot of posts to this issue.
[Xperia Z5 Compact Android Development] Delfinololo:
Unfortunately I can't find a solution for my problem. Nfc works with for example other android devices. Contactless payments don't work (I've tried in two different shops), even though as in the screenshot Gpay says everything is setted up.

I was wondering if someone else encountered this situation.
[Xperia Z5 Compact Android Development] Berni-0815:
If you've really read my suggested search results you will see that payment is not working and there is no solution in sight... ;)
[Xperia Z5 Compact Android Development] Delfinololo:
I'm sorry i had/have no idea where to find your suggested search results.

But thank you to be available.
[Xperia Z5 Compact Android Development] Berni-0815:
This forum offers a search option, which among other things enables a search within a thread.

Please don't be mad at me, but I'm kind of tired of answering the same questions that have been asked so many times.

I'm curious when the next one asks why the camera can't focus at close range ... :ROFLMAO:
[Xperia Z5 Compact Android Development] roohooo:
Hi again,

here's another question for the pros: I've bought another Z5C, which came in originally sealed packaging from UK (I'll call it Z5C-UK). Firmware is 1298-5497 "Customized UK". I've flashed LOS17.1 but figured that the Location service will only use GPS and GLONASS, while my other Z5C from German Telekom (I'll call that Z5C-DE) is using chinese BDS satellites as well. As this makes a huge difference in precision and time to get a position fix, I've made a test and flashed the latest Telekom.de DE firmware to the Z5C-UK. But - same problem again, no BDS satellites.

Does anyone have an idea what the problem might be? I've made a full wipe and also installed the complete Telekom.de firmware, because I suspected that some local/regional branding stuff might unlock the access to BDS satellites. Furthermore, the Z5C-UK is even a newer phone according to the serial.

Any ideas if and how I can get this fixed?

Cheers,

r.
[Xperia Z5 Compact Android Development] Berni-0815:
As well as there are devices that are using different 4G (LTE) bands, there might be devices that uses different gps bands.

But that's a guess, though.
[Xperia Z5 Compact Android Development] kevin0408:
Thank you for your effort. I successfully flashed your 17.1ROM on the Sony Z4 (although I know it was used for the Z5), it did succeed, except that the camera crashed. So I want to ask if it is realistic to transplant the camera driver of Z4 to this system. To make the camera work, do I need to copy the driver files or recompile the source code? Thank you.
[Xperia Z5 Compact Android Development] Berni-0815:
Since I don't know how the camera in a Z4 is realized (hardware/driver/HAL), I can't tell you how to manage it to work.

We're using our own wrapper and this must be compiled into our ROM.
[Xperia Z5 Compact Android Development] erickcersosa:
Hey, how can I root this one?

The ROM is just perfect, but I really want to root it

I´ve tried super su and magisk but I cant :(
[Xperia Z5 Compact Android Development] plusminus_:
Berni, @tarkzim, @torukk - thank you!

Last weekend I finally left the stock ROM (and the super long boot times) behind and flashed this ROM, and it's fantastic!

I can finally use LSPosed, and my banking app on my own phone, and V4A works on all my apps (including Firefox!) without AML and the Audio Compatibility Patch :giggle: and I think I have better signal now :eek:

I have had some problems with battery drain which I am still trying to resolve but I don't want to go back to stock now :cry:

I am wondering if it has something to do with the ZRAM - both the size (1020MB seems like a lot?) and the swappiness in my own service.d script. I am now trying 510MB ZRAM: I can reduce the size using Kernel Adiutor, but max_comp_streams has been reduced to 1 (I think it was initially 4 if I saw it correctly?). Hmm. Edit: I found a script to run from post-fs-data, it's working nicely!

To be honest - it could just be my phone's battery. The capacity in the service menu had recently started dropping...

Minor points:

My weather widget was malfunctioning so I replaced the app, but battery drain still seems to be a problem.

My new app seems to be using the accelerometer and gyroscope a lot :cautious: so I have removed access using a modified version of Sensor Disabler

I had to disable Wi-Fi scan throttling to allow my phone to move between access points better... but I do not know what impact this has on battery life if I do not have apps that are scanning for Wi-Fi networks.

Camera

I tried out (a different) Manual Camera because it is currently available for free. The viewfinder worked but the pictures were not very nice. I will stick to Camera ZOOM FX as recommended!

Do we need a third-party video recording app as well? When I choose the video mode in Camera ZOOM FX it appears to open Snap, which freezes after 6 seconds.

The front camera worked fine in a WhatsApp group video call for half an hour, then froze. I used Kill Camera to get it working again, rather than rebooting.

Android 10 seems to have introduced some strange quirks

I cannot stand the automatic brightness now - it changes so much!

The tracks in albums in the default Music app and the third-party app I use are in a strange order, when sorted by track number, like this, which is annoying.

But seriously, thank you :D
[Xperia Z5 Compact Android Development] casouzaj:
I run this ROM since it was released. Magisk has always worked for me. I used the stable v21.4 for a long time. I tried the recent Canary v22 and it works, as well. The v21.4 I first installed by TWRP, and all subsequent versions by Magisk Manager Direct install (and reboot).
[Xperia Z5 Compact Android Development] Berni-0815:
Only Magisk is working. I'm using "Magisk-v21-4".
[Xperia Z5 Compact Android Development] erickcersosa:
Can u help to do it please, or guide me to do it?