Lenovo Z5s (no PRO) TWRP 3.3.1 + Pixel GSI + MIUI + FlyMe + H2OS

Search This thread

czajunia

Senior Member
May 31, 2010
145
13
London
Thanks a lot for your help and suggestions. Just a small update. After installing the latest version of the stock ROM I could find (11.5.111) and Havoc afterwards, the fingerprint works with no issues. I had to flash the ROM with the Gapps included as for some reason I couldn't get the phone to boot after flashing gapps separately on either Lineage or Havoc. I am not sure why but it just would get stuck on the ROM logo. The longest I waited was half an hour and it was still stuck there.


ok , first thing first
move the firmware to the "bin"in ur qpst in ur local drive..
I can confirm that moving files to the bin folder wasn't necessary. After reinstalling Qualcom drivers, rebooting and disabling other USB devices (not sure which helped at the end) I got it working and managed to flash the stock ROM.

Theere is an option in the Advanced menu of wzsx's TWRP - "RM Forceencrypt". Have tried this on another phone with the same features, it should remove dm-verity and forced encryption. Haven't tried this on the Z5s though.
This didn't work for me. It looked like the script ran with no errors, but after rebooting (tried reboot recovery first then the system) it still asked for the password.

In my experience, wzsx's TWRP doesn't play well with encryption. You can try @jacoghi's TWRP here (Thread).
After installing the stock ROM and updating to the latest version I installed this TWRP and it works indeed. It didn't disable the encryption after installing Havoc (I think it did after I installed one of the stock ROMs and some patch) but it reads the password correctly and I can access the Data Partition in recovery which is nice. A random issue I have with the recovery is that it doesn't seem to recognise my USB OTG drive which is a bit of a bummer as it helps with backup / restore.

Automatic brightness doesn't work for me on Havoc 10, someone else ?
Unfortunately it doesn't work for me either.

Other issue I've noticed so far is that changing the corners diameter only works until the first screen lock and after unlocking it's back to where it was before even though the settings value remains unchanged. Also the recommended Gcam_6.2.030_Advanced_V2.2.190716.1800-Final.apk still crashes on my phone exactly the same way as before.
 
Last edited:
  • Like
Reactions: carlshark

Awesome0123

Member
Jun 7, 2017
7
0
Hi, new here I just got my phone last week and I'm trying to install a custom rom in it but I'm still confused on what rom to use and what recovery image to use. Can anyone recommend me a stable rom and recovery image?
 

czajunia

Senior Member
May 31, 2010
145
13
London
Hi, new here I just got my phone last week and I'm trying to install a custom rom in it but I'm still confused on what rom to use and what recovery image to use. Can anyone recommend me a stable rom and recovery image?
I would start here and follow the manual to install a GSI image : https://forum.xda-developers.com/showpost.php?p=82705445&postcount=138

From what I noticed majority around here seem to favour Havoc (and that's what I am on as well at the moment) but I guess it's all personal preference. All GSI ROMs will have a few little things that don't work out of the box but generally are usable as daily drivers. There are workarounds for some of the little glitches but for example I cannot get auto brightness to work and the corner radius setting doesn't seem to work for me either. None of that bothers me too much though. Good luck.
 

kalehrl

Senior Member
  • Nov 22, 2017
    558
    251
    Does anyone follow the official Lenovo z5s Chinese forum? There is a beta version of Android 10 Zui. Any ideas what it may bring to the custom ROM development?
     

    saepurusass

    Member
    Dec 7, 2019
    10
    0
    Z5s 6GB/128GB global version/rom. Global ROM version 10.5 (no upgrades available - maybe you can flash CN version).

    Pixel Experience - full of Google apps. Not an option if you want to avoid google.
    Resurrection Remix - Did not start. Stays at RR logo for a long time and nothing happens.
    ArrowOS - Works when flashed over 10.5 global. Nice and clean, no google stuff. But Bluetooth audio does not work. I have not found other problems at the moment.

    LineageOS - not possible to flash when you have 10.5. Validation fails before flashing.

    Please note: It all applies to device with installed Global ROM 10.5. If you have something else installed, it might be different.
     

    czajunia

    Senior Member
    May 31, 2010
    145
    13
    London
    After installing the stock ROM and updating to the latest version I installed this TWRP and it works indeed. It didn't disable the encryption after installing Havoc (I think it did after I installed one of the stock ROMs and some patch) but it reads the password correctly and I can access the Data Partition in recovery which is nice. A random issue I have with the recovery is that it doesn't seem to recognise my USB OTG drive which is a bit of a bummer as it helps with backup / restore.
    Looks like there is a new jacoghi's recovery available here: https://eu.dl.twrp.me/jd2019/ (twrp-3.4.0-0-jd2019.img)

    Just installed it and everything works fine. The good news is I have no problems with USB OTG now. In the process of creating a back to a USB stick and everything seem OK so far.
     

    downforce25

    Senior Member
    Mar 24, 2016
    56
    0
    Hello,

    I'm using PixelExperiencePlus ROM (30-03-2020) on my Lenovo Z5s. is there a most recent version of this ROM (Security patch from 05-03-2020)?
    The only annoying issue is the screen brightness despite the fix applied. Automatic brightness is not working and it's a major problem when I use my phone on the outside.
    I find PixelExperience just perfect for me, I don't use customisation options integrated in other roms.

    I see that there is a ZUI 11.0.224 GLOBAL rom (port from kunlun2). https://t.me/s/z5supdates This rom seems to be bugless.
    What do you think about ZUI 11.5 (Based on Android 10)? Pixel Experience is very light, ZUI would satisfied me?

    What about latest GSI Rom? https://sourceforge.net/projects/amber-gsi/files/ My priorities are stability, functionality, battery life and updates.

    I'm looking for a fast and stable ROM with good battery life and with all main functions working like Bluetooth/GPS/FingerPrint and, if it's possible with no brigtness issues.

    I want to make the best choice before taking the risk to flash my phone again with a new rom.

    Thanks in advance for your help and your advices.
     

    Awesome0123

    Member
    Jun 7, 2017
    7
    0
    Hello,

    I'm using PixelExperiencePlus ROM (30-03-2020) on my Lenovo Z5s. is there a most recent version of this ROM (Security patch from 05-03-2020)?
    The only annoying issue is the screen brightness despite the fix applied. Automatic brightness is not working and it's a major problem when I use my phone on the outside.
    I find PixelExperience just perfect for me, I don't use customisation options integrated in other roms.

    I see that there is a ZUI 11.0.224 GLOBAL rom (port from kunlun2). This rom seems to be bugless.
    What do you think about ZUI 11.5 (Based on Android 10)? Pixel Experience is very light, ZUI would satisfied me?

    What about latest GSI Rom? My priorities are stability, functionality, battery life and updates.

    I'm looking for a fast and stable ROM with good battery life and with all main functions working like Bluetooth/GPS/FingerPrint and, if it's possible with no brigtness issues.

    I want to make the best choice before taking the risk to flash my phone again with a new rom.

    Thanks in advance for your help and your advices.

    Is the battery life good on PixelExperiencePlus?
     

    downforce25

    Senior Member
    Mar 24, 2016
    56
    0
    Hello,


    I'm trying this new ROM "Optimized-LineageOS-17.1-arm64-ab-vanilla.img.xz"

    I've succeeded in installing the ROM, but when I try to install OpenGapps with TWRP 3.4.0-0, I'm always encountering "Error 70"

    Could you help me to fix this error?


    Thanks in advance for your help.
     

    vesdan

    Senior Member
    Mar 29, 2018
    55
    21
    Hello,


    I'm trying this new ROM "Optimized-LineageOS-17.1-arm64-ab-vanilla.img.xz"

    I've succeeded in installing the ROM, but when I try to install OpenGapps with TWRP 3.4.0-0, I'm always encountering "Error 70"

    Could you help me to fix this error?


    Thanks in advance for your help.
    Go to TWRP
    Wipe
    Advanced Wipe
    set "System"
    Repair or Change File System
    Resize File System
    Confirm
     

    downforce25

    Senior Member
    Mar 24, 2016
    56
    0
    Go to TWRP
    Wipe
    Advanced Wipe
    set "System"
    Repair or Change File System
    Resize File System
    Confirm

    Hello,

    perfect, Gapps installed.:good:

    Thank you very much.

    ---------- Post added at 12:49 PM ---------- Previous post was at 12:31 PM ----------

    I'm currently using this one https://forum.xda-developers.com/z5...lenovo-z5s-t4120203/post82997713#post82997713
    Best ROM so far, everything is working, just some (very) minor bugs.

    Hello,

    Thank you for this proposal. ZenX OS seems to be a very interesting Android 10 rom. I will give it a try. For the moment I'm running Optimized Lineage OS 17.1

    No brigthness issues with this rom? Battery life is good?
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 8
      Hello guys,
      I don't see a dedicated section for lenovo Z5s but I managed to download the TWRP 3.3.1 from baidu (only chinese and english but chinese default).
      I then looked for rom authors, it seems they all are using chinese custom roms, anyway they are mirrored and MIUI has been tested by me.

      I decided to mirror all downloads I found (they were quite hard to get):

      TWRP :
      TWRP-3.3.1-LENOVO_Z5S-CN-wzsx150-fastboot.7z (with fastboot instructions and files)
      TWRP-3.3.1-0529-LENOVO_Z5S-CN-wzsx150.zip (can be flashed with TWRP)
      recovery-TWRP-3.3.1-0529-LENOVO_Z5S-CN-wzsx150.img (only .img file)

      Chinese Roms :
      Z5s_miui_19.5.20(9.5.16)_Pie_Public_by Art_Chen(TWRP_FASBOOT_2in1).zip
      Z5S_H2OS_190722
      Z5s_Flyme7.3.1.0A_YouLinw_V1.5_19.07.25

      GSI Roms : (Seems to be AB, because A-Only are not working)
      According to 4PDA, only Pixel Experience have been tested for now, they provide screenshot and video.
      Pixel Experience GSI Tested working!
      Ressurection Remix Tested working!
      Arrow OS Tested Working!
      All other public GSI images (tested many, none of them working, no idea why)

      Official ROM backup (QPST format):
      https://mirrors.lolinet.com/firmware/lenovo/l78071/

      I added permissiver v4 I got from Telegram on Android Q GSI channel

      Instructions for GSI Images (thanks to 4PDA):
      Using TWRP recovery:
      0. Download the firmware files to your smartphone.
      1. Enter the recovery menu. To do this, turn off the smartphone and simultaneously hold down the power button and volume +.
      2. In the recovery menu, select the item Cleaning -> Selective cleaning. Check the boxes on Dalvik / ART Cache , System , Data and Cache . Swipe the slider to the right. Return to the main recovery menu.
      3. In the main recovery menu, select Installation -> Install Img. Select firmware file XX.img. For system section firmware, select System Image, and for boot - Boot. Swipe the slider to the right. Go to the main recovery menu. Select Reboot -> System.

      This procedure is new for all smartphones, so don't be afraid to ask questions if something went wrong.
      Using adb:
      0. Install the USB, ADB and Qualcomm drivers on the PC. Reboot the computer and connect the smartphone to the PC. Download files for firmware on PC.
      1. In the folder where the files (.img) were saved, press SHIFT and the right mouse button from scratch. In the context menu, select PowerShell or CMD (activate command console).
      2. Enter the commands one by one
      fastboot flash system XX.img
      fastboot erase userdata
      fastboot -w
      fastboot reboot

      PS In some cases, it will be necessary to flash vendor and / or boot:
      fastboot flash vendor XX.img
      fastboot flash boot XX.img

      Source for TWRP: https://club.lenovo.com.cn/thread-5442053-1-1.html
      Source/author for H2OS & Flyme : Weibo
      Source/author for MIUI : Weibo
      4PDA page : https://4pda.ru/forum/index.php?showtopic=960895

      Please move topic to another section if wrong.
      5
      I just want to post some updated information about the current state of things, since many things in this thread here are outdated.
      Warning as usual: Following these steps will void the warranty, delete the data and even though it's not supposed to it may potentially destroy your device. Follow with care.

      To flash a custom rom on this device, you need to do the following:

      0) To get a (even soft bricked without recovery or fastboot) device back to the latest factory state.
      - Go to https://mirrors.lolinet.com/firmware/lenovo/l78071/ and download the latest img. Right now it's L78071_CN_SECURE_USER_Q00024.0_P_ZUI_11.1.171_ST_191023_qpst.zip.
      - While the Phone is off, hold VOL DOWN + VOL UP + POWER for a few seconds. The device should show a black screen, but not boot.
      - Connect the phone to the pc and flash it with QFIL. The procedure is similar to https://forum.xda-developers.com/z5...bootloader-t3888785/post78644972#post78644972
      - If you want you can boot up the device and check if there are any further updates and install those as well, since it also may contain kernel updates which will not be part of any custom rom.
      - This will get you the latest kernel and vendor information. (boot.img and vendor.img)

      1) Get your bootloader unlocked, if you haven't already.
      - Visit https://www.zui.com/iunlock
      - Enter the IMEI1 (Second number when you call *#06# with the phone)
      - Enter the Device ID from the Bootloader/Fastboot (Hold VOL- and Power, while device is off)
      - Enter your email and captcha and set the checkmark to acknowledge voiding your warranty.
      - If you get an error saying that your IMEI1 is wrong, put in a sim card and wait a few hours. If it still doesn't work, write an email to [email protected]
      - In the developer settings in android, enable usb debugging and oem unlock.
      - Flash the sn.img file you receive with fastboot (again, hold vol- and power while the device is off). Command is 'fastboot flash unlock sn.img'. You need compatible usb drivers, qualcom drivers and adb/fastboot to do that. Use google or write me a PM if you have trouble with that.
      - execute 'fastboot oem unlock-go'
      - This allows you to use fastboot to flash custom system/boot/vendor/vbmeta images

      2) Now you need to disable signature verification to boot. Otherwise you will be stuck in the Bootloader.
      - You need a patched vbmeta.img. I use the one from the latest MIUI by YouLinw. (https://drive.google.com/uc?id=1oq_Vsozq3mywNT1-fNsIe7ALslfLoB-t)
      - Flash it from the Bootloader with 'fastboot flash vbmeta vbmeta.img'

      3) Now you can flash TWRP.
      - Download https://drive.google.com/file/d/1-JwD0Ie5xY2CQRDv8rvZMK6ICf0vmp4n/view?usp=drivesdk
      - Flash it from the Bootloader with 'fastboot flash recovery recovery-TWRP-3.3.1-1015-LENOVO_Z5S-CN-wzsx150.img'
      - Press VOL UP / VOL DOWN to navigate to recovery.

      4) Now you can flash most GSI Treble ARM64 AB roms.
      - Go to https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list and choose a gsi
      - In TWRP, format data, then wipe dalvik+data+cache+system
      - Flash the gsi to the system partition
      - Go to Wipe, select System, Advanced->Resize (If you don't, OpenGapps will error out with error 70)
      - Flash OpenGapps if wanted
      - Flash Magisk (This will modify the kernel/boot.img)
      - Flash Permissiver v5 (only necessary for some roms such as AOSP10. You can try booting without it first, and if it doesn't, come back and flash it. Note: This will disable the security features of SELinux and installs itself to the boot partition. To get it back to the original state, you need to flash the original boot.img again or do step 0)

      Known issues and workarounds for most roms:
      - Audio Distorted: Download Audio Compatibility Patch in Magisk and remove the volume listener library.
      - Notch not detected: Go to Developer options and activate the Tall Cutout option. If you're experienced, you can compile this in: https://github.com/phhusson/vendor_hardware_overlay/pull/139
      - Status Bar elements out of screen: Go to Phh Settings and set rounded corners to 30 (or something smaller, depending on the dpi)
      - DT2W not working: Just wait for it to get fixed, or if you're experienced, do this: https://github.com/phhusson/treble_experimentations/issues/841#issuecomment-597088242
      - Camera App: Install Gcam_6.2.030_Advanced_V2.2.190716.1800-Final.apk from https://www.celsoazevedo.com/files/android/google-camera/dev-arnova8G2/.
      - Format SD Card as Internal: Use a tool like Root Essentials
      - Brightness Flickering: 'adb shell setprop persist.sys.qcom-brightness -1'

      I tested AOSP10 v213, Pixel Experience, LineageOS 17.1, ArrowOS and HavocOS. They all work fine (mostly with the same known issues, since they are all based on AOSP)
      The original ZUI works too of course, but has alot of bloatware and general nonsense.
      The chinese Roms like MIUI11 are fine as well, but not really made for the western world.
      4
      Ok guys, sorry about the delay, I've been having some personal problems lately and couldn't test my builds before publishing. Sore here we have two things

      TWRP 3.3.1.0 - Apparently, everything works under stock firmware 10.5.205, which is the one I based it off. Decryption works under stock rom, flashes everything. This is a clean TWRP by the way, nothing shady as the other available. Test and report.
      https://drive.google.com/open?id=1MAnQrYEUwlggTt9y9wx2AARwUWQP8lqN

      PixelExperience - I didn't test much, but apparently everything works but the FM Radio. Test and report. Data must be wiped if you never did boot Android 10, I assume. I'll fix everything I can, this is a system build only since I couldn't get Lenovo kernel sources to boot under Android 10. That means to have a full build (which will be Lineage 16.0), we'd have to stick to Android Pie, which I plan on doing soon. You obviously need an unlocked bootloader for this. Everything is based on 205 firmware, so I cannot say if it will work with others. Test and let me know what works on GSI that didn't work here. And the other way around as well.
      https://drive.google.com/open?id=1xcmwMnuIahJc3AS9BloDqmHMkvC1EFdS
      4
      I just bought this phone from alibaba and should be getting it in a month or so, and since there's (apparently) nobody in the western world working on it, I'll be bringing Lineage 16 to it as soon as I get it. In case somebody wants to check it out, the kernel sources are out, however, under a different moniker called K10 Note, can be found here:

      https://lenovomobilesupport.lenovo.com/nz/en/products/phones/k-series/k10-note/downloads/ds541914

      Our device should use the defconfig for sdm670 plus jd2019 additional configs.

      From what I've seen so far, original kernel is based off LA.UM.7.8.r1-03600-SDM710.0 and it's simply a matter of integrating wifi and audio drivers and disabling driver signature check to get it working. That should give us a fully functional build for 9.0 and pave the way for Android 10 (probably some 3 months after Pie is 100% working). In case somebody manages to make some progress in the meantime, please let me know and we'll join efforts after mine is here.
      3
      https://drive.google.com/open?id=1RfeI5AkmfibNzQhiGKk4FXoWUblnk66t

      This is where I'll keep the files from now on, to maintain everything organized. So what we currently have there:

      - Vendor and boot from 205 without force encryption - This allows you to use internal storage in recovery even if you're using Android10. This is regardless of ROM, you can use GSI, Stock rom or whatever you want, just make sure to flash both.
      - TWRP 3.3.1.0 for our device - Everything works under stock rom.
      - Patched vbmeta (generic) - can be used with any system image.
      - Pixel Experience Plus - 1st build with new camera using Camera2API, pictures look as good as in stock. Bluetooth audio, FMradio and screen lock are broken as of now, will fix this weekend.

      BTW: can you guys please point me to a GSI where everything works? Cause I just tried Lineage and it's got the same problems as my build (plus many other problems...), so now I think it's a vendor problem with 205 as well... Damn Lenovo, man... OR what firmware were you suing when everything worked as it should