• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[OFFICIAL][ZS620KL] LineageOS 18.1 (Android 11) for the Asus Zenfone 5z

Search This thread

ThE_MarD

Senior Member
Dec 10, 2014
2,982
3,500
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @tooth fairy , I'm glad you like it! (y)

Unfortunately with the redesigned power menu? That Feature wasn't brought back...

You can still take a screenshot by holding down the power and volume down buttons at the same time for three seconds.

If you want partial screenshot though? You can go into Settings > Buttons > under extras you can enable a shortcut for short tap of power + volume down.
 
Last edited:
  • Like
Reactions: tooth fairy

echang8

Member
Feb 6, 2016
24
4
Heyyo @echang8 , please ensure you are doing the factory reset step as stock ROM uses FDE and we use FBE
eyyy Thanks for replying
I did step 3 (Now tap Factory Reset, then Format data / factory reset and continue with the formatting process.)
and it did format successfully. Then, I adb sideloaded lineageos. It stopped at 47% and reported adb: failed to read command: no error. I rebooted recovery, then adb sideloaded MindTheGapps arm64. Rebooted and it sayed on the lineageos boot up animation for hours. I am wondering if I am on the wrong active slot perhaps?
 
Last edited:

ThE_MarD

Senior Member
Dec 10, 2014
2,982
3,500
Grande Prairie
LeEco Le Max 2
Moto X4
@echang8 , slots doesn't matter for LineageOS 18.1 as we include device firmware in our installer. ;)

That is a known adb bug that the file finishes copying to the device at 47% (AOSP bug) but when it completes successfully it should show something like "adb failed to read success" if it passed. I would recommend checking if the checksum matches your downloaded zip or to try and redownload it again
 

tooth fairy

Member
Nov 14, 2018
11
6
Hi There,

i want to give a feedback after using 18.1 a couple of days.
Right after installing the first official 18.1 build i got some random weird screen on/off events.
The screen gets dark and "comes back on" showing the login-screen. after a day or two this behavior dissapeard mostly.

Today it started to anoy me again. So i did an update to the recent 10.May build of 18.1 .

Now it is even worse: Right now the phone just lies beside me on the table. Screen turned off (black) by me.
Once in a while the screen flashes on and shows the lock-screen and within a second it turns black again.
(No visible events are triggering this behavior.) Sometimes this happens every couple of seconds , sometimes the screen stays black several minutes. o_O

Using the phone: the screen turns black randomly. e.g. When swiping / reading / opening the calendar app.
I allways have to unlock the phone again.

Can i provide any debug Info ? (if yes, please drop some advice how to do so)

As far as i remember nothing like this happend when using LinageOS 17.1 official.
 

tooth fairy

Member
Nov 14, 2018
11
6
@ThE_MarD
Thanks for the fast reply.
The Ambient Display is ON. But the Options: Always on / Tilt Sensor: Pick-up / Proximity Sensor: Hand wave , Pocket are all turned off!
Last night the phone was on a table & the display turned on & off randomly even when i was sitting 2 meters away from the phone. And no flickering lights or whatever would have triggered anything.
Luckily the "random on/off flashing"-Problem dissolved overnight.

Just some rare & "spontaneous" Display turning Black & i had to unlock once more Events appeard.

I gonna start logcat using the tool "aLogcat root" from f-droid.org : https://f-droid.org/en/packages/rs.pedjaapps.alogcatroot.app/
and I'll report back when i got the log.


# EDIT: after 1 week
Today i made update to the 17.May build. So far I got no furter "sceen trouble" (y) So no logs to provide !!!
 
Last edited:
  • Like
Reactions: ThE_MarD

iSKGtm

Member
Oct 6, 2016
11
4
20
Brasil
linktr.ee
Hello, even following all the steps, lineage 18.1 recovery seems to be having problems here, every time i try to record the gapps, or magisk via adb sideload, it gets stuck at 0% checking the update package.
I ended up going back to stock rom. :(

Edit: I was able to install with another method using TWRP, but Los Recovery cannot flash.

The rom is very fluid and stable, with only the CTS missing.
 
Last edited:
  • Like
Reactions: ThE_MarD

tooth fairy

Member
Nov 14, 2018
11
6
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 ?
 
Last edited:

ThE_MarD

Senior Member
Dec 10, 2014
2,982
3,500
Grande Prairie
LeEco Le Max 2
Moto X4
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.
 
Last edited:

tooth fairy

Member
Nov 14, 2018
11
6
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 :) )
 
  • Like
Reactions: ThE_MarD

ThE_MarD

Senior Member
Dec 10, 2014
2,982
3,500
Grande Prairie
LeEco Le Max 2
Moto X4
@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

 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    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.
    1
    @decentguy49 even on 17.1? Hmm, by chance did you somehow relock your bootloader? Or is it still unlocked?
    no bro, bootloader is still unlocked
    1
    Heyyo @tartutic07 , it was confirmed working here by decentguy49

    1
    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

    Cool. I will check it out when I install the OS.
    1
    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.
  • 10
    2okPze5.png


    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restores the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.



    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.



    Code:
    #include
    
    /*
    
    * Your warranty is now void.
    
    *
    
    * I am not responsible for bricked devices, dead SD cards,
    
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    
    * do some research if you have any concerns about features included in this ROM
    
    * before flashing it! YOU are choosing to make these modifications, and if
    
    * you point the finger at me for messing up your device, I will laugh at you.
    
    */



    SUPPORTED DEVICES

    - ZS620KL (Asus Zenfone 5z)

    - ZS621KL (Asus Zenfone 5z)


    HOW TO INSTALL LINEAGEOS WITH LINEAGE RECOVERY

    Please follow the official LineageOS Wiki instructions for our device





    HOW TO UPDATE LINEAGEOS WITH LINEAGE RECOVERY

    Please follow the official LineageOS Wiki instructions for our device





    HOW TO INSTALL LINEAGEOS WITH TWRP

    - Unlock the bootloader and install TWRP.

    - Download LineageOS. (see Downloads)

    - Boot into TWRP.

    - Copy the downloaded zip files to the internal SD card.

    - Perform a backup of your current ROM. (Optional)

    - NOTE! If you're coming from stock ROM? You MUST format data. Wipe > "Format Data" button > type "yes" > keyboard checkbox

    - RECOMMENDED: Do a factory reset (clean wipe)! No support if you didn't! (Wipe System, Cache and Data)

    - Flash LineageOS zip.

    - Flash TWRP installer zip.

    - Reboot to TWRP.

    - Optional: Install the Google Apps add-on package. (see Downloads)

    - Reboot to system.



    HOW TO UPDATE LINEAGEOS WITH TWRP

    - Download the LineageOS zip(s). (see Downloads)

    - Copy the LineageOS zip to the internal SD card.

    - Reboot to TWRP.

    - Flash LineageOS. (Wiping Cache is optional, but recommended)

    - Reboot to TWRP.

    - Optional: Install the Google Apps add-on package. (see Downloads)

    - Reboot to system.



    MAIN DOWNLOADS


    Lineage:

    - Official:


    - Unofficial:

    https://osdn.net/projects/lineageos-for-z01r/releases/p17823


    TWRP for Z01R: Unofficial:




    GOOGLE APPS (GAPPS) DOWNLOADS





    GOOGLE CAMERA (GCAM) DOWNLOADS

    Google Camera:


    5z's configuration can be found in his configs:




    DEVELOPER RESOURCES









    HOW TO CONTRIBUTE?

    Send your patches up for review: https://review.lineageos.org/

    Read the guides on the LineageOS Wiki: https://wiki.lineageos.org/

    Source Code: https://github.com/LineageOS
    6
    Heyyo, I just realized that the first official build of LineageOS 18.1 is up for Z01R! w00t! Thread updated (y)
    2
    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
    2
    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)
    2
    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

    Ah well I guess have to use online banking if it doesnt workout :)
    Thanks for the reply


    Hey i am using Banking apps and Google Pay, all work pretty much fine and i dont have any issue with any of them