yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] casouzaj:
Download Magisk's zip file of the Canary release from https://github.com/topjohnwu/Magisk, copy it to anywhere in your phone. Boot to TWRP, tap on Install > Select storage > choose the location where the Magisk zip file was copied to > tap on the file > slide the bottom to install > Reboot to system.

When your phone is up and running, launch Magisk, tap on the gear icon (on the top) and turn on the Magisk hide switch. Tap on Systemless hosts. Tap also on Hide Magisk Manager > choose any name > Reboot. When your phone is up again, launch the app whose name you changed. Tap on the shield icon on the bottom > Magisk hide and turn on the keys for apps which would accuse your phone of being rooted, like banking and working apps.
[Xperia Z5 Compact Android Development] erickcersosa:
Thanks. Ill try
[Xperia Z5 Compact Android Development] florstat:
You may make a try with this, for me it has worked with los 14.1.

https://xdaforums.com/t/the-echo-issue.3793902/#post-84589641
[Xperia Z5 Compact Android Development] Berni-0815:
Please take a look at my answer in the mentioned thread: Klick
[Xperia Z5 Compact Android Development] plusminus_:
Footej Camera 2 seems to focus fairly well in my very brief test (though I had nothing interesting to take pictures of!)

I also found a thread about a different Q ROM. The idle drain rate seems similar to what has been reported earlier in this thread, around 2.5%/h. I think I have reduced it further, and my phone can now go a whole day between charges again, just about 😅

Can this kernel control the wlan_rx_wake wakelock? Just wondering ;)
[Xperia Z5 Compact Android Development] Ermann123:
A bit offtopic:

Is there something existing lie OmniSwitch , that is working on 17.1?

On 14.1 it works flawlessly, but on 17.1 it crashes immediately.
[Xperia Z5 Compact Android Development] plusminus_:
Yes, I was quite surprised to see that there was active development going on elsewhere for this little phone! They even mention Berni's ROMs at some point lol

I actually had Boeffla in mind as I have seen it being used against wakelocks such as wlan_rx_wake. I did not know it was 'just' a driver, I thought it was something unique to someone's custom kernel 😅 This is... interesting, thank you
[Xperia Z5 Compact Android Development] tarukanav:
Hm got stuck on android animation with latest update
[Xperia Z5 Compact Android Development] Berni-0815:
I'm testing every version I publish! So I can say that this version is working flawlessly.

You're doing something wrong.

Maybe you should make a clean install?
[Xperia Z5 Compact Android Development] NeXt3R:
great job Berni-0815 .,,.17.1 i using long time all works fine

,..,you revived this great phone .d

try extract boot.img from update ,.,.re-flash this BOOT in recovery // or with fastboot

possitible problem is magisk 22.xx up

after "when the boot can be completed"

in magisk 22 - create modded boot ,.,.this flash for ROOT

​

last version tested ,.,still works fine
[Xperia Z5 Compact Android Development] Berni-0815:
Normally the flashing procedure overwrites the previously installed boot image. I always had to reflash Magisk after an update.

But maybe that this has been changed in Magisk 22. Try to remove Magisk with this tool before flashing a new ROM.
[Xperia Z5 Compact Android Development] Ermann123:
Meanwhile on 17.1 with even encryption working (!) , system runs nearly flawlessly.

But the last update crashed the microg configuration, so now every app needs to be un- and reinstalled again to to get registered for GCM. Does anybody know a workaround to avoid this procedure?
[Xperia Z5 Compact Android Development] Lehil:
Hi!

I encountered an issue using this ROM.

I'm sorry in advance if it had been discussed earlier, I did look for it, but the thread is getting kinda long, so I can't really keep track of it 😅

So for some reason I can't record video footage in any camera app.

(open camera says "the video file could be damaged" and does not save; Footej shows a black screen when I switch to video; the stock camera app simply freezes)

Interestingly enough, other apps like fb Messenger are capable of recording video.

I tried both APIs, and tried reinstalling the camera apps, to no avail.The march patch is here anyway, so I thought I'd ask about a solution, but if it can't be solved, I'll simply punch a clean install.
[Xperia Z5 Compact Android Development] tntcl:
[tl;dr] didn't work, but i couldn't do exactly that

in the last months i either didn't get flashtool.net to work, or i didn't get to mess with my phone at all. so i reverted to sony's EMMA flash tool, which means i got an older firmware and i couldn't exclude .TA recovery. did the rest as instructed (with berni's 3.5.1 TWRP). with 18.1 + nikgapps_core neither phone calls nor camera worked (didn't even go and test anything else), and now on 17.1 these work, but all voip calls (signal, telegram...) still have a massive echo for the other party (speaker) or i'm barely audible (no speaker).

will look into what florstat posted next, dunno when i'll get to it...
[Xperia Z5 Compact Android Development] VBBoston:
I have the same issue, wiped everything and formatted data in TWRP, still gets stuck on animation after bootloop. After first boot it goes as far as to Android setup Welcome sign, I press Start, then the circle starts going saying "Just a sec", then reboots and gets stuck on Lineage animation. Also tried with no GAPPS, no Magisk, still the same. Did anyone find a solution?

P.S. Model is E5823.

by the way flashing this https://xdaforums.com/t/rom-11-x-havoc-os-4-2-unofficial-suzuran.4249577/ using the same method boots fine but fingerprint sensor and SafetyNet do not work there so this thread's ROM would be much better
[Xperia Z5 Compact Android Development] tarukanav:
that happens to me too but its not related to rom , just press back and try again , my problem propably was maybe new magisk , not sure.
[Xperia Z5 Compact Android Development] Berni-0815:
My experience is that this issue is related to the use of Magisk.
[Xperia Z5 Compact Android Development] tarukanav:
finally solved my bootlop , turns out if i dont install twrp app when asked in twrp it works fine
[Xperia Z5 Compact Android Development] Berni-0815:
I've never had the idea to install the TWRP app; so, that's new to me. Thanks.
[Xperia Z5 Compact Android Development] tarukanav:
Btw how can i change boot animation back to lineage os , dont much like the new android one?
[Xperia Z5 Compact Android Development] Berni-0815:
How to change your bootanimation
[Xperia Z5 Compact Android Development] tarukanav:
Also without gaps i cant seem to add my google account always keep saing acc name or pass is wrong , strangely tho google security keeps telling that somebody (me ) is trung to login. when i install gaps all works perfect.
[Xperia Z5 Compact Android Development] tarukanav:
Something to consider - lock screen clock in android 10 u cant do anything to it ,atleast as far as i know
[Xperia Z5 Compact Android Development] plusminus_:
Tiny update! From these comments it appears that this is caused by a bug in MediaStore in Android 10 (it is also happening to me on a different phone running LOS 17.1 and in different music players), which is fixed in Android 11.

(I personally worked around it by sorting by file name instead of track number.)
[Xperia Z5 Compact Android Development] Berni-0815:
This patch will be included in the next release.
[Xperia Z5 Compact Android Development] NeXt3R:
thanks (y)

,..,works fine // 22.00 magisk "auto patch from ramdisk"
[Xperia Z5 Compact Android Development] tarukanav:
same here no problems this time
[Xperia Z5 Compact Android Development] Ermann123:
Is there support for WPA3?
[Xperia Z5 Compact Android Development] Berni-0815:
I've just tried to establish a WPA3 connection with los18 but it failed.

So I think, los17 can't connect with WPA3 too.

I really don't know why...
[Xperia Z5 Compact Android Development] Berni-0815:
From other device trees: "Our device doesn't simply support sae."

For los18 I had to set a variable in the WifiOverlay configuration that prevents the device from automatically try to upgrade to WPA3 and stays in WPA2 mode: Klick

Los17 doesn't have this configuration at all.
[Xperia Z5 Compact Android Development] Berni-0815:
Final answer:

LineageOS 17.1 for suzuran does NOT support WPA3!
[Xperia Z5 Compact Android Development] Ermann123:
Since the one update before the recent one, after updating (ok, without immediataly reinstalling Magisk) the Microg configuration gets smashed, so it is necessary to re-register each app manually.
[Xperia Z5 Compact Android Development] Ermann123:
USB-OTG is only supported, if device is already plugged in at boot time.

When later, no chance to get it work.
[Xperia Z5 Compact Android Development] Berni-0815:
I don't maintain third party apps like microG at all. I'm not responsible for any issues when someone is using microG.

USB-OTG is indeed only working when plugged in at boot time. I can't change this behaviour.

I'm sorry.
[Xperia Z5 Compact Android Development] roohooo:
Um...stupid question: If I do have a Z5C with stock rom which is simlocked by German O2 or Vodafone, will the phone be un-simlocked if I flash LOS17.1? That is, will there be any issues using a German Telekom sim, for example?

Thanks,

r.
[Xperia Z5 Compact Android Development] tim031:
Hello, i have a question. I flash the phone with newest version and i noticed that the rotation have no function.

In Settings this function is activate. With sensor App, the App found 0 Sensors :/. Maybe someone can help?
[Xperia Z5 Compact Android Development] tim031:
Wow nice, fast answer and all functionally with this way. Great thanks! :)
[Xperia Z5 Compact Android Development] Berni-0815:
But with that you're setting SELinux to permissive and to my understanding this is a security leak!

Or do I misunderstand you?
[Xperia Z5 Compact Android Development] NeXt3R:
why do you need any "selinux permissiver zip" ?

last build / 22,1 magisk.,. ,,. no problem
[Xperia Z5 Compact Android Development] Berni-0815:
That's the best way.

Because some users reported not working sensors. And that can be fixed by two ways:

Flash latest stock ROM before flashing LineageOS ROM

Set SELinux to permissive.

The first way is the best.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Minor bug fixes
[Xperia Z5 Compact Android Development] darkangel32:
Im on the 11th april rom, do i need to reflash the new rom again to update?
[Xperia Z5 Compact Android Development] Berni-0815:
You don't need to update at all if your installed ROM is working without any problems.

The new version contains only minor fixes; nothing serious.
[Xperia Z5 Compact Android Development] Morfran:
Firstly, thanks, for this ROM. I'd thought that there was no hope for this device getting past Android 7.

Secondly, is there anything that can be done to make Audible app work? It's failing to start at all with a MediaDRM error (logcat attached). It might be SELinux related, but I don't know enough about that to start fishing for a solution.

Regards,

Matt.
[Xperia Z5 Compact Android Development] Berni-0815:
There is no attached file to be seen. Please send me this LOG via PM (as a link to <any_file_server>); it may contain personal data!
[Xperia Z5 Compact Android Development] Berni-0815:
Are you talking about the audio book app? I have installed the app and can start it without any problems. However, since I don't have an account (and don't want to have an account!), I can't tell if the app will stop working when there is an account and some content is loading.
[Xperia Z5 Compact Android Development] darkangel32:
Dead Trigger 2 cant be installed with this rom, anyone else having the same issue? Obviously, the bootloader is unlocked, with a locked bootloader, lineageos wont start the phone.
[Xperia Z5 Compact Android Development] Berni-0815:
The bootloader MUST be unlocked! Otherwise you CAN'T start a bootimage other than the one signed from Sony.

What error is shown?
[Xperia Z5 Compact Android Development] Berni-0815:
I've tried to download this game myself and I'm running into the same issue.

Analysing the LOG points to the fact like this is a problem of the used play store app itself and I'm unable to fix it!
[Xperia Z5 Compact Android Development] Morfran:
Not sure how I got that so wrong...

I think that I've sent you a private message with a link to a file.

Thanks,

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

Fixed DRM related SELinux issues
[Xperia Z5 Compact Android Development] Berni-0815:
Fixed in latest version from May 15th. (see post above)
[Xperia Z5 Compact Android Development] darkangel32:
Oh ok well its not a big thing really :) In general, does it mean having android 11 rom you can play games requiring more then nougat? I cant seem to install Genshin Impact due to compatibility issues, i think apps somehow see its a too old phone anyway?
[Xperia Z5 Compact Android Development] Morfran:
Confirmed, possibly the last obstacle to moving back to using the Z5C as a daily phone for me. Incidentally, I'm only using 17.1 because of the slow sdcard issue on 18.1, but is that something that's generally noticeable or a problem?

Thanks for the fix though, it's great.
[Xperia Z5 Compact Android Development] Bore1:
HEH ;) 2 things that keep me from geting new phone - this thread and the strupid sizes of the new phones
[Xperia Z5 Compact Android Development] Berni-0815:
Until now, we haven't fixed it!
[Xperia Z5 Compact Android Development] Ermann123:
With this latest update, some EdXposded/LSPosed modules (e.g. Xprivacylua) are not starting. LSPosed manager says: SEPolicy not loaded properly. WIth the version before, everything has been fine.
[Xperia Z5 Compact Android Development] Ermann123:
Berni, could you please provide the download link from the last version (May 10th) again?
[Xperia Z5 Compact Android Development] Berni-0815:
LOG's and policy please!

Once again!

I can't help you when you're only saying x or y is not working without providing any LOG to verify that.

I can't test everything and I don't want to install every kind of software or app to test some unusual cases.
[Xperia Z5 Compact Android Development] Berni-0815:
No. It has been removed.
[Xperia Z5 Compact Android Development] Ermann123:
Sorry, but if you feel annoyed by a simple feedback, it is not my fault. I just report the behaviour of the ROM.

By the way, I found a workaround, which is quite strange: switching from LSPosed back to EdXposed module solved the problem for now. A while ago with an older new build, I needed to switch it the other way around, to make the system work like expected.
[Xperia Z5 Compact Android Development] Berni-0815:
You're right. And be sure, I'm not feeling annoyed! It's only my wish to help everyone asap, but I can't help in all circumstances, if I can't reproduce the software/app invironment.

That's why I'm always asking for LOG's, and, regarding SELinux issues, for your policy file.
[Xperia Z5 Compact Android Development] Ermann123:
if you could tell me, how to get this logfiles, I am of course willing to add/send it. :)
[Xperia Z5 Compact Android Development] Berni-0815:
Please take a look at the 1st post; part "Troubleshooting".
[Xperia Z5 Compact Android Development] alemaoao:
It is possible to flash this build of Lineage on variant SO-02H (japan version Docomo)? Anyone had tried?
[Xperia Z5 Compact Android Development] norabitox:
I burned a custom ROM on so-03e.

国内版Xperiaのブートローダーをアンロックする方法 - Google Search
[Xperia Z5 Compact Android Development] roohooo:
Hi all,

I'm observing a strange bug with the default LOS messaging app: roughly half of the messages I receive will be displayed significantly later than they actually arrived. Most recent example: a friend sent a message at 18:20 (sent/delivery confirmation timestamp on his phone), but I would not get a notification until 19:06. Funny thing - when the notification finally popped up, it would read "46 mins", suggesting that the message was actually received immediately after it was sent, but somehow the notification was delayed by 46 min. Until now, this appears to happen only when the screen is locked and turned off. The delay varies between a few minutes and the above 46 min.

Any ideas / suggestions are much appreciated!

Cheers,

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

Android security patch level: 5 July 2021

Minor changes in the devices' fingerprint; hopefully GPay payment is working now.

Temporarily switched to my kernel for los 18.1!

Please report any issues.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 August 2021
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 September 2021

Switched to signed builds!
[Xperia Z5 Compact Android Development] petefoth:
Hi Berni

I've been debugging a problem in the /e/ OS build based on this ROM and it seems the problem is in this ROM as well. The problem is that Factory Reset fails, at the point where the phone would normally reboot into recovery to wipe the data.

To reproduce:

Settings | System | Advanced | Reset options | Erase all data (factory reset)

Choose Erase all data (factory reset)

Choose Delete all data

Confirm screen pattern

Choose Delete all data

At this point, nothing happens. What should happen is that the device should boot into TWRP, wipe data partition, and reboot into a 'fresh system'.

I suspect that the problem is with TWRP (because another function in /e/ - applying an OTA update - also fails at the point where the device should boot into TWRP). I have tried with several different versions of TWRP (see below), but the problem remains the same.

Do you have any ideas how I can proceed? I have tested this on the latest release of your ROM `lineage-17.1-20210919-SIGNED-suzuran.zip` and on TWRP versions

version 3.2.1-0 from file `recovery_suzuran_230218.img` as recommended in the first post in this thread

TWRP_3.5.0_9-0-recovery_suzuran_2021-01-04.img (which I seem to have been using for a while)

TWRP_3.5.2_9-0-recovery_suzuran_2021-04-11.img (linked from TWRP 3.5.2 for the XPeria Z5 compact (suzuran) XDA Forum)

Very grateful for any ideas on how to take this forward. Thanks

Pete

EDIT:

logcat output is here. The interesting bit is from line 542

--------- switch to main

09-29 06:58:21.691 5088 5088 I /system/bin/uncrypt: received command: [--wipe_data

09-29 06:58:21.692 5088 5088 I /system/bin/uncrypt: --reason=MasterClearConfirm,2021-09-29T06:58:20Z

09-29 06:58:21.692 5088 5088 I /system/bin/uncrypt: --locale=en-GB

09-29 06:58:21.692 5088 5088 I /system/bin/uncrypt: ] (76)

09-29 06:58:21.695 5088 5088 E /system/bin/uncrypt: failed to set bootloader message: failed to find /misc partition

--------- switch to system

09-29 06:58:21.701 1031 5087 E RecoverySystemService: uncrypt failed with status: -1

09-29 06:58:21.702 1031 5087 E MasterClear: Can't perform master clear/factory reset

09-29 06:58:21.702 1031 5087 E MasterClear: java.io.IOException: Reboot failed (no permissions?)

09-29 06:58:21.702 1031 5087 E MasterClear: at android.os.RecoverySystem.bootCommand(RecoverySystem.java:1082)

09-29 06:58:21.702 1031 5087 E MasterClear: at android.os.RecoverySystem.rebootWipeUserData(RecoverySystem.java:788)

09-29 06:58:21.702 1031 5087 E MasterClear: at com.android.server.MasterClearReceiver$1.run(MasterClearReceiver.java:75)

--------- switch to main

09-29 06:58:21.703 5088 5088 I /system/bin/uncrypt: received 0, exiting now

This is the same error as occurs when OTA Install fails, and it appears to be something to do with encryption.

I have tried on a device without a screen pattern but the same error occurs. No idea what to try next :(
[Xperia Z5 Compact Android Development] Berni-0815:
In my eyes this is the culprit! In my 18.1 version I added this commit.

You should try this first!
[Xperia Z5 Compact Android Development] petefoth:
Thank you. I will give that a go.
[Xperia Z5 Compact Android Development] Berni-0815:
I would try it myself. But I've fear to loose the devices internal memory which would be a nightmare!

What does a wipe delete?
[Xperia Z5 Compact Android Development] petefoth:
Pretty much everything in internal memory storage. It returns your device to that state it left the factory. However, if yiu back up the data partition with TWRP, there's no risk whatsoever ;)

Great if you have time to try, but not essential. I'm just waiting for the /e/ bureaucracy to tell me how to get their servers to make a test build. I can test it locally myself, but I'd still have to jump through that hoop to get the fix released to /e/ users.

The other effect of the bug in /e/ OS is that it breaks OTA updates: Updater app downloads the update, then tries to reboot into recovery and fails with the same log messages as Factory Reset
[Xperia Z5 Compact Android Development] Berni-0815:
TWRP only backups /data, NOT /data/media!
[Xperia Z5 Compact Android Development] petefoth:
Sorry, I'd forgotten that! I keep anything I care about on an external SD card, because I view internal storage as inherently volatile and impermanent. I forget that most users don't reflash their devices with new versions every few days :)
[Xperia Z5 Compact Android Development] Berni-0815:
Heureka!

This commit is doing what you want!

And /data/media keeps untouched!

:cool:
[Xperia Z5 Compact Android Development] petefoth:
You are a star - thank you!
[Xperia Z5 Compact Android Development] Berni-0815:
Try to use the 18.1 kernel. Since some released versions I'm using my own 18.1 kernel because it's more actual.

Maybe there is a mismatch between the 17.1 device tree and the 17.1 kernel since my latest changed in device tree. But I'm not sure about that.
[Xperia Z5 Compact Android Development] petefoth:
Will do. Thanks
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 October 2021

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

Android security patch level: 5 November 2021
[Xperia Z5 Compact Android Development] sabotage154:
i flashed this and in my battery is draining at a rate of 10% per hour with screen off. i tried doing a fresh reinstall of stock and then flashed the rom again and im still having the issue. anyone have any ideas what could be causing this.
[Xperia Z5 Compact Android Development] roohooo:
Good morning all,

over the last 4 days, I've noticed a severe degradation of my main Z5C's connectivity, which has been running fine with the 20210615 build since July. General signal strength is low and data connection sometimes takes minutes to establish before it shows "LTE" but even then there is no data flow with apps.

This happens with 2 different SIM of different providers. Both SIM are working fine in another Z5C with the older 20210208 build. So, the SIM appear to be ok and a provider issue seems unlikely. I've reset app and WiFi/mobile data settings but no effect.

@Berni-0815 and others: any ideas what I am seeing here? Is my Z5C dying? Anything else I could try without having to do a factory reset and/or fresh LOS install?

Any suggestions are very much appreciated!

Thanks,

r.
[Xperia Z5 Compact Android Development] roohooo:
By the way - thanks a million for still providing updates for this release! :)
[Xperia Z5 Compact Android Development] Berni-0815:
Sorry for this answer, but all mentioned issues have never been seen here and it is most likely that your devices are dying.
[Xperia Z5 Compact Android Development] roohooo:
Well, thanks for the good weekend news! ;-) Will try you latest build but I too suspect that might be in vain... :-(
[Xperia Z5 Compact Android Development] sabotage154:
i beleie i solved this issue. for me battery drain seems to be device specific and not rom based. it appears the battery on my device is bad.