aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Karasangabo <olivier@lineageos.org>2020-04-09 23:42:27 +0200
committerOlivier Karasangabo <olivier@lineageos.org>2020-07-24 01:28:36 +0200
commitcd0ef5f0425249a902542d5c6c60b5ae39f1c10e (patch)
treee21c0e5e1709ac21b5e2576428b58f88d82d6a3c
parent768019820e1a2022fd4236ac6d7237ac099cd989 (diff)
apollo: Initial commit
* Initial commit of Sony Xperia XZ2 Compact. Change-Id: I89ad1465b27663c2a9cf7a0f81aaaaec28f598cf
-rw-r--r--Android.mk21
-rw-r--r--AndroidProducts.mk22
-rw-r--r--BoardConfig.mk38
-rw-r--r--README.md26
-rw-r--r--audio/audio_platform_info.xml421
-rw-r--r--audio/audio_policy_volumes.xml251
-rw-r--r--audio/default_volume_tables.xml129
-rw-r--r--audio/sound_trigger_mixer_paths_wcd9340.xml361
-rw-r--r--audio/sound_trigger_platform_info.xml206
-rw-r--r--device.mk58
-rwxr-xr-xextract-files.sh23
-rw-r--r--idc/clearpad.idc5
-rw-r--r--idc/synaptics_tcm_touch.idc41
-rw-r--r--keylayout/gpio-keys.kl31
-rw-r--r--lineage.dependencies6
-rw-r--r--lineage_apollo.mk26
-rw-r--r--manifest.xml61
-rw-r--r--nfc/libnfc-nci.conf103
-rw-r--r--nfc/libnfc-nxp.conf423
-rw-r--r--nfc/libnfc-nxp_RF.conf239
-rw-r--r--overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml59
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml197
-rw-r--r--overlay/frameworks/base/core/res/res/xml/power_profile.xml167
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/values-sw360dp/dimens.xml21
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/values/config.xml25
-rw-r--r--proprietary-files.txt754
-rwxr-xr-xsetup-makefiles.sh17
-rw-r--r--system.prop14
-rw-r--r--vendor.prop9
29 files changed, 3754 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..4124272
--- /dev/null
+++ b/Android.mk
@@ -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
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
new file mode 100644
index 0000000..ade242b
--- /dev/null
+++ b/AndroidProducts.mk
@@ -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
diff --git a/BoardConfig.mk b/BoardConfig.mk
new file mode 100644
index 0000000..d553289
--- /dev/null
+++ b/BoardConfig.mk
@@ -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
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..0507824
--- /dev/null
+++ b/README.md
@@ -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")
diff --git a/audio/audio_platform_info.xml b/audio/audio_platform_info.xml
new file mode 100644
index 0000000..c8cf13d
--- /dev/null
+++ b/audio/audio_platform_info.xml
@@ -0,0 +1,421 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- Copyright (c) 2014, 2016-2018, The Linux Foundation. All rights reserved. -->
+<!-- -->
+<!-- Redistribution and use in source and binary forms, with or without -->
+<!-- modification, are permitted provided that the following conditions are -->
+<!-- met: -->
+<!-- * Redistributions of source code must retain the above copyright -->
+<!-- notice, this list of conditions and the following disclaimer. -->
+<!-- * Redistributions in binary form must reproduce the above -->
+<!-- copyright notice, this list of conditions and the following -->
+<!-- disclaimer in the documentation and/or other materials provided -->
+<!-- with the distribution. -->
+<!-- * Neither the name of The Linux Foundation nor the names of its -->
+<!-- contributors may be used to endorse or promote products derived -->
+<!-- from this software without specific prior written permission. -->
+<!-- -->
+<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
+<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
+<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
+<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
+<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
+<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
+<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
+<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
+<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
+<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
+<audio_platform_info>
+ <acdb_ids>
+ <device name="SND_DEVICE_OUT_AFE_PROXY" acdb_id="45"/>
+ <device name="SND_DEVICE_OUT_SPEAKER" acdb_id="15"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_BT_A2DP" acdb_id="799"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" acdb_id="799"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" acdb_id="124"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_REVERSE" acdb_id="15"/>
+ <device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED" acdb_id="150"/>
+ <device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED_VBAT" acdb_id="150"/>
+ <device name="SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET" acdb_id="7"/>
+ <device name="SND_DEVICE_OUT_VOICE_HAC_HANDSET" acdb_id="257"/>
+
+ <device name="SND_DEVICE_IN_CAPTURE_FM" acdb_id="801"/>
+ <device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_1" acdb_id="151"/>
+ <device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_2" acdb_id="152"/>
+ <device name="SND_DEVICE_IN_UNPROCESSED_USB_HEADSET_MIC" acdb_id="133"/>
+ <device name="SND_DEVICE_IN_UNPROCESSED_MIC" acdb_id="143"/>
+ <device name="SND_DEVICE_IN_UNPROCESSED_STEREO_MIC" acdb_id="144"/>
+ <device name="SND_DEVICE_IN_UNPROCESSED_THREE_MIC" acdb_id="145"/>
+ <device name="SND_DEVICE_IN_UNPROCESSED_QUAD_MIC" acdb_id="146"/>
+ <device name="SND_DEVICE_IN_UNPROCESSED_HEADSET_MIC" acdb_id="147"/>
+ <device name="SND_DEVICE_IN_VOICE_DMIC" acdb_id="6"/>
+ <device name="SND_DEVICE_IN_VOICE_REC_QMIC_FLUENCE" acdb_id="131"/>
+ <device name="SND_DEVICE_IN_VOICE_REC_TMIC" acdb_id="131"/>
+ <device name="SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE" acdb_id="132"/>
+ <device name="SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC" acdb_id="4"/>
+
+ <!-- SOMC acdb ids -->
+ <device name="SND_DEVICE_OUT_SONY_VOICE_TTY_HCO_SPEAKER" acdb_id="150"/>
+ </acdb_ids>
+
+ <module_ids>
+ <aec>
+ <device name="SND_DEVICE_IN_SPEAKER_QMIC_AEC_NS" module_id="0x10F17" instance_id="0x0" param_id="0x10EAF" param_value="0x01"/>
+ <device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS_BROADSIDE" module_id="0x10F18" instance_id="0x0" param_id="0x10EAF" param_value="0x01"/>
+ <device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS" module_id="0x10F0A" instance_id="0x0" param_id="0x10EAF" param_value="0x01"/>
+ <device name="SND_DEVICE_IN_SPEAKER_MIC_AEC_NS" module_id="0x10F09" instance_id="0x0" param_id="0x10EAF" param_value="0x01"/>
+ <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS" module_id="0x10F0A" instance_id="0x0" param_id="0x10EAF" param_value="0x01"/>
+ <device name="SND_DEVICE_IN_HANDSET_MIC_AEC_NS" module_id="0x10F09" instance_id="0x0" param_id="0x10EAF" param_value="0x01"/>
+ </aec>
+ <ns>
+ <device name="SND_DEVICE_IN_SPEAKER_QMIC_AEC_NS" module_id="0x10F17" instance_id="0x0" param_id="0x10EAF" param_value="0x02"/>
+ <device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS_BROADSIDE" module_id="0x10F18" instance_id="0x0" param_id="0x10EAF" param_value="0x02"/>
+ <device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS" module_id="0x10F0A" instance_id="0x0" param_id="0x10EAF" param_value="0x02"/>
+ <device name="SND_DEVICE_IN_SPEAKER_MIC_AEC_NS" module_id="0x10F09" instance_id="0x0" param_id="0x10EAF" param_value="0x02"/>
+ <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS" module_id="0x10F0A" instance_id="0x0" param_id="0x10EAF" param_value="0x02"/>
+ <device name="SND_DEVICE_IN_HANDSET_MIC_AEC_NS" module_id="0x10F09" instance_id="0x0" param_id="0x10EAF" param_value="0x02"/>
+ </ns>
+ </module_ids>
+
+ <bit_width_configs>
+ <device name="SND_DEVICE_OUT_SPEAKER" bit_width="24"/>
+ </bit_width_configs>
+ <pcm_ids>
+ <usecase name="USECASE_AUDIO_PLAYBACK_LOW_LATENCY" type="out" id="13"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD" type="out" id="8"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD2" type="out" id="15"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD3" type="out" id="16"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD4" type="out" id="28"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD5" type="out" id="29"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD6" type="out" id="30"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD7" type="out" id="31"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD8" type="out" id="32"/>
+ <usecase name="USECASE_VOICEMMODE1_CALL" type="in" id="2"/>
+ <usecase name="USECASE_VOICEMMODE1_CALL" type="out" id="2"/>
+ <usecase name="USECASE_VOICEMMODE2_CALL" type="in" id="19"/>
+ <usecase name="USECASE_VOICEMMODE2_CALL" type="out" id="19"/>
+ <usecase name="USECASE_VOWLAN_CALL" type="in" id="-1"/>
+ <usecase name="USECASE_VOWLAN_CALL" type="out" id="-1"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_FM" type="out" id="5"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_FM" type="in" id="34"/>
+ <usecase name="USECASE_AUDIO_SPKR_CALIB_RX" type="out" id="5"/>
+ <usecase name="USECASE_AUDIO_SPKR_CALIB_TX" type="in" id="35"/>
+ <usecase name="USECASE_AUDIO_PLAYBACK_AFE_PROXY" type="out" id="6"/>
+ <usecase name="USECASE_AUDIO_RECORD_AFE_PROXY" type="in" id="7"/>
+ <usecase name="USECASE_AUDIO_RECORD_LOW_LATENCY" type="in" id="17" />
+ <usecase name="USECASE_AUDIO_PLAYBACK_ULL" type="out" id="17" />
+ <usecase name="USECASE_AUDIO_PLAYBACK_SILENCE" type="out" id="27" />
+ <usecase name="USECASE_AUDIO_PLAYBACK_VOIP" type="out" id="16" />
+ <usecase name="USECASE_AUDIO_RECORD_VOIP" type="in" id="16" />
+ <usecase name="USECASE_AUDIO_PLAYBACK_MMAP" type="out" id="33" />
+ <usecase name="USECASE_AUDIO_RECORD_MMAP" type="in" id="33" />
+ <usecase name="USECASE_AUDIO_A2DP_ABR_FEEDBACK" type="in" id="40" />
+ </pcm_ids>
+ <config_params>
+ <param key="spkr_1_tz_name" value="wsatz.13"/>
+ <param key="spkr_2_tz_name" value="wsatz.14"/>
+ <!-- In the below value string, the value indicates default mono -->
+ <!-- speaker. It can be set to either left or right -->
+ <param key="mono_speaker" value="right"/>
+ <!-- In the below value string, first parameter indicates size -->
+ <!-- followed by perf lock options -->
+ <param key="perf_lock_opts" value="4, 0x40400000, 0x1, 0x40C00000, 0x1"/>
+ <param key="input_mic_max_count" value="4"/>
+ <param key="true_32_bit" value="true"/>
+ <!-- In the below value string, the value indicates sidetone gain in dB -->
+ <param key="usb_sidetone_gain" value="35"/>
+ </config_params>
+ <gain_db_to_level_mapping>
+ <gain_level_map db="-59" level="5"/>
+ <gain_level_map db="-17.4" level="4"/>
+ <gain_level_map db="-13.8" level="3"/>
+ <gain_level_map db="-10.2" level="2"/>
+ <gain_level_map db="0" level="1"/>
+ </gain_db_to_level_mapping>
+ <backend_names>
+ <device name="SND_DEVICE_OUT_AFE_PROXY" backend="afe-proxy" interface="PROXY_PORT_RX"/>
+ <device name="SND_DEVICE_OUT_ANC_FB_HEADSET" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_ANC_HEADSET" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_BT_A2DP" backend="bt-a2dp" interface="SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_BT_SCO" backend="bt-sco" interface="SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_BT_SCO_WB" backend="bt-sco-wb" interface="SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_HANDSET" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_HDMI" backend="hdmi" interface="HDMI_RX"/>
+ <device name="SND_DEVICE_OUT_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_LINE" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_ANC_HEADSET" backend="speaker-and-headphones" interface="SLIMBUS_0_RX-and-SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_ANC_FB_HEADSET" backend="speaker-and-headphones" interface="SLIMBUS_0_RX-and-SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_BT_A2DP" backend="speaker-and-bt-a2dp" interface="SLIMBUS_0_RX-and-SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO" backend="speaker-and-bt-sco" interface="SLIMBUS_0_RX-and-SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO_WB" backend="speaker-and-bt-sco-wb" interface="SLIMBUS_0_RX-and-SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" backend="speaker-and-headphones" interface="SLIMBUS_0_RX-and-SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_LINE" backend="speaker-and-headphones" interface="SLIMBUS_0_RX-and-SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_AND_USB_HEADSET" backend="speaker-and-usb-headphones" interface="SLIMBUS_0_RX-and-USB_AUDIO_RX"/>
+ <device name="SND_DEVICE_OUT_SPEAKER_REVERSE" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_ANC_HEADSET" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_ANC_FB_HEADSET" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_LINE" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_USB_HEADPHONES" backend="usb-headphones" interface="USB_AUDIO_RX"/>
+ <device name="SND_DEVICE_OUT_USB_HEADSET" backend="usb-headset" interface="USB_AUDIO_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_HANDSET" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_TX" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_VOICE_HAC_HANDSET" interface="SLIMBUS_0_RX"/>
+
+ <!-- SOMC out devices -->
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC" backend="incall-music" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC_BT" backend="incall-music-bt" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC_BT_WB" backend="incall-music-bt-wb" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC_USB_HEADPHONES" backend="incall-music-usb-headphones" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC_USB_HEADSET" backend="incall-music-usb-headset" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC2" backend="incall-music2" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC2_BT" backend="incall-music2-bt" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC2_BT_WB" backend="incall-music2-bt-wb" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC2_USB_HEADPHONES" backend="incall-music2-usb-headphones" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_INCALL_MUSIC2_USB_HEADSET" backend="incall-music2-usb-headset" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_RINGTONE_SPEAKER" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_RINGTONE_SPEAKER_PROTECTED" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_RINGTONE_SPEAKER_AND_BT_A2DP" backend="speaker-and-bt-a2dp" interface="SLIMBUS_0_RX-and-SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_RINGTONE_SPEAKER_AND_BT_SCO" backend="speaker-and-bt-sco" interface="SLIMBUS_0_RX-and-SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_RINGTONE_SPEAKER_AND_BT_SCO_WB" backend="speaker-and-bt-sco-wb" interface="SLIMBUS_0_RX-and-SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_RINGTONE_SPEAKER_AND_HEADPHONES" backend="speaker-and-headphones" interface="SLIMBUS_0_RX-and-SLIMBUS_6_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_RINGTONE_SPEAKER_AND_USB_HEADSET" backend="speaker-and-usb-headphones" interface="SLIMBUS_0_RX-and-USB_AUDIO_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_VOICE_TTY_HCO_SPEAKER" interface="SLIMBUS_0_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_VOICE_TTY_HCO_SPEAKER_PROTECTED" interface="SLIMBUS_0_RX"/>
+
+ <!-- SOMC media vibration out devices -->
+ <device name="SND_DEVICE_OUT_SONY_MEDIA_HAPTICS_A2DP" backend="bt-a2dp-and-vibrator" interface="SLIMBUS_2_RX-and-SLIMBUS_7_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_MEDIA_HAPTICS_HEADPHONES" backend="headphones-and-vibrator" interface="SLIMBUS_6_RX-and-SLIMBUS_2_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_MEDIA_HAPTICS_SPEAKER" backend="speaker-and-vibrator" interface="SLIMBUS_0_RX-and-SLIMBUS_2_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_MEDIA_HAPTICS_USB_HEADPHONES" backend="usb-headphones-and-vibrator" interface="USB_AUDIO_RX-and-SLIMBUS_2_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_MEDIA_VIBRATOR" backend="media-vibrator" interface="SLIMBUS_2_RX"/>
+ <device name="SND_DEVICE_OUT_SONY_MEDIA_VIBRATOR_A2DP" backend="media-vibrator" interface="SLIMBUS_2_RX"/>
+
+ <device name="SND_DEVICE_IN_BT_SCO_MIC" backend="bt-sco" interface="SLIMBUS_7_TX"/>
+ <device name="SND_DEVICE_IN_BT_SCO_MIC_WB" backend="bt-sco-wb" interface="SLIMBUS_7_TX"/>
+ <device name="SND_DEVICE_IN_CAPTURE_FM" backend="capture-fm" interface="SLIMBUS_8_TX"/>
+ <device name="SND_DEVICE_IN_SPEAKER_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_UNPROCESSED_HEADSET_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_UNPROCESSED_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_UNPROCESSED_STEREO_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_USB_HEADSET_MIC" backend="usb-headset-mic" interface="USB_AUDIO_TX"/>
+ <device name="SND_DEVICE_IN_VOICE_DMIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_VOICE_HEADSET_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_VOICE_RX" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_VOICE_SPEAKER_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_VOICE_TTY_FULL_HEADSET_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_VOICE_TTY_HCO_HEADSET_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC" interface="SLIMBUS_0_TX"/>
+
+ <!-- SOMC in devices -->
+ <device name="SND_DEVICE_IN_SONY_BT_SCO_DSP_MIC" backend="bt-sco" interface="SLIMBUS_7_TX"/>
+ <device name="SND_DEVICE_IN_SONY_BT_SCO_DSP_MIC_VOIP" backend="bt-sco" interface="SLIMBUS_7_TX"/>
+ <device name="SND_DEVICE_IN_SONY_BT_SCO_DSP_MIC_WB" backend="bt-sco-wb" interface="SLIMBUS_7_TX"/>
+ <device name="SND_DEVICE_IN_SONY_BT_SCO_DSP_MIC_WB_VOIP" backend="bt-sco-wb" interface="SLIMBUS_7_TX"/>
+ <device name="SND_DEVICE_IN_SONY_BT_SCO_MIC_VOIP" backend="bt-sco" interface="SLIMBUS_7_TX"/>
+ <device name="SND_DEVICE_IN_SONY_BT_SCO_MIC_WB_VOIP" backend="bt-sco-wb" interface="SLIMBUS_7_TX"/>
+ <device name="SND_DEVICE_IN_SONY_CAMCORDER" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_CAPTURE_AHC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_HANDSET_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_HANDSET_MIC_ASR" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_HANDSET_SECONDARY_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_HEADSET_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_HEADSET_MIC_ASR" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_INCALL_VOICE_RECORD" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_MONO_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_STEREO_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_VOIP_DMIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_VOIP_HEADSET_MIC" interface="SLIMBUS_0_TX"/>
+ <device name="SND_DEVICE_IN_SONY_VOIP_SPEAKER_MIC" interface="SLIMBUS_0_TX"/>
+ </backend_names>
+ <microphone_characteristics>
+ <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" />
+ <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" />
+ </microphone_characteristics>
+ <snd_devices>
+ <input_snd_device>
+ <input_snd_device_mic_mapping>
+ <snd_dev in_snd_device="SND_DEVICE_IN_CAMCORDER_MIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_3"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_VOICE_REC_MIC_AEC_NS">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_VOICE_REC_MIC_AEC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_VOICE_REC_MIC_NS">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_VOICE_REC_MIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_MIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_VOICE_DMIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_VOICE_DMIC_TMUS">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_VOICE_SPEAKER_DMIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_3"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC_AEC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC_NS">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_3"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_DMIC_AEC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_3"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_DMIC_NS">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_3"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_MIC">
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_UNPROCESSED_MIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_UNPROCESSED_STEREO_MIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_UNPROCESSED_THREE_MIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/>
+ <mic_info mic_device_id="builtin_mic_3"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC_STEREO">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_DMIC_STEREO">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_3"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+
+ <!-- SOMC in devices -->
+ <snd_dev in_snd_device="SND_DEVICE_IN_SONY_CAMCORDER">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SONY_HANDSET_MIC_ASR">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SONY_HANDSET_SECONDARY_MIC">
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SONY_MONO_MIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SONY_STEREO_MIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SONY_VOIP_DMIC">
+ <mic_info mic_device_id="builtin_mic_1"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ <snd_dev in_snd_device="SND_DEVICE_IN_SONY_VOIP_SPEAKER_MIC">
+ <mic_info mic_device_id="builtin_mic_2"
+ channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
+ </snd_dev>
+ </input_snd_device_mic_mapping>
+ </input_snd_device>
+ </snd_devices>
+</audio_platform_info>
+
diff --git a/audio/audio_policy_volumes.xml b/audio/audio_policy_volumes.xml
new file mode 100644
index 0000000..17f61ec
--- /dev/null
+++ b/audio/audio_policy_volumes.xml
@@ -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>
+
diff --git a/audio/default_volume_tables.xml b/audio/default_volume_tables.xml
new file mode 100644
index 0000000..207be41
--- /dev/null
+++ b/audio/default_volume_tables.xml
@@ -0,0 +1,129 @@
+<?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.
+-->
+<!-- Default Volume Tables included by Audio Policy Configuration file -->
+<!-- Full Default Volume table for all device category -->
+<volumes>
+ <reference name="FULL_SCALE_VOLUME_CURVE">
+ <!-- Full Scale reference Volume Curve -->
+ <point>0,0</point>
+ <point>100,0</point>
+ </reference>
+ <reference name="SILENT_VOLUME_CURVE">
+ <point>0,-9600</point>
+ <point>100,-9600</point>
+ </reference>
+ <reference name="DEFAULT_SYSTEM_VOLUME_CURVE">
+ <!-- Default System reference Volume Curve -->
+ <point>1,-2400</point>
+ <point>33,-1800</point>
+ <point>66,-1200</point>
+ <point>100,-600</point>
+ </reference>
+ <reference name="DEFAULT_MEDIA_VOLUME_CURVE">
+ <!-- Default Media reference Volume Curve -->
+ <point>1,-5800</point>
+ <point>20,-4000</point>
+ <point>60,-1700</point>
+ <point>100,0</point>
+ </reference>
+ <reference name="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE">
+ <!--Default Volume Curve -->
+ <point>1,-4950</point>
+ <point>33,-3350</point>
+ <point>66,-1700</point>
+ <point>100,0</point>
+ </reference>
+ <reference name="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE">
+ <!-- Default is Speaker Media Volume Curve -->
+ <point>1,-5800</point>
+ <point>20,-4000</point>
+ <point>60,-1700</point>
+ <point>100,0</point>
+ </reference>
+ <reference name="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE">
+ <!--Default Volume Curve -->
+ <point>1,-4950</point>
+ <point>33,-3350</point>
+ <point>66,-1700</point>
+ <point>100,0</point>
+ </reference>
+ <reference name="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE">
+ <!-- Default is Ext Media System Volume Curve -->
+ <point>1,-5800</point>
+ <point>20,-4000</point>
+ <point>60,-2100</point>
+ <point>100,-1000</point>
+ </reference>
+ <reference name="DEFAULT_HEARING_AID_VOLUME_CURVE">
+ <!-- Default Hearing Aid Volume Curve -->
+ <point>1,-12700</point>
+ <point>20,-8000</point>
+ <point>60,-4000</point>
+ <point>100,0</point>
+ </reference>
+ <!-- **************************************************************** -->
+ <!-- Non-mutable default volume curves: -->
+ <!-- * first point is always for index 0 -->
+ <!-- * attenuation is small enough that stream can still be heard -->
+ <reference name="DEFAULT_NON_MUTABLE_VOLUME_CURVE">
+ <!-- Default non-mutable reference Volume Curve -->
+ <!-- based on DEFAULT_MEDIA_VOLUME_CURVE -->
+ <point>0,-5800</point>
+ <point>20,-4000</point>
+ <point>60,-1700</point>
+ <point>100,0</point>
+ </reference>
+ <reference name="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE">
+ <!--Default non-mutable Volume Curve for headset -->
+ <!-- based on DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE -->
+ <point>0,-4950</point>
+ <point>33,-3350</point>
+ <point>66,-1700</point>
+ <point>100,0</point>
+ </reference>
+ <reference name="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE">
+ <!-- Default non-mutable Speaker Volume Curve -->
+ <!-- based on DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE -->
+ <point>0,-5800</point>
+ <point>20,-4000</point>
+ <point>60,-1700</point>
+ <point>100,0</point>
+ </reference>
+ <reference name="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE">
+ <!--Default non-mutable Volume Curve -->
+ <!-- based on DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE -->
+ <point>0,-4950</point>
+ <point>33,-3350</point>
+ <point>66,-1700</point>
+ <point>100,0</point>
+ </reference>
+ <reference name="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE">
+ <!-- Default non-mutable Ext Media System Volume Curve -->
+ <!-- based on DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE -->
+ <point>0,-5800</point>
+ <point>20,-4000</point>
+ <point>60,-2100</point>
+ <point>100,-1000</point>
+ </reference>
+ <reference name="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE">
+ <!-- Default non-mutable Hearing Aid Volume Curve -->
+ <!-- based on DEFAULT_HEARING_AID_VOLUME_CURVE -->
+ <point>0,-12700</point>
+ <point>20,-8000</point>
+ <point>60,-4000</point>
+ <point>100,0</point>
+ </reference>
+</volumes>
diff --git a/audio/sound_trigger_mixer_paths_wcd9340.xml b/audio/sound_trigger_mixer_paths_wcd9340.xml
new file mode 100644
index 0000000..702f21f
--- /dev/null
+++ b/audio/sound_trigger_mixer_paths_wcd9340.xml
@@ -0,0 +1,361 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--- Copyright (c) 2014-2018, The Linux Foundation. All rights reserved. -->
+<!--- -->
+<!--- Redistribution and use in source and binary forms, with or without -->
+<!--- modification, are permitted provided that the following conditions are -->
+<!--- met: -->
+<!--- * Redistributions of source code must retain the above copyright -->
+<!--- notice, this list of conditions and the following disclaimer. -->
+<!--- * Redistributions in binary form must reproduce the above -->
+<!--- copyright notice, this list of conditions and the following -->
+<!--- disclaimer in the documentation and/or other materials provided -->
+<!--- with the distribution. -->
+<!--- * Neither the name of The Linux Foundation nor the names of its -->
+<!--- contributors may be used to endorse or promote products derived -->
+<!--- from this software without specific prior written permission. -->
+<!--- -->
+<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
+<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
+<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
+<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
+<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
+<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
+<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
+<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
+<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
+<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
+<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
+
+<mixer>
+ <!-- These are the initial mixer settings -->
+ <ctl name="LSM1 Mixer SLIMBUS_5_TX" value="0" />
+ <ctl name="LSM2 Mixer SLIMBUS_5_TX" value="0" />
+ <ctl name="LSM3 Mixer SLIMBUS_5_TX" value="0" />
+ <ctl name="LSM4 Mixer SLIMBUS_5_TX" value="0" />
+ <ctl name="LSM5 Mixer SLIMBUS_5_TX" value="0" />
+ <ctl name="LSM6 Mixer SLIMBUS_5_TX" value="0" />
+ <ctl name="LSM7 Mixer SLIMBUS_5_TX" value="0" />
+ <ctl name="LSM8 Mixer SLIMBUS_5_TX" value="0" />
+ <ctl name="LSM1 Mixer SLIMBUS_0_TX" value="0" />
+ <ctl name="LSM2 Mixer SLIMBUS_0_TX" value="0" />
+ <ctl name="LSM3 Mixer SLIMBUS_0_TX" value="0" />
+ <ctl name="LSM4 Mixer SLIMBUS_0_TX" value="0" />
+ <ctl name="LSM5 Mixer SLIMBUS_0_TX" value="0" />
+ <ctl name="LSM6 Mixer SLIMBUS_0_TX" value="0" />
+ <ctl name="LSM7 Mixer SLIMBUS_0_TX" value="0" />
+ <ctl name="LSM8 Mixer SLIMBUS_0_TX" value="0" />
+ <ctl name="LSM1 Port" value="None" />
+ <ctl name="LSM2 Port" value="None" />
+ <ctl name="LSM3 Port" value="None" />
+ <ctl name="LSM4 Port" value="None" />
+ <ctl name="LSM5 Port" value="None" />
+ <ctl name="LSM6 Port" value="None" />
+ <ctl name="LSM7 Port" value="None" />
+ <ctl name="LSM8 Port" value="None" />
+ <ctl name="SLIMBUS_5_TX LSM Function" value="None" />
+ <ctl name="SLIMBUS_0_TX LSM Function" value="None" />
+ <ctl name="MADONOFF Switch" value="0" />
+ <ctl name="MAD Input" value="DMIC0" />
+ <ctl name="MAD_SEL MUX" value="SPE" />
+ <ctl name="MAD_INP MUX" value="DEC1" />
+ <ctl name="MAD_CPE1 Switch" value="0" />
+ <ctl name="CDC_IF TX13 MUX" value="ZERO" />
+ <ctl name="MAD_BROADCAST Switch" value="0" />
+ <ctl name="TX13 INP MUX" value="CDC_DEC_5" />
+ <ctl name="AIF4_MAD Mixer SLIM TX12" value="0" />
+ <ctl name="AIF4_MAD Mixer SLIM TX13" value="0" />
+ <ctl name="CPE AFE MAD Enable" value="0"/>
+ <ctl name="CLK MODE" value="EXTERNAL" />
+ <ctl name="EC BUF MUX INP" value="ZERO" />
+ <ctl name="ADC MUX1" value="DMIC" />
+ <ctl name="DMIC MUX1" value="ZERO" />
+ <ctl name="AIF1_CAP Mixer SLIM TX8" value="0"/>
+ <ctl name="AIF1_CAP Mixer SLIM TX7" value="0" />
+ <ctl name="AIF1_CAP Mixer SLIM TX6" value="0" />
+ <ctl name="AIF1_CAP Mixer SLIM TX5" value="0"/>
+ <ctl name="CDC_IF TX5 MUX" value="ZERO" />
+ <ctl name="CDC_IF TX6 MUX" value="ZERO" />
+ <ctl name="CDC_IF TX7 MUX" value="ZERO" />
+ <ctl name="CDC_IF TX8 MUX" value="ZERO" />
+ <ctl name="ADC MUX5" value="AMIC" />
+ <ctl name="ADC MUX6" value="AMIC" />
+ <ctl name="ADC MUX7" value="AMIC" />
+ <ctl name="ADC MUX8" value="AMIC" />
+ <ctl name="DMIC MUX5" value="ZERO" />
+ <ctl name="DMIC MUX6" value="ZERO" />
+ <ctl name="DMIC MUX7" value="ZERO" />
+ <ctl name="DMIC MUX8" value="ZERO" />
+ <ctl name="IIR0 INP0 MUX" value="ZERO" />
+ <ctl name= "ADC MUX0" value="AMIC" />
+ <ctl name= "ADC MUX1" value="AMIC" />
+ <ctl name= "ADC MUX2" value="AMIC" />
+ <ctl name= "DMIC MUX0" value="ZERO" />
+ <ctl name= "DMIC MUX2" value="ZERO" />
+ <ctl name= "WDMA3 PORT0 MUX" value="RX_MIX_TX0" />
+ <ctl name= "WDMA3 PORT1 MUX" value="RX_MIX_TX1" />
+ <ctl name= "WDMA3 PORT2 MUX" value="RX_MIX_TX2" />
+ <ctl name= "WDMA3 CH0 MUX" value="PORT_0" />
+ <ctl name= "WDMA3 CH1 MUX" value="PORT_0" />
+ <ctl name= "WDMA3 CH2 MUX" value="PORT_0" />
+ <ctl name= "WDMA3_ON_OFF Switch" value="0" />
+ <ctl name="SLIM_0_TX Channels" value="One" />
+
+ <path name="listen-voice-wakeup-1">
+ <ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
+ <ctl name="LSM1 Port" value="SLIMBUS_5_TX" />
+ <ctl name="LSM1 Mixer SLIMBUS_5_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-2">
+ <ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
+ <ctl name="LSM2 Port" value="SLIMBUS_5_TX" />
+ <ctl name="LSM2 Mixer SLIMBUS_5_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-3">
+ <ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
+ <ctl name="LSM3 Port" value="SLIMBUS_5_TX" />
+ <ctl name="LSM3 Mixer SLIMBUS_5_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-4">
+ <ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
+ <ctl name="LSM4 Port" value="SLIMBUS_5_TX" />
+ <ctl name="LSM4 Mixer SLIMBUS_5_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-5">
+ <ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
+ <ctl name="LSM5 Port" value="SLIMBUS_5_TX" />
+ <ctl name="LSM5 Mixer SLIMBUS_5_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-6">
+ <ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
+ <ctl name="LSM6 Port" value="SLIMBUS_5_TX" />
+ <ctl name="LSM6 Mixer SLIMBUS_5_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-7">
+ <ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
+ <ctl name="LSM7 Port" value="SLIMBUS_5_TX" />
+ <ctl name="LSM7 Mixer SLIMBUS_5_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-8">
+ <ctl name="SLIMBUS_5_TX LSM Function" value="AUDIO" />
+ <ctl name="LSM8 Port" value="SLIMBUS_5_TX" />
+ <ctl name="LSM8 Mixer SLIMBUS_5_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-1 preproc">
+ <ctl name="SLIMBUS_0_TX LSM Function" value="SWAUDIO" />
+ <ctl name="LSM1 Port" value="ADM_LSM_TX" />
+ <ctl name="LSM1 Mixer SLIMBUS_0_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-2 preproc">
+ <ctl name="SLIMBUS_0_TX LSM Function" value="SWAUDIO" />
+ <ctl name="LSM2 Port" value="ADM_LSM_TX" />
+ <ctl name="LSM2 Mixer SLIMBUS_0_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-3 preproc">
+ <ctl name="SLIMBUS_0_TX LSM Function" value="SWAUDIO" />
+ <ctl name="LSM3 Port" value="ADM_LSM_TX" />
+ <ctl name="LSM3 Mixer SLIMBUS_0_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-4 preproc">
+ <ctl name="SLIMBUS_0_TX LSM Function" value="SWAUDIO" />
+ <ctl name="LSM4 Port" value="ADM_LSM_TX" />
+ <ctl name="LSM4 Mixer SLIMBUS_0_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-5 preproc">
+ <ctl name="SLIMBUS_0_TX LSM Function" value="SWAUDIO" />
+ <ctl name="LSM5 Port" value="ADM_LSM_TX" />
+ <ctl name="LSM5 Mixer SLIMBUS_0_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-6 preproc">
+ <ctl name="SLIMBUS_0_TX LSM Function" value="SWAUDIO" />
+ <ctl name="LSM6 Port" value="ADM_LSM_TX" />
+ <ctl name="LSM6 Mixer SLIMBUS_0_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-7 preproc">
+ <ctl name="SLIMBUS_0_TX LSM Function" value="SWAUDIO" />
+ <ctl name="LSM7 Port" value="ADM_LSM_TX" />
+ <ctl name="LSM7 Mixer SLIMBUS_0_TX" value="1" />
+ </path>
+
+ <path name="listen-voice-wakeup-8 preproc">
+ <ctl name="SLIMBUS_0_TX LSM Function" value="SWAUDIO" />
+ <ctl name="LSM8 Port" value="ADM_LSM_TX" />
+ <ctl name="LSM8 Mixer SLIMBUS_0_TX" value="1" />
+ </path>
+
+ <path name="listen-cpe-handset-mic">
+ <ctl name="MAD Input" value="DMIC0" />
+ <ctl name="MAD_SEL MUX" value="SPE" />
+ <ctl name="MAD_INP MUX" value="MAD" />
+ <ctl name="MAD_CPE1 Switch" value="1" />
+ </path>
+
+ <path name="listen-cpe-handset-dmic">
+ <ctl name="CLK MODE" value="INTERNAL" />
+ <ctl name= "ADC MUX0" value="DMIC" />
+ <ctl name= "DMIC MUX0" value="DMIC2" />
+ <ctl name= "DEC0 Volume" value="84" />
+ <ctl name= "ADC MUX1" value="DMIC" />
+ <ctl name= "DMIC MUX1" value="DMIC0" />
+ <ctl name= "DEC1 Volume" value="84" />
+ <ctl name= "WDMA3 PORT0 MUX" value="DEC0" />
+ <ctl name= "WDMA3 PORT1 MUX" value="DEC1" />
+ <ctl name= "WDMA3 CH0 MUX" value="PORT_0" />
+ <ctl name= "WDMA3 CH1 MUX" value="PORT_1" />
+ <ctl name= "WDMA3_ON_OFF Switch" value="1" />
+ </path>
+
+ <path name="listen-cpe-handset-tmic">
+ <ctl name="CLK MODE" value="INTERNAL" />
+ <ctl name= "ADC MUX0" value="DMIC" />
+ <ctl name= "DMIC MUX0" value="DMIC2" />
+ <ctl name= "DEC0 Volume" value="84" />
+ <ctl name= "ADC MUX1" value="DMIC" />
+ <ctl name= "DMIC MUX1" value="DMIC0" />
+ <ctl name= "DEC1 Volume" value="84" />
+ <ctl name= "ADC MUX2" value="DMIC" />
+ <ctl name= "DMIC MUX2" value="DMIC1" />
+ <ctl name= "DEC2 Volume" value="84" />
+ <ctl name= "WDMA3 PORT0 MUX" value="DEC0" />
+ <ctl name= "WDMA3 PORT1 MUX" value="DEC1" />
+ <ctl name= "WDMA3 PORT2 MUX" value="DEC2" />
+ <ctl name= "WDMA3 CH0 MUX" value="PORT_0" />
+ <ctl name= "WDMA3 CH1 MUX" value="PORT_1" />
+ <ctl name= "WDMA3 CH2 MUX" value="PORT_2" />
+ <ctl name= "WDMA3_ON_OFF Switch" value="1" />
+ </path>
+
+ <path name="listen-cpe-handset-qmic">
+ <ctl name="CLK MODE" value="INTERNAL" />
+ <ctl name= "ADC MUX0" value="DMIC" />
+ <ctl name= "DMIC MUX0" value="DMIC2" />
+ <ctl name= "DEC0 Volume" value="84" />
+ <ctl name= "ADC MUX1" value="DMIC" />
+ <ctl name= "DMIC MUX1" value="DMIC0" />
+ <ctl name= "DEC1 Volume" value="84" />
+ <ctl name= "ADC MUX2" value="DMIC" />
+ <ctl name= "DMIC MUX2" value="DMIC1" />
+ <ctl name= "DEC2 Volume" value="84" />
+ <ctl name= "ADC MUX3" value="DMIC" />
+ <ctl name= "DMIC MUX3" value="DMIC3" />
+ <ctl name= "DEC3 Volume" value="84" />
+ <ctl name= "WDMA3 PORT0 MUX" value="DEC0" />
+ <ctl name= "WDMA3 PORT1 MUX" value="DEC1" />
+ <ctl name= "WDMA3 PORT2 MUX" value="DEC2" />
+ <ctl name= "WDMA3 PORT3 MUX" value="DEC3" />
+ <ctl name= "WDMA3 CH0 MUX" value="PORT_0" />
+ <ctl name= "WDMA3 CH1 MUX" value="PORT_1" />
+ <ctl name= "WDMA3 CH2 MUX" value="PORT_2" />
+ <ctl name= "WDMA3 CH3 MUX" value="PORT_3" />
+ <ctl name= "WDMA3_ON_OFF Switch" value="1" />
+ </path>
+
+ <path name="listen-cpe-headset-mic">
+ <ctl name="MAD Input" value="ADC2" />
+ <ctl name="MAD_SEL MUX" value="SPE" />
+ <ctl name="MAD_INP MUX" value="MAD" />
+ <ctl name="MAD_CPE1 Switch" value="1" />
+ </path>
+
+ <path name="listen-cpe-handset-mic-ecpp">
+ <ctl name="CLK MODE" value="INTERNAL" />
+ <ctl name="EC BUF MUX INP" value="DEC1" />
+ <ctl name="ADC MUX1" value="DMIC" />
+ <ctl name="DMIC MUX1" value="DMIC2" />
+ </path>
+
+ <!-- path name used for low bandwidth FTRT codec interface -->
+ <path name="listen-cpe-handset-mic low-speed-intf">
+ <ctl name="MADONOFF Switch" value="1" />
+ <ctl name="AIF4_MAD Mixer SLIM TX12" value="1" />
+ <ctl name="MAD Input" value="DMIC2" />
+ <ctl name="CPE AFE MAD Enable" value="1"/>
+ </path>
+
+ <path name="listen-ape-handset-mic">
+ <ctl name="MAD Input" value="DMIC2" />
+ <ctl name="MAD_SEL MUX" value="MSM" />
+ <ctl name="MAD_INP MUX" value="MAD" />
+ <ctl name="MAD_BROADCAST Switch" value="1" />
+ <ctl name="CDC_IF TX13 MUX" value="MAD_BRDCST" />
+ <ctl name="AIF4_MAD Mixer SLIM TX13" value="1" />
+ </path>
+
+ <path name="listen-ape-handset-mic-preproc">
+ <ctl name="AIF1_CAP Mixer SLIM TX7" value="1" />
+ <ctl name="SLIM_0_TX Channels" value="One" />
+ <ctl name="CDC_IF TX7 MUX" value="DEC7" />
+ <ctl name="ADC MUX7" value="DMIC" />
+ <ctl name="DMIC MUX7" value="DMIC2" />
+ <ctl name="IIR0 INP0 MUX" value="DEC7" />
+ </path>
+
+ <path name="listen-ape-handset-dmic">
+ <ctl name="AIF1_CAP Mixer SLIM TX7" value="1" />
+ <ctl name="AIF1_CAP Mixer SLIM TX8" value="1" />
+ <ctl name="CDC_IF TX7 MUX" value="DEC7" />
+ <ctl name="ADC MUX7" value="DMIC" />
+ <ctl name="DMIC MUX7" value="DMIC1" />
+ <ctl name="CDC_IF TX8 MUX" value="DEC8" />
+ <ctl name="ADC MUX8" value="DMIC" />
+ <ctl name="DMIC MUX8" value="DMIC5" />
+ <ctl name="SLIM_0_TX Channels" value="Two" />
+ </path>
+
+ <path name="listen-ape-handset-tmic">
+ <ctl name="AIF1_CAP Mixer SLIM TX5" value="1" />
+ <ctl name="AIF1_CAP Mixer SLIM TX6" value="1" />
+ <ctl name="AIF1_CAP Mixer SLIM TX7" value="1" />
+ <ctl name="SLIM_0_TX Channels" value="Three" />
+ <ctl name="CDC_IF TX5 MUX" value="DEC5" />
+ <ctl name="ADC MUX5" value="DMIC" />
+ <ctl name="DMIC MUX5" value="DMIC1" />
+ <ctl name="CDC_IF TX6 MUX" value="DEC6" />
+ <ctl name="ADC MUX6" value="DMIC" />
+ <ctl name="DMIC MUX6" value="DMIC5" />
+ <ctl name="CDC_IF TX7 MUX" value="DEC7" />
+ <ctl name="ADC MUX7" value="DMIC" />
+ <ctl name="DMIC MUX7" value="DMIC2" />
+ </path>
+
+ <path name="listen-ape-handset-qmic">
+ <ctl name="AIF1_CAP Mixer SLIM TX5" value="1" />
+ <ctl name="AIF1_CAP Mixer SLIM TX6" value="1" />
+ <ctl name="AIF1_CAP Mixer SLIM TX7" value="1" />
+ <ctl name="AIF1_CAP Mixer SLIM TX8" value="1" />
+ <ctl name="SLIM_0_TX Channels" value="Four" />
+ <ctl name="CDC_IF TX5 MUX" value="DEC5" />
+ <ctl name="ADC MUX5" value="DMIC" />
+ <ctl name="DMIC MUX5" value="DMIC1" />
+ <ctl name="CDC_IF TX6 MUX" value="DEC6" />
+ <ctl name="ADC MUX6" value="DMIC" />
+ <ctl name="DMIC MUX6" value="DMIC5" />
+ <ctl name="CDC_IF TX7 MUX" value="DEC7" />
+ <ctl name="ADC MUX7" value="DMIC" />
+ <ctl name="DMIC MUX7" value="DMIC2" />
+ <ctl name="CDC_IF TX8 MUX" value="DEC8" />
+ <ctl name="ADC MUX8" value="DMIC" />
+ <ctl name="DMIC MUX8" value="DMIC0" />
+ </path>
+
+ <path name="echo-reference">
+ <ctl name="AUDIO_REF_EC_UL1 MUX" value="SLIM_RX"/>
+ <ctl name="EC Reference Channels" value="Two"/>
+ <ctl name="EC Reference Bit Format" value="S16_LE"/>
+ <ctl name="EC Reference SampleRate" value="48000"/>
+ </path>
+
+</mixer>
diff --git a/audio/sound_trigger_platform_info.xml b/audio/sound_trigger_platform_info.xml
new file mode 100644
index 0000000..6818185
--- /dev/null
+++ b/audio/sound_trigger_platform_info.xml
@@ -0,0 +1,206 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--- Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. -->
+<!--- -->
+<!--- Redistribution and use in source and binary forms, with or without -->
+<!--- modification, are permitted provided that the following conditions are -->
+<!--- met: -->
+<!--- * Redistributions of source code must retain the above copyright -->
+<!--- notice, this list of conditions and the following disclaimer. -->
+<!--- * Redistributions in binary form must reproduce the above -->
+<!--- copyright notice, this list of conditions and the following -->
+<!--- disclaimer in the documentation and/or other materials provided -->
+<!--- with the distribution. -->
+<!--- * Neither the name of The Linux Foundation nor the names of its -->
+<!--- contributors may be used to endorse or promote products derived -->
+<!--- from this software without specific prior written permission. -->
+<!--- -->
+<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
+<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
+<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
+<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
+<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
+<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
+<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
+<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
+<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
+<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
+<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
+<sound_trigger_platform_info>
+ <param version="0x0102" /> <!-- this must be the first param -->
+<!--- Version History: -->
+<!--- 0x0101: Legacy version. -->
+<!--- 0x0102: Includes acdb_ids param with the gcs_usecase tag. This matches -->
+<!--- the gcs_usecase with the acdb device that uses it. -->
+ <common_config>
+ <param implementer_version="0x0100" />
+ <param max_cpe_sessions="1" />
+ <param max_wdsp_sessions="2" />
+ <param max_ape_sessions="8" />
+ <param enable_failure_detection="false" />
+ <param support_device_switch="false" />
+ <!-- Transition will only occur if execution_type="DYNAMIC" -->
+ <param transit_to_adsp_on_playback="false" />
+ <!-- Below backend params must match with port used in mixer path file -->
+ <!-- param used to configure backend sample rate, format and channels -->
+ <param backend_port_name="SLIM_0_TX" />
+ <!-- Param used to match and obtain device backend index -->
+ <param backend_dai_name="SLIMBUS_0_TX" />
+ </common_config>
+ <acdb_ids>
+ <param DEVICE_HANDSET_MIC_APE="100" />
+ <param DEVICE_HANDSET_MIC_CPE="128" />
+ <param DEVICE_HANDSET_MIC_ECPP_CPE="128" />
+ <param DEVICE_HANDSET_TMIC_CPE="130" />
+ <param DEVICE_HANDSET_MIC_PP_APE="135" />
+ <param DEVICE_HANDSET_QMIC_APE="137" />
+ <param DEVICE_HEADSET_MIC_CPE="139" />
+ <param DEVICE_HANDSET_DMIC_APE="149" />
+ <param DEVICE_HANDSET_DMIC_CPE="153" />
+ </acdb_ids>
+ <!-- Multiple sound_model_config tags can be listed, each with unique -->
+ <!-- vendor_uuid. The below tag represents QTI SVA engine sound model -->
+ <!-- configuration. ISV must use their own unique vendor_uuid. -->
+ <sound_model_config>
+ <param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51b" />
+ <param execution_type="WDSP" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" -->
+ <param app_type="2" /> <!-- app type used in ACDB -->
+ <param library="libsmwrapper.so" />
+ <param max_cpe_phrases="6" />
+ <param max_cpe_users="3" />
+ <param max_ape_phrases="20" />
+ <param max_ape_users="10" />
+ <!-- Profile specific data which the algorithm can support -->
+ <param sample_rate="16000" />
+ <param bit_width="16" />
+ <param channel_count="1"/>
+ <!-- adm_cfg_profile should match with the one defined under adm_config -->
+ <!-- Set it to NONE if LSM directly connects to AFE -->
+ <param adm_cfg_profile="NONE" />
+ <!-- fluence_type: "FLUENCE", "FLUENCE_DMIC", "FLUENCE_TMIC", -->
+ <!-- "FLUENCE_QMIC". param value is valid when adm_cfg_profile="FLUENCE"-->
+ <param fluence_type="FLUENCE_DMIC" />
+ <!-- wdsp_fluence_type: fluence disabled: "NONE" -->
+ <!-- fluence enabled: "FLUENCE_DMIC", "FLUENCE_TMIC", "FLUENCE_QMIC" -->
+ <param wdsp_fluence_type="NONE" />
+ <arm_ss_usecase>
+ <!-- Options are "KEYWORD_DETECTION", "USER_VERIFICATION", "CUSTOM_DETECTION" -->
+ <param sm_detection_type= "KEYWORD_DETECTION" />
+ <param sm_id="0x2" />
+ <param module_lib="libcapiv2svacnn.so"/>
+ <param sample_rate="16000"/>
+ <param bit_wdith="16"/>
+ <param channel_count="1"/>
+ </arm_ss_usecase>
+ <arm_ss_usecase>
+ <param sm_detection_type= "USER_VERIFICATION" />
+ <param sm_id="0x4" />
+ <param module_lib="libcapiv2vop.so"/>
+ <param sample_rate="16000"/>
+ <param bit_wdith="16"/>
+ <param channel_count="1"/>
+ </arm_ss_usecase>
+ <gcs_usecase>
+ <param uid="0x1" />
+ <param acdb_devices="DEVICE_HANDSET_MIC_CPE, DEVICE_HANDSET_TMIC_CPE, DEVICE_HEADSET_MIC_CPE" />
+ <!-- module_id, instance_id, param_id -->
+ <param load_sound_model_ids="0x00012C0D, 0x2, 0x00012C14" />
+ <param confidence_levels_ids="0x00012C0D, 0x2, 0x00012C28" />
+ <param detection_event_ids="0x00012C0D, 0x2, 0x00012C29" />
+ <param read_cmd_ids="0x00020013, 0x2, 0x00020015" />
+ <param read_rsp_ids="0x00020013, 0x2, 0x00020016" />
+ <param custom_config_ids="0x00012C0D, 0x2, 0x00012C20" />
+ </gcs_usecase>
+ <gcs_usecase>
+ <param uid="0x2" />
+ <param acdb_devices="DEVICE_HANDSET_MIC_CPE, DEVICE_HANDSET_TMIC_CPE, DEVICE_HEADSET_MIC_CPE" />
+ <param load_sound_model_ids="0x00012C0D, 0x3, 0x00012C14" />
+ <param confidence_levels_ids="0x00012C0D, 0x3, 0x00012C28" />
+ <param detection_event_ids="0x00012C0D, 0x3, 0x00012C29" />
+ <param read_cmd_ids="0x00020013, 0x3, 0x00020015" />
+ <param read_rsp_ids="0x00020013, 0x3, 0x00020016" />
+ <param custom_config_ids="0x00012C0D, 0x3, 0x00012C20" />
+ </gcs_usecase>
+ <!-- Module and param ids with which the algorithm is integrated
+ in non-graphite firmware (note these must come after gcs params)
+ Extends flexibility to have different ids based on execution type.
+ valid execution_type values: "WDSP" "ADSP" -->
+ <lsm_usecase>
+ <param execution_mode="ADSP" />
+ <param load_sound_model_ids="0x00012C0D, 0x00012C14" />
+ <param unload_sound_model_ids="0x00012C0D, 0x00012C15" />
+ <param confidence_levels_ids="0x00012C0D, 0x00012C07" />
+ <param operation_mode_ids="0x00012C0D, 0x00012C02" />
+ <param polling_enable_ids="0x00012C0D, 0x00012C1B" />
+ <param custom_config_ids="0x00012C0D, 0x00012C20" />
+ </lsm_usecase>
+
+ <lsm_usecase>
+ <param execution_mode="WDSP" />
+ <param load_sound_model_ids="0x00012C0D, 0x00012C14" />
+ <param unload_sound_model_ids="0x00012C0D, 0x00012C15" />
+ <param confidence_levels_ids="0x00012C0D, 0x00012C07" />
+ <param operation_mode_ids="0x00012C0D, 0x00012C02" />
+ <param custom_config_ids="0x00012C0D, 0x00012C20" />
+ </lsm_usecase>
+
+ <!-- format: "ADPCM_packet" or "PCM_packet" !-->
+ <!-- transfer_mode: "FTRT" or "RT" -->
+ <!-- kw_duration is in milli seconds. It is valid only for FTRT
+ transfer mode -->
+ <param capture_keyword="PCM_packet, RT, 2000" />
+ <param capture_keyword="PCM_packet, RT, 1000" />
+ <param client_capture_read_delay="2000" />
+ </sound_model_config>
+
+ <sound_model_config> <!-- HOTWORD -->
+ <param vendor_uuid="7038ddc8-30f2-11e6-b0ac-40a8f03d3f15" />
+ <param execution_type="WDSP" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" -->
+ <param library="none" />
+ <param max_cpe_phrases="1" />
+ <param max_cpe_users="1" />
+ <gcs_usecase>
+ <param uid="0x2" />
+ <param acdb_devices="DEVICE_HANDSET_MIC_CPE, DEVICE_HANDSET_TMIC_CPE, DEVICE_HEADSET_MIC_CPE" />
+ <param load_sound_model_ids="0x18000001, 0x3, 0x00012C14" />
+ <param confidence_levels_ids="0x18000001, 0x3, 0x00012C28" />
+ <param detection_event_ids="0x18000001, 0x3, 0x00012C29" />
+ <param read_cmd_ids="0x00020013, 0x3, 0x00020015" />
+ <param read_rsp_ids="0x00020013, 0x3, 0x00020016" />
+ </gcs_usecase>
+ <param load_sound_model_ids="0x18000001, 0x00012C14" />
+ <param unload_sound_model_ids="0x18000001, 0x00012C15" />
+ <!-- kw_duration is in milli seconds. It is valid only for FTRT
+ transfer mode -->
+ <param capture_keyword="PCM_packet, RT, 2000" />
+ <param client_capture_read_delay="2000" />
+ </sound_model_config>
+
+ <!-- Multiple adm_config tags can be listed, each with unique profile name. -->
+ <!-- app_type to match corresponding value from ACDB -->
+ <adm_config>
+ <param adm_cfg_profile="DEFAULT" />
+ <param app_type="69938" />
+ <param sample_rate="16000" />
+ <param bit_width="16" />
+ </adm_config>
+
+ <adm_config>
+ <param adm_cfg_profile="FLUENCE" />
+ <param app_type="69944" />
+ <param sample_rate="16000" />
+ <param bit_width="16" />
+ </adm_config>
+
+ <adm_config>
+ <param adm_cfg_profile="FLUENCE_STEREO" />
+ <param app_type="69948" />
+ <param sample_rate="16000" />
+ <param bit_width="16" />
+ </adm_config>
+
+ <!-- backend_type tag defines backend type for each device -->
+ <!-- Default value is assumed for devices that are not listed here -->
+ <backend_type>
+ <param DEVICE_HANDSET_MIC_ECPP_CPE="BACKEND_ECPP" />
+ </backend_type>
+</sound_trigger_platform_info>
diff --git a/device.mk b/device.mk
new file mode 100644
index 0000000..080c468
--- /dev/null
+++ b/device.mk
@@ -0,0 +1,58 @@
+#
+# Copyright (C) 2018-2020 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+$(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)
+
+# Boot animation
+TARGET_SCREEN_HEIGHT := 2160
+TARGET_SCREEN_WIDTH := 1080
+
+# Overlays
+DEVICE_PACKAGE_OVERLAYS += \
+ $(LOCAL_PATH)/overlay \
+ $(LOCAL_PATH)/overlay-lineage
+
+PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \
+ $(LOCAL_PATH)/overlay-lineage/lineage-sdk
+
+# Screen density
+PRODUCT_AAPT_CONFIG := normal
+PRODUCT_AAPT_PREF_CONFIG := xxhdpi
+
+# Treble
+PRODUCT_USE_VNDK_OVERRIDE := true
+
+# Inherit from tama-common
+$(call inherit-product, device/sony/tama-common/common.mk)
+
+# Audio
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
+ $(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
+ $(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
+ $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
+ $(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
+
+# HW crypto
+PRODUCT_PACKAGES += \
+ vendor.qti.hardware.cryptfshw@1.0-service-qti.qsee
+
+# Input
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/idc/clearpad.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/clearpad.idc \
+ $(LOCAL_PATH)/idc/synaptics_tcm_touch.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/synaptics_tcm_touch.idc
+
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/keylayout/gpio-keys.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/gpio-keys.kl
+
+# NFC
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
+ $(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf \
+ $(LOCAL_PATH)/nfc/libnfc-nxp_RF.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp_RF.conf
diff --git a/extract-files.sh b/extract-files.sh
new file mode 100755
index 0000000..f33a397
--- /dev/null
+++ b/extract-files.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+# Copyright (C) 2018-2019 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+# If we're being sourced by the common script that we called,
+# stop right here. No need to go down the rabbit hole.
+if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
+ return
+fi
+
+set -e
+
+# Required!
+export DEVICE=apollo
+export DEVICE_COMMON=tama-common
+export VENDOR=sony
+
+export DEVICE_BRINGUP_YEAR=2020
+
+"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"
diff --git a/idc/clearpad.idc b/idc/clearpad.idc
new file mode 100644
index 0000000..ddfd4d7
--- /dev/null
+++ b/idc/clearpad.idc
@@ -0,0 +1,5 @@
+# Device Type
+touch.deviceType = touchScreen
+
+# Pressure
+touch.pressure.scale = 0.009
diff --git a/idc/synaptics_tcm_touch.idc b/idc/synaptics_tcm_touch.idc
new file mode 100644
index 0000000..c404c9c
--- /dev/null
+++ b/idc/synaptics_tcm_touch.idc
@@ -0,0 +1,41 @@
+# Copyright (C) 2017 Synaptics Incorporated. All rights reserved.
+#
+# Copyright (C) 2017 Scott Lin <scott.lin@tw.synaptics.com>
+#
+# Copyright (C) 2017, 2018 Sony Mobile Communications Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# INFORMATION CONTAINED IN THIS DOCUMENT IS PROVIDED "AS-IS," AND SYNAPTICS
+# EXPRESSLY DISCLAIMS ALL EXPRESS AND IMPLIED WARRANTIES, INCLUDING ANY
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
+# AND ANY WARRANTIES OF NON-INFRINGEMENT OF ANY INTELLECTUAL PROPERTY RIGHTS.
+# IN NO EVENT SHALL SYNAPTICS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OF THE INFORMATION CONTAINED IN THIS DOCUMENT, HOWEVER CAUSED
+# AND BASED ON ANY THEORY OF LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, AND EVEN IF SYNAPTICS WAS ADVISED OF
+# THE POSSIBILITY OF SUCH DAMAGE. IF A TRIBUNAL OF COMPETENT JURISDICTION DOES
+# NOT PERMIT THE DISCLAIMER OF DIRECT DAMAGES OR ANY OTHER DAMAGES, SYNAPTICS'
+# TOTAL CUMULATIVE LIABILITY TO ANY PARTY SHALL NOT EXCEED ONE HUNDRED U.S.
+# DOLLARS.
+
+device.internal = 1
+
+touch.deviceType = touchScreen
+touch.orientationAware = 1
+
+touch.size.calibration = geometric
+touch.size.scale = 1
+touch.size.bias = 0
+touch.size.isSummed = 0
+
+touch.pressure.scale = 0.008
diff --git a/keylayout/gpio-keys.kl b/keylayout/gpio-keys.kl
new file mode 100644
index 0000000..f7d143f
--- /dev/null
+++ b/keylayout/gpio-keys.kl
@@ -0,0 +1,31 @@
+# Copyright (c) 2013, The Linux Foundation. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials provided
+# with the distribution.
+# * Neither the name of The Linux Foundation nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+
+key 115 VOLUME_UP
+key 114 VOLUME_DOWN
+key 102 HOME
+key 528 FOCUS
+key 766 CAMERA
diff --git a/lineage.dependencies b/lineage.dependencies
new file mode 100644
index 0000000..5fa38d5
--- /dev/null
+++ b/lineage.dependencies
@@ -0,0 +1,6 @@
+[
+ {
+ "repository": "android_device_sony_tama-common",
+ "target_path": "device/sony/tama-common"
+ }
+]
diff --git a/lineage_apollo.mk b/lineage_apollo.mk
new file mode 100644
index 0000000..4c643bc
--- /dev/null
+++ b/lineage_apollo.mk
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2018-2020 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+# Inherit from apollo device
+$(call inherit-product, device/sony/apollo/device.mk)
+
+# Inherit some common Lineage stuff.
+$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
+
+PRODUCT_NAME := lineage_apollo
+PRODUCT_DEVICE := apollo
+PRODUCT_MANUFACTURER := Sony
+PRODUCT_BRAND := Sony
+PRODUCT_MODEL := Xperia XZ2 Compact
+
+PRODUCT_GMS_CLIENTID_BASE := android-sony
+
+PRODUCT_BUILD_PROP_OVERRIDES += \
+ PRODUCT_DEVICE="H8324" \
+ PRODUCT_NAME="H8324" \
+ PRIVATE_BUILD_DESC="H8324-user 10 52.1.A.0.618 052001A000061802006556692 release-keys"
+
+BUILD_FINGERPRINT := Sony/H8324/H8324:10/52.1.A.0.618/052001A000061802006556692:user/release-keys
diff --git a/manifest.xml b/manifest.xml
new file mode 100644
index 0000000..7c9162f
--- /dev/null
+++ b/manifest.xml
@@ -0,0 +1,61 @@
+<manifest version="1.0" type="device" target-level="3">
+ <hal format="hidl">
+ <name>android.hardware.gnss</name>
+ <transport>hwbinder</transport>
+ <version>1.0</version>
+ <interface>
+ <name>IGnss</name>
+ <instance>default</instance>
+ </interface>
+ <fqname>@1.0::IGnss/gnss_vendor</fqname>
+ </hal>
+ <hal format="hidl">
+ <name>android.hardware.keymaster</name>
+ <transport>hwbinder</transport>
+ <version>3.0</version>
+ <interface>
+ <name>IKeymasterDevice</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+ <hal format="hidl">
+ <name>vendor.lineage.livedisplay</name>
+ <transport>hwbinder</transport>
+ <version>2.0</version>
+ <interface>
+ <name>IDisplayModes</name>
+ <instance>default</instance>
+ </interface>
+ <interface>
+ <name>IPictureAdjustment</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+ <hal format="hidl">
+ <name>vendor.qti.gnss</name>
+ <transport>hwbinder</transport>
+ <version>1.2</version>
+ <interface>
+ <name>ILocHidlGnss</name>
+ <instance>gnss_vendor</instance>
+ </interface>
+ </hal>
+ <hal format="hidl">
+ <name>vendor.qti.gnss</name>
+ <transport>hwbinder</transport>
+ <version>2.0</version>
+ <interface>
+ <name>ILocHidlGnss</name>
+ <instance>gnss_vendor</instance>
+ </interface>
+ </hal>
+ <hal format="hidl">
+ <name>vendor.qti.hardware.cryptfshw</name>
+ <transport>hwbinder</transport>
+ <version>1.0</version>
+ <interface>
+ <name>ICryptfsHw</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+</manifest>
diff --git a/nfc/libnfc-nci.conf b/nfc/libnfc-nci.conf
new file mode 100644
index 0000000..5389e3e
--- /dev/null
+++ b/nfc/libnfc-nci.conf
@@ -0,0 +1,103 @@
+###################### Start of libnfc-common.conf #######################
+
+###############################################################################
+# Application options
+APPL_TRACE_LEVEL=0xFF
+PROTOCOL_TRACE_LEVEL=0xFFFFFFFF
+
+NFC_DEBUG_ENABLED=0x01
+
+###############################################################################
+# File used for NFA storage
+NFA_STORAGE="/data/nfc"
+
+###############################################################################
+# Force UICC to only listen to the following technology(s).
+# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
+# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | NFA_TECHNOLOGY_MASK_F
+UICC_LISTEN_TECH_MASK=0x07
+
+###############################################################################
+# Configure the default Destination Gate used by HCI (the default is 4, which
+# is the ETSI loopback gate.
+NFA_HCI_DEFAULT_DEST_GATE=0xF0
+
+###############################################################################
+# Forcing HOST to listen for a selected protocol
+# 0x00 : Disable Host Listen
+# 0x01 : Enable Host to Listen (A) for ISO-DEP tech A
+# 0x02 : Enable Host to Listen (B) for ISO-DEP tech B
+# 0x04 : Enable Host to Listen (F) for T3T Tag Type Protocol tech F
+# 0x07 : Enable Host to Listen (ABF)for ISO-DEP tech AB & T3T Tag Type Protocol tech F
+HOST_LISTEN_TECH_MASK=0x07
+
+###############################################################################
+# Enabling/Disabling Forward functionality
+# Disable 0x00
+# Enable 0x01
+NXP_FWD_FUNCTIONALITY_ENABLE=0x00
+
+###############################################################################
+# AID for Empty Select command
+# If specified, this AID will be substituted when an Empty SELECT command is
+# detected. The first byte is the length of the AID. Maximum length is 16.
+AID_FOR_EMPTY_SELECT={08:A0:00:00:01:51:00:00:00}
+
+###############################################################################
+# When screen is turned off, specify the desired power state of the controller.
+# 0: power-off-sleep state; DEFAULT
+# 1: full-power state
+# 2: screen-off card-emulation (CE4/CE3/CE1 modes are used)
+SCREEN_OFF_POWER_STATE=1
+
+###############################################################################
+# Default poll duration (in ms)
+# The defualt is 500ms if not set (see nfc_target.h)
+NFA_DM_DISC_DURATION_POLL=300
+
+###############################################################################
+# Force tag polling for the following technology(s).
+# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
+# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B |
+# NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 |
+# NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_KOVIO |
+# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE.
+#
+# Notable bits:
+# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */
+# NFA_TECHNOLOGY_MASK_B 0x02 /* NFC Technology B */
+# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */
+# NFA_TECHNOLOGY_MASK_ISO15693 0x08 /* Proprietary Technology */
+# NFA_TECHNOLOGY_MASK_KOVIO 0x20 /* Proprietary Technology */
+# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */
+# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */
+POLLING_TECH_MASK=0x2F
+
+###############################################################################
+# Force P2P to only listen for the following technology(s).
+# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
+# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F |
+# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE
+#
+# Notable bits:
+# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */
+# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */
+# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */
+# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */
+P2P_LISTEN_TECH_MASK=0x05
+
+PRESERVE_STORAGE=0x01
+
+###############################################################################
+# Deactivate notification wait time out in seconds used in ETSI Reader mode
+# 0 - Infinite wait
+NFA_DM_DISC_NTF_TIMEOUT=0
+
+###############################################################################
+# AID_MATCHING constants
+# AID_MATCHING_EXACT_ONLY 0x00
+# AID_MATCHING_EXACT_OR_PREFIX 0x01
+# AID_MATCHING_PREFIX_ONLY 0x02
+AID_MATCHING_MODE=0x01
+
+###############################################################################
diff --git a/nfc/libnfc-nxp.conf b/nfc/libnfc-nxp.conf
new file mode 100644
index 0000000..932e826
--- /dev/null
+++ b/nfc/libnfc-nxp.conf
@@ -0,0 +1,423 @@
+## This file is used by NFC NXP NCI HAL(external/libnfc-nci/halimpl/pn547)
+## and NFC Service Java Native Interface Extensions (packages/apps/Nfc/nci/jni/extns/pn547)
+###############################################################################
+# Application options
+# Logging Levels
+# NXPLOG_DEFAULT_LOGLEVEL 0x01
+# ANDROID_LOG_DEBUG 0x03
+# ANDROID_LOG_WARN 0x02
+# ANDROID_LOG_ERROR 0x01
+# ANDROID_LOG_SILENT 0x00
+NXPLOG_EXTNS_LOGLEVEL=0x03
+NXPLOG_NCIHAL_LOGLEVEL=0x03
+NXPLOG_NCIX_LOGLEVEL=0x03
+NXPLOG_NCIR_LOGLEVEL=0x03
+NXPLOG_FWDNLD_LOGLEVEL=0x03
+NXPLOG_TML_LOGLEVEL=0x03
+
+###############################################################################
+# Nfc Device Node name
+NXP_NFC_DEV_NODE="/dev/pn553"
+
+###############################################################################
+# Extension for Mifare reader enable
+MIFARE_READER_ENABLE=0x01
+
+###############################################################################
+# Vzw Feature enable
+VZW_FEATURE_ENABLE=0x01
+
+###############################################################################
+# File name for Firmware
+NXP_FW_NAME="libpn553_fw.so"
+
+###############################################################################
+# System clock source selection configuration
+#define CLK_SRC_XTAL 1
+#define CLK_SRC_PLL 2
+NXP_SYS_CLK_SRC_SEL=0x02
+
+###############################################################################
+# System clock frequency selection configuration
+#define CLK_FREQ_13MHZ 1
+#define CLK_FREQ_19_2MHZ 2
+#define CLK_FREQ_24MHZ 3
+#define CLK_FREQ_26MHZ 4
+#define CLK_FREQ_32MHZ 5
+#define CLK_FREQ_38_4MHZ 6
+#define CLK_FREQ_52MHZ 7
+NXP_SYS_CLK_FREQ_SEL=0x02
+
+###############################################################################
+# The timeout value to be used for clock request acknowledgment
+# min value = 0x01 to max = 0x06
+NXP_SYS_CLOCK_TO_CFG=0x06
+
+###############################################################################
+# NXP proprietary settings
+NXP_ACT_PROP_EXTN={2F, 02, 00}
+
+###############################################################################
+# NFC forum profile settings
+NXP_NFC_PROFILE_EXTN={20, 02, 05, 01, A0, 44, 01, 00}
+
+###############################################################################
+# NXP TVDD configurations settings
+# Allow NFCC to configure External TVDD, two configurations (1 and 2) supported,
+# out of them only one can be configured at a time.
+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}
+
+###############################################################################
+#config2: use DCDC in CE, use Tx_Pwr_Req, set CFG2 mode, SLALM,
+#monitoring 5V from DCDC, 3.3V for both RM and CM, DCDCWaitTime=4.2ms
+NXP_EXT_TVDD_CFG_2={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, C2, B2, 00, B2, 1E, 1F, 00, D0, 0C}
+
+###############################################################################
+# Set configuration optimization decision setting
+# Enable = 0x01
+# Disable = 0x00
+NXP_SET_CONFIG_ALWAYS=0x00
+
+###############################################################################
+# Core configuration rf field filter settings to enable set to 01 to disable set
+# to 00 last bit
+NXP_CORE_RF_FIELD={ 20, 02, 05, 01, A0, 62, 01, 00 }
+
+###############################################################################
+# To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set
+# to 0x00
+NXP_I2C_FRAGMENTATION_ENABLED=0x00
+
+###############################################################################
+# Mifare Classic Key settings
+#NXP_CORE_MFCKEY_SETTING={20, 02, 25,04, A0, 51, 06, A0, A1, A2, A3, A4, A5,
+# A0, 52, 06, D3, F7, D3, F7, D3, F7,
+# A0, 53, 06, FF, FF, FF, FF, FF, FF,
+# A0, 54, 06, 00, 00, 00, 00, 00, 00}
+
+###############################################################################
+#Enable SWP full power mode when phone is power off
+NXP_SWP_FULL_PWR_ON=0x00
+
+###############################################################################
+#### Select the CHIP ####
+#PN547C2 0x01
+#PN65T 0x02
+#PN548AD 0x03
+#PN66T 0x04
+#PN551 0x05
+#PN67T 0x06
+#PN553 0x07
+#PN80T 0x08
+NXP_NFC_CHIP=0x07
+
+###############################################################################
+# CE when Screen state is locked
+# This setting is for DEFAULT_AID_ROUTE,
+# DEFAULT_DESFIRE_ROUTE and DEFAULT_MIFARE_CLT_ROUTE
+# Disable 0x00
+# Enable 0x01
+NXP_CE_ROUTE_STRICT_DISABLE=0x01
+
+###############################################################################
+#Timeout in secs to get NFCEE Discover notification
+NXP_DEFAULT_NFCEE_DISC_TIMEOUT=20
+
+###############################################################################
+NXP_DEFAULT_NFCEE_TIMEOUT=20
+
+###############################################################################
+#Timeout in secs
+NXP_SWP_RD_START_TIMEOUT=0x0A
+
+###############################################################################
+#Timeout in secs
+NXP_SWP_RD_TAG_OP_TIMEOUT=0x01
+
+###############################################################################
+#Set the default AID route Location :
+#This settings will be used when application does not set this parameter
+# host 0x00
+# eSE 0x01
+# UICC 0x02
+DEFAULT_AID_ROUTE=0x02
+
+###############################################################################
+# Configure the default NfcA/IsoDep techology and protocol route. Can be
+# either a secure element (e.g. 0xF4) or the host (0x00)
+# host 0x00
+# eSE 0x01
+# UICC 0x02
+DEFAULT_ISODEP_ROUTE=0x02
+
+###############################################################################
+# Configure the single default SE to use. The default is to use the first
+# SE that is detected by the stack. This value might be used when the phone
+# supports multiple SE (e.g. 0xC0 and 0x80) but you want to force it to use
+# one of them (e.g. 0xC0).
+# host 0x00
+# eSE 0x01
+# UICC 0x02
+DEFAULT_OFFHOST_ROUTE=0x02
+
+###############################################################################
+# Configure the single default SE to use. The default is to use the first
+# SE that is detected by the stack. This value might be used when the phone
+# supports multiple SE (e.g. 0xF3 and 0xF4) but you want to force it to use
+# one of them (e.g. 0xF4).
+# host 0x00
+# eSE 0x01
+# UICC 0x02
+DEFAULT_TECH_ABF_ROUTE=0x02
+
+###############################################################################
+#Set the Mifare Desfire route Location :
+#This settings will be used when application does not set this parameter
+# host 0x00
+# eSE 0x01
+# UICC 0x02
+# UICC2 0x04
+DEFAULT_DESFIRE_ROUTE=0x02
+
+###############################################################################
+#Set the Mifare CLT route Location :
+#This settings will be used when application does not set this parameter
+# host 0x00
+# eSE 0x01
+# UICC 0x02
+# UICC2 0x04
+DEFAULT_MIFARE_CLT_ROUTE=0x02
+
+###############################################################################
+#Set the default Felica T3T System Code OffHost route Location :
+#This settings will be used when application does not set this parameter
+# host 0x00
+# eSE 0x01
+DEFAULT_SYS_CODE_ROUTE=0x01
+
+###############################################################################
+#Set the default AID Power state :
+#This settings will be used when application does not set this parameter
+# bit pos 0 = Switch On
+# bit pos 1 = Switch Off
+# bit pos 2 = Battery Off
+# bit pos 3 = Screen Off
+# bit pos 4 = Screen Lock
+DEFAULT_AID_PWR_STATE=0x1B
+
+###############################################################################
+#Set the Mifare Desfire Power state :
+#This settings will be used when application does not set this parameter
+# bit pos 0 = Switch On
+# bit pos 1 = Switch Off
+# bit pos 2 = Battery Off
+# bit pos 3 = Screen Off
+# bit pos 4 = Screen Lock
+DEFAULT_ISODEP_PWR_STATE=0x1B
+
+###############################################################################
+#Set the Mifare CLT Power state :
+#This settings will be used when application does not set this parameter
+# bit pos 0 = Switch On
+# bit pos 1 = Switch Off
+# bit pos 2 = Battery Off
+# bit pos 3 = Screen Off
+# bit pos 4 = Screen Lock
+DEFAULT_OFFHOST_PWR_STATE=0x1B
+
+###############################################################################
+#Set Tech A,B,F Power state :
+#This settings will be used when application does not set this parameter
+# bit pos 0 = Switch On
+# bit pos 1 = Switch Off
+# bit pos 2 = Battery Off
+# bit pos 3 = Screen Off
+# bit pos 4 = Screen Lock
+DEFAULT_TECH_ABF_PWR_STATE=0x3B
+
+###############################################################################
+#Set the SYS_CODE Power state :
+#This settings will be used when application does not set this parameter
+# bit pos 0 = Switch On
+# bit pos 1 = Switch Off
+# bit pos 2 = Battery Off
+# bit pos 3 = Screen Off
+# bit pos 4 = Screen Lock
+DEFAULT_SYS_CODE_PWR_STATE=0x00
+
+###############################################################################
+# Configure the NFC Extras to open and use a static pipe. If the value is
+# not set or set to 0, then the default is use a dynamic pipe based on a
+# destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value
+# for each UICC (where F3="UICC0" and F4="UICC1")
+OFF_HOST_ESE_PIPE_ID=0x19
+OFF_HOST_SIM_PIPE_ID=0x0A
+
+###############################################################################
+# Bail out mode
+# If set to 1, NFCC is using bail out mode for either Type A or Type B poll.
+NFA_POLL_BAIL_OUT_MODE=0x01
+
+###############################################################################
+# AID Matching platform options
+# AID_MATCHING_L 0x01
+# AID_MATCHING_K 0x02
+AID_MATCHING_PLATFORM=0x01
+
+###############################################################################
+#CHINA_TIANJIN_RF_SETTING
+#Enable 0x01
+#Disable 0x00
+NXP_CHINA_TIANJIN_RF_ENABLED=0x01
+
+###############################################################################
+#SWP_SWITCH_TIMEOUT_SETTING
+# Allowed range of swp timeout setting is 0x00 to 0x3C [0 - 60].
+# Timeout in milliseconds, for example
+# No Timeout 0x00
+# 10 millisecond timeout 0x0A
+NXP_SWP_SWITCH_TIMEOUT=0x0A
+
+###############################################################################
+# Loader service version
+# NFC service checks for LS version 2.0 or 2.1
+# LS2.0 0x20
+# LS2.1 0x21
+# LS2.2 0x22
+# AT NFC service intialization
+NXP_LOADER_SERVICE_VERSION=0x22
+
+###############################################################################
+#Timeout value in milliseconds for NFCC standby mode.The range is between 5000
+#msec to 20000 msec and zero is to disable.
+NXP_NFCC_STANDBY_TIMEOUT=20000
+
+###############################################################################
+#Dynamic RSSI feature enable
+# Disable 0x00
+# Enable 0x01
+NXP_AGC_DEBUG_ENABLE=0x00
+
+###############################################################################
+#Virtual Mode ESE and Wired Mode ongoing delay Wired Mode
+# For Technology routing to ESE Technology Mask = 4
+# For ISO-DEP Protocol routing to ESE Mask = 2
+# It can also take TECH|PROTO = 6
+# To ignore the delay set mask to = 0
+NXP_ESE_WIRED_PRT_MASK=0x00
+
+###############################################################################
+#Virtual Mode UICC and Wired Mode ongoing delay Wired Mode
+#For Technology routing to UICC Technology Mask = 4
+#For ISO-DEP Protocol routing to UICC set Mask = 2
+#For Select AID Routing to UICC set Mask = 1
+#It can also take values TECH|PROTO|SELECT_AID = 7 , 6 , 5 ,3 .To ignore delay
+#set mask = 0
+NXP_UICC_WIRED_PRT_MASK=0x00
+
+###############################################################################
+#RF field true delay Wired Mode
+# delay wired mode = 1
+# allow wired mode = 0
+NXP_WIRED_MODE_RF_FIELD_ENABLE=0x00
+
+###############################################################################
+#Config to allow adding aids
+#NFC on/off is required after this config
+#1 = enabling adding aid to NFCC routing table.
+#0 = disabling adding aid to NFCC routing table.
+NXP_ENABLE_ADD_AID=0x01
+
+###############################################################################
+# JCOP-3.3 continuous process timeout in msec and value should be in Hexadecimal
+# JCOP CP TIMEOUT
+NXP_CP_TIMEOUT={00, 77}
+
+###############################################################################
+# Enable/Disable checking default proto SE Id
+# Disable 0x00
+# Enable 0x01
+NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01
+
+###############################################################################
+#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE
+#Enable/Disable block number checks for china transit use case
+#Enable 0x01
+#Disable 0x00
+NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE=0x01
+
+###############################################################################
+#Enable NXP NCI runtime parser library
+#Enable 0x01
+#Disable 0x00
+NXP_NCI_PARSER_LIBRARY=0x00
+
+###############################################################################
+#This config will enable different level of Rf transaction debugs based on the
+#following values provided. Decoded information will be printed in adb logcat
+#Debug Mode Levels
+#Disable Debug 0x00
+#L1 Debug 0x01
+#L2 Debug 0x02
+#L1 & L2 Debug 0x03
+#L1 & L2 & RSSI 0x04
+#L1 & L2 & Felica 0x05
+#NXP_CORE_PROP_SYSTEM_DEBUG=0x00
+
+###############################################################################
+# Enable/Disable Block Route feature.
+# Block Route will restrict routing to first matched rule
+# Block Route enable 0x01
+# Block Route disable 0x00
+AID_BLOCK_ROUTE=0x01
+
+###############################################################################
+# Enable or Disable RF_STATUS_UPDATE to EseHal module
+# Disable 0x00
+# Enable 0x01
+RF_STATUS_UPDATE_ENABLE=0x00
+
+###############################################################################
+# Timeout value in milliseconds to send response for Felica command received
+NXP_HCEF_CMD_RSP_TIMEOUT_VALUE=5000
+###############################################################################
+# Vendor Specific Proprietary Protocol & Discovery Configuration
+# Set to 0xFF if unsupported
+# byte[0] NCI_PROTOCOL_18092_ACTIVE
+# byte[1] NCI_PROTOCOL_B_PRIME
+# byte[2] NCI_PROTOCOL_DUAL
+# byte[3] NCI_PROTOCOL_15693
+# byte[4] NCI_PROTOCOL_KOVIO
+# byte[5] NCI_PROTOCOL_MIFARE
+# byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO
+# byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME
+# byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
+NFA_PROPRIETARY_CFG={05, FF, FF, 06, 81, 80, 70, FF, FF}
+
+###############################################################################
+#White list of Hosts
+#This values will be the Hosts(NFCEEs) in the HCI Network.
+DEVICE_HOST_WHITE_LIST={C0, 02}
+
+###############################################################################
+#OffHost UICC route location for MultiSE
+#UICC1 = 02
+#UICC2 = 03
+OFFHOST_ROUTE_UICC={02}
+
+###############################################################################
+# Choose the presence-check algorithm for type-4 tag. If not defined, the default value is 1.
+# 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm
+# 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block
+# 2 NFA_RW_PRES_CHK_ISO_DEP_NAK; Type - 4 tag protocol iso-dep nak presence check
+PRESENCE_CHECK_ALGORITHM=2
+
+###############################################################################
+# Extended APDU length for ISO_DEP
+ISO_DEP_MAX_TRANSCEIVE=0xFEFF
+
+###############################################################################
diff --git a/nfc/libnfc-nxp_RF.conf b/nfc/libnfc-nxp_RF.conf
new file mode 100644
index 0000000..f7d6215
--- /dev/null
+++ b/nfc/libnfc-nxp_RF.conf
@@ -0,0 +1,239 @@
+###############################################################################
+# NXP RF configuration ALM/PLM settings
+# This section needs to be updated with the correct values based on the platform
+NXP_RF_CONF_BLK_1={
+ 20, 02, FB, 1E,
+ A0, 0D, 06, 02, 35, 00, 3E, 00, 00,
+ A0, 0D, 06, 04, 35, F5, 05, 80, 01,
+ A0, 0D, 06, C2, 34, F7, 7F, 10, 08,
+ A0, 0D, 06, C2, 33, 03, 40, 04, 80,
+ A0, 0D, 06, 06, 44, 04, 04, C4, 00,
+ A0, 0D, 06, 06, 30, 70, 00, 18, 00,
+ A0, 0D, 06, 06, 2F, EF, AD, 80, 01,
+ A0, 0D, 06, 06, 85, 25, 13, 00, 00,
+ A0, 0D, 03, 32, 0D, 26,
+ A0, 0D, 03, 32, 14, 26,
+ A0, 0D, 06, 34, 2D, DC, 20, 04, 00,
+ A0, 0D, 06, 34, 44, 66, 0A, 00, 00,
+ A0, 0D, 06, 3C, 2D, 05, 35, 1E, 01,
+ A0, 0D, 06, 3C, 44, 65, 09, 00, 00,
+ A0, 0D, 03, 3E, 0D, 08,
+ A0, 0D, 03, 3E, 14, 08,
+ A0, 0D, 06, 40, 2D, 05, 45, 1E, 01,
+ A0, 0D, 06, 40, 44, 65, 09, 00, 00,
+ A0, 0D, 06, 42, 4A, 11, 07, 01, 1B,
+ A0, 0D, 03, 42, 0D, 04,
+ A0, 0D, 03, 42, 14, 04,
+ A0, 0D, 06, 44, 2D, 05, 25, 0F, 01,
+ A0, 0D, 06, 44, 44, 55, 0A, 00, 00,
+ 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, 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
+}
+
+###############################################################################
+# NXP RF configuration ALM/PLM settings
+# This section needs to be updated with the correct values based on the platform
+NXP_RF_CONF_BLK_2={
+ 20, 02, FA, 1D,
+ A0, 0D, 04, 4A, 42, 70, 40,
+ A0, 0D, 06, 50, 44, 65, 09, 00, 00,
+ A0, 0D, 06, 50, 2D, 05, 35, 1E, 01,
+ A0, 0D, 06, 4E, 4A, 32, 07, 01, 07,
+ A0, 0D, 04, 4E, 42, 70, 40,
+ A0, 0D, 06, 54, 44, 65, 0A, 00, 00,
+ 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, 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, 5C, 4A, 11, 07, 01, 07,
+ A0, 0D, 06, 30, 44, 05, 04, C4, 00,
+ A0, 0D, 06, 30, 85, 25, 03, 00, 00,
+ A0, 0D, 06, 70, 44, 04, 04, C4, 00,
+ A0, 0D, 06, 70, 85, 25, 13, 00, 00,
+ A0, 0D, 06, 78, 44, 02, 04, C4, 00,
+ A0, 0D, 06, 78, 85, 25, 03, 00, 00,
+ A0, 0D, 04, 78, 2E, 60, 69,
+ A0, 0D, 06, 7C, 2F, 51, 0E, 10, C1,
+ A0, 0D, 06, 80, 2F, E3, AD, 80, 04,
+ A0, 0D, 06, 80, 30, 70, 00, 18, 00,
+ A0, 0D, 06, 80, 44, 04, 04, C4, 00,
+ A0, 0D, 06, 80, 85, 25, 13, 00, 00,
+ A0, 0D, 06, 8C, 2F, 6F, 5C, 80, 04,
+ A0, 0D, 06, 8C, 30, 70, 00, 18, 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_3={
+ 20, 02, 5F, 0B,
+ A0, 0D, 06, 0A, 34, F7, 7F, 10, 08,
+ A0, 0D, 06, 0A, 33, 03, 40, 04, 80,
+ A0, 0D, 06, C6, 42, 78, 40, FF, FF,
+ A0, 0D, 06, C8, 42, 88, 40, FF, FF,
+ A0, 0D, 04, CA, 42, 70, 40,
+ 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, 06, 04, 42, F8, 40, FF, FF,
+ A0, 0D, 06, 06, 37, 28, 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,
+ 00, 00, 08, 02, 00, 00, 08, 02,
+ 00, 00, 08, 02, 00, 00, 08, 02,
+ 00, 00, 08, 02, 00, 00, 08, 02,
+ 00, 00, 48, 01, 00, 00, 08, 03,
+ 00, 00, 08, 01, 00, 00, C8, 02,
+ 00, 00, C8, 00, 00, 00, 88, 02,
+ 00, 00, 48, 02, 00, 00, B8, 00,
+ 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,
+ 00, 00, 08, 02, 00, 00, 08, 02,
+ 00, 00, 08, 02, 00, 00, 08, 02,
+ 00, 00, 08, 02, 00, 00, 08, 02,
+ 00, 00, 48, 01, 00, 00, 08, 03,
+ 00, 00, 08, 01, 00, 00, C8, 02,
+ 00, 00, C8, 00, 00, 00, 88, 02,
+ 00, 00, 48, 02, 00, 00, B8, 00,
+ 00, 00, 68, 00, 00, 00, 18, 00,
+ 00, 00, 08, 02, 00, 00, 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_5={
+ 20, 02, 5B, 01, A0, 0B, 57, 03, 03, 90, 78, 0F,
+ 4E, 00, 3D, 95,
+ 00, 00, 3D, 95,
+ 00, 00, 50, 95,
+ 00, 00, 59, 95,
+ 00, 00, 5A, 1F,
+ 00, 00, 64, 1F,
+ 00, 00, 65, 1F,
+ 00, 00, 6E, 1F,
+ 00, 00, 72, 1F,
+ 00, 00, 79, 1F,
+ 00, 00, 7B, 1F,
+ 00, 00, 84, 1F,
+ 00, 00, 86, 1F,
+ 00, 00, 8F, 1F,
+ 00, 00, 91, 1F,
+ 00, 00, 9A, 1F,
+ 00, 00, A1, 1F,
+ 00, 00, A7, 1F,
+ 00, 00, B0, 1F,
+ 00, 00, B9, 1F,
+ 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_6={
+#}
+
+###############################################################################
+# Core configuration extensions
+# It includes
+# Wired mode settings A0ED, A0EE
+# Tag Detector A040, A041, A043
+# Low Power mode A007
+# Clock settings A002, A003
+# PbF settings A008
+# Clock timeout settings A004
+# eSE (SVDD) PWR REQ settings A0F2
+# How eSE connected to PN553 A012
+# UICC bit rate A0D1
+# 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,
+ 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, 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, A9, 32,
+ 00, 00, 00, 00, 00,
+ 00, 00, 00, 00, 00,
+ 00, 00, 00, 00, 00,
+ 00, 00, 00, 00, 00,
+ 00, 00, 00, 00, 00,
+ 00, 00, 00, 00, 00,
+ 00, 00, 00, 00, 00,
+ 00, 00, 00, 00, 00,
+ 00, 00, 00, 00, 00,
+ 00, 00, 00, 00, 00,
+ A0, 86, 01, 77
+ }
+# A0, F2, 01, 01,
+# A0, 40, 01, 01,
+# A0, 41, 01, 02,
+# A0, 43, 01, 04,
+# A0, 02, 01, 01,
+# A0, 03, 01, 11,
+# A0, 07, 01, 03,
+# A0, 08, 01, 01
+# }
+
+###############################################################################
+# Core configuration settings
+NXP_CORE_CONF={ 20, 02, 39, 0F,
+ 28, 01, 00,
+ 21, 01, 00,
+ 30, 01, 08,
+ 31, 01, 03,
+ 32, 01, 60,
+ 38, 01, 01,
+ 33, 04, 01, 02, 03, 04,
+ 54, 01, 06,
+ 50, 01, 02,
+ 5B, 01, 00,
+ 80, 01, 01,
+ 81, 01, 01,
+ 82, 01, 0E,
+ 18, 01, 01,
+ A0, 3A, 08, 64, 00, 64, 00, 64, 00, 64, 00
+ }
+###############################################################################
+
diff --git a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
new file mode 100644
index 0000000..a127226
--- /dev/null
+++ b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015-2016 The CyanogenMod Project
+ 2017-2018 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.
+-->
+<resources>
+ <!-- All the capabilities of the LEDs on this device, stored as a bit field.
+ This integer should equal the sum of the corresponding value for each
+ of the following capabilities present:
+
+ // Device has a color adjustable battery light.
+ LIGHTS_RGB_NOTIFICATION_LED = 1
+
+ // Device has a color adjustable notification light.
+ LIGHTS_RGB_BATTERY_LED = 2
+
+ LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated)
+
+ // The notification light has adjustable pulsing capability.
+ LIGHTS_PULSATING_LED = 8
+
+ // Device has a multi-segment battery light that is able to
+ // use the light brightness value to determine how many
+ // segments to show (in order to represent battery level).
+ LIGHTS_SEGMENTED_BATTERY_LED = 16
+
+ // The notification light supports HAL adjustable brightness
+ // via the alpha channel.
+ // Note: if a device notification light supports LIGHTS_RGB_NOTIFICATION_LED
+ // then HAL support is not necessary for brightness control. In this case,
+ // brightness support will be provided by lineage-sdk through the scaling of
+ // RGB color values.
+ LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
+
+ // Device has a battery light.
+ LIGHTS_BATTERY_LED = 64
+
+ // The battery light supports HAL adjustable brightness via
+ // the alpha channel.
+ // Note: if a device battery light supports LIGHTS_RGB_BATTERY_LED then HAL
+ // support is not necessary for brightness control. In this case,
+ // brightness support will be provided by lineage-sdk through the scaling of
+ // RGB color values.
+ LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS = 128
+
+ For example, a device with notification and battery lights that supports
+ pulsating and RGB control would set this config to 75. -->
+ <integer name="config_deviceLightCapabilities">107</integer>
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..216814d
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,197 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2009, 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.
+ */
+-->
+
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. Do not translate. -->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- Flag indicating whether we should enable the automatic brightness.
+ Software implementation will be used if config_hardware_auto_brightness_available is not set -->
+ <bool name="config_automatic_brightness_available">true</bool>
+
+ <!-- Whether the display blanks itself when transitioning from a doze to a non-doze state -->
+ <bool name="config_displayBlanksAfterDoze">true</bool>
+
+ <!-- Whether to enable network location overlay which allows network
+ location provider to be replaced by an app at run-time. When disabled,
+ only the config_networkLocationProviderPackageName package will be
+ searched for network location provider, otherwise packages whose
+ signature matches the signatures of config_locationProviderPackageNames
+ will be searched, and the service with the highest version number will
+ be picked. Anyone who wants to disable the overlay mechanism can set it
+ to false.
+ -->
+ <bool name="config_enableNetworkLocationOverlay" translatable="false">true</bool>
+
+ <!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
+ <bool name="config_intrusiveNotificationLed">true</bool>
+
+ <!-- User activity timeout: Maximum screen dim duration as a percentage of screen off timeout.
+ This resource is similar to config_maximumScreenDimDuration but the maximum
+ screen dim duration is defined as a ratio of the overall screen off timeout
+ instead of as an absolute value in milliseconds. This is useful for reducing
+ the dim duration when the screen off timeout is very short.
+ When computing the screen dim duration, the power manager uses the lesser
+ of the effective durations expressed by config_maximumScreenDimDuration and
+ config_maximumScreenDimRatio.
+ This value must be between 0% and 100%. If the value is zero, the screen will not
+ dim before the device goes to sleep.
+ -->
+ <fraction name="config_maximumScreenDimRatio">29.999996%</fraction>
+
+ <!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
+ for debouncing the light sensor. Different constants are used to debounce the light sensor
+ when adapting to brighter or darker environments. This parameter controls how quickly
+ brightness changes occur in response to an observed change in light level that exceeds the
+ hysteresis threshold. -->
+ <integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
+ <integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
+
+ <!-- Default screen brightness setting.
+ Must be in the range specified by minimum and maximum. -->
+ <integer name="config_screenBrightnessSettingDefault">128</integer>
+
+ <!-- Screen brightness used to dim the screen when the user activity
+ timeout expires. May be less than the minimum allowed brightness setting
+ that can be set by the user. -->
+ <integer name="config_screenBrightnessDim">1</integer>
+
+ <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
+ The N entries of this array define N 1 zones as follows:
+
+ Zone 0: 0 <= LUX < array[0]
+ Zone 1: array[0] <= LUX < array[1]
+ ...
+ Zone N: array[N - 1] <= LUX < array[N]
+ Zone N + 1 array[N] <= LUX < infinity
+
+ Must be overridden in platform specific overlays -->
+ <integer-array name="config_autoBrightnessLevels">
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ <item>8</item>
+ <item>12</item>
+ <item>20</item>
+ <item>33</item>
+ <item>55</item>
+ <item>90</item>
+ <item>148</item>
+ <item>245</item>
+ <item>403</item>
+ <item>665</item>
+ <item>1097</item>
+ <item>1808</item>
+ <item>2981</item>
+ <item>5000</item>
+ </integer-array>
+
+ <!-- Array of desired screen brightness in nits corresponding to the lux values
+ in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
+ config_screenBrightnessMaximumNits, the display brightness is defined as the measured
+ brightness of an all-white image.
+
+ If this is defined then:
+ - config_autoBrightnessLcdBacklightValues should not be defined
+ - config_screenBrightnessNits must be defined
+ - config_screenBrightnessBacklight must be defined
+
+ This array should have size one greater than the size of the config_autoBrightnessLevels
+ array. The brightness values must be non-negative and non-decreasing. This must be
+ overridden in platform specific overlays -->
+ <array name="config_autoBrightnessDisplayValuesNits">
+ <item>10.45935</item> <!-- 0-1 -->
+ <item>29.25559</item> <!-- 1-2 -->
+ <item>34.240692</item> <!-- 2-3 -->
+ <item>37.514347</item> <!-- 3-4 -->
+ <item>40.018696</item> <!-- 4-8 -->
+ <item>46.885098</item> <!-- 8-12 -->
+ <item>51.626434</item> <!-- 12-20 -->
+ <item>58.610405</item> <!-- 20-33 -->
+ <item>66.890915</item> <!-- 33-55 -->
+ <item>77.61644</item> <!-- 55-90 -->
+ <item>90.221886</item> <!-- 90-148 -->
+ <item>105.80314</item> <!-- 148-245 -->
+ <item>126.073845</item> <!-- 245-403 -->
+ <item>154.16931</item> <!-- 403-665 -->
+ <item>191.83717</item> <!-- 665-1097 -->
+ <item>240.74442</item> <!-- 1097-1808 -->
+ <item>294.84857</item> <!-- 1808-2981 -->
+ <item>348.05453</item> <!-- 2981-5000 -->
+ <item>389.70</item> <!-- 5000+ -->
+ </array>
+
+ <!-- Minimum screen brightness setting allowed by the power manager.
+ The user is forbidden from setting the brightness below this level. -->
+ <integer name="config_screenBrightnessSettingMinimum">1</integer>
+
+ <!-- An array describing the screen's backlight values corresponding to the brightness
+ values in the config_screenBrightnessNits array.
+
+ This array should be equal in size to config_screenBrightnessBacklight. -->
+ <integer-array name="config_screenBrightnessBacklight">
+ <item>0</item>
+ <item>15</item>
+ <item>30</item>
+ <item>45</item>
+ <item>60</item>
+ <item>75</item>
+ <item>90</item>
+ <item>105</item>
+ <item>120</item>
+ <item>135</item>
+ <item>150</item>
+ <item>165</item>
+ <item>180</item>
+ <item>195</item>
+ <item>210</item>
+ <item>225</item>
+ <item>240</item>
+ <item>255</item>
+ </integer-array>
+
+ <!-- An array of floats describing the screen brightness in nits corresponding to the backlight
+ values in the config_screenBrightnessBacklight array. On OLED displays these values
+ should be measured with an all white image while the display is in the fully on state.
+ Note that this value should *not* reflect the maximum brightness value for any high
+ brightness modes but only the maximum brightness value obtainable in a sustainable manner.
+
+ This array should be equal in size to config_screenBrightnessBacklight -->
+ <array name="config_screenBrightnessNits">
+ <item>0</item>
+ <item>26.11</item>
+ <item>50.5</item>
+ <item>74.17</item>
+ <item>96.89</item>
+ <item>118.3</item>
+ <item>139.8</item>
+ <item>162.9</item>
+ <item>189.8</item>
+ <item>217.4</item>
+ <item>240.4</item>
+ <item>265.3</item>
+ <item>288.7</item>
+ <item>316</item>
+ <item>340.8</item>
+ <item>357.9</item>
+ <item>376.2</item>
+ <item>392.9</item>
+ </array>
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
new file mode 100644
index 0000000..a936810
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="utf-8"?>
+<device name="Android">
+ <item name="ambient.on">44.37</item>
+ <item name="screen.on">44.37</item>
+ <item name="screen.full">281.40</item>
+ <item name="bluetooth.active">0</item>
+ <item name="bluetooth.on">0</item>
+ <item name="wifi.on">1.46</item>
+ <item name="wifi.active">92.06</item>
+ <item name="wifi.scan">256.24</item>
+ <item name="audio">38.56</item>
+ <item name="video">140.89</item>
+ <item name="camera.flashlight">47.75</item>
+ <item name="camera.avg">579.00</item>
+ <item name="radio.active">97.37</item>
+ <item name="radio.scanning">10.94</item>
+ <array name="radio.on">
+ <value>4.70</value>
+ <value>4.70</value>
+ <value>4.70</value>
+ <value>4.70</value>
+ <value>4.70</value>
+ </array>
+ <array name="cpu.clusters.cores">
+ <value>4</value>
+ <value>4</value>
+ </array>
+ <array name="cpu.core_speeds.cluster0">
+ <value>300000</value>
+ <value>403200</value>
+ <value>480000</value>
+ <value>576000</value>
+ <value>652800</value>
+ <value>748800</value>
+ <value>825600</value>
+ <value>902400</value>
+ <value>979200</value>
+ <value>1056000</value>
+ <value>1132800</value>
+ <value>1228800</value>
+ <value>1324800</value>
+ <value>1420800</value>
+ <value>1516800</value>
+ <value>1612800</value>
+ <value>1689600</value>
+ <value>1766400</value>
+ </array>
+ <array name="cpu.core_speeds.cluster1">
+ <value>825600</value>
+ <value>902400</value>
+ <value>979200</value>
+ <value>1056000</value>
+ <value>1209600</value>
+ <value>1286400</value>
+ <value>1363200</value>
+ <value>1459200</value>
+ <value>1536000</value>
+ <value>1612800</value>
+ <value>1689600</value>
+ <value>1766400</value>
+ <value>1843200</value>
+ <value>1920000</value>
+ <value>1996800</value>
+ <value>2092800</value>
+ <value>2169600</value>
+ <value>2246400</value>
+ <value>2323200</value>
+ <value>2400000</value>
+ <value>2476800</value>
+ <value>2553600</value>
+ <value>2649600</value>
+ </array>
+ <array name="cpu.core_power.cluster0">
+ <value>27</value>
+ <value>28</value>
+ <value>28</value>
+ <value>29</value>
+ <value>29</value>
+ <value>30</value>
+ <value>30</value>
+ <value>31</value>
+ <value>31</value>
+ <value>32</value>
+ <value>33</value>
+ <value>34</value>
+ <value>35</value>
+ <value>36</value>
+ <value>37</value>
+ <value>39</value>
+ <value>41</value>
+ <value>43</value>
+ </array>
+ <array name="cpu.core_power.cluster1">
+ <value>38</value>
+ <value>43</value>
+ <value>44</value>
+ <value>46</value>
+ <value>48</value>
+ <value>50</value>
+ <value>51</value>
+ <value>54</value>
+ <value>56</value>
+ <value>58</value>
+ <value>60</value>
+ <value>63</value>
+ <value>66</value>
+ <value>68</value>
+ <value>71</value>
+ <value>79</value>
+ <value>88</value>
+ <value>91</value>
+ <value>93</value>
+ <value>102</value>
+ <value>109</value>
+ <value>118</value>
+ <value>129</value>
+ </array>
+ <item name="cpu.suspend">0.01</item>
+ <item name="cpu.idle">12.20</item>
+ <item name="cpu.active">0.01</item>
+ <array name="memory.bandwidths">
+ <value>37.2</value>
+ <value>39.4</value>
+ <value>40.2</value>
+ <value>49.5</value>
+ <value>55.0</value>
+ <value>64.0</value>
+ <value>77.0</value>
+ <value>82.8</value>
+ <value>103.0</value>
+ <value>117.4</value>
+ <value>128.0</value>
+ <value>143.9</value>
+ </array>
+ <item name="battery.capacity">2760</item>
+ <item name="wifi.controller.idle">0.00</item>
+ <item name="wifi.controller.rx">5.55</item>
+ <item name="wifi.controller.tx">6.70</item>
+ <array name="wifi.controller.tx_levels" />
+ <item name="wifi.controller.voltage">600.00</item>
+ <array name="wifi.batchedscan">
+ <value>.0002</value>
+ <value>.002</value>
+ <value>.02</value>
+ <value>.2</value>
+ <value>2</value>
+ </array>
+ <item name="modem.controller.idle">0.78</item>
+ <item name="modem.controller.rx">80.85</item>
+ <array name="modem.controller.tx">
+ <value>75.11</value>
+ <value>75.11</value>
+ <value>75.11</value>
+ <value>75.11</value>
+ <value>75.11</value>
+ </array>
+ <item name="modem.controller.voltage">575</item>
+ <item name="bluetooth.controller.idle">0.01</item>
+ <item name="bluetooth.controller.rx">60.00</item>
+ <item name="bluetooth.controller.tx">46.94</item>
+ <item name="bluetooth.controller.voltage">600.00</item>
+ <array name="gps.signalqualitybased">
+ <value>41.05</value>
+ <value>10.26</value>
+ </array>
+ <item name="gps.voltage">3700</item>
+</device> \ No newline at end of file
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values-sw360dp/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values-sw360dp/dimens.xml
new file mode 100644
index 0000000..7de2629
--- /dev/null
+++ b/overlay/frameworks/base/packages/SystemUI/res/values-sw360dp/dimens.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (c) 2006, 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.
+*/
+-->
+<resources>
+ <dimen name="rounded_corner_radius">4dp</dimen>
+ <dimen name="rounded_corner_content_padding">10dp</dimen>
+</resources>
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
new file mode 100644
index 0000000..4222fd2
--- /dev/null
+++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2009, 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.
+*/
+-->
+
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. -->
+<resources>
+ <!-- Should "4G" be shown instead of "LTE" when the network is NETWORK_TYPE_LTE? -->
+ <bool name="config_show4GForLTE">true</bool>
+</resources>
diff --git a/proprietary-files.txt b/proprietary-files.txt
new file mode 100644
index 0000000..37f0bcb
--- /dev/null
+++ b/proprietary-files.txt
@@ -0,0 +1,754 @@
+# ACDB
+vendor/etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb
+vendor/etc/acdbdata/MTP/MTP_Codec_cal.acdb
+vendor/etc/acdbdata/MTP/MTP_General_cal.acdb
+vendor/etc/acdbdata/MTP/MTP_Global_cal.acdb
+vendor/etc/acdbdata/MTP/MTP_Handset_cal.acdb
+vendor/etc/acdbdata/MTP/MTP_Hdmi_cal.acdb
+vendor/etc/acdbdata/MTP/MTP_Headset_cal.acdb
+vendor/etc/acdbdata/MTP/MTP_Speaker_cal.acdb
+vendor/etc/acdbdata/MTP/MTP_workspaceFile.qwsp
+vendor/etc/acdbdata/QRD/QRD_Bluetooth_cal.acdb
+vendor/etc/acdbdata/QRD/QRD_Codec_cal.acdb
+vendor/etc/acdbdata/QRD/QRD_General_cal.acdb
+vendor/etc/acdbdata/QRD/QRD_Global_cal.acdb
+vendor/etc/acdbdata/QRD/QRD_Handset_cal.acdb
+vendor/etc/acdbdata/QRD/QRD_Hdmi_cal.acdb
+vendor/etc/acdbdata/QRD/QRD_Headset_cal.acdb
+vendor/etc/acdbdata/QRD/QRD_Speaker_cal.acdb
+vendor/etc/acdbdata/QRD/QRD_workspaceFile.qwsp
+vendor/etc/acdbdata/Sony_tama_Bluetooth_cal.acdb
+vendor/etc/acdbdata/Sony_tama_Codec_cal.acdb
+vendor/etc/acdbdata/Sony_tama_General_cal.acdb
+vendor/etc/acdbdata/Sony_tama_Global_cal.acdb
+vendor/etc/acdbdata/Sony_tama_Handset_cal.acdb
+vendor/etc/acdbdata/Sony_tama_Hdmi_cal.acdb
+vendor/etc/acdbdata/Sony_tama_Headset_cal.acdb
+vendor/etc/acdbdata/Sony_tama_Speaker_cal.acdb
+vendor/etc/acdbdata/workspaceFile_Sony_tama.qwsp
+vendor/etc/acdbdata/adsp_avs_config.acdb
+vendor/lib64/libacdbloader.so
+vendor/lib/libacdbloader.so
+
+# Bluetooth
+vendor/bin/hw/android.hardware.bluetooth@1.0-service-qti
+vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc
+vendor/lib64/hw/android.hardware.bluetooth@1.0-impl-qti.so
+vendor/lib64/libbtnv.so
+vendor/lib/hw/android.hardware.bluetooth@1.0-impl-qti.so
+vendor/lib/libbtnv.so
+
+# Camera
+vendor/bin/hw/vendor.somc.hardware.camera.provider@1.0-service
+vendor/camera/CHI05BN1/color_ctrl.dat
+vendor/camera/CHI05BN1/dataflow.dat
+vendor/camera/CHI05BN1/exposure_ctrl.dat
+vendor/camera/CHI05BN1/exposure_ctrl_diagram.dat
+vendor/camera/CHI05BN1/face_detector.dat
+vendor/camera/CHI05BN1/flicker_detector.dat
+vendor/camera/CHI05BN1/food_comp_yummy.dat
+vendor/camera/CHI05BN1/food_detector.dat
+vendor/camera/CHI05BN1/fusion_comp.dat
+vendor/camera/CHI05BN1/fusion_comp_financier_coef.dat
+vendor/camera/CHI05BN1/fusion_comp_financier.dat
+vendor/camera/CHI05BN1/fusion_comp_melonpan.dat
+vendor/camera/CHI05BN1/fusion_comp_raisin.dat
+vendor/camera/CHI05BN1/hal_ctrl_bps_gamma16.dat
+vendor/camera/CHI05BN1/hal_ctrl.dat
+vendor/camera/CHI05BN1/hal_ctrl_fusion_ctrl.dat
+vendor/camera/CHI05BN1/hal_ctrl_ife_abf34.dat
+vendor/camera/CHI05BN1/hal_ctrl_ife_abf34_disable.dat
+vendor/camera/CHI05BN1/hal_ctrl_ife_bls12.dat
+vendor/camera/CHI05BN1/hal_ctrl_ife_bpcbcc50.dat
+vendor/camera/CHI05BN1/hal_ctrl_ife_cst12.dat
+vendor/camera/CHI05BN1/hal_ctrl_ife_demosaic36.dat
+vendor/camera/CHI05BN1/hal_ctrl_ife_gamma16.dat
+vendor/camera/CHI05BN1/hal_ctrl_ife_linearization33.dat
+vendor/camera/CHI05BN1/hal_ctrl_ife_lsc34.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_anr10_dc04.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_anr10_dc16.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_anr10_dc64.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_anr10_disable.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_anr10_full.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_asf30.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_cc13.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_cs20.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_cst12.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_cv12.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_gamma15.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_gra10.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_ltm13.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_tdl10.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_tf10_dc04.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_tf10_dc16.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_tf10_dc64.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_tf10_disable.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_tf10_full.dat
+vendor/camera/CHI05BN1/hal_ctrl_ipe_upscale20.dat
+vendor/camera/CHI05BN1/hal_ctrl_platform_nree.dat
+vendor/camera/CHI05BN1/hal_ctrl_sensor_isp_color.dat
+vendor/camera/CHI05BN1/hal_ctrl_sensor_isp_fsn.dat
+vendor/camera/CHI05BN1/hal_ctrl_sensor_isp_lin_ne.dat
+vendor/camera/CHI05BN1/hdr_comp.dat
+vendor/camera/CHI05BN1/idt_ctrl.dat
+vendor/camera/CHI05BN1/image_conv_canele.dat
+vendor/camera/CHI05BN1/image_conv_cheesescone.dat
+vendor/camera/CHI05BN1/image_conv.dat
+vendor/camera/CHI05BN1/image_conv_ipe_asf30.dat
+vendor/camera/CHI05BN1/image_conv_ipe_cs20.dat
+vendor/camera/CHI05BN1/image_conv_ipe_gra10.dat
+vendor/camera/CHI05BN1/image_conv_ipe_upscale20.dat
+vendor/camera/CHI05BN1/image_conv_marble.dat
+vendor/camera/CHI05BN1/image_conv_platform_nree.dat
+vendor/camera/CHI05BN1/image_conv_raisin.dat
+vendor/camera/CHI05BN1/image_conv_spica.dat
+vendor/camera/CHI05BN1/lens_ctrl_common.dat
+vendor/camera/CHI05BN1/lens_ctrl.dat
+vendor/camera/CHI05BN1/motion_detector.dat
+vendor/camera/CHI05BN1/motion_detector_sumomo.dat
+vendor/camera/CHI05BN1/motion_estimation.dat
+vendor/camera/CHI05BN1/multiframe_nr.dat
+vendor/camera/CHI05BN1/multiframe_nr_melonpan.dat
+vendor/camera/CHI05BN1/multiframe_nr_mugichoco.dat
+vendor/camera/CHI05BN1/multiframe_nr_toppo.dat
+vendor/camera/CHI05BN1/object_detector.dat
+vendor/camera/CHI05BN1/object_tracker.dat
+vendor/camera/CHI05BN1/prc_image_conv.dat
+vendor/camera/CHI05BN1/process_ctrl.dat
+vendor/camera/CHI05BN1/raw_proc_bps_abf40.dat
+vendor/camera/CHI05BN1/raw_proc_bps_abf40_disable.dat
+vendor/camera/CHI05BN1/raw_proc_bps_bls12.dat
+vendor/camera/CHI05BN1/raw_proc_bps_demosaic36.dat
+vendor/camera/CHI05BN1/raw_proc_bps_gic30.dat
+vendor/camera/CHI05BN1/raw_proc_bps_hnr10.dat
+vendor/camera/CHI05BN1/raw_proc_bps_hnr10_disable.dat
+vendor/camera/CHI05BN1/raw_proc_bps_linearization34.dat
+vendor/camera/CHI05BN1/raw_proc_bps_pdpc20.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_anr10_dc04.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_anr10_dc16.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_anr10_dc64.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_anr10_disable.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_anr10_full.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_asf30.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_cs20.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_gra10.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_tf10_dc04.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_tf10_dc16.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_tf10_dc64.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_tf10_disable.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_tf10_full.dat
+vendor/camera/CHI05BN1/raw_proc_ipe_upscale20.dat
+vendor/camera/CHI05BN1/raw_proc_platform_nree.dat
+vendor/camera/CHI05BN1/scene_detector.dat
+vendor/camera/default.dat
+vendor/camera/flash.dat
+vendor/camera/LGI05BN1/color_ctrl.dat
+vendor/camera/LGI05BN1/dataflow.dat
+vendor/camera/LGI05BN1/exposure_ctrl.dat
+vendor/camera/LGI05BN1/exposure_ctrl_diagram.dat
+vendor/camera/LGI05BN1/face_detector.dat
+vendor/camera/LGI05BN1/flicker_detector.dat
+vendor/camera/LGI05BN1/food_comp_yummy.dat
+vendor/camera/LGI05BN1/food_detector.dat
+vendor/camera/LGI05BN1/fusion_comp.dat
+vendor/camera/LGI05BN1/fusion_comp_financier_coef.dat
+vendor/camera/LGI05BN1/fusion_comp_financier.dat
+vendor/camera/LGI05BN1/fusion_comp_melonpan.dat
+vendor/camera/LGI05BN1/fusion_comp_raisin.dat
+vendor/camera/LGI05BN1/hal_ctrl_bps_gamma16.dat
+vendor/camera/LGI05BN1/hal_ctrl.dat
+vendor/camera/LGI05BN1/hal_ctrl_fusion_ctrl.dat
+vendor/camera/LGI05BN1/hal_ctrl_ife_abf34.dat
+vendor/camera/LGI05BN1/hal_ctrl_ife_abf34_disable.dat
+vendor/camera/LGI05BN1/hal_ctrl_ife_bls12.dat
+vendor/camera/LGI05BN1/hal_ctrl_ife_bpcbcc50.dat
+vendor/camera/LGI05BN1/hal_ctrl_ife_cst12.dat
+vendor/camera/LGI05BN1/hal_ctrl_ife_demosaic36.dat
+vendor/camera/LGI05BN1/hal_ctrl_ife_gamma16.dat
+vendor/camera/LGI05BN1/hal_ctrl_ife_linearization33.dat
+vendor/camera/LGI05BN1/hal_ctrl_ife_lsc34.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_anr10_dc04.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_anr10_dc16.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_anr10_dc64.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_anr10_disable.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_anr10_full.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_asf30.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_cc13.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_cs20.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_cst12.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_cv12.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_gamma15.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_gra10.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_ltm13.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_tdl10.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_tf10_dc04.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_tf10_dc16.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_tf10_dc64.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_tf10_disable.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_tf10_full.dat
+vendor/camera/LGI05BN1/hal_ctrl_ipe_upscale20.dat
+vendor/camera/LGI05BN1/hal_ctrl_platform_nree.dat
+vendor/camera/LGI05BN1/hal_ctrl_sensor_isp_color.dat
+vendor/camera/LGI05BN1/hal_ctrl_sensor_isp_fsn.dat
+vendor/camera/LGI05BN1/hal_ctrl_sensor_isp_lin_ne.dat
+vendor/camera/LGI05BN1/hdr_comp.dat
+vendor/camera/LGI05BN1/idt_ctrl.dat
+vendor/camera/LGI05BN1/image_conv_canele.dat
+vendor/camera/LGI05BN1/image_conv_cheesescone.dat
+vendor/camera/LGI05BN1/image_conv.dat
+vendor/camera/LGI05BN1/image_conv_ipe_asf30.dat
+vendor/camera/LGI05BN1/image_conv_ipe_cs20.dat
+vendor/camera/LGI05BN1/image_conv_ipe_gra10.dat
+vendor/camera/LGI05BN1/image_conv_ipe_upscale20.dat
+vendor/camera/LGI05BN1/image_conv_marble.dat
+vendor/camera/LGI05BN1/image_conv_platform_nree.dat
+vendor/camera/LGI05BN1/image_conv_raisin.dat
+vendor/camera/LGI05BN1/image_conv_spica.dat
+vendor/camera/LGI05BN1/lens_ctrl_common.dat
+vendor/camera/LGI05BN1/lens_ctrl.dat
+vendor/camera/LGI05BN1/motion_detector.dat
+vendor/camera/LGI05BN1/motion_detector_sumomo.dat
+vendor/camera/LGI05BN1/motion_estimation.dat
+vendor/camera/LGI05BN1/multiframe_nr.dat
+vendor/camera/LGI05BN1/multiframe_nr_melonpan.dat
+vendor/camera/LGI05BN1/multiframe_nr_mugichoco.dat
+vendor/camera/LGI05BN1/multiframe_nr_toppo.dat
+vendor/camera/LGI05BN1/object_detector.dat
+vendor/camera/LGI05BN1/object_tracker.dat
+vendor/camera/LGI05BN1/prc_image_conv.dat
+vendor/camera/LGI05BN1/process_ctrl.dat
+vendor/camera/LGI05BN1/raw_proc_bps_abf40.dat
+vendor/camera/LGI05BN1/raw_proc_bps_abf40_disable.dat
+vendor/camera/LGI05BN1/raw_proc_bps_bls12.dat
+vendor/camera/LGI05BN1/raw_proc_bps_demosaic36.dat
+vendor/camera/LGI05BN1/raw_proc_bps_gic30.dat
+vendor/camera/LGI05BN1/raw_proc_bps_hnr10.dat
+vendor/camera/LGI05BN1/raw_proc_bps_hnr10_disable.dat
+vendor/camera/LGI05BN1/raw_proc_bps_linearization34.dat
+vendor/camera/LGI05BN1/raw_proc_bps_pdpc20.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_anr10_dc04.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_anr10_dc16.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_anr10_dc64.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_anr10_disable.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_anr10_full.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_asf30.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_cs20.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_gra10.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_tf10_dc04.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_tf10_dc16.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_tf10_dc64.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_tf10_disable.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_tf10_full.dat
+vendor/camera/LGI05BN1/raw_proc_ipe_upscale20.dat
+vendor/camera/LGI05BN1/raw_proc_platform_nree.dat
+vendor/camera/LGI05BN1/scene_detector.dat
+vendor/camera/snapshot.dat
+vendor/camera/SOI20BS2_BU64747GWZ_XCF.dat
+vendor/camera/SOI20BS2_BU64747GWZ_XFW.dat
+vendor/camera/SOI20BS2/color_ctrl.dat
+vendor/camera/SOI20BS2/dataflow.dat
+vendor/camera/SOI20BS2/exposure_ctrl.dat
+vendor/camera/SOI20BS2/exposure_ctrl_diagram.dat
+vendor/camera/SOI20BS2/face_detector.dat
+vendor/camera/SOI20BS2/flicker_detector.dat
+vendor/camera/SOI20BS2/food_comp_yummy.dat
+vendor/camera/SOI20BS2/food_detector.dat
+vendor/camera/SOI20BS2/fusion_comp.dat
+vendor/camera/SOI20BS2/fusion_comp_financier_coef.dat
+vendor/camera/SOI20BS2/fusion_comp_financier.dat
+vendor/camera/SOI20BS2/fusion_comp_melonpan.dat
+vendor/camera/SOI20BS2/fusion_comp_raisin.dat
+vendor/camera/SOI20BS2/hal_ctrl_bps_gamma16.dat
+vendor/camera/SOI20BS2/hal_ctrl.dat
+vendor/camera/SOI20BS2/hal_ctrl_fusion_ctrl.dat
+vendor/camera/SOI20BS2/hal_ctrl_ife_abf34.dat
+vendor/camera/SOI20BS2/hal_ctrl_ife_abf34_disable.dat
+vendor/camera/SOI20BS2/hal_ctrl_ife_bls12.dat
+vendor/camera/SOI20BS2/hal_ctrl_ife_bpcbcc50.dat
+vendor/camera/SOI20BS2/hal_ctrl_ife_cst12.dat
+vendor/camera/SOI20BS2/hal_ctrl_ife_demosaic36.dat
+vendor/camera/SOI20BS2/hal_ctrl_ife_gamma16.dat
+vendor/camera/SOI20BS2/hal_ctrl_ife_linearization33.dat
+vendor/camera/SOI20BS2/hal_ctrl_ife_lsc34.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_anr10_dc04.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_anr10_dc16.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_anr10_dc64.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_anr10_disable.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_anr10_full.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_asf30.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_cc13.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_cs20.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_cst12.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_cv12.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_gamma15.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_gra10.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_ltm13.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_tdl10.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_tf10_dc04.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_tf10_dc16.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_tf10_dc64.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_tf10_disable.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_tf10_full.dat
+vendor/camera/SOI20BS2/hal_ctrl_ipe_upscale20.dat
+vendor/camera/SOI20BS2/hal_ctrl_platform_nree.dat
+vendor/camera/SOI20BS2/hal_ctrl_sensor_isp_color.dat
+vendor/camera/SOI20BS2/hal_ctrl_sensor_isp_fsn.dat
+vendor/camera/SOI20BS2/hal_ctrl_sensor_isp_lin_ne.dat
+vendor/camera/SOI20BS2/hdr_comp.dat
+vendor/camera/SOI20BS2/idt_ctrl.dat
+vendor/camera/SOI20BS2/image_conv_canele.dat
+vendor/camera/SOI20BS2/image_conv_cheesescone.dat
+vendor/camera/SOI20BS2/image_conv.dat
+vendor/camera/SOI20BS2/image_conv_ipe_asf30.dat
+vendor/camera/SOI20BS2/image_conv_ipe_cs20.dat
+vendor/camera/SOI20BS2/image_conv_ipe_gra10.dat
+vendor/camera/SOI20BS2/image_conv_ipe_upscale20.dat
+vendor/camera/SOI20BS2/image_conv_marble.dat
+vendor/camera/SOI20BS2/image_conv_platform_nree.dat
+vendor/camera/SOI20BS2/image_conv_raisin.dat
+vendor/camera/SOI20BS2/image_conv_spica.dat
+vendor/camera/SOI20BS2/lens_ctrl_common.dat
+vendor/camera/SOI20BS2/lens_ctrl.dat
+vendor/camera/SOI20BS2/motion_detector.dat
+vendor/camera/SOI20BS2/motion_detector_sumomo.dat
+vendor/camera/SOI20BS2/motion_estimation.dat
+vendor/camera/SOI20BS2/multiframe_nr.dat
+vendor/camera/SOI20BS2/multiframe_nr_melonpan.dat
+vendor/camera/SOI20BS2/multiframe_nr_mugichoco.dat
+vendor/camera/SOI20BS2/multiframe_nr_toppo.dat
+vendor/camera/SOI20BS2/object_detector.dat
+vendor/camera/SOI20BS2/object_tracker.dat
+vendor/camera/SOI20BS2/prc_image_conv.dat
+vendor/camera/SOI20BS2/process_ctrl.dat
+vendor/camera/SOI20BS2/raw_proc_bps_abf40.dat
+vendor/camera/SOI20BS2/raw_proc_bps_abf40_disable.dat
+vendor/camera/SOI20BS2/raw_proc_bps_bls12.dat
+vendor/camera/SOI20BS2/raw_proc_bps_demosaic36.dat
+vendor/camera/SOI20BS2/raw_proc_bps_gic30.dat
+vendor/camera/SOI20BS2/raw_proc_bps_hnr10.dat
+vendor/camera/SOI20BS2/raw_proc_bps_hnr10_disable.dat
+vendor/camera/SOI20BS2/raw_proc_bps_linearization34.dat
+vendor/camera/SOI20BS2/raw_proc_bps_pdpc20.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_anr10_dc04.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_anr10_dc16.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_anr10_dc64.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_anr10_disable.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_anr10_full.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_asf30.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_cs20.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_gra10.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_tf10_dc04.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_tf10_dc16.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_tf10_dc64.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_tf10_disable.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_tf10_full.dat
+vendor/camera/SOI20BS2/raw_proc_ipe_upscale20.dat
+vendor/camera/SOI20BS2/raw_proc_platform_nree.dat
+vendor/camera/SOI20BS2/scene_detector.dat
+vendor/camera/streaming.dat
+vendor/camera/supported.dat
+vendor/camera/version.dat
+vendor/etc/camera/camxoverridesettings.txt
+vendor/etc/camera/flashled_calc_parameters.cfg
+vendor/lib64/libcameralight.so
+vendor/lib64/libcamera_nn_stub.so
+vendor/lib64/libcammw_util.so
+vendor/lib64/libcamxfdalgov7.so
+vendor/lib64/libcamxfdalgov8.so
+vendor/lib64/libcamxfdengine.so
+vendor/lib64/libcamxstatscore.so
+vendor/lib64/libcamxswprocessalgo.so
+vendor/lib64/libcamxtintlessalgo.so
+vendor/lib64/libexcal_core.so
+vendor/lib64/libmmcamera_faceproc2.so
+vendor/lib64/libmmcamera_faceproc.so
+vendor/lib64/libsomc_camerapal.so
+vendor/lib/camera/components/com.qti.camx.chiiqutils.so
+vendor/lib/camera/components/com.qti.eisv2.so
+vendor/lib/camera/components/com.qti.eisv3.so
+vendor/lib/camera/components/com.qti.hvx.addconstant.so
+vendor/lib/camera/components/com.qti.hvx.binning.so
+vendor/lib/camera/components/com.qti.node.dummyrtb.so
+vendor/lib/camera/components/com.qti.node.dummysat.so
+vendor/lib/camera/components/com.qti.node.eisv2.so
+vendor/lib/camera/components/com.qti.node.eisv3.so
+vendor/lib/camera/components/com.qti.node.gpu.so
+vendor/lib/camera/components/com.qti.node.memcpy.so
+vendor/lib/camera/components/com.qti.node.remosaic.so
+vendor/lib/camera/components/com.qti.node.stich.so
+vendor/lib/camera/components/com.qti.node.swregistration.so
+vendor/lib/camera/components/com.qtistatic.stats.aec.so
+vendor/lib/camera/components/com.qtistatic.stats.af.so
+vendor/lib/camera/components/com.qtistatic.stats.awb.so
+vendor/lib/camera/components/com.qtistatic.stats.pdlib.so
+vendor/lib/camera/components/com.qti.stats.aec.so
+vendor/lib/camera/components/com.qti.stats.afd.so
+vendor/lib/camera/components/com.qti.stats.af.so
+vendor/lib/camera/components/com.qti.stats.asd.so
+vendor/lib/camera/components/com.qti.stats.awb.so
+vendor/lib/camera/components/com.qti.stats.awbwrapper.so
+vendor/lib/camera/components/com.qti.stats.haf.so
+vendor/lib/camera/components/com.qti.stats.localhistogram.so
+vendor/lib/camera/components/com.qti.stats.pdlib.so
+vendor/lib/camera/components/com.qti.stats.pdlibsony.so
+vendor/lib/camera/components/com.qti.stats.pdlibwrapper.so
+vendor/lib/camera/com.qti.tuned.default.bin
+vendor/lib/camera/com.sony.sensormodule.blakiston_imx400.bin
+vendor/lib/camera/com.sony.sensormodule.pansy_imx241.bin
+vendor/lib/camera/fdconfigpreview.bin
+vendor/lib/camera/fdconfigpreviewlite.bin
+vendor/lib/camera/fdconfigvideo.bin
+vendor/lib/camera/fdconfigvideolite.bin
+vendor/lib/camera/libexcal_ckb_service_plugin.so
+vendor/lib/camera/libexcal_color_ctrl_plugin.so
+vendor/lib/camera/libexcal_debug_display_plugin.so
+vendor/lib/camera/libexcal_exposure_ctrl_plugin.so
+vendor/lib/camera/libexcal_face_detector_plugin.so
+vendor/lib/camera/libexcal_flicker_detector_plugin.so
+vendor/lib/camera/libexcal_focus_stats_conv_plugin.so
+vendor/lib/camera/libexcal_food_comp_plugin.so
+vendor/lib/camera/libexcal_food_detector_plugin.so
+vendor/lib/camera/libexcal_fusion_comp_plugin.so
+vendor/lib/camera/libexcal_hal_ctrl_plugin.so
+vendor/lib/camera/libexcal_hdr_plugin.so
+vendor/lib/camera/libexcal_idt_ctrl_plugin.so
+vendor/lib/camera/libexcal_image_conv_plugin.so
+vendor/lib/camera/libexcal_iq_ctrl_plugin.so
+vendor/lib/camera/libexcal_jpeg_enc_plugin.so
+vendor/lib/camera/libexcal_lens_ctrl_plugin.so
+vendor/lib/camera/libexcal_motion_detector_plugin.so
+vendor/lib/camera/libexcal_motion_estimation_plugin.so
+vendor/lib/camera/libexcal_multiframe_nr_plugin.so
+vendor/lib/camera/libexcal_object_detector_plugin.so
+vendor/lib/camera/libexcal_object_tracker_plugin.so
+vendor/lib/camera/libexcal_prc_image_conv_plugin.so
+vendor/lib/camera/libexcal_process_ctrl_plugin.so
+vendor/lib/camera/libexcal_raw_dump_plugin.so
+vendor/lib/camera/libexcal_raw_proc_plugin.so
+vendor/lib/camera/libexcal_req_ctrl_plugin.so
+vendor/lib/camera/libexcal_scene_detector_plugin.so
+vendor/lib/camera/libexcal_snapshot_ctrl_plugin.so
+vendor/lib/camera/libexcal_splitter_plugin.so
+vendor/lib/camera/libexcal_stream_ctrl_plugin.so
+vendor/lib/camera/systemdefault.bin
+vendor/lib/camera/titan17x_usecases.bin
+vendor/lib/hw/camera.qcom.so
+vendor/lib/libcameralight.so
+vendor/lib/libcamera_nn_stub.so
+vendor/lib/libcammw.so
+vendor/lib/libcammw_util.so
+vendor/lib/libcamxfdalgov7.so
+vendor/lib/libcamxfdalgov8.so
+vendor/lib/libcamxfdengine.so
+vendor/lib/libcamxstatscore.so
+vendor/lib/libcamxswprocessalgo.so
+vendor/lib/libcamxtintlessalgo.so
+vendor/lib/libcdsprpc.so
+vendor/lib/libcom.qti.chinodeutils.so
+vendor/lib/libc++_shared.so
+vendor/lib/libexcal_core.so
+vendor/lib/libexcal_system.so
+vendor/lib/libmmcamera_faceproc2.so
+vendor/lib/libmmcamera_faceproc.so
+vendor/lib/libSNPE.so
+vendor/lib/libsomc_alfortlpserv.so
+vendor/lib/libsomc_alfortlp.so
+vendor/lib/libsomc_bordeauxrsc.so
+vendor/lib/libsomc_bordeaux.so
+vendor/lib/libsomc_buttercakersc.so
+vendor/lib/libsomc_buttercake.so
+vendor/lib/libsomc_camerahal.so
+vendor/lib/libsomc_camerapal.so
+vendor/lib/libsomc_canelersc.so
+vendor/lib/libsomc_canele.so
+vendor/lib/libsomc_cheesesconersc.so
+vendor/lib/libsomc_cheesescone.so
+vendor/lib/libsomc_chokoballcmn.so
+vendor/lib/libsomc_chokoballpal.so
+vendor/lib/libsomc_financierrsc.so
+vendor/lib/libsomc_financier.so
+vendor/lib/libsomc_madeleine_core.so
+vendor/lib/libsomc_marblersc.so
+vendor/lib/libsomc_marble.so
+vendor/lib/libsomc_melonpanrsc.so
+vendor/lib/libsomc_melonpan.so
+vendor/lib/libsomc_mln.so
+vendor/lib/libsomc_mugichocorsc.so
+vendor/lib/libsomc_mugichoco.so
+vendor/lib/libsomc_pretzchocorsc.so
+vendor/lib/libsomc_pretzchoco.so
+vendor/lib/libsomc_raisinclrsc.so
+vendor/lib/libsomc_raisincl.so
+vendor/lib/libsomc_raisinrsc.so
+vendor/lib/libsomc_raisin.so
+vendor/lib/libsomc_shortcakersc.so
+vendor/lib/libsomc_shortcake.so
+vendor/lib/libsomc_spicarsc.so
+vendor/lib/libsomc_spica.so
+vendor/lib/libsomc_sumomorsc.so
+vendor/lib/libsomc_sumomo.so
+vendor/lib/libsomc_topporsc.so
+vendor/lib/libsomc_toppo.so
+vendor/lib/libsomc_yummyrsc.so
+vendor/lib/libsomc_yummy.so
+vendor/lib/libsony_fooddetect.so
+vendor/lib/libsony_naruto.so
+vendor/lib/libsymphony-cpu.so
+vendor/lib/libsymphonypower.so
+vendor/lib/local_libcamera_metadata.so
+vendor/lib/vendor.somc.camera.device@3.2-impl.so
+vendor/lib/vendor.somc.camera.device@3.3-impl.so
+vendor/lib/vendor.somc.camera.device@3.4-impl.so
+vendor/lib/vendor.somc.hardware.camera.device@1.0.so
+vendor/lib/vendor.somc.hardware.camera.provider@1.0.so
+
+# Camera firmware
+vendor/firmware/CAMERA_ICP.elf
+
+# Cacao
+vendor/lib64/libcacao_common.so
+vendor/lib/libcacao_common.so
+vendor/lib/libcacao_process_ctrl.so
+vendor/lib/vendor.somc.hardware.camera.cacao@1.0.so
+vendor/lib/vendor.somc.hardware.camera.cacao@2.0.so
+vendor/lib/vendor.somc.hardware.camera.cacao@3.0.so
+vendor/lib/vendor.somc.hardware.camera.cacao@3.1-impl.so
+vendor/lib/vendor.somc.hardware.camera.cacao@3.1.so
+
+# Camera postprocessing
+vendor/lib64/libscveBlobDescriptor.so
+vendor/lib64/libscveBlobDescriptor_stub.so
+vendor/lib64/libscveCommon.so
+vendor/lib64/libscveCommon_stub.so
+vendor/lib64/libscveFaceRecognition.so
+vendor/lib64/libscveObjectSegmentation.so
+vendor/lib64/libscveObjectSegmentation_stub.so
+vendor/lib64/libscveObjectTracker.so
+vendor/lib64/libscveObjectTracker_stub.so
+vendor/lib64/libscvePanorama_lite.so
+vendor/lib64/libscvePanorama.so
+vendor/lib64/libscveScan3D.so
+vendor/lib/libscveBlobDescriptor.so
+vendor/lib/libscveBlobDescriptor_stub.so
+vendor/lib/libscveCommon.so
+vendor/lib/libscveCommon_stub.so
+vendor/lib/libscveFaceLandmarks.so
+vendor/lib/libscveFaceRecognition.so
+vendor/lib/libscveObjectSegmentation.so
+vendor/lib/libscveObjectSegmentation_stub.so
+vendor/lib/libscveObjectTracker.so
+vendor/lib/libscveObjectTracker_stub.so
+vendor/lib/libscvePanorama_lite.so
+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_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
+vendor/etc/qdcm_calib_data_hx8399_video_mode_dsi_truly_panel.xml
+vendor/etc/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml
+vendor/etc/qdcm_calib_data_nt35597_video_mode_dsi_truly_panel_with_DSC.xml
+vendor/etc/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml
+vendor/etc/qdcm_calib_data_Sharp_4k_video_mode_dsc_dsi_panel.xml
+
+# Display colour
+vendor/bin/hw/vendor.display.color@1.0-service
+vendor/bin/hw/vendor.qti.hardware.qdutils_disp@1.0-service-qti
+vendor/etc/init/vendor.display.color@1.0-service.rc
+vendor/etc/init/vendor.qti.hardware.qdutils_disp@1.0-service-qti.rc
+vendor/lib/vendor.display.color@1.0.so
+vendor/lib/vendor.display.color@1.1.so
+vendor/lib/vendor.display.postproc@1.0.so
+vendor/lib/vendor.qti.hardware.qdutils_disp@1.0.so
+vendor/lib64/vendor.display.color@1.0.so
+vendor/lib64/vendor.display.color@1.1.so
+vendor/lib64/vendor.display.postproc@1.0.so
+vendor/lib64/vendor.qti.hardware.qdutils_disp@1.0.so
+
+# Fingerprint firmware
+vendor/firmware/fpctzfingerprint.b00
+vendor/firmware/fpctzfingerprint.b01
+vendor/firmware/fpctzfingerprint.b02
+vendor/firmware/fpctzfingerprint.b03
+vendor/firmware/fpctzfingerprint.b04
+vendor/firmware/fpctzfingerprint.b05
+vendor/firmware/fpctzfingerprint.b06
+vendor/firmware/fpctzfingerprint.b07
+vendor/firmware/fpctzfingerprint.mdt
+
+# GNSS
+-vendor/app/CACertService/CACertService.apk
+vendor/bin/hw/android.hardware.gnss@2.0-service-qti
+vendor/bin/loc_launcher
+vendor/bin/lowi-server
+vendor/bin/mlid
+vendor/bin/slim_daemon
+vendor/bin/xtra-daemon
+vendor/bin/xtwifi-client
+vendor/bin/xtwifi-inet-agent
+vendor/etc/init/android.hardware.gnss@2.0-service-qti.rc
+vendor/etc/vintf/manifest/android.hardware.gnss@2.0-service-qti.xml
+vendor/etc/vintf/manifest/vendor.qti.gnss@3.0-service.xml
+vendor/etc/cacert_location.pem
+vendor/etc/xtra_root_cert.pem
+vendor/lib64/hw/android.hardware.gnss@2.0-impl-qti.so
+vendor/lib64/hw/vendor.qti.gnss@3.0-impl.so
+vendor/lib64/libaoa.so
+vendor/lib64/libbatching.so
+vendor/lib64/libcacertclient.so
+vendor/lib64/libdataitems.so
+vendor/lib64/libgeofencing.so
+vendor/lib64/libgdtap.so
+vendor/lib64/libgnsspps.so
+vendor/lib64/libgnss.so
+vendor/lib64/libgps.utils.so
+vendor/lib64/libizat_client_api.so
+vendor/lib64/libizat_core.so
+vendor/lib64/libjnihelper.so
+vendor/lib64/liblbs_core.so
+vendor/lib64/liblocation_api.so
+vendor/lib64/liblocationservice_glue.so
+vendor/lib64/liblocationservice.so
+vendor/lib64/libloc_api_v02.so
+vendor/lib64/libloc_core.so
+vendor/lib64/liblowi_client.so
+vendor/lib64/liblowi_wifihal.so
+vendor/lib64/libminksocket.so
+vendor/lib64/libqdma_file_agent.so
+vendor/lib64/libslimclient.so
+vendor/lib64/libxtadapter.so
+vendor/lib64/vendor.qti.gnss@1.0.so
+vendor/lib64/vendor.qti.gnss@1.1.so
+vendor/lib64/vendor.qti.gnss@1.2.so
+vendor/lib64/vendor.qti.gnss@2.0.so
+vendor/lib64/vendor.qti.gnss@2.1.so
+vendor/lib64/vendor.qti.gnss@3.0.so
+vendor/lib64/vendor.qti.gnss@3.0-service.so
+vendor/lib64/vendor.qti.hardware.cacert@1.0.so
+vendor/lib/hw/android.hardware.gnss@2.0-impl-qti.so
+vendor/lib/hw/vendor.qti.gnss@3.0-impl.so
+vendor/lib/libaoa.so
+vendor/lib/libbatching.so
+vendor/lib/libcacertclient.so
+vendor/lib/libdataitems.so
+vendor/lib/libgeofencing.so
+vendor/lib/libgdtap.so
+vendor/lib/libgnsspps.so
+vendor/lib/libgnss.so
+vendor/lib/libgps.utils.so
+vendor/lib/libizat_client_api.so
+vendor/lib/libizat_core.so
+vendor/lib/libjnihelper.so
+vendor/lib/liblbs_core.so
+vendor/lib/liblocation_api.so
+vendor/lib/liblocationservice_glue.so
+vendor/lib/liblocationservice.so
+vendor/lib/libloc_api_v02.so
+vendor/lib/libloc_core.so
+vendor/lib/liblowi_client.so
+vendor/lib/liblowi_wifihal.so
+vendor/lib/libminksocket.so
+vendor/lib/libslimclient.so
+vendor/lib/libxtadapter.so
+vendor/lib/vendor.qti.gnss@1.0.so
+vendor/lib/vendor.qti.gnss@1.1.so
+vendor/lib/vendor.qti.gnss@1.2.so
+vendor/lib/vendor.qti.gnss@2.0.so
+vendor/lib/vendor.qti.gnss@2.1.so
+vendor/lib/vendor.qti.gnss@3.0.so
+vendor/lib/vendor.qti.gnss@3.0-service.so
+vendor/lib/vendor.qti.hardware.cacert@1.0.so
+
+# Hotword enrollment
+-system/priv-app/HotwordEnrollmentOKGoogleWCD9340/HotwordEnrollmentOKGoogleWCD9340.apk;PRESIGNED
+-system/priv-app/HotwordEnrollmentXGoogleWCD9340/HotwordEnrollmentXGoogleWCD9340.apk;PRESIGNED
+
+# Init
+vendor/etc/init/init.sony.usb.eng.rc
+vendor/etc/init/init.sony.usb.rc
+
+# Keymaster
+vendor/bin/hw/android.hardware.keymaster@3.0-service-qti
+vendor/etc/init/android.hardware.keymaster@3.0-service-qti.rc
+vendor/lib64/android.hardware.keymaster@3.0-impl-qti.so
+vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so
+vendor/lib64/libkeymasterdeviceutils.so
+vendor/lib64/libkeymasterprovision.so
+vendor/lib64/libkeymasterutils.so
+vendor/lib/android.hardware.keymaster@3.0-impl-qti.so
+vendor/lib/hw/android.hardware.keymaster@3.0-impl-qti.so
+vendor/lib/libkeymasterdeviceutils.so
+vendor/lib/libkeymasterprovision.so
+vendor/lib/libkeymasterutils.so
+
+# Sensors
+vendor/lib64/sensors.ssc.so
+vendor/lib/sensors.ssc.so
+
+# Sensor configs
+vendor/etc/sensors/hals.conf
+vendor/etc/sensors/registry/config/bmp380_0.json
+vendor/etc/sensors/registry/config/lsm6dsm_0_8g.json
+vendor/etc/sensors/registry/config/sdm845_ak991x_0.json
+vendor/etc/sensors/registry/config/sdm845_ak991x_0_somc_product.json
+vendor/etc/sensors/registry/config/sdm845_bmp380_0.json
+vendor/etc/sensors/registry/config/sdm845_lsm6dsm_0.json
+vendor/etc/sensors/registry/config/sdm845_lsm6dsm_0_somc_product.json
+vendor/etc/sensors/registry/config/sdm845_tmd2725.json
+vendor/etc/sensors/registry/config/sns_amd.json
+vendor/etc/sensors/registry/config/sns_amd_sw_disabled.json
+vendor/etc/sensors/registry/config/sns_amd_sw_enabled.json
+vendor/etc/sensors/registry/config/sns_aont.json
+vendor/etc/sensors/registry/config/sns_basic_gestures.json
+vendor/etc/sensors/registry/config/sns_bring_to_ear.json
+vendor/etc/sensors/registry/config/sns_ccd.json
+vendor/etc/sensors/registry/config/sns_ccd_v2_walk.json
+vendor/etc/sensors/registry/config/sns_ccd_v3_walk.json
+vendor/etc/sensors/registry/config/sns_cm.json
+vendor/etc/sensors/registry/config/sns_dae.json
+vendor/etc/sensors/registry/config/sns_device_orient.json
+vendor/etc/sensors/registry/config/sns_diag_filter.json
+vendor/etc/sensors/registry/config/sns_distance_bound.json
+vendor/etc/sensors/registry/config/sns_dpc.json
+vendor/etc/sensors/registry/config/sns_facing.json
+vendor/etc/sensors/registry/config/sns_fmv.json
+vendor/etc/sensors/registry/config/sns_geomag_rv.json
+vendor/etc/sensors/registry/config/sns_gyro_cal.json
+vendor/etc/sensors/registry/config/sns_heart_rate.json
+vendor/etc/sensors/registry/config/sns_mag_cal.json
+vendor/etc/sensors/registry/config/sns_mag_cal_legacy.json
+vendor/etc/sensors/registry/config/sns_multishake.json
+vendor/etc/sensors/registry/config/sns_pedometer.json
+vendor/etc/sensors/registry/config/sns_rmd.json
+vendor/etc/sensors/registry/config/sns_rotv.json
+vendor/etc/sensors/registry/config/sns_smd.json
+vendor/etc/sensors/registry/config/sns_tilt.json
+vendor/etc/sensors/registry/config/sns_tilt_sw_disabled.json
+vendor/etc/sensors/registry/config/sns_tilt_sw_enabled.json
+vendor/etc/sensors/registry/config/sns_tilt_to_wake.json
+vendor/etc/sensors/registry/config/sns_wrist_pedo.json
+vendor/etc/sensors/registry/config/tmd2725.json
+vendor/etc/sensors/registry/registry/sensors_registry
+vendor/etc/sensors/registry/sns_reg_config
+vendor/etc/sensors/registry/sns_reg_version
+vendor/etc/sensors/registry/somc/sdm845_lsm6dsm_0_accel_miscta.json
+vendor/etc/sensors/registry/somc/sdm845_lsm6dsm_0_gyro_miscta.json
+vendor/etc/sensors/registry/somc/tmd2725_prox_miscta.json
+vendor/etc/sensors/sns_reg_config
+
+# Thermal configs
+vendor/etc/thermal-engine.conf
+
+# Touch backlight
+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
+
+# WiFi
+vendor/etc/wifi/bdwlan.bin
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
new file mode 100755
index 0000000..58694b5
--- /dev/null
+++ b/setup-makefiles.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+#
+# Copyright (C) 2018-2019 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+set -e
+
+# Required!
+export DEVICE=apollo
+export DEVICE_COMMON=tama-common
+export VENDOR=sony
+
+export DEVICE_BRINGUP_YEAR=2020
+
+"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"
diff --git a/system.prop b/system.prop
new file mode 100644
index 0000000..a9f6477
--- /dev/null
+++ b/system.prop
@@ -0,0 +1,14 @@
+# Camera
+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.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.sw_type=user
+ro.semc.version.sw_variant=GLOBAL-A2
diff --git a/vendor.prop b/vendor.prop
new file mode 100644
index 0000000..d36c595
--- /dev/null
+++ b/vendor.prop
@@ -0,0 +1,9 @@
+# Display postprocessing
+vendor.display.enable_default_color_mode=1
+vendor.display.disable_hdr_lut_gen=1
+
+# NFC
+ro.vendor.nfc.ko=nxp_pn553_nfc
+
+# Netflix
+ro.netflix.bsp_rev=Q845-05000-1