Sony Xperia XZ2 Compact (sony-apollo)
| This device has been tested with Nura, but its device package has not yet been added to the Nura repositories. This means that it cannot be selected in pmbootstrap. Status: booting to debug shell, UFS not working, mainline WIP |
| Manufacturer | Sony |
|---|---|
| Name | Xperia XZ2 Compact |
| Codename | sony-apollo |
| Released | 2018 |
| Type | handset |
| Hardware | |
| Chipset | Qualcomm Snapdragon 845 (SDM845) |
| CPU |
Octa-core (4x 2.8 GHz Kryo 385 Gold 4x 1.8 GHz Kryo 385 Silver) |
| GPU | Adreno 630 |
| Display | 1440x2880 LCD |
| Storage | 64 GB |
| Memory | 4 GB |
| Architecture | aarch64 |
| Software | |
Original software The software and version the device was shipped with. |
Android |
Extended version The most recent supported version from the manufacturer. |
Android |
| Nura | |
| Category | testing |
Mainline Instead of a Linux kernel fork, it is possible to run (Close to) Mainline. |
yes |
Flashing Whether it is possible to flash the device with pmbootstrap flasher. |
Works
|
|---|---|
USB Networking After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system). |
Works
|
Internal storage eMMC, SD cards, UFS... |
Broken
|
Battery Whether charging and battery level reporting work. |
Untested
|
Screen Whether the display works; ideally with sleep mode and brightness control. |
Works
|
Touchscreen |
Works
|
| Multimedia | |
3D Acceleration |
Works
|
Audio Audio playback, microphone, headset and buttons. |
Untested
|
Camera |
Untested
|
IR TX |
Untested
|
| Connectivity | |
Wi-Fi |
Untested
|
Bluetooth |
Untested
|
GPS |
Untested
|
NFC Near Field Communication |
Untested
|
| Modem | |
Calls |
Untested
|
SMS |
Untested
|
Mobile data |
Untested
|
| Miscellaneous | |
FDE Full disk encryption and unlocking with unl0kr. |
Untested
|
USB OTG USB On-The-Go or USB-C Role switching. |
Untested
|
| Sensors | |
Accelerometer Handles automatic screen rotation in many interfaces. |
Untested
|
Overview
This device belongs to the Sony Tama platform, which is the Sony Xperia XZ3 (sony-akatsuki), Sony Xperia XZ2 (sony-akari) and the Xperia XZ2 Compact (this one, apollo).
How to enter flash mode
While USB is plugged in, hold + until the LED becomes blue.
Installation
It is possible to either use a pre-built image as explained in the Installation article, or to use pmbootstrap to build your own image.
- Run
pmbootstrap initand select sony as vendor and apollo as device. - Follow the onscreen instructions and configure as your needs.
Next, build the system:
$ pmbootstrap install # add --fde if you need full disk encryption (FDE)
Flash the kernel and rootfs:
$ pmbootstrap flasher flash_kernel
$ truncate -s 2 dtbo_empty.img
$ fastboot flash dtbo dtbo_empty.img
$ fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
Installation to SD card
You can take advantage of Apollo's SD card slot to install Nura for testing.
Install to the SD card:
$ pmbootstrap install --sdcard=/dev/mmcblk0
Mainline status
There's significant progress on upstreaming the device specific parts to the mainline kernel here: https://github.com/SoMainline/linux
Display
Works fine. MSM DRM based panel.
3D GPU Acceleration
Since our panels are MSM DRM based, 3D acceleration works perfectly fine using the freedreno driver from mainline.
Change Kernel parameters
$ sudo vim /etc/deviceinfo
Change cmdline parameters to desired state
$ sudo apk fix linux-postmarketos-qcom-sdm845
Maintainers
Users owning this device
- Gray47Maxx (Notes: Currently on Android)
- JulianGro
- Maledict (Notes: Running LineageOS)
See also
- pmaports!4183 Initial merge request
- SDM845 Mainline kernel on GitLab
- Sony Mainline kernel on GitHub