Jump to content

Sony Xperia XZ2 (sony-akari)

From Nura Wiki
Sony Xperia XZ2
Manufacturer Sony
Name Xperia XZ2
Codename sony-akari
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/6 GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android 10.0
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
Features
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), Xperia XZ2 (this one, akari) and the Sony Xperia XZ2 Compact (sony-apollo).

How to enter flash mode

You have to press Power + Volume Up to enter the bootloader.

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.

  1. Run pmbootstrap init and select sony as vendor and akari as device.
  2. 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 Akari'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

Maintainers

Users owning this device

See also