Compare commits
63 commits
lineage-17
...
lineage-17
Author | SHA1 | Date | |
---|---|---|---|
|
6f82554da3 | ||
|
845f8df005 | ||
|
516e9d0962 | ||
|
24a868d7ab | ||
|
b9fb7d73ad | ||
|
b81b2b20ad | ||
|
fe23a93de0 | ||
|
80942d7e92 | ||
|
9ec6dcd2dc | ||
|
d9673f77c5 | ||
|
f718b98abb | ||
|
fe16928597 | ||
|
cfcfd99c08 | ||
|
a84b0210ba | ||
|
9d6fafe446 | ||
|
18011b9238 | ||
|
6e7869ef6b | ||
|
1835b3d8d3 | ||
|
e19ce41cac | ||
|
baebafe563 | ||
|
d2fa444b44 | ||
|
b185d4b58e | ||
|
7c488db895 | ||
|
c63ea29b57 | ||
|
aea805e022 | ||
|
bcedb86cb3 | ||
|
d500f0fa29 | ||
|
41c7b28e2b | ||
|
ed50a6b852 | ||
|
d7cadbf3a2 | ||
|
c6885bcce1 | ||
|
77e6be61e0 | ||
|
30c8ac021c | ||
|
9a8d7f0a0c | ||
|
10f2e88a6c | ||
|
eb6f10613c | ||
|
49a80e4aa8 | ||
|
564032c3d7 | ||
|
0120ca6f53 | ||
|
fdb3fa3f08 | ||
|
35ecc58883 | ||
|
1467925cad | ||
|
28d98441cf | ||
|
11a53731d8 | ||
|
ec4aa18829 | ||
|
17ba3114c7 | ||
|
f0a91915d9 | ||
|
48d25124cd | ||
|
a2ea6b9580 | ||
|
4d008b91ef | ||
|
fbdaa6a9bf | ||
|
b01f194617 | ||
|
dc0ca8edae | ||
|
8b9d7111b0 | ||
|
cc7293fe9e | ||
|
9dc694fe10 | ||
|
3180c14123 | ||
|
8e06a96c7e | ||
|
27d8d88b8e | ||
|
452ccf4a6a | ||
|
21d7f58b2f | ||
|
45fa62c654 | ||
|
91f3756ecd |
36 changed files with 482 additions and 775 deletions
2
Android.bp
Normal file
2
Android.bp
Normal file
|
@ -0,0 +1,2 @@
|
|||
soong_namespace {
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
# limitations under the License.
|
||||
|
||||
# inherit from common msm8226
|
||||
-include device/samsung/msm8226-common/BoardConfigCommon.mk
|
||||
include device/samsung/msm8226-common/BoardConfigCommon.mk
|
||||
|
||||
COMMON_PATH := device/samsung/matisse-common
|
||||
|
||||
|
@ -22,6 +22,7 @@ TARGET_SPECIFIC_HEADER_PATH := $(COMMON_PATH)/include
|
|||
|
||||
# Audio
|
||||
USE_CUSTOM_AUDIO_POLICY := 1
|
||||
USE_XML_AUDIO_POLICY_CONF := 1
|
||||
|
||||
# Bluetooth
|
||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth
|
||||
|
@ -34,15 +35,18 @@ TARGET_BOOTLOADER_BOARD_NAME := MSM8226
|
|||
# Build
|
||||
BLOCK_BASED_OTA := true
|
||||
|
||||
# Extended Filesystem Support
|
||||
TARGET_EXFAT_DRIVER := sdfat
|
||||
# Build Fingerprint
|
||||
BUILD_FINGERPRINT := samsung/matissewifixx/matissewifi:5.0.2/LRX22G/T530XXS1BRH1:user/release-keys
|
||||
|
||||
# Camera
|
||||
TARGET_NEEDS_TEXT_RELOCATIONS := true
|
||||
|
||||
# HIDL
|
||||
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest.xml
|
||||
|
||||
# Kernel
|
||||
BOARD_KERNEL_BASE := 0x00000000
|
||||
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 zcache.enabled=1 zcache.compressor=lz4 maxcpus=1
|
||||
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom msm_rtb.filter=0x37 zcache.enabled=1 zcache.compressor=lz4 androidboot.selinux=permissive
|
||||
BOARD_KERNEL_IMAGE_NAME := zImage
|
||||
BOARD_KERNEL_PAGESIZE := 2048
|
||||
BOARD_KERNEL_SEPARATED_DT := true
|
||||
|
@ -52,8 +56,12 @@ BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
|
|||
LZMA_RAMDISK_TARGETS := recovery
|
||||
TARGET_KERNEL_SOURCE := kernel/samsung/msm8226
|
||||
|
||||
# Init
|
||||
TARGET_INIT_VENDOR_LIB := //$(COMMON_PATH):libinit_matisse
|
||||
|
||||
# Legacy BLOB Support
|
||||
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
|
||||
TARGET_LD_SHIM_LIBS += \
|
||||
/system/vendor/lib/libperipheral_client.so|libshim_binder.so
|
||||
TARGET_PROCESS_SDK_VERSION_OVERRIDE += \
|
||||
/system/bin/mediaserver=22 \
|
||||
/system/vendor/bin/mm-qcamera-daemon=22 \
|
||||
|
@ -62,30 +70,28 @@ TARGET_PROCESS_SDK_VERSION_OVERRIDE += \
|
|||
# Partitions
|
||||
BOARD_FLASH_BLOCK_SIZE := 131072
|
||||
BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760
|
||||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 10485760
|
||||
# BOARD_RECOVERYIMAGE_PARTITION_SIZE := 10485760
|
||||
BOARD_CACHEIMAGE_PARTITION_SIZE := 314572800
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2362232012
|
||||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12884901888
|
||||
|
||||
# Power HAL
|
||||
TARGET_POWERHAL_SET_INTERACTIVE_EXT := $(COMMON_PATH)/power/power_ext.c
|
||||
TARGET_POWERHAL_VARIANT := qcom
|
||||
|
||||
# Properties
|
||||
TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop
|
||||
|
||||
# Radio
|
||||
BOARD_PROVIDES_LIBRIL := true
|
||||
TARGET_RIL_VARIANT := caf
|
||||
|
||||
# Recovery
|
||||
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../$(COMMON_PATH)/recovery/recovery_keys.c
|
||||
BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_23x41.h\"
|
||||
BOARD_USES_MMCUTILS := true
|
||||
BOARD_HAS_LARGE_FILESYSTEM := true
|
||||
BOARD_HAS_NO_SELECT_BUTTON := true
|
||||
BOARD_RECOVERY_SWIPE := true
|
||||
TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/rootdir/etc/fstab.qcom
|
||||
TARGET_RECOVERY_DENSITY := hdpi
|
||||
|
||||
# SELinux
|
||||
include $(COMMON_PATH)/sepolicy/sepolicy.mk
|
||||
|
@ -93,17 +99,6 @@ include $(COMMON_PATH)/sepolicy/sepolicy.mk
|
|||
# Sensors
|
||||
TARGET_NO_SENSOR_PERMISSION_CHECK := true
|
||||
|
||||
# Shipping API Level
|
||||
PRODUCT_SHIPPING_API_LEVEL := 18
|
||||
|
||||
# TWRP Support - Optional
|
||||
ifeq ($(WITH_TWRP),true)
|
||||
-include $(COMMON_PATH)/twrp.mk
|
||||
endif
|
||||
|
||||
# Use Snapdragon LLVM if available on build server
|
||||
TARGET_USE_SDCLANG := true
|
||||
|
||||
# inherit from the proprietary version
|
||||
-include vendor/samsung/matisse-common/BoardConfigVendor.mk
|
||||
|
||||
|
|
|
@ -1,278 +0,0 @@
|
|||
# List of effect libraries to load. Each library element must contain a "path" element
|
||||
# giving the full path of the library .so file.
|
||||
# libraries {
|
||||
# <lib name> {
|
||||
# path <lib path>
|
||||
# }
|
||||
# }
|
||||
libraries {
|
||||
bundle {
|
||||
path /vendor/lib/soundfx/libbundlewrapper.so
|
||||
}
|
||||
reverb {
|
||||
path /vendor/lib/soundfx/libreverbwrapper.so
|
||||
}
|
||||
qcbassboost {
|
||||
path /vendor/lib/soundfx/libqcbassboost.so
|
||||
}
|
||||
qcvirt {
|
||||
path /vendor/lib/soundfx/libqcvirt.so
|
||||
}
|
||||
qcreverb {
|
||||
path /vendor/lib/soundfx/libqcreverb.so
|
||||
}
|
||||
visualizer_sw {
|
||||
path /vendor/lib/soundfx/libvisualizer.so
|
||||
}
|
||||
visualizer_hw {
|
||||
path /vendor/lib/soundfx/libqcomvisualizer.so
|
||||
}
|
||||
downmix {
|
||||
path /vendor/lib/soundfx/libdownmix.so
|
||||
}
|
||||
loudness_enhancer {
|
||||
path /vendor/lib/soundfx/libldnhncr.so
|
||||
}
|
||||
proxy {
|
||||
path /vendor/lib/soundfx/libeffectproxy.so
|
||||
}
|
||||
offload_bundle {
|
||||
path /vendor/lib/soundfx/libqcompostprocbundle.so
|
||||
}
|
||||
audio_pre_processing {
|
||||
path /vendor/lib/soundfx/libqcomvoiceprocessing.so
|
||||
}
|
||||
}
|
||||
|
||||
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
|
||||
# The value of the "library" element must correspond to the name of one library element in the
|
||||
# "libraries" element.
|
||||
# The name of the effect element is indicative, only the value of the "uuid" element
|
||||
# designates the effect.
|
||||
# The uuid is the implementation specific UUID as specified by the effect vendor. This is not the
|
||||
# generic effect type UUID.
|
||||
# effects {
|
||||
# <fx name> {
|
||||
# library <lib name>
|
||||
# uuid <effect uuid>
|
||||
# }
|
||||
# ...
|
||||
# }
|
||||
|
||||
effects {
|
||||
|
||||
# additions for the proxy implementation
|
||||
# Proxy implementation
|
||||
#effectname {
|
||||
#library proxy
|
||||
#uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
||||
|
||||
# SW implemetation of the effect. Added as a node under the proxy to
|
||||
# indicate this as a sub effect.
|
||||
#libsw {
|
||||
#library libSW
|
||||
#uuid yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
|
||||
#} End of SW effect
|
||||
|
||||
# HW implementation of the effect. Added as a node under the proxy to
|
||||
# indicate this as a sub effect.
|
||||
#libhw {
|
||||
#library libHW
|
||||
#uuid zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
|
||||
#}End of HW effect
|
||||
#} End of effect proxy
|
||||
|
||||
bassboost {
|
||||
library proxy
|
||||
uuid 14804144-a5ee-4d24-aa88-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcbassboost
|
||||
uuid 23aca180-44bd-11e2-bcfd-0800200c9a66
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid 2c4a8c24-1581-487f-94f6-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
virtualizer {
|
||||
library proxy
|
||||
uuid d3467faa-acc7-4d34-acaf-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcvirt
|
||||
uuid e6c98a16-22a3-11e2-b87b-f23c91aec05e
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid 509a4498-561a-4bea-b3b1-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
equalizer {
|
||||
library proxy
|
||||
uuid c8e70ecd-48ca-456e-8a4f-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library bundle
|
||||
uuid ce772f20-847d-11df-bb17-0002a5d5c51b
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid a0dac280-401c-11e3-9379-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
volume {
|
||||
library bundle
|
||||
uuid 119341a0-8469-11df-81f9-0002a5d5c51b
|
||||
}
|
||||
reverb_env_aux {
|
||||
library proxy
|
||||
uuid 48404ac9-d202-4ccc-bf84-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcreverb
|
||||
uuid a8c1e5f3-293d-43cd-95ec-d5e26c02e217
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid 79a18026-18fd-4185-8233-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
reverb_env_ins {
|
||||
library proxy
|
||||
uuid b707403a-a1c1-4291-9573-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcreverb
|
||||
uuid 791fff8b-8129-4655-83a4-59bc61034c3a
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid eb64ea04-973b-43d2-8f5e-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
reverb_pre_aux {
|
||||
library proxy
|
||||
uuid 1b78f587-6d1c-422e-8b84-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcreverb
|
||||
uuid 53ef1db5-c0c0-445b-b060-e34d20ebb70a
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid 6987be09-b142-4b41-9056-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
reverb_pre_ins {
|
||||
library proxy
|
||||
uuid f3e178d2-ebcb-408e-8357-0002a5d5c51b
|
||||
|
||||
libsw {
|
||||
library qcreverb
|
||||
uuid b08a0e38-22a5-11e2-b87b-f23c91aec05e
|
||||
}
|
||||
|
||||
libhw {
|
||||
library offload_bundle
|
||||
uuid aa2bebf6-47cf-4613-9bca-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
visualizer {
|
||||
library proxy
|
||||
uuid 1d0a1a53-7d5d-48f2-8e71-27fbd10d842c
|
||||
|
||||
libsw {
|
||||
library visualizer_sw
|
||||
uuid d069d9e0-8329-11df-9168-0002a5d5c51b
|
||||
}
|
||||
|
||||
libhw {
|
||||
library visualizer_hw
|
||||
uuid 7a8044a0-1a71-11e3-a184-0002a5d5c51b
|
||||
}
|
||||
}
|
||||
downmix {
|
||||
library downmix
|
||||
uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f
|
||||
}
|
||||
loudness_enhancer {
|
||||
library loudness_enhancer
|
||||
uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c
|
||||
}
|
||||
# aec {
|
||||
# library audio_pre_processing
|
||||
# uuid 29dfd020-e88b-11e5-b505-0002a5d5c51b
|
||||
# }
|
||||
# agc {
|
||||
# library audio_pre_processing
|
||||
# uuid e6cdbac0-4a7c-11e4-a018-0002a5d5c51b
|
||||
# }
|
||||
# ns {
|
||||
# library audio_pre_processing
|
||||
# uuid e4eb6b40-e88b-11e5-b6ad-0002a5d5c51b
|
||||
# }
|
||||
}
|
||||
|
||||
# Default pre-processing effects. Add to audio_effect.conf "effects" section if
|
||||
# audio HAL implements support for them.
|
||||
#
|
||||
# aec {
|
||||
# library pre_processing
|
||||
# uuid bb392ec0-8d4d-11e0-a896-0002a5d5c51b
|
||||
# }
|
||||
# agc {
|
||||
# library pre_processing
|
||||
# uuid aa8130e0-66fc-11e0-bad0-0002a5d5c51b
|
||||
# }
|
||||
# ns {
|
||||
# library pre_processing
|
||||
# uuid c06c8400-8e06-11e0-9cb6-0002a5d5c51b
|
||||
# }
|
||||
|
||||
# Audio preprocessor configurations.
|
||||
# The pre processor configuration consists in a list of elements each describing
|
||||
# pre processor settings for a given input source. Valid input source names are:
|
||||
# "mic", "camcorder", "voice_recognition", "voice_communication"
|
||||
# Each input source element contains a list of effects elements. The name of the effect
|
||||
# element must be the name of one of the effects in the "effects" list of the file.
|
||||
# Each effect element may optionally contain a list of parameters and their
|
||||
# default value to apply when the pre processor effect is created.
|
||||
# A parameter is defined by a "param" element and a "value" element. Each of these elements
|
||||
# consists in one or more elements specifying a type followed by a value.
|
||||
# The types defined are: "int", "short", "float", "bool" and "string"
|
||||
# When both "param" and "value" are a single int, a simple form is allowed where just
|
||||
# the param and value pair is present in the parameter description
|
||||
# pre_processing {
|
||||
# <input source name> {
|
||||
# <fx name> {
|
||||
# <param 1 name> {
|
||||
# param {
|
||||
# int|short|float|bool|string <value>
|
||||
# [ int|short|float|bool|string <value> ]
|
||||
# ...
|
||||
# }
|
||||
# value {
|
||||
# int|short|float|bool|string <value>
|
||||
# [ int|short|float|bool|string <value> ]
|
||||
# ...
|
||||
# }
|
||||
# }
|
||||
# <param 2 name > {<param> <value>}
|
||||
# ...
|
||||
# }
|
||||
# ...
|
||||
# }
|
||||
# ...
|
||||
# }
|
||||
|
||||
#
|
||||
# TODO: add default audio pre processor configurations after debug and tuning phase
|
||||
#
|
||||
|
227
audio/audio_effects.xml
Normal file
227
audio/audio_effects.xml
Normal file
|
@ -0,0 +1,227 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- Copyright (c) 2016-2017, The Linux Foundation. All rights reserved
|
||||
Not a Contribution.
|
||||
-->
|
||||
<!-- Copyright (C) 2016 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.
|
||||
-->
|
||||
|
||||
<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” -->
|
||||
|
||||
<!-- Global configuration Decalaration -->
|
||||
<globalConfiguration speaker_drc_enabled="true"/>
|
||||
|
||||
|
||||
<!-- Modules section:
|
||||
There is one section per audio HW module present on the platform.
|
||||
Each module section will contains two mandatory tags for audio HAL “halVersion” and “name”.
|
||||
The module names are the same as in current .conf file:
|
||||
“primary”, “A2DP”, “remote_submix”, “USB”
|
||||
Each module will contain the following sections:
|
||||
“devicePorts”: a list of device descriptors for all input and output devices accessible via this
|
||||
module.
|
||||
This contains both permanently attached devices and removable devices.
|
||||
“mixPorts”: listing all output and input streams exposed by the audio HAL
|
||||
“routes”: list of possible connections between input and output devices or between stream and
|
||||
devices.
|
||||
"route": is defined by an attribute:
|
||||
-"type": <mux|mix> means all sources are mutual exclusive (mux) or can be mixed (mix)
|
||||
-"sink": the sink involved in this route
|
||||
-"sources": all the sources than can be connected to the sink via vis route
|
||||
“attachedDevices”: permanently attached devices.
|
||||
The attachedDevices section is a list of devices names. The names correspond to device names
|
||||
defined in <devicePorts> section.
|
||||
“defaultOutputDevice”: device to be used by default when no policy rule applies
|
||||
-->
|
||||
<modules>
|
||||
<!-- Primary Audio HAL -->
|
||||
<module name="primary" halVersion="2.0">
|
||||
<attachedDevices>
|
||||
<item>Earpiece</item>
|
||||
<item>Speaker</item>
|
||||
<item>Telephony Tx</item>
|
||||
<item>Built-In Mic</item>
|
||||
<item>Built-In Back Mic</item>
|
||||
<item>Telephony Rx</item>
|
||||
<item>FM Tuner</item>
|
||||
</attachedDevices>
|
||||
<defaultOutputDevice>Speaker</defaultOutputDevice>
|
||||
<mixPorts>
|
||||
<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="deep_buffer" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="voice_tx" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="voip_rx" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
|
||||
</mixPort>
|
||||
|
||||
<mixPort name="primary input" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_IN_5POINT1"/>
|
||||
</mixPort>
|
||||
<mixPort name="voice_rx" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000,48000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
|
||||
</mixPort>
|
||||
</mixPorts>
|
||||
|
||||
<devicePorts>
|
||||
<!-- Output devices declaration, i.e. Sink DEVICE PORT -->
|
||||
<devicePort tagName="Earpiece" type="AUDIO_DEVICE_OUT_EARPIECE" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_SPEAKER" address="">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Line" type="AUDIO_DEVICE_OUT_LINE" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
|
||||
<devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="FM Tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Telephony Rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
||||
</devicePort>
|
||||
</devicePorts>
|
||||
<!-- route declaration, i.e. list all available sources for a given sink -->
|
||||
<routes>
|
||||
<route type="mix" sink="Earpiece"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="Speaker"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="Wired Headset"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="Wired Headphones"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="Line"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="HDMI"
|
||||
sources="primary output,deep_buffer"/>
|
||||
<route type="mix" sink="Proxy"
|
||||
sources="primary output,deep_buffer"/>
|
||||
<route type="mix" sink="FM"
|
||||
sources="primary output,deep_buffer"/>
|
||||
<route type="mix" sink="BT SCO"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="BT SCO Headset"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="BT SCO Car Kit"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="Telephony Tx"
|
||||
sources="voice_tx"/>
|
||||
<route type="mix" sink="primary input"
|
||||
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/>
|
||||
<route type="mix" sink="voice_rx"
|
||||
sources="Telephony Rx"/>
|
||||
</routes>
|
||||
|
||||
</module>
|
||||
|
||||
<!-- A2dp Audio HAL -->
|
||||
<xi:include href="/vendor/etc/a2dp_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Usb Audio HAL -->
|
||||
<xi:include href="/vendor/etc/usb_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Remote Submix Audio HAL -->
|
||||
<xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/>
|
||||
|
||||
</modules>
|
||||
<!-- End of Modules section -->
|
||||
|
||||
<!-- Volume section -->
|
||||
<xi:include href="/vendor/etc/audio_policy_volumes.xml"/>
|
||||
<xi:include href="/vendor/etc/default_volume_tables.xml"/>
|
||||
<!-- End of Volume section -->
|
||||
|
||||
</audioPolicyConfiguration>
|
|
@ -77,14 +77,13 @@
|
|||
<device name="SND_DEVICE_IN_HEADSET_MIC_FLUENCE" alias="rec-main-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_SPEAKER_MIC" alias="voice-call-main-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_HEADSET_MIC" alias="voice-call-headset-mic" />
|
||||
<device name="SND_DEVICE_IN_CAMCORDER_MIC" alias="rec-stereo-mic" />
|
||||
<device name="SND_DEVICE_IN_CAMCORDER_MIC" alias="rec-main-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_DMIC" alias="voice-call-main-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_SPEAKER_DMIC" alias="voice-call-main-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_TTY_FULL_HEADSET_MIC" alias="TTY-full-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC" alias="TTY-vco-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_TTY_HCO_HEADSET_MIC" alias="TTY-headset-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_REC_MIC" alias="vr-main-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_REC_HEADSET_MIC" alias="vr-headset-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_REC_MIC_NS" alias="svoice-NS-mic" />
|
||||
<device name="SND_DEVICE_IN_VOICE_REC_DMIC_STEREO" alias="vr-main-mic" />
|
||||
<device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" alias="rec-stereo-mic" />
|
||||
|
|
|
@ -1,147 +0,0 @@
|
|||
# Global configuration section: lists input and output devices always present on the device
|
||||
# as well as the output device selected by default.
|
||||
# Devices are designated by a string that corresponds to the enum in audio.h
|
||||
|
||||
global_configuration {
|
||||
attached_output_devices AUDIO_DEVICE_OUT_SPEAKER
|
||||
default_output_device AUDIO_DEVICE_OUT_SPEAKER
|
||||
attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_VOICE_CALL
|
||||
}
|
||||
|
||||
# audio hardware module section: contains descriptors for all audio hw modules present on the
|
||||
# device. Each hw module node is named after the corresponding hw module library base name.
|
||||
# For instance, "primary" corresponds to audio.primary.<device>.so.
|
||||
# The "primary" module is mandatory and must include at least one output with
|
||||
# AUDIO_OUTPUT_FLAG_PRIMARY flag.
|
||||
# Each module descriptor contains one or more output profile descriptors and zero or more
|
||||
# input profile descriptors. Each profile lists all the parameters supported by a given output
|
||||
# or input stream category.
|
||||
# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
|
||||
# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n".
|
||||
|
||||
audio_hw_modules {
|
||||
primary {
|
||||
outputs {
|
||||
primary {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET
|
||||
flags AUDIO_OUTPUT_FLAG_PRIMARY
|
||||
}
|
||||
deep_buffer {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
|
||||
}
|
||||
low_latency {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_BLUETOOTH_SCO|AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY
|
||||
flags AUDIO_OUTPUT_FLAG_FAST
|
||||
}
|
||||
fast {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET
|
||||
flags AUDIO_OUTPUT_FLAG_FAST
|
||||
}
|
||||
hdmi {
|
||||
sampling_rates 48000
|
||||
channel_masks dynamic
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_AUX_DIGITAL
|
||||
flags AUDIO_OUTPUT_FLAG_MULTI_CH
|
||||
}
|
||||
compress_offload {
|
||||
sampling_rates 11025|16000|22050|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AAC|AUDIO_FORMAT_AC3|AUDIO_FORMAT_EAC3
|
||||
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
primary {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_FRONT_BACK|AUDIO_CHANNEL_IN_VOICE_UPLINK|AUDIO_CHANNEL_IN_VOICE_DNLINK
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADPHONE|AUDIO_DEVICE_IN_AUX_DIGITAL|AUDIO_DEVICE_IN_VOICE_CALL
|
||||
}
|
||||
}
|
||||
}
|
||||
a2dp {
|
||||
outputs {
|
||||
a2dp {
|
||||
sampling_rates 44100
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_ALL_A2DP
|
||||
}
|
||||
}
|
||||
}
|
||||
usb {
|
||||
outputs {
|
||||
usb_accessory {
|
||||
sampling_rates 44100
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_USB_ACCESSORY
|
||||
}
|
||||
usb_device {
|
||||
sampling_rates 44100|48000
|
||||
channel_masks dynamic
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
usb_device {
|
||||
sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_DGTL_DOCK_HEADSET
|
||||
}
|
||||
}
|
||||
}
|
||||
tms {
|
||||
outputs {
|
||||
tms {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_EXTERNAL_TMS
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
tms {
|
||||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
|
||||
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_EXTERNAL_TMS
|
||||
}
|
||||
}
|
||||
}
|
||||
r_submix {
|
||||
outputs {
|
||||
submix {
|
||||
sampling_rates 48000
|
||||
channel_masks AUDIO_CHANNEL_OUT_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
|
||||
}
|
||||
}
|
||||
inputs {
|
||||
submix {
|
||||
sampling_rates 48000
|
||||
channel_masks AUDIO_CHANNEL_IN_STEREO
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -192,6 +192,12 @@
|
|||
sources="primary output,low_latency,compressed_offload"/>
|
||||
<route type="mix" sink="Proxy"
|
||||
sources="primary output,low_latency,compressed_offload"/>
|
||||
<route type="mix" sink="BT SCO"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="BT SCO Headset"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
<route type="mix" sink="BT SCO Car Kit"
|
||||
sources="primary output,deep_buffer,voip_rx"/>
|
||||
</routes>
|
||||
|
||||
</module>
|
||||
|
|
|
@ -192,8 +192,8 @@
|
|||
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
|
||||
<ctl name="SLIM RX2 MUX" value="AIF1_PB" />
|
||||
<ctl name="SLIM_0_RX Channels" value="Two" />
|
||||
<ctl name="RX4 MIX1 INP1" value="RX1" />
|
||||
<ctl name="RX3 MIX1 INP1" value="RX2" />
|
||||
<ctl name="RX4 MIX1 INP1" value="RX2" />
|
||||
<ctl name="RX3 MIX1 INP1" value="RX1" />
|
||||
<ctl name="RDAC5 MUX" value="DEM4" />
|
||||
</path>
|
||||
|
||||
|
@ -201,8 +201,8 @@
|
|||
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
|
||||
<ctl name="SLIM RX2 MUX" value="AIF1_PB" />
|
||||
<ctl name="SLIM_0_RX Channels" value="Two" />
|
||||
<ctl name="RX2 MIX1 INP1" value="RX1" />
|
||||
<ctl name="RX1 MIX1 INP1" value="RX2" />
|
||||
<ctl name="RX2 MIX1 INP1" value="RX2" />
|
||||
<ctl name="RX1 MIX1 INP1" value="RX1" />
|
||||
<ctl name="CLASS_H_DSM MUX" value="RX_HPHL" />
|
||||
<ctl name="HPHL DAC Switch" value="1" />
|
||||
<ctl name="COMP1 Switch" value="1" />
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Activity recognition
|
||||
vendor/lib/libsensor1.so
|
||||
|
||||
# Audio - Libs pinned to Samsung Galaxy S5 G900FXXU1CRH1_G900FOXA1CRH1_BTU
|
||||
# Audio - Libs pinned to Samsung Galaxy S5 G900FXXU1CSA1_G900FVIA1CSC1_VIA
|
||||
vendor/lib/libacdbloader.so|27ceba70917afc0e9b26877354c8404dae5af09c
|
||||
vendor/lib/libacdbrtac.so|f1a150ccd4bf0b5a2957532ec2690b52124d006d
|
||||
vendor/lib/libadiertac.so|e29a874dc3e6622fda4fc76032a7ea5dc44eb228
|
||||
|
@ -186,13 +186,13 @@ etc/firmware/cpp_firmware_v1_1_1.fw
|
|||
etc/firmware/cpp_firmware_v1_1_6.fw
|
||||
etc/firmware/cpp_firmware_v1_2_0.fw
|
||||
|
||||
# CPU - Pinned to Samsung Galaxy S5 G900FXXU1CRH1_G900FOXA1CRH1_BTU
|
||||
# CPU - Pinned to Samsung Galaxy S5 G900FXXU1CSA1_G900FVIA1CSC1_VIA
|
||||
bin/mpdecision:vendor/bin/mpdecision|f2f62bee58d83a16f649ad63d0520de30bca0d7f
|
||||
vendor/bin/thermal-engine|fb82c53fa2f9c7618a6540de61b4477ac54523a3
|
||||
vendor/lib/libthermalclient.so|e1f2136608a7104016f7f7261dddcfbb0c6aa870
|
||||
vendor/lib/libthermalioctl.so|9c7993e03f68bb17dd744c0369b9bfaff23a1e66
|
||||
|
||||
# DRM - Pinned to Samsung Galaxy S5 G900FXXU1CRH1_G900FOXA1CRH1_BTU where specified
|
||||
# DRM - Pinned to Samsung Galaxy S5 G900FXXU1CSA1_G900FVIA1CSC1_VIA where specified
|
||||
bin/qseecomd:vendor/bin/qseecomd|4a69e9799a988d5527e8802470a0a036cb0b120f
|
||||
vendor/lib/libdrmdiag.so|498085e4fc40eacee17bb9c78eaf2da060ecc58e
|
||||
vendor/lib/libdrmfs.so|6f50f22ae12695c2bb29f5c6c2c00029e78b0c12
|
||||
|
@ -204,11 +204,11 @@ vendor/lib/libssd.so|f7216c09cd17a94fb946179503cd286262be9de8
|
|||
# DRM - Pinned to S5 Mini G800HXXU1CRJ1_G800HXEO1CRJ1
|
||||
lib/libdrmdecrypt.so:vendor/lib/libdrmdecrypt.so|a79248704d988a8e1930c3a79212e8588c07bfff
|
||||
|
||||
# IPC router security - Pinned to Samsung Galaxy S5 G900FXXU1CRH1_G900FOXA1CRH1_BTU
|
||||
# IPC router security - Pinned to Samsung Galaxy S5 G900FXXU1CSA1_G900FVIA1CSC1_VIA
|
||||
bin/irsc_util:vendor/bin/irsc_util|286b8129b6b82fb19badcbb5f796013a5e9376a1
|
||||
etc/sec_config:vendor/etc/sec_config
|
||||
|
||||
# IPv6 Tethering - Pinned to Samsung Galaxy S5 G900FXXU1CRH1_G900FOXA1CRH1_BTU
|
||||
# IPv6 Tethering - Pinned to Samsung Galaxy S5 G900FXXU1CSA1_G900FVIA1CSC1_VIA
|
||||
bin/radish:vendor/bin/radish|5c54cb3d5c3472b6bb8f535817eeb55852b34ef0
|
||||
|
||||
# Media - Pinned to Samsung Galaxy S5 Mini G800HXXU1CRJ1_G800HXEO1CRJ1
|
||||
|
@ -269,9 +269,3 @@ vendor/lib/libdsucsd.so|1f739bcb91330edb307329f851f031d56723672f
|
|||
|
||||
# Sensors
|
||||
lib/hw/sensors.msm8226.so:vendor/lib/hw/sensors.vendor.msm8226.so
|
||||
|
||||
# Time services
|
||||
-app/TimeService/TimeService.apk|a1c0da0af9f3c3757a8fe04520011e2137def584
|
||||
bin/time_daemon:vendor/bin/time_daemon|b55e8b7aa5e1a4ad71976da6a607762f8762585a
|
||||
vendor/lib/libTimeService.so|aa3036dee5a6c74b9d32a93ab13cf1ec04aa99c4
|
||||
-vendor/lib/libtime_genoff.so|ffb08547c733760c151b08977a04694b4bc84df1
|
||||
|
|
|
@ -1,34 +1,68 @@
|
|||
sampling 5000
|
||||
|
||||
[CPU0-1_MONITOR]
|
||||
[CPU0_MONITOR]
|
||||
algo_type monitor
|
||||
sensor cpu0-1
|
||||
sensor cpu0
|
||||
sampling 1000
|
||||
thresholds 120000
|
||||
thresholds_clr 115000
|
||||
actions shutdown
|
||||
action_info 5000
|
||||
|
||||
[CPU2-3_MONITOR]
|
||||
[CPU1_MONITOR]
|
||||
algo_type monitor
|
||||
sensor cpu2-3
|
||||
sensor cpu1
|
||||
sampling 1000
|
||||
thresholds 120000
|
||||
thresholds_clr 115000
|
||||
actions shutdown
|
||||
action_info 5000
|
||||
|
||||
[CPU0-1_SS]
|
||||
[CPU2_MONITOR]
|
||||
algo_type monitor
|
||||
sensor cpu2
|
||||
sampling 1000
|
||||
thresholds 120000
|
||||
thresholds_clr 115000
|
||||
actions shutdown
|
||||
action_info 5000
|
||||
|
||||
[CPU3_MONITOR]
|
||||
algo_type monitor
|
||||
sensor cpu3
|
||||
sampling 1000
|
||||
thresholds 120000
|
||||
thresholds_clr 115000
|
||||
actions shutdown
|
||||
action_info 5000
|
||||
|
||||
[CPU0_SS]
|
||||
algo_type ss
|
||||
sensor cpu0-1
|
||||
sensor cpu0
|
||||
device cpu
|
||||
sampling 65
|
||||
set_point 85000
|
||||
set_point_clr 65000
|
||||
|
||||
[CPU2-3_SS]
|
||||
[CPU1_SS]
|
||||
algo_type ss
|
||||
sensor cpu2-3
|
||||
sensor cpu1
|
||||
device cpu
|
||||
sampling 65
|
||||
set_point 85000
|
||||
set_point_clr 65000
|
||||
|
||||
[CPU2_SS]
|
||||
algo_type ss
|
||||
sensor cpu2
|
||||
device cpu
|
||||
sampling 65
|
||||
set_point 85000
|
||||
set_point_clr 65000
|
||||
|
||||
[CPU3_SS]
|
||||
algo_type ss
|
||||
sensor cpu3
|
||||
device cpu
|
||||
sampling 65
|
||||
set_point 85000
|
||||
|
|
27
init/Android.bp
Normal file
27
init/Android.bp
Normal file
|
@ -0,0 +1,27 @@
|
|||
//
|
||||
// Copyright (C) 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.
|
||||
//
|
||||
|
||||
cc_library_static {
|
||||
name: "libinit_matisse",
|
||||
recovery_available: true,
|
||||
srcs: ["init_matisse.cpp"],
|
||||
include_dirs: [
|
||||
"device/samsung/msm8226-common/init",
|
||||
"system/core/base/include",
|
||||
"system/core/init",
|
||||
],
|
||||
whole_static_libs: ["libinit_helpers_sam8226"]
|
||||
}
|
92
init/init_matisse.cpp
Executable file
92
init/init_matisse.cpp
Executable file
|
@ -0,0 +1,92 @@
|
|||
/*
|
||||
Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
||||
Copyright (c) 2017-2018, The LineageOS Project. 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.
|
||||
*/
|
||||
|
||||
#include <android-base/logging.h>
|
||||
#include <android-base/properties.h>
|
||||
|
||||
#include "property_service.h"
|
||||
|
||||
#include "init_msm8226.h"
|
||||
|
||||
using android::base::GetProperty;
|
||||
using android::init::property_set;
|
||||
|
||||
void vendor_load_properties()
|
||||
{
|
||||
std::string bootloader = GetProperty("ro.bootloader", "");
|
||||
|
||||
if (bootloader.find("T530XX") == 0) {
|
||||
/* matissewifixx */
|
||||
set_ro_build_prop("fingerprint", "samsung/matissewifixx/matissewifi:5.0.2/LRX22G/T530XXS1BRH1:user/release-keys");
|
||||
set_ro_product_prop("name", "matissewifixx");
|
||||
property_override("ro.build.description", "matissewifixx-user 5.0.2 LRX22G T530XXS1BRH1 release-keys");
|
||||
set_ro_product_prop("model", "SM-T530");
|
||||
set_ro_product_prop("device", "matissewifi");
|
||||
wifi_properties("wifi-only", "1");
|
||||
} else if (bootloader.find("T530NU") == 0) {
|
||||
/* matissewifiue */
|
||||
set_ro_build_prop("fingerprint", "samsung/matissewifiue/matissewifiue:5.0.2/LRX22G/T530NUUEU1BQC1:user/release-keys");
|
||||
set_ro_product_prop("name", "matissewifiue");
|
||||
property_override("ro.build.description", "matissewifiue-user 5.0.2 LRX22G T530NUUEU1BQC1 release-keys");
|
||||
set_ro_product_prop("model", "SM-T530NU");
|
||||
set_ro_product_prop("device", "matissewifi");
|
||||
wifi_properties("wifi-only", "1");
|
||||
} else if (bootloader.find("T531XX") == 0) {
|
||||
/* matisse3gxx */
|
||||
set_ro_build_prop("fingerprint", "samsung/matisse3gxx/matisse3g:5.0.2/LRX22G/T531XXS1BRH1:user/release-keys");
|
||||
set_ro_product_prop("name", "matisse3gxx");
|
||||
property_override("ro.build.description", "matisse3gxx-user 5.0.2 LRX22G T531XXS1BRH1 release-keys");
|
||||
set_ro_product_prop("model", "SM-T531");
|
||||
set_ro_product_prop("device", "matisse3g");
|
||||
gsm_properties("3", "0");
|
||||
} else if (bootloader.find("T532XX") == 0) {
|
||||
/* matisse3gjvxx */
|
||||
set_ro_build_prop("fingerprint", "samsung/matisse3gjv/matisse3g:5.0.2/LRX22G/T532JVS1BQB1:user/release-keys");
|
||||
set_ro_product_prop("name", "matisse3gjvxx");
|
||||
property_override("ro.build.description", "matisse3gjv-user 5.0.2 LRX22G T532JVS1BQB1 release-keys");
|
||||
set_ro_product_prop("model", "SM-T532");
|
||||
set_ro_product_prop("device", "matisse3gjv");
|
||||
gsm_properties("3", "0");
|
||||
} else if (bootloader.find("T535XX") == 0) {
|
||||
/* matisseltexx */
|
||||
set_ro_build_prop("fingerprint", "samsung/matisseltexx/matisselte:5.0.2/LRX22G/T535XXS1BRJ2:user/release-keys");
|
||||
set_ro_product_prop("name", "matisseltexx");
|
||||
property_override("ro.build.description", "matisseltexx-user 5.0.2 LRX22G T535XXS1BRJ2 release-keys");
|
||||
set_ro_product_prop("model", "SM-T535");
|
||||
set_ro_product_prop("device", "matisselte");
|
||||
gsm_properties("9", "1");
|
||||
} else {
|
||||
wifi_properties("wifi-only", "1");
|
||||
}
|
||||
|
||||
std::string device = GetProperty("ro.product.device", "");
|
||||
LOG(ERROR) << "Found bootloader id " << bootloader << " setting build properties for "
|
||||
<< device << " device" << std::endl;
|
||||
}
|
|
@ -6,9 +6,5 @@
|
|||
{
|
||||
"repository": "android_kernel_samsung_msm8226",
|
||||
"target_path": "kernel/samsung/msm8226"
|
||||
},
|
||||
{
|
||||
"repository": "android_packages_apps_FlipFlap",
|
||||
"target_path": "packages/apps/FlipFlap"
|
||||
}
|
||||
]
|
||||
|
|
35
matisse.mk
35
matisse.mk
|
@ -19,15 +19,15 @@
|
|||
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
||||
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage
|
||||
|
||||
# Boot animation
|
||||
# Boot Animation
|
||||
TARGET_SCREEN_HEIGHT := 1280
|
||||
TARGET_SCREEN_WIDTH := 800
|
||||
TARGET_SCREEN_WIDTH := 800
|
||||
|
||||
# Audio
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/audio/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
|
||||
$(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
||||
$(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
|
||||
$(LOCAL_PATH)/audio/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
|
||||
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
||||
$(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
|
||||
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
|
||||
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
|
||||
|
@ -35,10 +35,6 @@ PRODUCT_COPY_FILES += \
|
|||
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
|
||||
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
|
||||
|
||||
# Camera
|
||||
PRODUCT_PACKAGES += \
|
||||
Camera2
|
||||
|
||||
# Device is a tablet
|
||||
PRODUCT_CHARACTERISTICS := tablet
|
||||
|
||||
|
@ -61,9 +57,9 @@ PRODUCT_PACKAGES += \
|
|||
|
||||
# Keylayouts
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
||||
$(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl \
|
||||
$(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchscreen.kl
|
||||
$(LOCAL_PATH)/keylayout/gpio-keys.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/gpio-keys.kl \
|
||||
$(LOCAL_PATH)/keylayout/sec_touchkey.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/sec_touchkey.kl \
|
||||
$(LOCAL_PATH)/keylayout/sec_touchkey.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/sec_touchscreen.kl
|
||||
|
||||
# Lights
|
||||
PRODUCT_PACKAGES += \
|
||||
|
@ -80,7 +76,7 @@ PRODUCT_COPY_FILES += \
|
|||
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
|
||||
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
|
||||
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
|
||||
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml
|
||||
frameworks/native/data/etc/tablet_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tablet_core_hardware.xml
|
||||
|
||||
# Radio
|
||||
PRODUCT_PACKAGES += \
|
||||
|
@ -91,14 +87,21 @@ PRODUCT_PACKAGES += \
|
|||
fstab.qcom \
|
||||
init.target.rc
|
||||
|
||||
# Recents
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.recents.grid=true
|
||||
|
||||
# Sensors
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/sensors/_hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/_hals.conf
|
||||
|
||||
# Shims
|
||||
PRODUCT_PACKAGES += \
|
||||
libshim_binder
|
||||
|
||||
# Shipping API level
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_k.mk)
|
||||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(LOCAL_PATH)
|
||||
|
||||
# Thermal
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/thermal-engine-8226.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-8226.conf
|
||||
|
|
|
@ -22,4 +22,7 @@
|
|||
out of setting a batch size, which fixes rotation. -->
|
||||
<bool name="config_useDefaultBatchingForAccel">false</bool>
|
||||
|
||||
<!-- Disable Button backlight settings -->
|
||||
<integer name="config_buttonBrightnessSettingDefault">0</integer>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -43,7 +43,4 @@
|
|||
For example, a device with Home, Back and Menu keys would set this
|
||||
config to 7. -->
|
||||
<integer name="config_deviceHardwareWakeKeys">65</integer>
|
||||
|
||||
<!-- BurnIn protection. This should be enabled on devices that have OLED displays -->
|
||||
<bool name="config_enableBurnInProtection">true</bool>
|
||||
</resources>
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/* //device/apps/common/assets/res/any/dimens.xml
|
||||
**
|
||||
** Copyright 2014, The CyanogenMod Project <http://www.cyanogenmod.org>
|
||||
**
|
||||
** 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>
|
||||
<!-- Height of the bottom navigation bar -->
|
||||
<dimen name="navigation_bar_height">64dp</dimen>
|
||||
<dimen name="navigation_bar_height_portrait">64dp</dimen>
|
||||
<dimen name="navigation_bar_height_landscape">64dp</dimen>
|
||||
</resources>
|
|
@ -24,64 +24,9 @@
|
|||
|
||||
<bool name="config_deskDockEnablesAccelerometer">false</bool>
|
||||
|
||||
<!-- 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>2</item>
|
||||
<item>7</item>
|
||||
<item>15</item>
|
||||
<item>50</item>
|
||||
<item>100</item>
|
||||
<item>200</item>
|
||||
<item>400</item>
|
||||
<item>1000</item>
|
||||
<item>2000</item>
|
||||
<item>3000</item>
|
||||
<item>5000</item>
|
||||
<item>10000</item>
|
||||
<item>30000</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of output values for LCD backlight corresponding to the LUX values
|
||||
in the config_autoBrightnessLevels array. This array should have size one greater
|
||||
than the size of the config_autoBrightnessLevels array.
|
||||
This must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessLcdBacklightValues">
|
||||
<item>13</item> <!-- 0-2 -->
|
||||
<item>25</item> <!-- 3-7 -->
|
||||
<item>32</item> <!-- 5-15 -->
|
||||
<item>41</item> <!-- 15-50 -->
|
||||
<item>52</item> <!-- 50-100 -->
|
||||
<item>62</item> <!-- 100-200 -->
|
||||
<item>69</item> <!-- 200-400 -->
|
||||
<item>78</item> <!-- 400-1000 -->
|
||||
<item>88</item> <!-- 1000-2000 -->
|
||||
<item>134</item> <!-- 2000-3000 -->
|
||||
<item>178</item> <!-- 3000-5000 -->
|
||||
<item>225</item> <!-- 5000-10000 -->
|
||||
<item>255</item> <!-- 10000-30000 -->
|
||||
<item>255</item> <!-- 30000+ -->
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of output values for button backlight corresponding to the LUX values
|
||||
in the config_autoBrightnessLevels array. This array should have size one greater
|
||||
than the size of the config_autoBrightnessLevels array.
|
||||
This must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessButtonBacklightValues">
|
||||
<item>1</item>
|
||||
<item>1</item>
|
||||
<item>0</item>
|
||||
<item>0</item>
|
||||
<item>0</item>
|
||||
</integer-array>
|
||||
<!-- Flag indicating whether we should enable the automatic brightness in Settings.
|
||||
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
||||
<bool name="config_automatic_brightness_available">false</bool>
|
||||
|
||||
<!-- Minimum screen brightness allowed by the power manager. -->
|
||||
<integer name="config_screenBrightnessDim">2</integer>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<value>148</value>
|
||||
<value>55</value>
|
||||
</array>
|
||||
<item name="battery.capacity">4000</item>
|
||||
<item name="battery.capacity">6800</item>
|
||||
<array name="wifi.batchedscan">
|
||||
<value>.0002</value>
|
||||
<value>.002</value>
|
||||
|
|
|
@ -18,6 +18,5 @@
|
|||
-->
|
||||
<resources>
|
||||
<bool name="def_accelerometer_rotation">true</bool>
|
||||
<bool name="def_screen_brightness_automatic_mode">true</bool>
|
||||
</resources>
|
||||
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) 2017 The LineageOS Project
|
||||
|
||||
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.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- Define Device Lid Style
|
||||
|
||||
1 HTC Style Dotcase
|
||||
2 Asus/LG Style Circle Window Cover
|
||||
3 Rectangular window Cover
|
||||
|
||||
For example, a device with Asus Circle Cover would set 2 -->
|
||||
<integer name="config_deviceCoverType">3</integer>
|
||||
|
||||
</resources>
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) 2017 The LineageOS Project
|
||||
|
||||
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.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Rectangular parameters (config_deviceCoverType == 3) -->
|
||||
<dimen name="rectangular_window_top">0px</dimen>
|
||||
<dimen name="rectangular_window_left">60px</dimen>
|
||||
<dimen name="rectangular_window_width">960px</dimen>
|
||||
<dimen name="rectangular_window_height">960px</dimen>
|
||||
|
||||
</resources>
|
|
@ -1,9 +0,0 @@
|
|||
# Audio
|
||||
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
|
||||
AUDIO_FEATURE_SAMSUNG_DUAL_SIM := true
|
||||
|
||||
# Properties
|
||||
TARGET_SYSTEM_PROP += $(COMMON_PATH)/radio/dual/system.prop
|
||||
|
||||
# Radio/RIL
|
||||
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/radio/dual/manifest.xml
|
|
@ -1,27 +0,0 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>IRadio</name>
|
||||
<instance>slot1</instance>
|
||||
<instance>slot2</instance>
|
||||
</interface>
|
||||
<interface>
|
||||
<name>ISap</name>
|
||||
<instance>slot1</instance>
|
||||
<instance>slot2</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio.deprecated</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IOemHook</name>
|
||||
<instance>slot1</instance>
|
||||
<instance>slot2</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
|
@ -1,3 +0,0 @@
|
|||
# Radio/RIL
|
||||
PRODUCT_PACKAGES += \
|
||||
rild_dsds.rc
|
|
@ -1,6 +0,0 @@
|
|||
# RIL
|
||||
persist.radio.multisim.config=dsds
|
||||
ro.multisim.audio_follow_default_sim=false
|
||||
ro.multisim.simslotcount=2
|
||||
ro.multisim.set_audio_params=true
|
||||
ro.telephony.ril.config=simactivation
|
|
@ -4,16 +4,16 @@ include $(CLEAR_VARS)
|
|||
# Init
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.qcom
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/fstab.qcom
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.target.rc
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.target.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1,errors=panic wait,recoveryonly
|
||||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check,formattable,encryptable=footer,length=-16384
|
||||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 nosuid,nodev,noatime,noauto_da_alloc,errors=continue,commit=20 wait,check,formattable,encryptable=footer,length=-16384
|
||||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check,formattable
|
||||
/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check,formattable,encryptable=footer,length=-16384
|
||||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 nosuid,nodev,noatime,noauto_da_alloc,errors=continue,commit=20 wait,check,formattable
|
||||
/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check,formattable
|
||||
/dev/block/platform/msm_sdcc.1/by-name/apnhlos /firmware sdfat ro,shortname=lower,uid=1000,gid=1026,dmask=222,fmask=333,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware-modem sdfat ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 nosuid,nodev,noatime,noauto_da_alloc,journal_async_commit,errors=panic wait,check
|
||||
|
@ -22,4 +22,4 @@
|
|||
/devices/platform/msm_hsusb_host/usb* auto auto defaults voldmanaged=usb:auto
|
||||
|
||||
# Zram
|
||||
/dev/block/zram0 none swap defaults zramsize=25%,max_comp_streams=4,swapprio=10,notrim
|
||||
/dev/block/zram0 none swap defaults zramsize=75%,max_comp_streams=4,swapprio=10,notrim
|
||||
|
|
|
@ -37,19 +37,7 @@ on post-fs-data
|
|||
chown root system /sys/class/leds/button-backlight/max_brightness
|
||||
chmod 0664 /sys/class/leds/button-backlight/max_brightness
|
||||
|
||||
# Torch
|
||||
chmod 0666 /sys/class/leds/led:flash_torch/brightness
|
||||
chown system camera /sys/class/leds/led:flash_torch/brightness
|
||||
|
||||
on boot
|
||||
# NFC_NXP
|
||||
symlink /dev/pn547 /dev/pn544
|
||||
symlink /dev/pn547 /dev/pn54x
|
||||
|
||||
# NFC_SLSI
|
||||
mkdir /data/nfc 0770 nfc nfc
|
||||
mkdir /data/nfc/param 0770 nfc nfc
|
||||
|
||||
# Accelerometer_sensor
|
||||
chown system radio /sys/class/sensors/accelerometer_sensor/raw_data
|
||||
chown system radio /sys/class/sensors/accelerometer_sensor/calibration
|
||||
|
|
1
sepolicy/common/blkid_untrusted.te
Normal file
1
sepolicy/common/blkid_untrusted.te
Normal file
|
@ -0,0 +1 @@
|
|||
allow blkid_untrusted proc_filesystems:file { read open getattr };
|
7
sepolicy/common/charger.te
Normal file
7
sepolicy/common/charger.te
Normal file
|
@ -0,0 +1,7 @@
|
|||
allow charger charger:capability { dac_override dac_read_search };
|
||||
allow charger device:dir { read open };
|
||||
allow charger proc_last_kmsg:file { read open };
|
||||
|
||||
userdebug_or_eng(`
|
||||
permissive charger;
|
||||
')
|
2
sepolicy/common/healthd.te
Normal file
2
sepolicy/common/healthd.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
allow healthd healthd:capability { dac_override };
|
||||
allow healthd proc_last_kmsg:file { read open };
|
2
sepolicy/common/untrusted_app.te
Normal file
2
sepolicy/common/untrusted_app.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
allow untrusted_app sysfs_net:dir search;
|
||||
allow untrusted_app proc:file { read open getattr };
|
43
system.prop
43
system.prop
|
@ -8,7 +8,9 @@ audio.offload.video=true
|
|||
persist.vendor.audio.fluence.speaker=true
|
||||
persist.vendor.audio.fluence.voicecall=true
|
||||
persist.vendor.audio.fluence.voicerec=false
|
||||
ro.vendor.audio.sdk.fluencetype=fluence
|
||||
persist.vendor.audio.fluence.audiorec=true
|
||||
persist.vendor.audio.handset.mic.type=digital
|
||||
ro.vendor.audio.sdk.fluencetype=none
|
||||
vendor.audio.offload.multiple.enabled=false
|
||||
vendor.audio_hal.period_size=192
|
||||
vendor.dedicated.device.for.voip=true
|
||||
|
@ -18,13 +20,6 @@ vendor.voice.path.for.pcm.voip=false
|
|||
ro.bluetooth.hfp.ver=1.7
|
||||
vendor.qcom.bluetooth.soc=pronto
|
||||
qcom.bt.le_dev_pwr_class=1
|
||||
ro.qualcomm.bluetooth.opp=true
|
||||
ro.qualcomm.bluetooth.hfp=true
|
||||
ro.qualcomm.bluetooth.hsp=true
|
||||
ro.qualcomm.bluetooth.pbap=true
|
||||
ro.qualcomm.bluetooth.ftp=true
|
||||
ro.qualcomm.bluetooth.nap=true
|
||||
ro.qualcomm.bluetooth.map=true
|
||||
ro.bluetooth.sap=true
|
||||
ro.bluetooth.dun=true
|
||||
ro.qualcomm.bt.hci_transport=smd
|
||||
|
@ -37,7 +32,6 @@ ro.hdcp2.rx=tz
|
|||
ro.qualcomm.cabl=1
|
||||
ro.secwvk=144
|
||||
ro.sf.lcd_density=160
|
||||
sys.use_fifo_ui=1
|
||||
debug.sf.disable_backpressure=1
|
||||
debug.sf.latch_unsignaled=1
|
||||
debug.sf.recomputecrop=0
|
||||
|
@ -55,24 +49,14 @@ ro.qc.sdk.izat.service_mask=0x0
|
|||
# HDMI
|
||||
ro.hdmi.enable=true
|
||||
persist.demo.hdmirotationlock=false
|
||||
ro.hdmi.enable=true
|
||||
|
||||
# HWUI
|
||||
debug.hwui.use_buffer_age=false
|
||||
ro.hwui.texture_cache_size=24
|
||||
ro.hwui.layer_cache_size=16
|
||||
ro.hwui.path_cache_size=4
|
||||
ro.hwui.texture_cache_flushrate=0.4
|
||||
ro.hwui.shape_cache_size=1
|
||||
ro.hwui.gradient_cache_size=0.5
|
||||
ro.hwui.drop_shadow_cache_size=2
|
||||
ro.hwui.r_buffer_cache_size=2
|
||||
ro.hwui.text_small_cache_width=1024
|
||||
ro.hwui.text_small_cache_height=512
|
||||
ro.hwui.text_large_cache_width=2048
|
||||
ro.hwui.text_large_cache_height=1024
|
||||
|
||||
# Media
|
||||
debug.stagefright.ccodec=0
|
||||
debug.stagefright.omx_default_rank.sw-audio=1
|
||||
debug.stagefright.omx_default_rank=0
|
||||
media.stagefright.legacyencoder=true
|
||||
media.stagefright.less-secure=true
|
||||
media.stagefright.enable-player=true
|
||||
|
@ -82,8 +66,6 @@ media.stagefright.enable-qcp=true
|
|||
media.stagefright.enable-fma2dp=true
|
||||
media.stagefright.enable-scan=true
|
||||
mmp.enable.3g2=true
|
||||
mm.enable.smoothstreaming=true
|
||||
media.aac_51_output_enabled=true
|
||||
#37491 is decimal sum of supported codecs in AAL
|
||||
#codecs: AVI AC3 ASF AAC QCP DTS 3G2 MP2TS
|
||||
mm.enable.qcom_parser=37491
|
||||
|
@ -91,12 +73,12 @@ mm.enable.qcom_parser=37491
|
|||
# Memory optimizations
|
||||
ro.vendor.qti.am.reschedule_service=true
|
||||
|
||||
# NFC
|
||||
ro.nfc.port=I2C
|
||||
|
||||
# Perf
|
||||
ro.vendor.extension_library=/vendor/lib/libqti-perfd-client.so
|
||||
|
||||
# Rotate Lockscreen
|
||||
lockscreen.rot_override=true
|
||||
|
||||
# Sensors
|
||||
ro.qc.sdk.gestures.camera=false
|
||||
ro.qc.sdk.camera.facialproc=false
|
||||
|
@ -116,3 +98,10 @@ ro.lineage.build.vendor_security_patch=2017-08-01
|
|||
# WiFi
|
||||
ro.disableWifiApFirmwareReload=true
|
||||
wifi.interface=wlan0
|
||||
|
||||
# HAX to follow
|
||||
ro.secure=0
|
||||
ro.adb.secure=0
|
||||
persist.service.adb.enable=1
|
||||
persist.service.debuggable=1
|
||||
persist.sys.usb.config=adb
|
||||
|
|
30
twrp.mk
30
twrp.mk
|
@ -1,30 +0,0 @@
|
|||
# Copyright (C) 2017 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.
|
||||
|
||||
TARGET_RECOVERY_DEVICE_DIRS += $(COMMON_PATH)/twrp
|
||||
|
||||
RECOVERY_SDCARD_ON_DATA := true
|
||||
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
|
||||
TARGET_RECOVERY_QCOM_RTC_FIX := true
|
||||
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/msm_hsusb/gadget/lun%d/file"
|
||||
TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
|
||||
TW_DEFAULT_BRIGHTNESS := 162
|
||||
TW_HAS_DOWNLOAD_MODE := true
|
||||
TW_INCLUDE_CRYPTO := true
|
||||
TW_MAX_BRIGHTNESS := 255
|
||||
TW_MTP_DEVICE := "/dev/mtp_usb"
|
||||
TW_NO_EXFAT_FUSE := true
|
||||
TW_NO_LEGACY_PROPS := true
|
||||
TW_NO_REBOOT_BOOTLOADER := true
|
||||
TW_THEME := portrait_hdpi
|
|
@ -1,15 +0,0 @@
|
|||
/boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot
|
||||
/recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery flags=backup=1
|
||||
/system ext4 /dev/block/platform/msm_sdcc.1/by-name/system
|
||||
/data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata length=-16384
|
||||
/cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache
|
||||
/efs1 emmc /dev/block/platform/msm_sdcc.1/by-name/efs flags=backup=1;display=EFS
|
||||
/efs2 emmc /dev/block/platform/msm_sdcc.1/by-name/modemst1 flags=backup=1;subpartitionof=/efs1
|
||||
/efs3 emmc /dev/block/platform/msm_sdcc.1/by-name/modemst2 flags=backup=1;subpartitionof=/efs1
|
||||
/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable
|
||||
/modem emmc /dev/block/platform/msm_sdcc.1/by-name/modem flags=backup=1;display="Modem"
|
||||
/preload ext4 /dev/block/mmcblk0p25 flags=display="Preload";wipeingui;backup=1
|
||||
/misc emmc /dev/block/platform/msm_sdcc.1/by-name/fota flags=display="Misc"
|
||||
|
||||
/external_sd auto /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="MicroSD";storage;wipeingui;removable
|
||||
/usb-otg auto /dev/block/sda1 /dev/block/sda flags=display="USB OTG";storage;wipeingui;removable
|
Loading…
Reference in a new issue