Lenovo ZUK Z2 Pro (zuk-z2-row)

From postmarketOS Wiki
Lenovo ZUK Z2 Pro
ZUK Z2 Pro
ZUK Z2 Pro
Manufacturer Lenovo
Name ZUK Z2 Pro
Codename zuk-z2-row
Released 2016
Type handset
Hardware
Chipset Qualcomm Snapdragon 820 (MSM8996)
CPU Quad-core Kryo (2x2.15GHz & 2x1.6GHz)
GPU Adreno 530
Display 1080x1920 Super AMOLED
Storage 64/128 GB
Memory 4/6 GB
Architecture aarch64
Software
Original software Android
Original version 6.0.1
Extended version 7.0
postmarketOS
Category testing
Pre-built images no
postmarketOS kernel 4.4.183
Features
Flashing
Works
USB Networking
Works
Internal storage
SD card
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Audio
Camera
Camera Flash
Connectivity
WiFi
Works
Bluetooth
GPS
NFC
Modem
Calls
SMS
Mobile data
Miscellaneous
FDE
USB OTG
Works
HDMI/DP
Sensors
Accelerometer
Magnetometer
Ambient Light
Proximity
Hall Effect
Haptics
Barometer


Contributors

Maintainer(s)

Users owning this device

  • Cuihao (Notes: 6GB/128GB variant)
  • NBon (Notes: Broken, untested yet)


How to enter flash mode

  • Apply for bootloader unlocking file at ZUI official website (Chinese): https://www.zui.com/iunlock
  • Following official guides to unlock the bootloader
  • After unlocking, you get a menu to select boot mode every time the phone powers on. Choose bootloader to enter fastboot mode.

Installation

Notes

Partitions

The persist partition stores device-specific information like WLAN & Bluetooth MAC. You'd better leave it as is. I don't know how to recover it.

LED / Torch / Screen brightness / vibrator

Write brightness or boolean value to specific sysfs files:

  • Front panel LED light: /sys/class/leds/{red,green,blue}/{brightness,blink}
  • Torch light: /sys/class/leds/led:torch_{0,1}/brightness (torch_0 is cold light, torch_1 is warm light)
  • Screen brightness: /sys/class/leds/lcd-backlight/brightness
  • Vibrator: echo $TIME_MS > /sys/class/timed_output/vibrator/enable

For brightness range, check the max_brightness file.

WiFi

Loading wlan driver on boot (default setting) will significantly increase booting time (half a min -> 3 minutes to GUI). I don't know why.

See also