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

Search This thread

vickdu31

Senior Member
May 5, 2012
316
107
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.
 
Last edited:

TASON42

Senior Member
Jan 14, 2017
112
28
First, thanks for the Thread. Very informative.
let me report that H2OS showes black screen after boot logo,
Flyme seems working but with some minor problems (bad english translation, no google apps on built-in chinese app store, upper notification bar not aligned, etc).
 

vickdu31

Senior Member
May 5, 2012
316
107
First, thanks for the Thread. Very informative.
let me report that H2OS showes black screen after boot logo,
Flyme seems working but with some minor problems (bad english translation, no google apps on built-in chinese app store, upper notification bar not aligned, etc).

Hi, thanks. H2OS is the only one i have not tested, i will remove the link. If you live outside Cina I would recommend GSI rom since chinese roms might have issues with notifications.

I now recommend AEX (arm64 AB)
 

TASON42

Senior Member
Jan 14, 2017
112
28
Hi, thanks. H2OS is the only one i have not tested, i will remove the link. If you live outside Cina I would recommend GSI rom since chinese roms might have issues with notifications.

I now recommend AEX (arm64 AB)

Don't you lost WIFI after flashing just GSI img file? I need to flash MIUI before flashing any GSI to keep WIFI working.

and this maybe is a lil bit off topic but have you ever had problems with fastboot?
my fastboot is not working properly since I bought this smartphone, 'fastboot devices' works but
can't flash anything, saying random error like 'maxium download size not reported', 'too many links', and even 'error: no error'...
tried changing usb port, cable, driver, everything I can think of.
I can still flash boot.img, recovery.img, vbmeta.img via QFIL but I want to use fastboot which is less hassle..
 
Last edited:

TASON42

Senior Member
Jan 14, 2017
112
28
Report:
MSM Xtended is working too.

problems I hav till now.
1. WIFI not working if you flash directly from ZUI, or wipe cache/dalvic.
2. loud speaker sound problems at various ROMs, with or without equalizer app.
3. notch size is not matching with status bar at every ROMs
4. double tap to wake is not working for every ROMs.
 
Last edited:

vickdu31

Senior Member
May 5, 2012
316
107
I actually did flash miui first.
I contacted art_chen to get international MIUI, he told me he dont have phone anymore but we can download his miui zip and replace system.img with the one official from MI9 (taking the system.img full global fastboot firmware and it should work).

The vendor image and boot.img included in the miui rom have been customised by art_chen so he probably fixed wifi !

Since i also dont have the phone i cannot test so well.
 

TASON42

Senior Member
Jan 14, 2017
112
28
I actually did flash miui first.
I contacted art_chen to get international MIUI, he told me he dont have phone anymore but we can download his miui zip and replace system.img with the one official from MI9 (taking the system.img full global fastboot firmware and it should work).

The vendor image and boot.img included in the miui rom have been customised by art_chen so he probably fixed wifi !

Since i also dont have the phone i cannot test so well.

1. did you had loud speaker problem after flashing treble GSI files? Mine distorts heavily with every .img file i tried.
2. I'm testing swapping .img file with other xiaomi devices but none of them is working. Sounds like you don't own the device anymore so this will be lonely fight.:D

---------- Post added at 03:41 AM ---------- Previous post was at 03:36 AM ----------

I need FM radio which is not included in Art_chen's ROM so I tried swapping system.img with Redmi note 7 (closest spec), and failed.
TWRP log is saying "Failed to mount '/system_root'" so i guess the reason is partition chart problem or pre-installed magisk, I'm not sure I can fix this but I'll keep trying.
since FM radio is not even on the hardware list so i decided to give up FM radio, but updating android security patch with
Mi 9 (since OP mentioned), Mi 9 SE (quite close spec) and Mi CC9 (not international but even closer than redmi note 7) firmware files,
I don't think any of them would work, but I'll keep trying(2).
 

vickdu31

Senior Member
May 5, 2012
316
107
You could also try with Flyme blobs (boot, vendor etc) they are from different dev

If you messed up partition i recomment flash wjole miui or flyme with adb
 

teketake

Member
Sep 5, 2019
7
0
Looking for Global Rom

I purchased the Chinese version of this model.
I tried various GSIROMs, but there were a lot of things that didn't work.
I want to use ZUIOS obediently. Does anyone have a Global Rom?

Also, you should be careful about overwriting GSIROM.
The lighting adjustment has gone wrong.
(No problem with genuine ROM)
 

TASON42

Senior Member
Jan 14, 2017
112
28
I purchased the Chinese version of this model.
I tried various GSIROMs, but there were a lot of things that didn't work.
I want to use ZUIOS obediently. Does anyone have a Global Rom?

Also, you should be careful about overwriting GSIROM.
The lighting adjustment has gone wrong.
(No problem with genuine ROM)

there is no Official Global Firmware since this phone is only for china mainland. You can enable google service/calendar/GPS by downloading play store .apk from lenovo app store.
there is faulty firmware chimera with chinese rom + google service preinstalled, but trust me, it is unusable. It has every unfamiliar chinese-specific settings + bunch of 'google service force closed' alarms, bad battery drain by google service, crashing app downloading, etc.
 

TASON42

Senior Member
Jan 14, 2017
112
28
Yes, I'm still using this mediocre device, found some useful articles about GSI, will throw links here.
https://www.dospy.wang/forum.php?mod=viewthread&tid=1626&extra=page=1
https://www.htcmania.com/showthread.php?t=1504540
it's not in English but google translate will help you guys.

here's the essence.
Flash MIUI first, its mandatory. Without it you will lost WiFi.
But, you will lost DT2W and FM radio at kernel level if you flash MIUI.
Now you can flash any GSI, but I recommend Pixel Experience from the link I uploaded,
because fixes of common GSI issues like statusbar height (use magisk+rirucore+riruedxposed+gravitybox), sound distortion (use magisk+audio compability), headphone not detecting (random) are integrated to the GSI.
 
Last edited:

TASON42

Senior Member
Jan 14, 2017
112
28
K10 note is almost identical with Z5s and now it's Global released, you can get the QFIL files, I guess just swap system.img and userdata.img might work.
the difference between Z5s chinese ROM and K10 note global ROM must be something like that of Z6 pro chinese and global version...

edit: yes it is working, just swap system_xx.img and userdata_xx.img files will do the work, only camera.apk won't work properly (no optical zoom just digital, ramdom crash sometimes ) but we can stick with Gcam port.
 
Last edited:

s94084sammy

Member
Jun 18, 2018
6
1
I flash pixel experience then i find out auto brightness isn't work well.i adjust it to the lowest , but it still so bright.how can i fix it?
 

TASON42

Senior Member
Jan 14, 2017
112
28
H2OS 9 : https://mp.weixin.qq.com/s/45L1TZFa0g1MP3-jSYhMDg
Flyme 8 : https://mp.weixin.qq.com/s/P8tL8eq9UhV8Hbq8-7nYBQ
MIUI 11 : https://mp.weixin.qq.com/s/q-8qnFI1VP8upyz6quZZmw
it's all from YouLinw, the dev of Flyme 7 port in OP.
Flyme 8 is still in daily alpha, it boots but stuck in Terms&Conditions screen.

MIUI 11 and H2OS works great, (but don't use pre-installed Magisk, install official v19.3 from via TWRP. idk why but pre-installed one or lastest v20.1 won't work.)
Android Security Patch in MIUI11 is Sep 1st while H2OS is Aug 1st (same with PE I linked before)
so it's your choice to use MIUIsh MIUI with newer ASP, or H2/PE which is more stock android, but with older ASP.

Quack phh Android 10 is not working sadly,
neither vendor by Art_Chen (MIUI10) nor YouLinw booted,
with original vendor it boots but Wi-Fi won't work, like always.



---------- Post added at 04:29 AM ---------- Previous post was at 04:21 AM ----------

I flash pixel experience then i find out auto brightness isn't work well.i adjust it to the lowest , but it still so bright.how can i fix it?

I have the same problem, I just bear it since it's not major one. you can use any third party apps from play store that dims your screen if you want to.
 
Last edited:

bretzelpopo

Senior Member
May 24, 2010
140
19
Hello, i think about buying this phone or xiaomi note 7 pro . Want to flash lineage or aosp base rom, someone has a point of view about best hardware and best dev support ? For me note 7 pro have better dev support but one week for unlock bootloader and lcd cheaper for repair . Can't find photo versus, z5s have three module but rn7p have 48mp , someone have an advice ?
 

TASON42

Senior Member
Jan 14, 2017
112
28
Hello, i think about buying this phone or xiaomi note 7 pro . Want to flash lineage or aosp base rom, someone has a point of view about best hardware and best dev support ? For me note 7 pro have better dev support but one week for unlock bootloader and lcd cheaper for repair . Can't find photo versus, z5s have three module but rn7p have 48mp , someone have an advice ?

I think Redmi Note 7 pro is the buy.

I chose Z5s because of its cheaper price, lighter weight, and more premium material (alu+glass).
And I also had nice Dev experience with ZUK Z2 so I expected the same with this phone (which was wrong guess :p )

Cam, I assume stock camera is better in Z5s, but You won't use stock ZUI/MIUI ROM anyway so that won't bother you.
GCam works great on both model, ported stock camera apk won't work as good as it's on stock ROM, both in Z5s/Note 7.

Sound, both mediocre.
Screen, both mediocre (HDR on Z5s is fake color boost only for chinese content apps),
and Z5s has unusual copper plate type connection not like normal ribon cable.

Dev, Z5s is for China mainland only so you won't get proper global/AOSP ROM developments,
but you can get bunch of MIUI/Flyme/H2OS ROMs...

Official Update is also better in MIUI over ZUI.
 
  • Like
Reactions: bretzelpopo

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