yashsingh1/xdaforums huggingface dataset:
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] tooth fairy:
Hi There,

the annoying spontaneous "Screen turns off & I have to unlock again" happend again this evening. Around 6 times.

I'm running the 24.May 2021 build.

I attached the alogcat log . I saved it just seconds after it happend 2 times in a row (Screen off - unlock - Screen off, just within seconds)

I hope that no relevant private data is in the log.

EDIT:

I just noticed that in one widget (of a caldendar app) the font changed. I could undo this by rebooting the Phone.

??? I can't attach a file ??? should i send a PM ?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@tooth fairy a PM is fine
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo, a new test build is going up! Link as always in the first post. lineage-18.1-20210613-UNOFFICIAL-Z01R contains fixes for the camera to work in all camera apps and special thanks to @Aryaannnn for finding the fix (it is already merged so the next official build will have this too) and also clean up some camera blobs and add CVP. We also switched the offline charger blob from the AOSP one that didn't always work to the ZenUI one from our stock ROM so that it'll work in any charging configuration and also fixes for the kernel battery stats so that those annoying logcat messages will go away (no idea if it'll actually translate to better battery life though heh). OH! There's also a test commit for fixing microSD Cards for adaptable storage if someone can test it, please.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] tooth fairy:
Hi There,

just to keep everybody up to date with my "screen on / off" trouble.

The_MarD found this line in the logcat: (y)

I/PowerManagerService( 1456): Going to sleep due to lid_switch (uid 1000)...

he pointed to me that the "lid_switch" depends on the HALL SENSOR.

He was so Kind to point me to some possible solutions: :love:

a) build a new kernel with support for the HALL SENSOR disabled. (for the case that it is a Hardware problem)

b) In case that it is a software realated problem: go back to OREO.

I decided to stay with this smooth running LinageOS 18.1 . So i opted for solution a).

In this process i was pointed to a far easier way to disable the HALL SENSOR ....

Just do it from userland by using adb:

adb shell settings put global lid_behavior 0

(This tip was given to me in the linageOS IRC channel. After half a day messing around with setting up a new Ubuntu 20.4 Build enviroment i was glad that i got this. Thanks to : LuK1337 from over there 🙏 )

I hope the trouble is finally gone !!!

Thanks again to @ThE_MarD and LuK1337 for all your donated time to the community (and to me , of course :) )
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@tooth fairy that's good to hear it worked! Tbh a fellow Z01R user on Gitlab Issue tracker has the same problem and this fixed it for him too, so it's good you posted the fix. (y)

I recommend you make a guide thread here just in case other users run into issues with the hall sensor

https://xdaforums.com/f/asus-zenfone-5z-guides-news-discussion.7549/
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] Rizduan:
hi @ThE_MarD my phone can't use location after install lineage os and magisk.How do i fix this? i already enable location and all the setting but still can't detect my location.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @Rizduan , can you please provide logcat? Maybe we can figure out why it's not working for you.

I would first recommend wiping your device and reflashing LineageOS and GApps only and testing location as it could be any mods you have installed causing the issue
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] Rizduan:
hi thankyou for replying where i can find logcat?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@Rizduan please check this guide

How to capture logs | LineageOS Wiki

wiki.lineageos.org
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] Rizduan:
okay thankyou i update back later
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] Udgam Tiwari:
Sorry for off topic question I am facing an issue unlocking my bootloader . It shows error while using the unlock device tool which I attached down below. Is there any alternative solution for that I tried everything I switched to wifi used mobile data as well but no use

Is there any other way plz help.

If anybody having the same issue and got the solution pls reply.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @Udgam Tiwari , I've posted a zip for how to try out the unofficial bootloader unlock to bypass that official Asus method

Release Unofficial Unlock Z01R_unofficial_bootlaoder_unlock - lineageos-for-z01r - OSDN

Release Unofficial Unlock Z01R_unofficial_bootlaoder_unlock - lineageos-for-z01r #osdn

osdn.net
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] Udgam Tiwari:
thanks a lot it worked like a charm you are a life saver

Thanks again
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo, so the latest official build includes a fix I merged for those who were on LinwageOS 18.1 then downgraded to stock Oreo ZenUI then came back to LOS 18.1, as there was an issue with sehash of persist partition which didn't exist in pre-Android 10 ROMs so meow all sensors (including fingerprint) will guaranteed work.

Also, I'm requesting a new official build of TWRP for our device that has support for FBE decryption and is rebased on Android 10 as our current TWRP is only Android 9. (y)
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] prabuddhadg:
Is NFC working in 18.1? I upgraded from 17.1 where NFC was working perfectly. I tap this phone against another, and the sound is heard, but nothing happens beyond that.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @prabuddhadg , yes NFC works and I've tested it multiple times with an NFC card that I have and my speaker that can use NFC to connect bluetooth. We switched from NQ NFC to AOSP NFC since in some cases NQ NFC was causing issues and AOSP NFC was working fine. It also seems some other ROMs based on LOS Z01R trees were also failing to work with NQ NFC so it wasn't worth trying to maintain as also future versions of Android can also break NQ NFC for us just as it did LeEco Le Pro3 (zl1) which also had to switch to AOSP NFC since Android 9 pie. The only part of NFC I haven't tested is Google Pay which maybe others familiar with it could give an answer as to wether it works or not
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] Zack_Ren:
my safetynet always fail, ctsProfile fail

MagiskHide install and setup + Universal Seftynet Fix + edit device fingerprint + hide magisk

how to fix this?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] mombic:
Hi.

My mobile data does not work on roaming. I use two sim cards and I tried to remove one sim, then the other, use both but nothing works. It works when I am not on roaming, it also works on another phone even on roaming. What can I try to set? I have the latest lineage os 18.1, mindthegapps and magisk with pixel 5 fingerprint.

Thanks..
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @mombic , can you please submit logcat and a radio log too? Maybe there will be hints in there as to why it isn't working for you
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] mombic:
Hi, here it is, thanks for help.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] tartutic07:
Have you guys tried any banking apps ? is it working ? are there any issues ??
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] RUDRAGGWP:
could you let me know how you flashed the GApps with TWRP because after installing Lineage OS whenever I try flashing the TWRP recovery my phone goes into a bootloop and I cannot reach Recovery Mode.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @RUDRAGGWP you can follow the LOS install instructions with TWRP in the first post.

mombic thanks for logcat, I'll try to review it when I'm available which might be a few days
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] whatever271:
I'm using my banking app no problems.

Google pay is NOT working though. YMMV, I guess if your bank is as strict as google pay is it will not work
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] whatever271:
Any chance of making "clear all apps" visible below the preview of all apps? Currently you have to scroll all the way to the right.

Thank you!
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] tartutic07:
Ah well I guess have to use online banking if it doesnt workout :)

Thanks for the reply
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo, a new test build is going up! Link as always for test builds are in the first post. lineage-18.1-20210814-UNOFFICIAL-Z01R contains some changes to hopefully get WiFi Calling working on all Indian carriers that support it, but since I can't test it? I cannot guarantee it works... so I need people to test and please report back

@whatever271 that is a system ROM change which tbh is something I don't touch since I don't know enough about that lol... I only modify the device/vendor trees and sometimes kernel
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] decentguy49:
Hey i am using Banking apps and Google Pay, all work pretty much fine and i dont have any issue with any of them
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
interesting, hmm, @decentguy49 can you please provide more information? Did you have to use any mods like Magisk to get it working?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] decentguy49:
no nothing bro, just using official LOS and MindTheGapps
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@decentguy49 oh wow, neat! Tbh I figured SafetyNet needed to pass hence I asked about Magisk and any mods heh, well that's good news if you didn't need to do that stuff. Thanks for the information bro! :)
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] decentguy49:
i never had any issue with Gpay or any banking apps, not even on LOS17.1 (never used any Mods).

If you need any more info, let me know bro.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@decentguy49 even on 17.1? Hmm, by chance did you somehow relock your bootloader? Or is it still unlocked?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] decentguy49:
no bro, bootloader is still unlocked
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Cool, ok thanks @decentguy49 for all the info!
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] tartutic07:
Just a quick one, is NFC for contact less payments (gpay) working in this ROM.?

I am on another ROM where NFC is not working. And u miss it for contact less payments
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @tartutic07 , it was confirmed working here by decentguy49

https://xdaforums.com/t/official-zs...for-the-asus-zenfone-5z.4260769/post-85514089
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] tartutic07:
He says Gpay is not working. But banking apps are.

All good. I am planning to change my ROM anyways.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
He was saying it was working for him both banking and GPay. If by chance GPay isn't working for you? You might need to use Magisk and mods, but decentguy49 said he never had to though

https://xdaforums.com/t/official-zs...for-the-asus-zenfone-5z.4260769/post-85524419
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] tartutic07:
Cool. I will check it out when I install the OS.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] h1ghn3zZ:
Thanks to @ThE_MarD for continuing this wonderful work. I was on the 17.1 ROM and was about to give up using this phone at the beginning of the year when Asus stopped giving out vendor security patches. Then, this ROM gives new life to my phone.

So far, i did not experience any problems. Banking apps (where i have accounts) and Gpay are also working fine.

I use Gcam which is also working fine. Battery drain is minimal.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @h1ghn3zZ I'm super glad you're enjoying this! This is just a fun hobby for me since I have a family and I don't have time to sit down and play video games for hours on end lol... but achieving things on AOSP is definitely more rewarding as others get to enjoy the result of my hobby too. :)

Tbh vendor security patch number is fluff lol... technically? It encompasses device firmware as well, but there isn't a good way to test vendor security patch level like there is for system security patch level as a lot of vendor portions have proprietary code (especially the bootloader), so there's no way to determine if vendors are outright lying about their vendor security patch level and missing security patches. o_O

The only serious security flaw I remember with vendor was long ago where qseecomd could be exploited if a rogue apk was granted root permissions and it could bypass security passwords... but our device is so new that it doesn't apply to us... but still, root is a major security flaw anyways, as the whole idea behind it is administrative access and bypassing selinux (Security Enhanced Linux), so not having root on your device and keeping up to date on system security patches and proper selinux enforcing are great ways to keep your device secure, afterwards? It's pretty much avoiding sketchy downloads and apk's (as sometimes pirate modded apks can carry the risk of security exploits too). That's why all I do with my devices is LineageOS and GApps. If I need root for testing changes to my devices? I only use adb root from my PC and then when I'm done I reboot my device.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] h1ghn3zZ:
Thanks for the reply and comments @ThE_MarD , specially the in-depth info on security.

In my previous years, i was naïve and foolishly install pirate modded apk's. Of course, in those days, i used my phone for gaming, mostly, so security was of little concern.

But now, i use my phone for important business work as well as financial matters. So, security is a top priority. That is why, i never root my phone even if i use custom roms. Although i test different roms, i always decided to use LOS for my daily driver, as soon as it becomes Official. I made sure that the phones i bought receive LOS and never settle for those high-specs, but low cost devices which flooded the market nowadays.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@h1ghn3zZ I used to be the same too lol, albeit Dolby Atmos mods sound good? That forced selinux permissive is painful so I eventually gave up on those.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] h1ghn3zZ:
I can't really comment on that because i rarely use my phone for listening to music or watch movies etc.

Anyway, i just want to mention here that its been a breeze using this ROM as my daily driver
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] tartutic07:
So I get an error when setting up the Google pay. Anyone else facing this issue?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] :
The fingerprint drivers are messed up in this 100.10.107.123 update. But 100.10.107.110 had proper fingerprint drivers.

Could you look into the issue? It usually happens when my palms tends to become sweaty or oily sometimes.

Use the drivers from 100.10.107.110 to resolve it.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @tartutic07 , here is a guide that I saw on heart (Lenovo Z5 Pro GT) in order to pass that but I haven't tried it as I've haven't used Magisk or mods in years...

@mahafa , tbh this is the first I've heard of FP issues due to drivers, but I can make a test build with downgraded ones from v100 just to see if it helps. I'm on night shift right meow, but once I get some spare time I'll make the build.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@mahafa , I just checked our vendor blobs and the fingerprint drivers haven't changed since 100.10.107.92, so I'm not quite sure what your problem is sorry. You could backup all your important data off of your device and flash a fastboot ROM onto your device of the stock ROM and test if that .123 build the fingerprint sensor works ok or if .107 is the good one?

You can see here, Dec 19, 2020 we imported from .92 and then only modified those blobs to work with our source-built vendor

History for Z01R/proprietary/vendor/lib64/libgoodixfingerprintd_binder.so - TheMuppets/proprietary_vendor_asus

Contribute to TheMuppets/proprietary_vendor_asus development by creating an account on GitHub.

github.com

The only blobs that changed on 123 was a few minor blobs unrelated to FP

Z01R: Update blobs from UL-Z01R-WW-100.10.107.123-user · TheMuppets/proprietary_vendor_asus@a3a3dcc

from WW_Z01R-WW_user_100.10.107.123_20210131-user-20210131 Change-Id: I609da8d3dcbe258784e2097df494d9971633a9cb

github.com
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] :
Oh ok, then it's only my issue because for me it started with official asus firmware 100.10.107.123 and official lineage builds so I thought its because of 100.10.107.123 firmware and it's blobs.

I think I have to be more careful that dirt doesn't get in to fp sensor and make sure my hands are dry. It's very rare that it happens.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] MoD1997:
Hi There,

thanx for this awesome ROM !!

is it possible to activate OTG on this ROM? I'd love to use an USB-C Flashdrive for offline Datastorage.

If so, where can i find the option to activate ?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @MoD1997 , glad to hear you're enjoying it! OTG is possible and is already enabled same with microSD Card support. By chance, do you know what format your drive is?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] MoD1997:
Hi @ThE_MarD ,

it was fat32 .. after your post i also tried exfat .. both were not recognised.

I tried a Sandisk Dual use Flash-Drive with 64GB and used the SanDisk apk to try to read the Flashdrive.

Link to the drive

Are there any special things to do after Inserting the Flashdrive ? (like reboot with Flashdrive inserted) or ist there any way to see in LinageOS if it has already detected the Flashdrive ?

Just a thought:

I can't "adb" into the ASUS phone aymore. (And charging is only possible in "slow Mode")

Is it possible that the internal USB-connector ist worn out ?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@MoD1997 please don't quote and mention in the same post as I'm receiving double notifications for that same post.

There is a chance it is your type-c port unfortunately. Mine is loose so I can't adb sideload and move my device or it fails. I would recommend trying different cords and a different PC just to see if those might be the cause too
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] MoD1997:
Sorry for this.:oops:

I tried severaly combinations of PCs , cables & Phones . The result: It is the worn out USB-C Port inside the ASUS zenfone 5Z ...... Thank you for your help figuring this out. (y)
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@MoD1997 by chance is it the same in TWRP as it is in LineageOS?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] MoD1997:
I am still used to update from within LineageOS , so i have the Lineage Recovery installed.

From within LineageOS Recovery i enabled adb in the Advanced Menu.

It shows "Enabled ADB." on the bottom of the phones Display now.

But the PC can't find anything using 'adb devices'.

A far as i understand, there is no way to flash TWRP from within the phone. So i won't be able to double check with TWRP.

I suppose that no ADB in LinageOS Recovery is a clear sign for a hardware Issue wit the USB-C port in the phone.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Hmm, yeah @MoD1997 if even Lineage Recovery can't see it? I think she is toast... tbh I haven't checked if Z01R has a separate board for the USB Type-C port or if it's on the main board... so depending on that? Replacing the port might be an easy swap, or it might be a difficult soldering job...
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] MoD1997:
If someone

* manages to open the case (which includes using a hot air gun with heat around 100 degrees Celsius)

*and has the replacement USB-C board (easy to get in Asia, not so easy in Europe)

* and proper fine motor skills:

it is a fast 15 minutes board-swap. No soldering needed.

(Youtube has several disassembly / teardown Videos).

(I orderd the USB-C board yesterday.):cowboy:
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] MoD1997:
Just for the curious a Status-update:

I managed to swap the USB-C Board inside the Phone. The new one was not an orignal ASUS board, so i can't be sure if this is the reason why, but:

There is still no adb or Fastcharge avaible. :oops:
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @MoD1997, well meow I'm really not sure why it's acting up for you hmm sorry... That is very very odd that fastboot doesn't work when you're in bootloader... does adb still not work on multiple PCs still? What does device manager show in Windows? Have you by chance attempted adb on a Linux/MacOS machine yet?

@amitrahi04 I would recommend asking in the Asus Zenfone 5z Telegram group as this thread is for LineageOS and not that Fluid ROM you're trying to flash.

ASUS Zenfone 5Z Discussion

Discussion chat for ASUS Zenfone 5Z.	- Channel: @ASUSZenfone5ZChannel	- Customization chat: @ASUSZenfone5ZCustomization	- Photography Chat:	@ASUSZenfone5ZPhotography	- Photography channel: @ShotOn5Z

t.me
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] MoD1997:
I allready gave up on this Issue. After your Post i gave it a last try:

I juggled with 3 Smartphones , 3 cables & 2 PCs (both running diffent brands of Linux)

The result was as before: The 2 other phones (one of them is an 5Z running LinageOS 17) were properly detected (also shown via dmesg) on each Linux-PC with each cable.

But using my ASUS 5Z connected to the PC the phone was just charging. 'dmesg' didn't showed anything !

The Phone was noneexisting from Linux point of view !

No matter if it was running LinageOS, LinageRecovery or bootloader !

This is the exact same behavior as before the change of the original Phones own "USB-C port" to the "new" not original ASUS "USB-C Port".

So i suppose it is a hardware issue with the phone.

As far as i consider there is not much left to check it out (Inside the Phone are not much related Hardware Parts):

* get an original ASUS USB-C Port to figure if the failure is now because of the not-ASUS board.

* change the cable

* change the Motherboard

This stuff i trickie & expensive to get in europe. So i won't gonna ""follow this road" :(
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] fastrespawn:
Hi guys!

I'm using this version of Lineage, so far working perfectly. Is there a way to control how many cpu cores can be used and their frequencies?

My phone instead of relying solely on ARM throttling also throttle down charging even if the battery itself is not hot. The processor ends up eating all the battery even charging, and restarts. I want to be able to apply some kind of performance throttle measure to when the battery gets less than 15%, so the CPU is actually throttled down instead of eating up energy until it dies.

Also posted here:

https://xdaforums.com/t/zenfone-5z-...arger-how-can-i-change-this-behavior.4370011/

thanks
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @fastrespawn, there is a way to do that yes, it involves installing mods like Magisk and then using an app, something like Franco Kernel Manager maybe or a similar one like it?