[OFFICIAL][ZS620KL] LineageOS 19.1 (Android 12.1) for the Asus Zenfone 5z

Search This thread

ThE_MarD

Recognized Developer
Dec 10, 2014
3,295
3,769
Grande Prairie
LeEco Le Max 2
Moto X4
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:



TWRP for Z01R: Official:




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
 
Last edited:

ThE_MarD

Recognized Developer
Dec 10, 2014
3,295
3,769
Grande Prairie
LeEco Le Max 2
Moto X4
Features over Stock
FM Radio, File-Based Encryption (which allows power-off Alarm to actually work and no annoying PIN prompt half-ways through boot), QTI Bluetooth stack

KNOWN BUGS
  • ViLTE does not work
  • 4K UHD Video recording does not work in LineageOS Snap Camera app. (A workaround is to use other camera apps like OpenCamera or Gcam Mods)
  • Touch sometimes doesn't work in Lineage Recovery. The workaround is to use the volume buttons to move around the menu and power to select or to reboot to recovery.
  • SafetyNet does not pass (Unfortunately, this is not possible as your SoC has hardware attestation... the workaround is to use unsupported mods like Magisk which tbh I haven't tried myself as I don't root my devices, but other users said that plus the SafetyNet Magisk mod works)
Frequently Asked Questions
  • Is there a different way to unlock the bootloader than the Asus official method? You can try the unofficial bootloader unlock here
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,295
3,769
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo, a new test build is going up! It will be ready within 10 minutes of this post. lineage-19.1-20220406-UNOFFICIAL-Z01R is stable and pre-official! This is what the official builds will be like whenever 19.1 goes live (whenver that is? No idea lol). Offline charging bug is fixed and QTI bluetooth too thanks to Edward's kernel.

 

semuabaik

Member
Jun 20, 2015
23
1
Xiaomi Mi A1
Asus Zenfone 5Z
Heyyo, a new test build is going up! It will be ready within 10 minutes of this post. lineage-19.1-20220406-UNOFFICIAL-Z01R is stable and pre-official! This is what the official builds will be like whenever 19.1 goes live (whenver that is? No idea lol). Offline charging bug is fixed and QTI bluetooth too thanks to Edward's kernel.

This rom now official right ? I saw it on lineage official download with nightly status.

Anw, can i just download the nightly and update using updater or should i use sideload to update ?
 

semuabaik

Member
Jun 20, 2015
23
1
Xiaomi Mi A1
Asus Zenfone 5Z
Heyyo @semuabaik, yes we are official now! One of 19 devices that got official builds of 19 heh (y)

You will need to manually update to official as OTA via Lineage Updater only works if you're already on an official build that is the same version. Upgrading versions must be done manually as any additions like GApps would need to be updated too.
Ah so the step is the same when i updated from 18 to 19.1

But i can't get my laptop to detect my phone anymore since i update to 19.1

I tried to change the cable, different slots, etc but nothing worked then i used the same cable to my brother's phone and every cables i tried worked.
 

Cyb3rk1ll

Member
Jul 21, 2016
31
9
Austin
I am to install lineageos 19, however when I install GApps, the phone gets stuck at the boot animations. I have wiped the phone and started from scratch 3 times. Any thoughts?

Edit: I am going to try the GApps version that doesn't specify 64 bit and report back.
 

Cyb3rk1ll

Member
Jul 21, 2016
31
9
Austin
Update, it boot loops no matter which version of GApps is used. I might go back to one of the builds that isn't a nightly and try that.
 
Feb 4, 2017
11
5
Heyyo @semuabaik, yes we are official now! One of 19 devices that got official builds of 19 heh (y)
This is a fantastic surprise. Thanks so much @ThE_MarD & team! It is working brilliantly. Not at all what I'd expect from a nightly.

can't get my laptop to detect my phone anymore since i update to 19.1
If you are running Windows, download the (Windows 8) USB drivers directly from ASUS support. Unpack and direct device manager to the unpacked drivers. Works up to W10 for ADB in powershell (prefix with .\), not sure about W11.

Update, it boot loops no matter which version of GApps is used.
First time go for me & device can be restarted without issue. Wrote the recovery image, OS and gapps to SD rather than using ADB, but otherwise followed the official instructions using:
20220516 nightly
gapps version MindTheGapps-12.1.0-arm64-20220416_174313

GL if you give it another go!
 
  • Like
Reactions: ThE_MarD

ThE_MarD

Recognized Developer
Dec 10, 2014
3,295
3,769
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @Cyb3rk1ll , can you please specify which GApps and package name it is you are trying to install?

@Incoherent Ian , tbh it's crazy how good Z01R works on custom ROMs! It actually works best out of all my devices too haha... Only real downside is Widevine L1 because Asus wiped DRM keys on bootloader unlock...

From what I've heard? Newer Asus devices don't wipe DRM keys, so they can do L1 the lucky buggers
 

DarkAlpha.Sete

Senior Member
Oct 12, 2016
251
78
Asus Zenfone 5Z
So I believe I managed to brick my phone while retaining access to TWRP... I'm kinda panicking right now and would appreciate some help.

(I never flashed GAPPs throughout this as I want to degoogle my life, but I had them before)
I was running EvolutionX and decided to clean flash the latest LineageOS build. No errors, but booting resulted in it rebooting straight back to recovery. TWRP logs mentioned Android Rescue Party with reason enablefilecrypto.
The only thing I did that wasn't usual was flashing a new version of TWRP directly to boot_a instead of just boot.

Wiped Data and Cache, tried again, same thing. Restored my EvolutionX backup. Now it just got stuck on the Powered by Android screen, didn't do anything. Clean flashed EvolutionX and after a few reboots it entered a cycle of lockscreen for 2 seconds - boot animation - lockscreen.

This is when I decided to use the Linea recovery, use ADB sideloas and follow the installation steps as closely as possible, which resulted in the same recovery bootloop. Somewhere throughout all this I tried the LineageOS build just before the last (maybe the latest was broken) to no avail.

Sorry for the wall of text but I wanted to explain all that I've tried. I'm not sure what to do anymore. What can I do?
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,295
3,769
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @DarkAlpha.Sete sorry but for some reason, I didn't get a notification for your post.

Just to check, when you said clean flash, did you format data? Wiping data in TWRP doesn't count as it doesn't format the part of the partition that handles encryption and I'm unsure if EvoX or other ROMs even have any encryption on Z01R.

On LineageOS, we use File-Based Encryption to ensure future compatibility with encryption on Android as Google has depreciated Full-Disk Encrytption back on A10. ZenUI stock ROM used FDE, so definitely coming from stock a Format Data is required (and tbh recommended on any device anyways).

Your device isn't bricked, it's just a matter of finding the solution and I suspect it is encryption is the issue.
 

DarkAlpha.Sete

Senior Member
Oct 12, 2016
251
78
Asus Zenfone 5Z
Heyyo @DarkAlpha.Sete sorry but for some reason, I didn't get a notification for your post.

Just to check, when you said clean flash, did you format data? Wiping data in TWRP doesn't count as it doesn't format the part of the partition that handles encryption and I'm unsure if EvoX or other ROMs even have any encryption on Z01R.

On LineageOS, we use File-Based Encryption to ensure future compatibility with encryption on Android as Google has depreciated Full-Disk Encrytption back on A10. ZenUI stock ROM used FDE, so definitely coming from stock a Format Data is required (and tbh recommended on any device anyways).

Your device isn't bricked, it's just a matter of finding the solution and I suspect it is encryption is the issue.
Intially, do I did not. Something I later found to be a mistake when chatting with the guys over at IRC. I also tried clean flashing with a regular format again to no avail. Even tried the LOS recovery and followed the install instructions as closely as possible (sideloading). TWRP logs would show a message about failing to enable file based encryption (Android Rescue Party). LOS just gave me a screen asking to factory reset, which solved nothing.

I also tried just flashing EvoX again (had no encryption), but it just rebooted back to recovery. Do note that every time I flashed LineageOS/EvolutionX I either formatted or wiped data and tried on both slots most of the times. Nothing changed. Another thing of note is that I was never flashing gapps (trying to degoogle).

Later I even tried LOS 18.1, but no boot as well. By the way, 19 rebooted to recovery right after the Powered by Android screen, but 18.1 got to the boot animation... and stayed there for 15 minutes after which I gave up and flashed stock via the bootloader. Tried flashing LOS again after stock - same thing -, so I'm on stock now.

Sorry for this insane wall of text, but I didn't want to miss anything. Hopefully anything can be taken out of this.
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,295
3,769
Grande Prairie
LeEco Le Max 2
Moto X4
Hmm super odd... Ok, next time you try it, can you check via TWRP if there is anything in here? And if so download a copy and send it to me?

/sys/fs/pstore

Or you can do via terminal

Code:
adb pull /sys/fs/pstore
 

ammzul

Senior Member
Jan 24, 2014
61
30
Chennai
Asus Zenfone 5Z
Dear @ The_Mard

First and foremost, fantastic and fabulous development. You have practically extended the life of the Asus Zenfone 5Z by a straight 12 months! As such in India, 5G - with all band support will take 6 to 12 months (especially handsets with mmwave support), till then I can manage with 5Z.

I have 3 sets of queries / doubts which I have posted as 3 different posts - for better understanding and clarity! When you do have spare time, please do share your thoughts - in the following posts!

I have 3 - 5Z mobiles and I use 2 as my daily driver and 1 as back-up. Yet to update Lineage OS - planning to start with Lineage OS from September 1st. Got to clarify before going all out.

@ThE_MarD
 
  • Like
Reactions: ThE_MarD

ammzul

Senior Member
Jan 24, 2014
61
30
Chennai
Asus Zenfone 5Z
My 1st / First Set of Queries! (My Handset is ZS621KL (Asus Zenfone 5z - 8 GB - 256 GB)

Would like to understand, whether the Lineage OS 19.x will support the standards features of Qualcomm 845 Chipset?

1. Cellular LTE Carrier Aggregation Support - 2x20 MHz carrier aggregation (Up-Load), 5x20 MHz carrier aggregation (Download).

I'm on Jio Network and I have CA supported SIM. Standard Asus ROM used to indicate 4G+ as the network indicator. Will Lineage OS support 2CA for Upload and 5CA for download?

2. Wi fi Support - Does it support Peak 256 QAM Wi-Fi, MU-MIMO & Multi-gigabit Wi-Fi. For MU-MIMO, is it 2x2 or 3x3?

3. Will Lineage OS support Qualcomm® Qualcomm® Quick Charge™ 4 technology?

4. Does Lineage OS support all the APIs - Vulkan® 1.1, OpenCL™ 2.0 Full, DirectX® 12 & OpenGL® ES 3.2?

5. Will Lineage OS support Qualcomm® aptX™ audio playback support & Qualcomm® aptX™ HD?

@ThE_MarD
 

ammzul

Senior Member
Jan 24, 2014
61
30
Chennai
Asus Zenfone 5Z
My 2nd / Second Set of Queries!

These set of queries are from your initial logs #

1. Is the ViLTE working now?

2. any plans to enable 4K UHD Video recording in LineageOS Snap Camera app itself?

3. Is there anyway to activate Widevine L1 using some method - from any other Asus Phone or any other 845 Chipset model or something of that sort? Will writing to Asus through email or Asus Forums help? I can attempt, in case if it's feasible!

@ThE_MarD
 

ammzul

Senior Member
Jan 24, 2014
61
30
Chennai
Asus Zenfone 5Z
My 3rd & Final Set of Queries!

1. Lineage OS Updates - When I check for updates in Lineage OS, I see the update files listed as full 900 MB or so - which means it's a full file download.

Not only it takes bandwidth, but, it seems to rewrite the whole code once again and not merely update the changes alone.

The official upgrades used to be incremental and small in size - where-in I know that it only updates the relevant part of the code which requires change.

Is my understanding right or am I off the standard lineage logic?

I'm also worried that one such FULL LINEAGE update one day will knock off my data and will start as if it's going to be a FRESH upgrade! it will disturb my day to day life an hence such questions!

2. Since I will be moving to Lineage OS, is there any app - which If I install in mobile will keep sending the errors / bugs as log file to the developer? This will help pass the bugs issues / automatically!

If my understanding is right, then the lines in the log file will be (possibly) coloured differentially - which means all error lines will be RED in colour which will help you to address the issues!

Point 2 above is just my wish list and hence was checking if an option of that sort is possible - either automatically or manually!

@ThE_MarD
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    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:



    TWRP for Z01R: Official:




    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
    3
    Features over Stock
    FM Radio, File-Based Encryption (which allows power-off Alarm to actually work and no annoying PIN prompt half-ways through boot), QTI Bluetooth stack

    KNOWN BUGS
    • ViLTE does not work
    • 4K UHD Video recording does not work in LineageOS Snap Camera app. (A workaround is to use other camera apps like OpenCamera or Gcam Mods)
    • Touch sometimes doesn't work in Lineage Recovery. The workaround is to use the volume buttons to move around the menu and power to select or to reboot to recovery.
    • SafetyNet does not pass (Unfortunately, this is not possible as your SoC has hardware attestation... the workaround is to use unsupported mods like Magisk which tbh I haven't tried myself as I don't root my devices, but other users said that plus the SafetyNet Magisk mod works)
    Frequently Asked Questions
    • Is there a different way to unlock the bootloader than the Asus official method? You can try the unofficial bootloader unlock here
    3
    Heyyo, a new test build is going up! It will be ready within 10 minutes of this post. lineage-19.1-20220406-UNOFFICIAL-Z01R is stable and pre-official! This is what the official builds will be like whenever 19.1 goes live (whenver that is? No idea lol). Offline charging bug is fixed and QTI bluetooth too thanks to Edward's kernel.

    2
    Heyyo @semuabaik, yes we are official now! One of 19 devices that got official builds of 19 heh (y)

    You will need to manually update to official as OTA via Lineage Updater only works if you're already on an official build that is the same version. Upgrading versions must be done manually as any additions like GApps would need to be updated too.
    2
    Heyyo @Incoherent Ian , thanks for the kind words and glad you're enjoying LOS on Z01R! :)