akari: Initial commit

Change-Id: I195528188614e947d7969614bbadb82d0d0d5472
This commit is contained in:
sjllls 2020-04-21 08:03:40 +08:00
commit 04e828c9bf
15 changed files with 100 additions and 87 deletions

View file

@ -15,7 +15,7 @@
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),apollo)
ifeq ($(TARGET_DEVICE),akari)
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
endif

View file

@ -14,9 +14,9 @@
# limitations under the License.
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_apollo.mk
$(LOCAL_DIR)/lineage_akari.mk
COMMON_LUNCH_CHOICES := \
lineage_apollo-user \
lineage_apollo-userdebug \
lineage_apollo-eng
lineage_akari-user \
lineage_akari-userdebug \
lineage_akari-eng

View file

@ -7,25 +7,26 @@
# Inherit from tama-common
-include device/sony/tama-common/BoardConfigCommon.mk
DEVICE_PATH := device/sony/apollo
DEVICE_PATH := device/sony/akari
# Assert
TARGET_OTA_ASSERT_DEVICE := apollo
TARGET_OTA_ASSERT_DEVICE := akari
# Crypto
TARGET_HW_DISK_ENCRYPTION := true
# Display
TARGET_SCREEN_DENSITY := 480
TARGET_SCREEN_DENSITY := 440
# Kernel
TARGET_KERNEL_CONFIG := tama_apollo_defconfig
TARGET_KERNEL_CONFIG := tama_akari_defconfig
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
# Partitions
BOARD_USERDATAIMAGE_PARTITION_SIZE := 51448807424
# Reserve space for data encryption (44712771584-16384)
BOARD_USERDATAIMAGE_PARTITION_SIZE := 44712755200
# Properties
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
@ -35,4 +36,4 @@ TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
BOARD_VNDK_RUNTIME_DISABLE := true
# Inherit from the proprietary version
-include vendor/sony/apollo/BoardConfigVendor.mk
-include vendor/sony/akari/BoardConfigVendor.mk

View file

@ -1,26 +1,36 @@
Copyright (C) 2019 The LineageOS Project
# Device Tree for Xperia XZ2 (akari)
By Sjll
The Xperia (codenamed _"akari"_) is a smartphone from Sony Mobile.
It was released in 2018.
Device configuration for Sony Xperia XZ2 Compact
=========================================
| Basic | Spec Sheet |
| -----------------------:|:------------------------------------------------------------------------------------------------------------------------------ |
| CPU | Octa-core (4x2.8 GHz Kryo 385 Gold & 4x1.7 GHz Kryo 385 Silver) |
| Chipset | Qualcomm SDM845 Snapdragon 845 |
| GPU | Adreno 630 |
| Memory | 4/6 GB RAM |
| Shipped Android Version | 8.1 |
| Storage | 64 GB |
| Battery | Non-removable Li-Po 3180 mAh battery |
| Display | Toppest LCD, 1080 x 2160 pixels, 18:9 ratio (~424 ppi density) |
| Camera (Back) | 19 MP (f/2.0, 25mm, 1/2.3", 1.22 µm), gyro EIS, predictive phase detection and laser AF, LED flash, 4K at 30fps, 1080p at 30, 60fps or 960fps |
| Camera (Front) | 5 MP (f/2.2, 1/5"), gyro EIS, 1080p |
The Sony Xperia XZ2 Compact (codenamed _"apollo"_) is a high-end smartphone from Sony.
Copyright 2018 - The LineageOS Project.
It was announced in July 2019. Release date was August 2019.
![Xperia XZ2](https://images-na.ssl-images-amazon.com/images/I/71nC8hZVTIL._SL1500_.jpg "Xperia XZ2")
## Device specifications
Basic | Spec Sheet
-------:|:-------------------------
SoC | Qualcomm SDM845 Snapdragon 845
CPU | Octa-core (4x2.8 GHz Kryo 385 Gold & 4x1.8 GHz Kryo 385 Silver)
GPU | Adreno 630
Memory | 4 GB RAM
Shipped Android Version | 8.0
Storage | 64 GB
Battery | Non-removable Li-Ion 3400 mAh battery
Display | 1080 x 2160 pixels, 18:9 ratio, 5.99 inches, IPS LCD (~403 ppi density)
Camera | Dual 12 MP, 4-axis OIS, 2x optical zoom, dual PDAF, dual-LED (dual tone) flash
## Temporary build instructions
## Device picture
```
# Compiling
$ m[ake|ka] bootimage systemimage
# Installing
$ fastboot --disable-verity --disable-verification flash vbmeta stock_vbmeta.img
$ fastboot flash boot boot.img
$ fastboot flash system system.img
$ fastboot -w reboot
```
![Sony Xperia XZ2 Compact](https://www.cellphoneage.com/pub/media/catalog/product/cache/207e23213cf636ccdef205098cf3c8a3/x/p/xperia_xz2_compact_dual_1600x1600.jpg "Sony Xperia XZ2 Compact")

View file

@ -235,13 +235,13 @@
<microphone valid_mask="31" device_id="builtin_mic_1" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="bottom" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
group="0" index_in_the_group="0" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93"
frequencies="100.00 106.00 112.00 118.00 125.00 132.00 140.00 150.00 160.00 170.00 180.00 190.00 200.00 212.00 224.00 236.00 250.00 265.00 280.00 300.00 315.00 335.00 355.00 375.00 400.00 425.00 450.00 475.00 500.00 530.00 560.00 600.00 630.00 670.00 710.00 750.00 800.00 850.00 900.00 950.00 1000.00 1060.00 1120.00 1180.00 1250.00 1320.00 1400.00 1500.00 1600.00 1700.00 1800.00 1900.00 2000.00 2120.00 2240.00 2360.00 2500.00 2650.00 2800.00 3000.00 3150.00 3350.00 3550.00 3750.00 4000.00 4250.00 4500.00 4750.00 5000.00 5300.00 5600.00 6000.00 6300.00 6700.00 7100.00 7500.00 8000.00 8500.00 9000.00 9500.00 10000.00 10600.00 11200.00 11800.00 12500.00 13200.00 14000.00 15000.00 16000.00 17000.00 18000.00 19000.00 20000.00"
responses="-0.83 -0.75 -0.66 -0.58 -0.50 -0.42 -0.33 -0.22 -0.13 -0.04 0.05 0.12 0.14 0.17 0.19 0.22 0.24 0.27 0.30 0.39 0.46 0.55 0.63 0.71 0.56 0.41 0.28 0.22 0.39 0.58 0.77 1.11 1.35 1.42 1.01 0.63 1.28 1.78 1.50 1.11 0.42 0.45 1.35 1.30 1.02 0.74 1.80 2.39 0.99 1.91 0.65 0.31 0.07 -1.16 -1.76 -1.90 -0.94 -0.34 -0.33 -0.30 1.04 1.02 0.08 -0.24 -0.54 -0.08 -0.77 -1.56 -1.00 0.03 -0.30 -0.53 -0.66 -0.29 -1.11 -3.50 -1.33 0.89 0.65 -0.96 -0.89 -1.75 -2.56 -2.29 -2.10 -5.18 -2.25 -2.95 -4.46 -2.28 0.22 2.29 1.47"
sensitivity="-37.0" max_spl="130.0" min_spl="29.0" orientation="0.0 -1.0 0.0" geometric_location="0.022315 0.000 0.00805" />
responses="-0.84 -0.76 -0.68 -0.60 -0.52 -0.45 -0.36 -0.27 -0.17 -0.09 -0.01 0.06 0.08 0.11 0.14 0.16 0.19 0.22 0.25 0.35 0.42 0.52 0.61 0.69 0.53 0.38 0.24 0.19 0.37 0.58 0.77 1.15 1.42 1.49 1.03 0.59 1.32 1.88 1.59 1.19 0.45 0.47 1.42 1.43 1.23 1.01 1.87 2.48 0.81 1.71 0.49 -0.08 -0.40 -1.51 -2.00 -1.17 0.22 1.10 1.15 1.64 2.25 2.15 1.31 0.83 0.82 1.05 0.60 0.14 1.01 2.19 1.74 1.26 0.76 1.27 1.35 0.44 2.70 3.44 3.11 1.01 0.35 -0.99 -0.82 -0.17 0.26 -0.57 1.18 -0.94 -5.29 2.35 3.65 2.56 2.99"
sensitivity="-37.0" max_spl="130.0" min_spl="29.0" orientation="0.0 -1.0 0.0" geometric_location="0.02471 0.000 0.007474" />
<microphone valid_mask="31" device_id="builtin_mic_2" type="AUDIO_DEVICE_IN_BACK_MIC" address="top" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
group="0" index_in_the_group="1" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93"
frequencies="100.00 106.00 112.00 118.00 125.00 132.00 140.00 150.00 160.00 170.00 180.00 190.00 200.00 212.00 224.00 236.00 250.00 265.00 280.00 300.00 315.00 335.00 355.00 375.00 400.00 425.00 450.00 475.00 500.00 530.00 560.00 600.00 630.00 670.00 710.00 750.00 800.00 850.00 900.00 950.00 1000.00 1060.00 1120.00 1180.00 1250.00 1320.00 1400.00 1500.00 1600.00 1700.00 1800.00 1900.00 2000.00 2120.00 2240.00 2360.00 2500.00 2650.00 2800.00 3000.00 3150.00 3350.00 3550.00 3750.00 4000.00 4250.00 4500.00 4750.00 5000.00 5300.00 5600.00 6000.00 6300.00 6700.00 7100.00 7500.00 8000.00 8500.00 9000.00 9500.00 10000.00 10600.00 11200.00 11800.00 12500.00 13200.00 14000.00 15000.00 16000.00 17000.00 18000.00 19000.00 20000.00"
responses="-0.53 -0.45 -0.38 -0.32 -0.24 -0.18 -0.10 -0.01 0.07 0.15 0.22 0.27 0.28 0.29 0.31 0.32 0.33 0.34 0.35 0.28 0.23 0.17 0.11 0.05 0.10 0.15 0.20 0.23 0.25 0.27 0.29 0.38 0.45 0.53 0.59 0.64 0.56 0.46 0.15 -0.06 -0.02 0.09 0.28 0.10 0.24 0.72 0.31 0.24 -0.12 -1.05 -1.10 -1.04 -1.37 -1.53 -2.00 -0.62 0.08 0.57 0.60 0.14 0.25 -0.34 -1.34 -1.75 -1.07 -0.23 0.32 -0.46 -0.12 -0.90 -1.34 -0.89 -1.70 -0.96 -1.70 -2.83 -1.76 -1.57 -1.28 -1.84 -1.42 -1.20 -0.95 0.01 -1.60 -2.79 -4.30 0.02 4.39 2.38 3.70 3.01 2.94"
sensitivity="-37.0" max_spl="130.0" min_spl="29.0" orientation="0.0 1.0 0.0" geometric_location="0.013415 0.135425 0.00805" />
responses="-0.66 -0.59 -0.53 -0.47 -0.41 -0.34 -0.28 -0.20 -0.13 -0.06 0.00 0.05 0.06 0.06 0.07 0.07 0.08 0.08 0.09 0.02 -0.03 -0.09 -0.15 -0.21 -0.23 -0.25 -0.28 -0.27 -0.22 -0.15 -0.09 -0.07 -0.07 -0.04 0.02 0.08 0.10 0.10 -0.08 -0.17 -0.06 0.00 0.00 0.07 0.10 0.09 0.17 -0.42 -0.54 -0.86 -0.80 -0.40 -0.50 -0.46 -0.51 -0.17 0.79 0.82 0.66 -0.04 0.08 -0.17 0.51 1.15 0.83 1.96 1.59 2.05 1.92 1.84 1.61 2.36 2.22 2.31 2.40 1.24 1.84 3.03 3.94 2.30 2.94 3.20 2.71 3.95 2.70 -0.88 -1.50 1.11 5.07 2.80 5.53 4.62 2.68"
sensitivity="-37.0" max_spl="130.0" min_spl="29.0" orientation="0.0 1.0 0.0" geometric_location="0.04986 0.15279 0.007474" />
</microphone_characteristics>
<snd_devices>
<input_snd_device>

View file

@ -7,7 +7,7 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_o_mr1.mk)
# Get non-open-source specific aspects
$(call inherit-product-if-exists, vendor/sony/apollo/apollo-vendor.mk)
$(call inherit-product-if-exists, vendor/sony/akari/akari-vendor.mk)
# Boot animation
TARGET_SCREEN_HEIGHT := 2160

View file

@ -14,7 +14,7 @@ fi
set -e
# Required!
export DEVICE=apollo
export DEVICE=akari
export DEVICE_COMMON=tama-common
export VENDOR=sony

View file

@ -2,4 +2,4 @@
touch.deviceType = touchScreen
# Pressure
touch.pressure.scale = 0.009
touch.pressure.scale = 0.007

View file

@ -38,4 +38,4 @@ touch.size.scale = 1
touch.size.bias = 0
touch.size.isSummed = 0
touch.pressure.scale = 0.008
touch.pressure.scale = 0.007

26
lineage_akari.mk Normal file
View file

@ -0,0 +1,26 @@
#
# Copyright (C) 2018-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from akari device
$(call inherit-product, device/sony/akari/device.mk)
# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
PRODUCT_NAME := lineage_akari
PRODUCT_DEVICE := akari
PRODUCT_MANUFACTURER := Sony
PRODUCT_BRAND := Sony
PRODUCT_MODEL := Xperia XZ2
PRODUCT_GMS_CLIENTID_BASE := android-sony-mobile
PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_DEVICE="H8296" \
PRODUCT_NAME="H8296" \
PRIVATE_BUILD_DESC="10/52.1.A.0.618/052001A000061802006556692:user/release-keys"
BUILD_FINGERPRINT := Sony/H8296/H8296:10/52.1.A.0.618/052001A000061802006556692:user/release-keys

View file

@ -69,7 +69,7 @@ NXP_EXT_TVDD_CFG=0x01
###############################################################################
#config1:SLALM, 3.3V for both RM and CM
NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 80, 00, 10, 0C}
NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 10, 00, 10, 0C}
###############################################################################
#config2: use DCDC in CE, use Tx_Pwr_Req, set CFG2 mode, SLALM,

View file

@ -29,7 +29,7 @@ NXP_RF_CONF_BLK_1={
A0, 0D, 06, 48, 44, 65, 0A, 00, 00,
A0, 0D, 06, 48, 2D, 15, 34, 1F, 01,
A0, 0D, 06, 46, 4A, 34, 07, 00, 07,
A0, 0D, 04, 46, 42, 70, 40,
A0, 0D, 04, 46, 42, 80, 40,
A0, 0D, 06, 4C, 44, 65, 09, 00, 00,
A0, 0D, 06, 4C, 2D, 05, 35, 1E, 01,
A0, 0D, 06, 4A, 4A, 43, 07, 01, 07
@ -49,11 +49,11 @@ NXP_RF_CONF_BLK_2={
A0, 0D, 06, 54, 2D, 05, 25, 0F, 01,
A0, 0D, 04, 52, 42, 70, 40,
A0, 0D, 06, 52, 4A, 11, 07, 01, 07,
A0, 0D, 06, 58, 44, 55, 08, 00, 00,
A0, 0D, 06, 58, 44, 66, 08, 00, 00,
A0, 0D, 06, 5E, 2D, 0D, 5A, 0C, 01,
A0, 0D, 06, 5E, 44, 55, 08, 00, 00,
A0, 0D, 04, 56, 42, 78, 40,
A0, 0D, 04, 5C, 42, 78, 40,
A0, 0D, 06, 5E, 44, 66, 08, 00, 00,
A0, 0D, 04, 56, 42, 88, 40,
A0, 0D, 04, 5C, 42, 88, 40,
A0, 0D, 06, 5C, 4A, 11, 07, 01, 07,
A0, 0D, 06, 30, 44, 05, 04, C4, 00,
A0, 0D, 06, 30, 85, 25, 03, 00, 00,
@ -84,23 +84,23 @@ NXP_RF_CONF_BLK_3={
A0, 0D, 06, CA, 44, 65, 0A, 00, 00,
A0, 0D, 06, CA, 2D, 15, 34, 1F, 01,
A0, 0D, 06, 06, 42, 00, 03, FF, FF,
A0, 0D, 03, 24, 03, 7F,
A0, 0D, 03, 24, 03, 80,
A0, 0D, 06, 04, 42, F8, 40, FF, FF,
A0, 0D, 06, 06, 37, 28, 76, 00, 00
A0, 0D, 06, 06, 37, 08, 76, 00, 00
}
###############################################################################
# NXP RF configuration ALM/PLM settings
# This section needs to be updated with the correct values based on the platform
NXP_RF_CONF_BLK_4={
20, 02, D6, 01, A0, 34, D2, 23, 04, 18, 45, 40,
00, 00, 00, 02,
AD, 41, 33, 02,
CE, 02, 29, 02,
B0, 04, 29, 02,
D9, 07, 08, 02,
3E, 04, 38, 02,
06, 07, 38, 02,
20, 02, D6, 01, A0, 34, D2, 23, 04, 18, 47, 40,
00, 00, 30, 00,
32, 00, 30, 00,
4B, 00, 30, 00,
78, 00, 30, 00,
04, 01, 08, 00,
B3, 01, 08, 00,
58, 02, 08, 00,
00, 00, 08, 02, 00, 00, 08, 02,
00, 00, 08, 02, 00, 00, 08, 02,
00, 00, 08, 02, 00, 00, 08, 02,
@ -111,14 +111,14 @@ NXP_RF_CONF_BLK_4={
00, 00, 68, 00, 00, 00, 18, 00,
00, 00, 08, 02, 00, 00, 00, 00,
00, 00, 00, 00,
45,
00, 00, 00, 02,
AD, 41, 33, 02,
CE, 02, 2B, 02,
B0, 04, 2B, 02,
D9, 07, 09, 02,
3E, 04, 38, 02,
06, 07, 38, 02,
47,
00, 00, 30, 00,
32, 00, 30, 00,
4B, 00, 30, 00,
78, 00, 30, 00,
04, 01, 08, 00,
B3, 01, 08, 00,
58, 02, 08, 00,
00, 00, 08, 02, 00, 00, 08, 02,
00, 00, 08, 02, 00, 00, 08, 02,
00, 00, 08, 02, 00, 00, 08, 02,
@ -179,20 +179,20 @@ NXP_RF_CONF_BLK_5={
# SWP1A interface A0D4
# DWP intf behavior config, SVDD Load activated by default if set to 0x31 - A037
# For Symmetric baud rate UICC's set A086 to 77
NXP_CORE_CONF_EXTN={20, 02, 6F, 0F,
NXP_CORE_CONF_EXTN={20, 02, 77, 11,
A0, EC, 01, 01,
A0, ED, 01, 00,
A0, 5E, 01, 01,
A0, 12, 01, 02,
A0, 40, 01, 01,
A0, 41, 01, 04,
A0, 41, 01, 03,
A0, 43, 01, 00,
A0, DD, 01, 2D,
A0, D1, 01, 02,
A0, D4, 01, 00,
A0, 37, 01, 11,
A0, 07, 01, 03,
A0, B1, 02, E0, 15,
A0, B1, 02, 5C, 12,
A0, A9, 32,
00, 00, 00, 00, 00,
00, 00, 00, 00, 00,
@ -204,6 +204,8 @@ NXP_CORE_CONF_EXTN={20, 02, 6F, 0F,
00, 00, 00, 00, 00,
00, 00, 00, 00, 00,
00, 00, 00, 00, 00,
A0, 02, 01, 01,
A0, 03, 01, 01,
A0, 86, 01, 77
}
# A0, F2, 01, 01,
@ -233,7 +235,7 @@ NXP_CORE_CONF={ 20, 02, 39, 0F,
81, 01, 01,
82, 01, 0E,
18, 01, 01,
A0, 3A, 08, 64, 00, 64, 00, 64, 00, 64, 00
A0, 3A, 08, 32, 00, 32, 00, 32, 00, 1E, 00
}
###############################################################################

View file

@ -543,8 +543,8 @@ vendor/lib/libscvePanorama.so
vendor/lib/libscveScan3D.so
# Display calibration
vendor/etc/qdcm_calib_data_4.xml
vendor/etc/qdcm_calib_data_8.xml
vendor/etc/qdcm_calib_data_3.xml
vendor/etc/qdcm_calib_data_7.xml
vendor/etc/qdcm_calib_data_Dual_nt35597_cmd_mode_dsi_truly_panel_without_DSC.xml
vendor/etc/qdcm_calib_data_Dual_nt35597_video_mode_dsi_truly_panel_without_DSC.xml
vendor/etc/qdcm_calib_data_Dual_nt36850_cmd_mode_dsi_truly_panel_without_DSC.xml
@ -747,8 +747,8 @@ vendor/bin/hw/touchbacklightd
vendor/etc/init/init.touchbacklightd.rc
# Touch firmware
vendor/firmware/touch_module_id_0x30.img
vendor/firmware/touch_module_id_0x31.img
vendor/firmware/touch_module_id_0x20.img
vendor/firmware/touch_module_id_0x21.img
# WiFi
vendor/etc/wifi/bdwlan.bin

View file

@ -8,7 +8,7 @@
set -e
# Required!
export DEVICE=apollo
export DEVICE=akari
export DEVICE_COMMON=tama-common
export VENDOR=sony

View file

@ -2,13 +2,13 @@
camera.disable_zsl_mode=1
# SEMC
ro.semc.ms_type_id=PM-1130-BV
ro.semc.product.device=H83
ro.semc.product.model=H8324
ro.semc.product.name=Xperia XZ2 Compact
ro.semc.ms_type_id=PM-1119-BV
ro.semc.product.device=H82
ro.semc.product.model=H8296
ro.semc.product.name=Xperia XZ2
ro.semc.version.fs=GENERIC
ro.semc.version.fs_revision=52.1.A.0.618
ro.semc.version.sw=1311-5320
ro.semc.version.sw_revision=52.1.A.0.618
ro.semc.version.fs_revision=52.1.A.0.532
ro.semc.version.sw=1311-7920
ro.semc.version.sw_revision=52.1.A.0.532
ro.semc.version.sw_type=user
ro.semc.version.sw_variant=GLOBAL-A2
ro.semc.version.sw_variant=GLOBAL4GB-C2