-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit of Sony Xperia XZ2 Compact. Change-Id: I89ad1465b27663c2a9cf7a0f81aaaaec28f598cf
- Loading branch information
Showing
29 changed files
with
3,754 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Copyright (C) 2018 The LineageOS Project | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# This contains the module build definitions for the hardware-specific | ||
# components for this device. | ||
# | ||
# As much as possible, those components should be built unconditionally, | ||
# with device-specific names to avoid collisions, to avoid device-specific | ||
# bitrot and build breakages. Building a component unconditionally does | ||
# *not* include it on all devices, so it is safe even with hardware-specific | ||
# components. | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
ifeq ($(TARGET_DEVICE),apollo) | ||
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH)) | ||
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk))) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Copyright (C) 2018-2019 The LineageOS Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/lineage_apollo.mk | ||
|
||
COMMON_LUNCH_CHOICES := \ | ||
lineage_apollo-user \ | ||
lineage_apollo-userdebug \ | ||
lineage_apollo-eng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Copyright (C) 2018-2020 The LineageOS Project | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# Inherit from tama-common | ||
-include device/sony/tama-common/BoardConfigCommon.mk | ||
|
||
DEVICE_PATH := device/sony/apollo | ||
|
||
# Assert | ||
TARGET_OTA_ASSERT_DEVICE := apollo | ||
|
||
# Crypto | ||
TARGET_HW_DISK_ENCRYPTION := true | ||
|
||
# Display | ||
TARGET_SCREEN_DENSITY := 480 | ||
|
||
# Kernel | ||
TARGET_KERNEL_CONFIG := tama_apollo_defconfig | ||
|
||
# HIDL | ||
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml | ||
|
||
# Partitions | ||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 51448807424 | ||
|
||
# Properties | ||
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop | ||
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop | ||
|
||
# Treble | ||
BOARD_VNDK_RUNTIME_DISABLE := true | ||
|
||
# Inherit from the proprietary version | ||
-include vendor/sony/apollo/BoardConfigVendor.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Copyright (C) 2019 The LineageOS Project | ||
|
||
Device configuration for Sony Xperia XZ2 Compact | ||
========================================= | ||
|
||
The Sony Xperia XZ2 Compact (codenamed _"apollo"_) is a high-end smartphone from Sony. | ||
|
||
It was announced in July 2019. Release date was August 2019. | ||
|
||
## 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 | ||
|
||
## Device picture | ||
|
||
![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") |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,251 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Copyright (C) 2015 The Android Open Source Project | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<!-- Volume section defines a volume curve for a given use case and device category. | ||
It contains a list of points of this curve expressing the attenuation in Millibels for a given | ||
volume index from 0 to 100. | ||
<volume stream=”AUDIO_STREAM_MUSIC” deviceCategory=””> | ||
<point>0,-9600</point> | ||
<point>100,0</point> | ||
</volume> | ||
--> | ||
|
||
<volumes> | ||
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET"> | ||
<point>0,-3000</point> | ||
<point>33,-2000</point> | ||
<point>66,-1000</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>0,-2400</point> | ||
<point>33,-1600</point> | ||
<point>66,-800</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>0,-3000</point> | ||
<point>33,-2000</point> | ||
<point>66,-1000</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"> | ||
<point>1,-5800</point> | ||
<point>26,-4200</point> | ||
<point>66,-1800</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEADSET"> | ||
<point>1,-3000</point> | ||
<point>33,-2600</point> | ||
<point>66,-2200</point> | ||
<point>100,-1800</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>1,-2600</point> | ||
<point>33,-2000</point> | ||
<point>66,-1400</point> | ||
<point>100,-800</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>1,-3400</point> | ||
<point>33,-2800</point> | ||
<point>66,-2200</point> | ||
<point>100,-1600</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" | ||
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET" | ||
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>1,-4200</point> | ||
<point>72,-1200</point> | ||
<point>85,-600</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>1,-5550</point> | ||
<point>33,-3950</point> | ||
<point>66,-2300</point> | ||
<point>100,-600</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" | ||
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET"> | ||
<point>1,-5800</point> | ||
<point>26,-4200</point> | ||
<point>66,-1800</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>1,-6300</point> | ||
<point>40,-3200</point> | ||
<point>60,-1900</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>1,-5550</point> | ||
<point>33,-3950</point> | ||
<point>66,-2300</point> | ||
<point>100,-600</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"> | ||
<point>1,-5800</point> | ||
<point>26,-4200</point> | ||
<point>66,-1800</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET" | ||
ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>0,-4200</point> | ||
<point>72,-1200</point> | ||
<point>85,-600</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>0,-5550</point> | ||
<point>33,-3950</point> | ||
<point>66,-2300</point> | ||
<point>100,-600</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" | ||
ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET" | ||
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>1,-4200</point> | ||
<point>42,-2800</point> | ||
<point>71,-1800</point> | ||
<point>100,-800</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>1,-5550</point> | ||
<point>33,-3950</point> | ||
<point>66,-2300</point> | ||
<point>100,-600</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" | ||
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET"> | ||
<point>0,-3000</point> | ||
<point>33,-2000</point> | ||
<point>66,-1000</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>0,-2400</point> | ||
<point>33,-1600</point> | ||
<point>66,-800</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>0,-3000</point> | ||
<point>33,-2000</point> | ||
<point>66,-1000</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"> | ||
<point>1,-5800</point> | ||
<point>26,-4200</point> | ||
<point>66,-1800</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET" | ||
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>1,-2800</point> | ||
<point>33,-2200</point> | ||
<point>66,-1600</point> | ||
<point>100,-1000</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>1,-5550</point> | ||
<point>33,-3950</point> | ||
<point>66,-2300</point> | ||
<point>100,-600</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" | ||
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET"> | ||
<point>1,-3000</point> | ||
<point>33,-2600</point> | ||
<point>66,-2200</point> | ||
<point>100,-1800</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>1,-4200</point> | ||
<point>42,-3600</point> | ||
<point>71,-3200</point> | ||
<point>100,-2800</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>1,-3400</point> | ||
<point>33,-2800</point> | ||
<point>66,-2200</point> | ||
<point>100,-1600</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" | ||
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET" | ||
ref="SILENT_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER" | ||
ref="FULL_SCALE_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EARPIECE" | ||
ref="SILENT_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" | ||
ref="SILENT_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET"> | ||
<point>0,-5800</point> | ||
<point>26,-4200</point> | ||
<point>66,-1800</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER"> | ||
<point>0,-5250</point> | ||
<point>40,-2600</point> | ||
<point>60,-1730</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE"> | ||
<point>0,-5800</point> | ||
<point>26,-4200</point> | ||
<point>66,-1800</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"> | ||
<point>0,-5800</point> | ||
<point>26,-4200</point> | ||
<point>66,-1800</point> | ||
<point>100,0</point> | ||
</volume> | ||
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET" | ||
ref="FULL_SCALE_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER" | ||
ref="FULL_SCALE_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EARPIECE" | ||
ref="FULL_SCALE_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" | ||
ref="FULL_SCALE_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET" | ||
ref="FULL_SCALE_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER" | ||
ref="FULL_SCALE_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE" | ||
ref="FULL_SCALE_VOLUME_CURVE"/> | ||
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" | ||
ref="FULL_SCALE_VOLUME_CURVE"/> | ||
</volumes> | ||
|
Oops, something went wrong.