yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] litelinux:
I got it working. Seems like if we need UnifiedNLP enabled without installing microG, we have to install another variant of UnifiedNLP called NetworkLocation, also available on UnifiedNLP Releases page.

So what I did:

1. Delete existing app from /system/app/UnifiedNLP

2. Follow the guide: https://blog.eowyn.net/unifiednlp/

3. Installed NetworkLocation again (as the settings page is not showing up)

4. Moved the installation from /data/app to /system/app.

As far as I am concerned, @Berni-0815 the ROM has unifiedNLP (org.microg.nlp) built in. Maybe replace it with NetworkLocation (com.google.android.gms) in the next build?
[Xperia Z5 Compact Android Development] deadpool69:
Good evening, I have a problem with my sd card. Every time I install an app my device restarts. The red led blinks four times. I don't know if it will be due to an error on my sd (I doubt it is since I formatted it several times). It even reboots every time I set storage on Spotify. I hope you can help me. Make a clean install of the ROM and follow the steps as indicated in the post.

Excuse my English, I'm using a translator. Thank you very much.
[Xperia Z5 Compact Android Development] Berni-0815:
Have you tried to use the device without the sd-card?
[Xperia Z5 Compact Android Development] Berni-0815:
Can you tell me the exact build number of this app?

Edit:

Got it!
[Xperia Z5 Compact Android Development] deadpool69:
Good afternoon, I used the device without an sd card and it works perfectly (although sometimes I get a notification from WhatsApp informing me of little storage space). Apparently the problem is when I insert the sd card in the device, since every time I do it it formats the sd card and the errors begin with the applications (reboot android system).
[Xperia Z5 Compact Android Development] Berni-0815:
I'm using a 32GB sd card in my z5c and it works without any problems. So I'm unfortunately not able to reproduce your issue.

Please fetch a LOG and send it via PM.
[Xperia Z5 Compact Android Development] steve8x8:
@deadpool69 Try another SD card, they are dirt cheap these days. "Formatting" in the device may not detect bad blocks, try to run the "official" SD card formatting tool on a PC (run a full format). Also there are tools to write patterns to blocks, and check them afterwards - to find bit errors as well as fake bigger capacities
[Xperia Z5 Compact Android Development] qwerta12:
@Berni-0815, friend

1.I just have problems with manual focus, or is it a firmware problem?

2. it is possible to start a sony camera?

3. Is it possible to start optical stabilization while recording video?

thanks
[Xperia Z5 Compact Android Development] Berni-0815:
There is a tool available to test such cards (and usb sticks too): h2testw

It's from the german computer magazin c't and it's free to use.
[Xperia Z5 Compact Android Development] deadpool69:
Good evening, I already tried the program you recommended. There is no case, the reboots continue, I will try with another sd card to verify that the problem is that. Thank you very much for helping me in what you could.
[Xperia Z5 Compact Android Development] deadpool69:
I just tried another sd on my device and it is definitely the old sd. I will look for some way to repair or make it work since it is 128GB.
[Xperia Z5 Compact Android Development] Berni-0815:
But if you're using GApps, this collides with the GApps-shipped "com.google.android.gms"...
[Xperia Z5 Compact Android Development] litelinux:
AFAIK when flashing GApps, it removes old installed versions, so in theory it should be removed? (Haven't tested, just guessing)
[Xperia Z5 Compact Android Development] Berni-0815:
The app UnifiedNlp is no longer visible or usable. I haven't seen other issues though.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Hotspot should work now!

UnifiedNlp now supports location provider
[Xperia Z5 Compact Android Development] snorlex:
Hi

Google play dont work on this version
[Xperia Z5 Compact Android Development] baristurunc:
Likewise. :(
[Xperia Z5 Compact Android Development] Berni-0815:
Hmmm. I cannot confirm that. If we're talking about the version from 19th february and about the play store, I can say, this is all working at my device.

Edit:

What GApps are you using? Maybe that's the culprit?
[Xperia Z5 Compact Android Development] snorlex:
latest version, 19th feb. GApps recommended in first post (NikGapps).
[Xperia Z5 Compact Android Development] Berni-0815:
Ok. Then, please, create a LOG where this issue occurs and send me this LOG via PM (it may contain personal data).

Edit:

And explain what you are doing and what is happening (or not happening).
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
I'm trying to install Aurora Services via Magisk, and the app itself wouldn't pop up. When I manually install the APK, the service would remain disabled. This issue with F-Droid Privilated Extension might be related to it

Also, to those who are having issue installing via root with F-Droid, install NanoDroid's F-Droid Magisk module.
[Xperia Z5 Compact Android Development] Berni-0815:
LOG!!!! I need a LOG!!!!

I can't help you when everything is working fine at my device and I can't reproduce any issue. :confused:
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
I've attached it.

I don't have F-Droid Privileged Extension, but Aurora Services not running is my issue.
[Xperia Z5 Compact Android Development] Berni-0815:
Where is it?

If you're using my latest version, you should have those extensions!

I know what your issue is. But without a LOG I don't know what's going wrong with that app.

I think it's similar to F-Droid Privileged Extension (missing whitelist entry), but that has to be investigated more.
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
I thought that was attached.
[Xperia Z5 Compact Android Development] Berni-0815:
Thanks. All I can see is that you have tremendious problems with SELinux!

Try to set SELinux to permissive mode and try again.

If nothing's helping, I need your selinux file too:

adb pull /sys/fs/selinux/policy

And I need a full logcat:

adb root
adb shell logcat -b all > logcat

Start this command after the boot animation is started; or a little bit later (sometimes it takes some seconds to establish adbd). With that I can get a really full LOG.

This command writes an endless logcat and you have to terminate it manually after reproducing the issue with AuroraService.

Please send me these files via Personal Message, because they may contain personal data!
[Xperia Z5 Compact Android Development] Berni-0815:
From the mentioned website:

#PS: 1.0.8 supports only Aurora Store v4, for older versions (Aurora Store or Droid) use 1.0.6 or below

Version 1.0.6 is working flawlessly. The missing "Service" is due to the fact that I've not installed this app as a privileged app.

@ Everyone: Please, do not ask about problems for which my ROM is not responsible.

From now on I will only react to problems that I can reproduce and that are caused by my ROM.

I'm sorry for that, but I'm developing this ROM in my spare time and I still have a normal life.
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
I flashed the Magisk ZIP file for 1.0.8, which should've installed the app as well, but it didn't show up on the app drawer.

I tried to flash 1.0.6, but it didn't work either.

And I tried to make SELinux permissive, but didn't work.

And I sent you a PM with my logcat
[Xperia Z5 Compact Android Development] Berni-0815:
All I can see are SELinux denials. But if you've set SELinux to permissive and that don't helped in any way, I can't help you either.

F-Droid and Aurora are not part of my development and I can't fix any bug that is caused by those 3rd party apps.

I'm sorry.
[Xperia Z5 Compact Android Development] Berni-0815:
I've created a ROM with com.aurora.services as a privileged app. Everything seems to be fine (see screenshots) but I still have to tap on "Install" if I downloaded an app.

This ain't the intended way, right?

Or am I doing something wrong?
[Xperia Z5 Compact Android Development] Berni-0815:
I've tried both; with or without google play store included.

But you can test it yourself: Here is the ROM. And here is the changelog. Removed, because it's not working!
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
You have to go to Aurora Store / Droid's settings, and change the installation method to "Aurora Services"
[Xperia Z5 Compact Android Development] Berni-0815:
I did that!

But there seems to be an issue with the permissions:

02-26 12:26:16.207 7672 7689 I Aurora Service: Checking if package is allowed to access Aurora Services: com.aurora.store
02-26 12:26:16.213 7672 7689 I Aurora Service: Package is allowed to access Aurora Services
02-26 12:26:16.289 7672 7689 E Aurora Service: Failure -> java.io.FileNotFoundException: /storage/emulated/0/Aurora/org.mozilla.fenix.2015795507.apk: open failed: EACCES (Permission denied)

This is an example in which I've tried to install "firefox nightly".
[Xperia Z5 Compact Android Development] Berni-0815:
I've decided to stop every effort to implement "com.aurora.services".

Neither my way to implement it nor the way via Magisk is working.

There must be a bug in "com.aurora.services" (opening downloaded files) that I can't fix.

I'm sorry.
[Xperia Z5 Compact Android Development] Berni-0815:
I can't imagine how microG could help with this issue...

If an app, no matter which, isn't able to open a file with the file mode bits 660 (read/write for group and owner), I assume a bug in this app.

And that's not my business.
[Xperia Z5 Compact Android Development] Berni-0815:
Fixed. Will be part of the next release...
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
Yes.

Also, Bluetooth audio is not working, but it does connect to Bluetooth.
[Xperia Z5 Compact Android Development] Aeny:
Seems that signature spoofing is not working for me on this version :)
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
I had to downgrade to 18.0 because of Bluetooth audio, but on my short time with it, I'm pretty sure it was working. What made you say it wasn't?
[Xperia Z5 Compact Android Development] Berni-0815:
I'm currently working on it.

Yes. I know. There is a mismatch between working FM-Radio and Bluetooth. As far as I can see until now either FM-Radio or Bluetooth is working. But I'm about to investigate it more.
[Xperia Z5 Compact Android Development] Berni-0815:
Is under investigation.
[Xperia Z5 Compact Android Development] Berni-0815:
Los18 is no longer maintained by me. In the last build Bluetooth audio and signature spoofing are working, AFAICR.
[Xperia Z5 Compact Android Development] Berni-0815:
New version (Christmas eve edition 🤶) out; see 1st post.

Fixed:

Signature spoofing should work

FDroidPrivilegedExtension should work

Fingerprint should now works as expected (disabled when screen off)

Still broken and under investigation:

Bluetooth audio

Hotspot

Audio routing
[Xperia Z5 Compact Android Development] Berni-0815:
Regarding Bluetooth audio and audio routing it makes no difference whether FM-Radio is included in the ROM or not.

But I have another idea. Currently I'm building a new version. Then I'll see... (fingers crossing)
[Xperia Z5 Compact Android Development] Berni-0815:
New version (1st Christmas Day edition 🎅) out; see 1st post.

Bluetooth audio now working

Audio routing should work; please test and report
[Xperia Z5 Compact Android Development] litelinux:
One more finding: the device is hotter than that of 17.1.

On 17.1 the temperature is around 40, while on 18.1, it's around 45.
[Xperia Z5 Compact Android Development] Berni-0815:
When does this happen?
[Xperia Z5 Compact Android Development] Ermann123:
May someone, who is going to install the ROM (and therefore wipes his data) anyway, try out, if encryption is working, before refilling the memory with his data? Thx.
[Xperia Z5 Compact Android Development] DevelLevel:
I tried to encrypt the phone with los 18.1 but ended up with a boot loop. And when i went in to twrp was the storage not encrypted...

It works fine on Los 17.1 though.
[Xperia Z5 Compact Android Development] Berni-0815:
It would be very helpful if I get a LOG of this issue!
[Xperia Z5 Compact Android Development] DevelLevel:
Do you mean:

pmsg-ramoops-0 and console-ramoops?

These files are from when I tried to boot after the failed encryption...
[Xperia Z5 Compact Android Development] Berni-0815:
Yes; I'm really talking about those files! Wonderful! Now I can try to explore what's going wrong; thank you very much!!!
[Xperia Z5 Compact Android Development] litelinux:
Every time I open CPU-Z the temperature is over 45. Device feels very hot too. Is this happening to anyone here?

Are there any logs I could capture to help?
[Xperia Z5 Compact Android Development] Berni-0815:
I've installed this app and it shows temperatures between 28 and 46. But my device is quite cold. Even when charging it, it's not getting very warm. Hot is something else...

My question was, what are you doing that the device is getting so hot? Are you watching videos, are you playing games.... ?
[Xperia Z5 Compact Android Development] beautiophile:
FYI!

I have just tried to flash BiTGApps and it works quite well on this ROM so far.
[Xperia Z5 Compact Android Development] th23081977:
Hello today i Installed this cool Rom and it works find but am I to blind or stupid but I can't log into PlayStore the Login button does noting so I am unable to type in my user and pass. I installed this Gapps

NikGapps-core-arm64-11-20210210-signed

Thanks in advance
[Xperia Z5 Compact Android Development] uncle-sam:
You should get into the los setup after the first boot. Is there no possibility to log in in your Google account?

Otherwise I suggest a clean install. I only know this behaviour from dirty installations.
[Xperia Z5 Compact Android Development] th23081977:
I think I have done a clean install but I have not entered my user and pass in LOS setup. I started the PlayStore after the LOS setup was ready. I will give it a try with a clean install BTW I have wiped the following things

Now tap Wipe.

Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.

Return to the previous menu and tap Advanced Wipe, then select the Cache and System partitions and then Swipe to Wipe.

is there more to wipe ?
[Xperia Z5 Compact Android Development] Berni-0815:
There is no need to do so. LineageOS doesn't have a user name. The only thing you can set is a display protection (password, swipe, pattern, fingerprint).
[Xperia Z5 Compact Android Development] uncle-sam:
I thought it would pop up the google login at the end.

Sorry my bad.
[Xperia Z5 Compact Android Development] Berni-0815:
It's quite a while ago, so I can't remember exactly. But if I remember correctly, I flashed LineageOS first, set it up and after that I flashed NikGApps. There I've been able to enter my google login credentials.

No worries, mate.
[Xperia Z5 Compact Android Development] th23081977:
Really strange I installed it with both ways first linageos then reboot then NikGapps and linageos and NikGApps together but at the end if I press Anmelden nothing happens no idea why. So the google stuff is not working for me. It is also not possible to add an account under the stettings section. Maybe the GApps are not working but I also tried

MindTheGapps-11.0.0-arm64-20210220_140101.zip

but with the same result
[Xperia Z5 Compact Android Development] Berni-0815:
Weird! Maybe the version you're using has a bug? I've flashed "NikGapps-core-arm64-11-20201116-signed.zip"

Or.... Wait!

Could you please try this version of my ROM (Klick) *) and report if it's working?

*) Link removed; new version available at 1st post.
[Xperia Z5 Compact Android Development] th23081977:
Wow cool thanks with the old ROM it works perfect no issues thanks a lot for the great work to support this old device.
[Xperia Z5 Compact Android Development] Berni-0815:
Ok. Then I know what's been wrong in newer versions of my ROM.

I'm currently building a new version and publish it asap.
[Xperia Z5 Compact Android Development] Berni-0815:
The culprit (and my own mistake) has been the app NetworkLocation.apk (com.google.android.gms) that I've implemented instead of UnifiedNLP.apk (org.microg.nlp).

This leads to a not working Google Play Store on newly flashed ROM's.

I've reverted it.

If you want to use a location service that's working without GApps, you should follow this guide.
[Xperia Z5 Compact Android Development] Berni-0815:
The new ROM will be available soon. Please be patient.
[Xperia Z5 Compact Android Development] Berni-0815:
And here it is; see 1st post. ;)
[Xperia Z5 Compact Android Development] norabitox:
Hello

Thank you Thank you for your efforts

In the new version my phone

Battery saver cannot be enabled

(If you go back to the previous version, there is no problem)

Next, I set the screen off to 1 minute.

Turns on and off repeatedly

I have NikGapps and Magisk installed

Safety net is an error

(Not certified as google play protect)

Best regards
[Xperia Z5 Compact Android Development] uncle-sam:
I can not help you with the battery saver.

But i passed safety net with some settings in magisk.

At first you should ebnable in settings 'Magisk hide', then get the 'hide props config' module. Enable/install, choose your device in the installer and reboot.
[Xperia Z5 Compact Android Development] norabitox:
Thank you very much

I will give it a try.
[Xperia Z5 Compact Android Development] norabitox:
Thank you

Thanks to you, the safety net has been successful.
[Xperia Z5 Compact Android Development] Berni-0815:
That's right. Don't know what has been messed up.

Edit:

Which version is working?

I've tried to reproduce this issue but it's working for me.
[Xperia Z5 Compact Android Development] norabitox:
I don't care about this issue

This is because turning off the screen works normally with the home button setting.

I'm sorry for Google Translate
[Xperia Z5 Compact Android Development] Berni-0815:
What exactly is happening?
[Xperia Z5 Compact Android Development] norabitox:
Screen off setting does not work

If you do not turn off the screen with the power button, the screen will keep turning on and off.

The same is true the previous version.

Can you understand?
[Xperia Z5 Compact Android Development] Berni-0815:
Yes, now I understand. I've just tested it. My setting is one minute to screen off. And after one minute the screen turns off.
[Xperia Z5 Compact Android Development] uncle-sam:
Are your sensors in general working? The issue might be connected to the sensor bug that sometimes appear.
[Xperia Z5 Compact Android Development] sabar_op:
Hi Berni, in Z4 I solve reboot into twrp with adding misc partition in fstab. It may works in Z5 as well.
[Xperia Z5 Compact Android Development] norabitox:
Thank you uncle-sam

Which sensor?

However, with the 17.1 rom, that doesn't happen.
[Xperia Z5 Compact Android Development] arkadione:
Awesome. Thank you. Worked well, but then I didn't notice you said Encryption isn't working. Like an idiot, I tried encrypting the phone.

If anybody has tips how to fix my bootloop, help much appreciated: https://xdaforums.com/t/sony-experia-5zc-bootloop-after-trying-to-encrypt.4242607/
[Xperia Z5 Compact Android Development] uncle-sam:
All sensors of the phone. For example the light sensor.

I am just guessing. Maybe the proximity sensor is delivering wrong or none information and causing issues with screen locking.

But if you are using magisk and modules it is more likely one of these is causing this problem. For example my phone got slow and laggy with edxposed installed. Especially gravity box did not work properly.
[Xperia Z5 Compact Android Development] norabitox:
It also occurs in an environment with no gapps or magisk.

I don't care about this symptom anymore

Thank you.
[Xperia Z5 Compact Android Development] arkadione:
me too. how did you fix it?
[Xperia Z5 Compact Android Development] Berni-0815:
Code?
[Xperia Z5 Compact Android Development] sabar_op:
See attached
[Xperia Z5 Compact Android Development] DevelLevel:
I fixed it the easy way, by wiping everything and reformatting the data partition:(
[Xperia Z5 Compact Android Development] arkadione:
Wow I just did this now! Thank you. I'm a newb but you saved me. I formatted in TWRP, reflashed lineage and now it's all good. peace! have a good night!
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 March 2021

"Reboot into recovery" working

Echo while making a phone call reduced

Upgrade from android-11.0.0_r29 to android-11.0.0_r32
[Xperia Z5 Compact Android Development] Berni-0815:
This weird issue with "Extreme power saver" only occurs when the USB cable is plugged in (the device is in charging mode).
[Xperia Z5 Compact Android Development] uncle-sam:
I have a general question: is it recommendable to dirty flash over an older 18.1 image? And if, what happens to my magisk and modules setup?
[Xperia Z5 Compact Android Development] Berni-0815:
I'm always dirty flashing over an existing system and until now it only happened once or twice that I've found corrupted data.

Magisk will be overwritten if you flash the boot image too which is part of my ROM. Magisk has to be flashed again after flashing my ROM.
[Xperia Z5 Compact Android Development] uncle-sam:
Okay. Thank you for this information. I think i will do a twrp backup to be safe.

This is not Rom related but you know if there is a backup function in magisk (for the existing magisk configuration).

Update:

I tried now to install the new version over the old version 20210118. Unfortunately it's stuck in bootloop. Even my attempt reboot after restoring the backup is not working: bootloop again.

****! What can cause this issue? I don't want my data to be lost... This would be horrible.
[Xperia Z5 Compact Android Development] uncle-sam:
Nice. This seems to be a common issue with twrp. It might be related to magisk but that is just my guess. I am so frustrated. I remember now why I used for while an android one device. This sucks!

No offense. It's nothing wrong with your rom build. I just have enough of this try and error and losing data and wasting time stuff.
[Xperia Z5 Compact Android Development] arkadione:
great! silly newbie question

how to update to this version with an already running 18.1

in TWRP > wipe flash, then install this?

to answer my own question for other newer users, wiping cach/dalvik then flashing this rom should is ok (this is called dirty flash I think). just did it. worked peachy.
[Xperia Z5 Compact Android Development] arkadione:
Yup, all this ROM stuff is so much wasted effort. New phone, everybody has to make a new rom and deal with proprietary blobs all over again.

I'm just using LineageOS until Pinephone becomes stable enough for daily use for me. hope it's less than another year until I can make the switch!

/end thread hijack
[Xperia Z5 Compact Android Development] uncle-sam:
As Berni said in this post:

it usually should work fine If you dirty flash over your image. I don't know where my problems did come from. And since nobody else is experiencing the same i am guessing it is depending on my twrp/magisk/nikgapps setup. I don't know if others are having issues with the autobackup of nikgapps but I guess this could also cause issues.

I am using:

Twrp 3.2.1

Magisk 22

Nikgapps Core
[Xperia Z5 Compact Android Development] norabitox:
Hello Berni-0815

The latest version was able to set the battery saver

Only, the screen off timer in my device does not work.

Thank you.
[Xperia Z5 Compact Android Development] Berni-0815:
I'm not sure what you want to say with these lines... :confused: