Compare commits

...

63 Commits

Author SHA1 Message Date
Francescodario Cuzzocrea 6f82554da3 DNM: hacks 2020-10-02 17:03:31 +02:00
Francescodario Cuzzocrea 845f8df005 why guys, why... 2020-10-02 12:11:50 +02:00
Francescodario Cuzzocrea 516e9d0962 DNM: debug hacks 2020-10-02 11:53:30 +02:00
Nolen Johnson 24a868d7ab matisse-common: Set device soong namespace
Change-Id: I118a3b7a4552ccef219ea1a7c59584d7268614c2
2020-10-02 11:47:11 +02:00
LuK1337 b9fb7d73ad matisse-common: init: Override everything ^.^
Change-Id: Ib1946d5876a6567a78c8007d930fc0e34d44a6f6
2020-10-02 11:45:16 +02:00
dianlujitao b81b2b20ad matisse-common: libinit: Convert libinit_s3ve3g to blueprint
Change-Id: I990a4d2c68cd51f0043390408c3b128c4bb20900
2020-10-02 11:40:11 +02:00
Francescodario Cuzzocrea fe23a93de0 matisse-common: fix audio_policy_configuration.xml 2020-10-02 11:38:46 +02:00
Sujin Panicker 80942d7e92 matisse-common: fix rank of OMX audio codec components
Rank OMX SW audio codecs higher than C2 codecs.

Change-Id: I7d03179ebd313d2592512178eeef266b4243f2f0
2020-10-02 11:37:11 +02:00
bohu 9ec6dcd2dc matisse-common: Disable codec2
BUG: 133178866
Change-Id: Ie6698604357adfb7c36d6655ea8a42aecad6b219
2020-10-02 11:36:54 +02:00
Sujin Panicker d9673f77c5 matisse-common: configs: Add BT SCO to routes list
- Issue with returning a valid device descriptor
  since BT SCO is not defined in IOProfile.
- With Android-Q changes, first attempt to retrieve device
  descriptor from the avaiable HwModule may fail due to
  address and encoded format conditions.
- Further device descriptor query is based on IOProfile
  with devices defined in audio_policy_configuration.
- This change adds BT SCO to IOProfile.

Change-Id: I52225070e97dd702f965ca5dbb5db9d128df1faf
2020-10-02 11:35:51 +02:00
Bruno Martins f718b98abb matisse-common: Use XML audio policy configuration file
* Switch to audio_policy_configuration.xml instead of using
   the legacy audio_policy.conf.

 * Removed multi-channel profile as it is redundant with respect
   to direct output profiles [1].

[1] https://source.codeaurora.org/quic/la/platform/hardware/qcom/audio/commit/?h=LA.UM.6.5.r1-04300-8x96.0&id=ac3415870d63b18694e49d982e89ccb10dbcb2c3

Change-Id: Ia93e30428ff9e27ae409e685a84fa5a8e406bca0
2020-10-02 11:35:28 +02:00
Kevin F. Haggerty fe16928597 matisse-common: Move libtime_genoff to msm8226-common
Change-Id: Icf88e0cd5e234b8801471ce6740182162f1218da
2020-10-02 11:35:02 +02:00
Wang Han cfcfd99c08 matisse-common: Drop time service blobs except stock libtime_genoff.so
* All of a sudden, time_genoff connection will fail and sometimes
   block unlocking with password, etc. Stock libtime_genoff.so will
   fix it in most cases, but not all. Drop time service stack to make
   this connection fail at start to workaround the problem. Time
   service is broken on 10 anyway so it is a good trade-off.

Change-Id: I24105becd0b5093ed1460662c4c802e318acad8c
2020-10-02 11:34:23 +02:00
Alessandro Astone a84b0210ba matisse-common: Shim libperipheral_client.so
* LocSvc_afw: get_geofence_interface, dlopen for libgeofence.so
  failed, error = dlopen failed: cannot locate symbol
  "_ZN7android10IInterface8asBinderEv" referenced by
  "/system/vendor/lib/libperipheral_client.so"...
* vndksupport: Could not load /vendor/lib/hw/flp.default.so from
  default namespace: dlopen failed: cannot locate symbol
  "_ZN7android10IInterface8asBinderEv" referenced by
  "/system/vendor/lib/libperipheral_client.so"....

Change-Id: I4fed5fc23b1721e75e9759c0811b7532c5b68705
2020-10-02 11:33:11 +02:00
Joshua Primero 9d6fafe446 matisse-common: Nuke TARGET_POWERHAL_VARIANT flag
* This should have happened at the same time as
  LineageOS/android_device_samsung_msm8974-common@e955914

Change-Id: I7808f0bd0d4dc4e30288a3804b482e1a1157a725
2020-10-02 11:32:45 +02:00
Joshua Primero 18011b9238 Revert "matisse-common: enable text relocations"
* This doesn't exist anymore and replaced by
  TARGET_PROCESS_SDK_VERSION_OVERRIDE

This reverts commit 2de5ba9107.

Change-Id: Ic7b04d485c47cd04ed6780478c992d2b6d5983e0
2020-10-02 11:31:31 +02:00
Kevin F. Haggerty 6e7869ef6b matisse-common: Set shipping API level in the Lineage product makefile
Change-Id: I1dc0862a93b3ee2da6673741899f295129f5297c
2020-10-02 11:31:10 +02:00
Bruno Martins 1835b3d8d3 matisse-common: Move fstab to /vendor
Change-Id: Ie1c6cb662f2f54c7c14d3e7d55aedbfbeef5f8a7
2020-10-02 11:30:16 +02:00
Abhishek Arpure e19ce41cac matisse-common: Move hardware specific .rc files to /vendor/etc/init/hw
The reason these files are moved to /vendor/etc/init/hw and
not /vendor/etc/init is because 'init' scans the /vendor/etc/init folder
for vendor service .rc fragments to import. That would either result
in duplicate imports or out-of-order imports of these hardware
specific .rc files and that *may* have unintended consequences.

In order to preserve the current import order for MTP, we move all
hardware specific .rc files to /vendor/etc/init/hw which is not
autoscanned by init BUT leave the init.${ro.hardware}.rc (i.e.
init.qcom.rc in this case) in root for 'init' to find.

Change-Id: I14531da05e2a3a256f734f8de96e1f1969c753f9
2020-10-02 11:29:56 +02:00
Bruno Martins baebafe563 matisse-common: Remove obsolete RIL variant board flag
There's no CAF variant anymore.

Change-Id: Ief74f8b2aa861b0d16ffab9b52304006008d2444
2020-10-02 11:29:35 +02:00
LuK1337 d2fa444b44 matisse-common: Remove FlipFlap from lineage.dependencies
* Synced by default since LineageOS/android@9bd031c

Change-Id: I822298f856f4d1012f847a8be311310f5e51f2bb
2020-10-02 11:29:16 +02:00
padarshr b185d4b58e matisse-common: Address 'LOCAL_MODULE_TAGS := eng debug' deprecation.
Newer AOSP deprecates LOCAL_MODULE_TAGS := eng debug.
We now remove that and instead add the package to
PRODUCT_PACKAGES_ENG or PRODUCT_PACKAGES_DEBUG as applicable.

To ensure that we don't miss out on any package during this switch,
we add these explicitly, even though it might have been already
added under PRODUCT_PACKAGES at some other location.

Change-Id: I35bd67c3e7752be5bcd8f8682864062173e92724
2020-10-02 11:29:00 +02:00
Kevin F. Haggerty 7c488db895 matisse-common: proprietary-files: Update default source note
Change-Id: I50328ed0b62c14d09a1a696af976b6f19808d69b
2020-10-02 11:28:29 +02:00
LuK1337 c63ea29b57 matisse-common: Drop TARGET_EXFAT_DRIVER flag
* No longer needed.

Change-Id: Icb0df10fece66ee2ded0fe9c4ae329c50b3d2571
2020-10-02 11:26:46 +02:00
Bruno Martins aea805e022 matisse-common: libinit: Remove useless platform check
Change-Id: I5723a25c28c82b8776db20e001a8f5bd3cac16ef
2020-09-25 23:11:43 +02:00
Adrian DC bcedb86cb3 matisse-common: rootdir: set zram size to 75% of total size
* Reference: https://source.codeaurora.org/quic/la/device/qcom/common/commit/?id=424c031d173f28d7557812f5e1a10acfce03ef71

Change-Id: I327fe65f0e7f03d1937e27b68e640c92d7581b86
2020-09-25 23:09:05 +02:00
Francescodario Cuzzocrea d500f0fa29 matisse-common: remove sys.use_fifo_ui
Change-Id: I21208c0cf0365554a648d2217abeddd83535c21a
2020-09-25 23:09:05 +02:00
RomanDesigner 41c7b28e2b matisse-common: Use smaller DPI for LOS recovery
Our /recovery partition is very small (10MB), and we can't use xhdpi for recovery. Minimizing recovery's DPI will minimize recovery size, and we will build it.

Change-Id: Iabf0bb4c65a61736c0f65dcb53dbf147c9459613
2020-09-25 23:09:05 +02:00
Arne Coucheron ed50a6b852 matisse-common: Remove obsolete media props
Change-Id: Id98e0fd1d0ef8831c1248b5f9a70ebdf31048853
2020-09-25 23:08:57 +02:00
Luca Stefani d7cadbf3a2 matisse-common: Remove deprecated BT props
Change-Id: I7543cb0272039612d2959333610973c81ab68fa6
2020-09-25 22:50:10 +02:00
Tom Cherry c6885bcce1 matisse-common: Remove ro.hwui.* properties
These have migrated away from properties.

Bug: 73905119
Test: n/a
Change-Id: I83e0942c027defba02a037f9db684d42f5042bb9
We are not calling the make files that are being removed from
frameworks/native, but we might as well remove these props.
Signed-off-by: Tim Clark <tim.clark.82@gmail.com>
https: //android.googlesource.com/platform/frameworks/base/+/642ebea6e14
Signed-off-by: D. Andrei Măceș <andrei@unlegacy-android.org>
2020-09-25 22:49:54 +02:00
Kevin F. Haggerty 77e6be61e0 Revert "matisse-common: Engage the SDCLANG"
* The rest of the tree stopped supporting this long ago.

This reverts commit 2b078a3fde.

Change-Id: I7a9804a91ad0a8fd801be72011afee6f1c649365
2020-09-25 22:45:26 +02:00
Kevin F. Haggerty 30c8ac021c Revert "matisse-common: Add support for TWRP"
* Kind of don't care about it anymore. We have Lineage Recovery

This reverts commit b7d9a63fa5.
This reverts commit d8ff0658d0.

Change-Id: I13e3c02c48138c0ad621b713ae5c7b0a5ec67e22
2020-09-25 22:44:28 +02:00
Nolen Johnson 9a8d7f0a0c matisse-common: Drop custom recovery font declaration
* This board flag hasn't been valid since cm-11.0.

Change-Id: Idfb3f41c3b6e6ea1927de576932aebe644e0d1c4
2020-09-25 22:41:34 +02:00
Kevin F. Haggerty 10f2e88a6c matisse-common: rootdir: fstab: Swap order of ext4 and f2fs entries
* f2fs is hot trash and we don't want that as default, esp in recovery

Change-Id: I6cd3bf41e18d5df29b925a94ab865e873020268e
2020-09-25 22:34:33 +02:00
matteo0026 eb6f10613c matisse-common: override bootimage fingerprint too 2020-09-23 21:18:40 +02:00
matteo0026 49a80e4aa8 matisse-common: fix some other sepolicy 2020-09-12 21:51:22 +02:00
matteo0026 564032c3d7 matisse-common: fix camera lib text relocation warning
W linker  : Warning: "/system/vendor/lib/libmmcamera_faceproc.so" has text relocations and will not work when the app moves to API level 23 or later
2020-09-12 17:52:24 +02:00
matteo0026 0120ca6f53 matisse-common: remove SND_DEVICE_IN_VOICE_REC_HEADSET_MIC alias
E platform_info: process_device_name: Device SND_DEVICE_IN_VOICE_REC_HEADSET_MIC in platform info xml not found, no alias set!
2020-09-12 17:52:24 +02:00
matteo0026 fdb3fa3f08 matisse-common: remove duplicate 2020-09-12 17:52:24 +02:00
matteo0026 35ecc58883 matisse-common: use the main mic for camcorder
Stereo mic doesn't work since we don't have 2 or more microphones.
In this way, we can record videos without any problem.
2020-09-12 17:52:24 +02:00
matteo0026 1467925cad matisse-common: split all cores in thermal engine to be readable by the system
* E ThermalEngine: parse_sensor_field: Unknown sensor cpu0-1
* E ThermalEngine: parse_sensor_field: Unknown sensor cpu2-3
2020-09-12 17:52:09 +02:00
matteo0026 28d98441cf matisse-common: move everything to vendor 2020-09-12 17:50:29 +02:00
matteo0026 11a53731d8 matisse-common: delete ro.recents.grid
It's no longer supported in Pie
2020-09-10 23:46:30 +02:00
matteo0026 ec4aa18829 matisse-common: move TARGET_BOOTANIMATION_HALF_RES to msm8226-common 2020-09-10 23:39:39 +02:00
matteo0026 17ba3114c7 matisse-common: converto audio_effects.conf to audio_effects.xml
* Converted .conf format to .xml using: https://github.com/luk1337/aeffects-conf2xml
2020-09-10 22:46:44 +02:00
Kevin F. Haggerty f0a91915d9 Revert "matisse-common: HAXX: "Fix" race condition in init"
* It seems that this old "fix" for G900V RIL actually makes the Q
  "opengapps issue", normally only evident in encrypted legacy devices
  with secure startup, more pronounced. In such devices, your ability
  to progress beyond the boot animation to an actual homescreen after
  entering an unlock PIN is completely at chance, but with much better
  chances after an update (dexopting, maybe?). Only with this HAXX in
  place, the issue happens with unencrypted devices.
* A nice side effect will be that all klte* devices will boot much
  faster.
* The root cause of this is some kind of timeout, but the logs are
  seemingly worthless.

This reverts commit 31509201c1.

Change-Id: Iaf2a19a3ab7f8f8cf2f0add1bd6e3b87d06310a7

Note: second part of commit is in msm8226-common
2020-09-10 22:37:02 +02:00
matteo0026 48d25124cd matisse-common: remove Camera2
Snap is compiled by default and works (with, for now, the issue of dark back camera, of course).
2020-09-04 16:35:22 +02:00
matteo0026 a2ea6b9580 matisse-common: remove unneeded overlays
* We have physical buttons, so for us navbar is useless
* We don't have automatic brightness
* We don't have OLED display, so burn-in protection is useless
2020-09-04 16:35:10 +02:00
matteo0026 4d008b91ef matisse-common: set product shipping API level to 19
* The device has been launched with Android 4.4.2 KitKat
* There is a product_shipped_with_k.mk file, so use it
2020-09-04 16:33:31 +02:00
matteo0026 fbdaa6a9bf matisse-common: disable buttons backlight settings
It hasn't backlight buttons
2020-09-03 15:11:38 +02:00
matteo0026 b01f194617 matisse-common: invert left and right channel for speaker and jack
Before, they were inverted and audio pulled in right speaker was heard from the left and viceversa.
2020-09-02 22:22:04 +02:00
matteo0026 dc0ca8edae matisse-common: our device has 6800 mAh battery 2020-08-09 17:49:16 +02:00
matteo0026 8b9d7111b0 matisse-common: remove FlipFlap interface for covers with a hole
Since our device hasn't covers with a hole, we just need to turn it on when cover is removed from the front of screen.
2020-08-09 17:49:09 +02:00
matteo0026 cc7293fe9e matisse-common: fix charger sepolicy denials
Anyway, still offline charging doesn't work. Tested qpnp-chg driver instead of smb358 too.
2020-08-09 17:48:19 +02:00
matteo0026 9dc694fe10 matisse-common: disable automatic brightness
It isn't supported in stock ROM and device hasn't light sensor.
2020-07-03 14:49:05 +02:00
matteo0026 3180c14123 matisse-common: commonize init
This init file contains updated fingerprints
2020-06-06 18:05:52 +02:00
Daniel Jacob Chittoor 8e06a96c7e matisse-common: enforce inclusion of msm8226-common/BoardConfigCommon.mk 2020-05-11 17:55:05 +02:00
matteo0026 27d8d88b8e matisse-common: fix audio recording via Recorder app 2020-05-11 17:55:05 +02:00
DJABhipHop 452ccf4a6a matisse-common: Set Bootanimation to half-res
* Faster boot, smoother animation

Change-Id: I97f27254474442e3299c7b03ea3180528befa06c
2020-05-11 17:55:05 +02:00
matteo0026 21d7f58b2f matisse-common: remove NFC, torch and dual SIM stuff
This tablet doesn't have these features.
2020-05-11 17:55:05 +02:00
matteo0026 45fa62c654 matisse-common: fix lockscreen unresponsiveness after some time 2020-05-11 17:55:05 +02:00
matteo0026 91f3756ecd matisse-common: add needed sepolicy 2020-05-11 17:54:43 +02:00
36 changed files with 482 additions and 775 deletions

2
Android.bp Normal file
View File

@ -0,0 +1,2 @@
soong_namespace {
}

View File

@ -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

View File

@ -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
View 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>

View File

@ -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" />

View File

@ -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
}
}
}
}

View File

@ -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>

View File

@ -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" />

View File

@ -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

View File

@ -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
View 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
View 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;
}

View File

@ -6,9 +6,5 @@
{
"repository": "android_kernel_samsung_msm8226",
"target_path": "kernel/samsung/msm8226"
},
{
"repository": "android_packages_apps_FlipFlap",
"target_path": "packages/apps/FlipFlap"
}
]

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -18,6 +18,5 @@
-->
<resources>
<bool name="def_accelerometer_rotation">true</bool>
<bool name="def_screen_brightness_automatic_mode">true</bool>
</resources>

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -1,3 +0,0 @@
# Radio/RIL
PRODUCT_PACKAGES += \
rild_dsds.rc

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -0,0 +1 @@
allow blkid_untrusted proc_filesystems:file { read open getattr };

View 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;
')

View File

@ -0,0 +1,2 @@
allow healthd healthd:capability { dac_override };
allow healthd proc_last_kmsg:file { read open };

View File

@ -0,0 +1,2 @@
allow untrusted_app sysfs_net:dir search;
allow untrusted_app proc:file { read open getattr };

View File

@ -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
View File

@ -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

View File

@ -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