Sony Xperia Z5 Compact (sony-suzuran)

From postmarketOS Wiki
Sony Xperia Z5 Compact
Sony Xperia Z5 Compact with neofetch and htop in two terminals (Xfce4)
Sony Xperia Z5 Compact with neofetch and htop in two terminals (Xfce4)
Manufacturer Sony
Name Xperia Z5 Compact
Codename sony-suzuran
Model E5823
Released 2015
Type handset
Hardware
Chipset Qualcomm Snapdragon 810 (MSM8994)
CPU 4x 2 GHz A57 + 4x 1.5 GHz A53
GPU Adreno 430
Display 720x1280 LCD
Storage 32 GB
Memory 2 GB
Architecture aarch64
Software
Original software Android
Original version 5.1
postmarketOS
Category testing
Pre-built images no
postmarketOS kernel 3.10.84
Features
Flashing
Partial
USB Networking
Works
Internal storage
Works
SD card
Works
Battery
Partial
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Audio
Broken
Camera
Camera Flash
Connectivity
WiFi
Broken
Bluetooth
Broken
Ethernet
GPS
NFC
Modem
Calls
SMS
Mobile data
Miscellaneous
FDE
USB OTG
HDMI/DP
Sensors
Accelerometer
Magnetometer
Ambient Light
Proximity
Hall Effect
Haptics
Barometer
Power Sensor


Contributors

  • julianuu
  • DevelLevel

Users owning this device


How to enter flash mode

Hold Volume Up, then connect to the PC. The LED will turn blue. Alternatively, connect to PC, hold Volume Up and Power until it vibrates and LED turns blue, then release buttons.

Installation

Use pmbootstrap to build your own installation image.

The general instructions Installation_guide#Installation_and_flashing work, i.e.

pmbootstrap install
pmbootstrap flasher flash_rootfs
pmbootstrap flasher flash_kernel

Except this will result in a boot loop, however, running the command "pmbootstrap flasher boot" boots normaly... To get the device to boot normaly by itself you can fix the boot image by removing PMOS specific options from the kernel cmdline.

An example of how to do this is to:

  1. Clone LineageOS mkbootimg tools
  2. Unpack the PMOS boot image available at /tmp/postmarketOS-export after runnning "pmbootstrap export"
  3. (Copy the content from "command line args:" but exclude pmos_*)
  4. Repacking with the new cmdline
  5. Then flashing the new image with fastboot

The procedure above can look like this:

git clone https://github.com/LineageOS/android_system_tools_mkbootimg.git

cd android_system_tools_mkbootimg/

cp /tmp/postmarketOS-export/boot.img .

python3 unpack_bootimg.py --boot_img boot.img --out out

python3 mkbootimg.py --kernel out/kernel --ramdisk out/ramdisk --cmdline "console=ttyHSL0,115200,n8 lpm_levels.sleep_disabled=1 boot_cpus=0-5 msm_rtb.filter=0x3F ehci-hcd.park=3 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y coherent_pool=8M sched_enable_power_aware=1 user_debug=31 androidboot.hardware=suzuran buildvariant=userdebug androidboot.selinux=permissive" --out new_boot.img

fastboot flash boot new_boot.img

The device will then boot to PMOS normaly everytime!


See also