Commit Graph

730 Commits

Author SHA1 Message Date
Anver sadhique
30b6244575 sm6150-common: audio: Set valid and supported channel mask for earpiece
For earpiece to be properly enumerated as a output device,
set valid and supported out_ channel mask.

Change-Id: Ic83b009956ff43567b3acbb186d0069b16e91e83
2022-06-28 00:41:07 +02:00
Anver sadhique
ee19f52144 sm6150-common: audio: Fix copyright
Reverting LF copyright year back to original.

Change-Id: Ia8b69b705f17727d9ae6ba29c6154b5fef36a292
2022-06-28 00:41:07 +02:00
Anver sadhique
c58c4b845b sm6150-common: audio: Remove dynamic attributes from APS config
Remove dynamic attributes from APS config since it
is not supported.

Change-Id: I48e232b831cfb0aa8ba9ab875aa92119140008ef
2022-06-28 00:41:07 +02:00
Lakshman Chaluvaraju
7426fb1713 sm6150-common: audio: Add Stereo config channel support to usb surround sound
Adding stereo config channel support to usb surround sound proflle
to address CTS-V failure issue seen due to mismatch in channel mask
support for record usecase

Change-Id: Ib50511d2fa6df24b3aa4764553cd48726129b2c2
2022-06-28 00:41:07 +02:00
Weiyin Jiang
e365753bab sm6150-common: audio: Add compress recording configurations
Add compress recording configurations

CRs-Fixed: 2764160
Change-Id: I8e8b1f89d7f28d997342c5946d0a35111e941ec1
2022-06-28 00:41:07 +02:00
Arian
b09191563e sm6150-common: media: Drop media_codecs_c2.xml
Change-Id: Ic4f7e078538d6c362d07669d77ed0083528e25f1
2022-06-28 00:41:07 +02:00
Paras Nagda
c777f2dcab sm6150-common: media: Add Attribute name for SW encoder
Change-Id: I81637e78262f7c36a8a8da44247f2cacd96b8f79
2022-06-28 00:41:07 +02:00
Vasantha Balla
8b0924327f sm6150-common: media: Update max resolution from True4k to UHD.
Update max resolution of encoders on sdmmagpie(sku verion1)
target as per spec.

Change-Id: I894ed2aa111419e97d5d9a4215c440edaf5ab150
2022-06-28 00:41:07 +02:00
Paras Nagda
a6f04db0a2 sm6150-common: media: Finetune performance xml
Fine tuned the performance xml based on the
CTS results for C2 HW codec

Change-Id: I375e2abe927be456d1493bea063bf47992f4799e
2022-06-28 00:41:07 +02:00
Mohammed Mirza Mandayappurath Manzoor
6586917049 sm6150-common: rootdir: ueventd: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
2022-06-28 00:41:07 +02:00
Varun Arora
6c79c4001d sm6150-common: rootdir: Set system graphics to power control node
Add ueventd entry to change UID and GUID when node is created

Change-Id: I721b30678a4d763d66cc5068aaea97e08ac13f7b
2022-06-28 00:41:07 +02:00
Hoss Zhou
3a3b9ce92a sm6150-common: rootdir: Add edgnss socket directory
Change-Id: Ia8d89cb1e03c31fdb8fb7564441386f56c9563e1
CRs-Fixed: 2881831
2022-06-28 00:41:07 +02:00
Arian
520a1d8521 sm6150-common: Move Netflix property to vendor
Change-Id: I744df5600b803fec993dbabbae99cef0a1fff432
2022-06-28 00:41:07 +02:00
Rajeshwar Kurapaty
f87adf6a79 sm6150-common: rootdir: Set Netflix property based on target
Add support to set "ro.netflix.bsp_rev" property at run time
depending on the target. This is needed when 2 or targets are
binary compatible, but have different Netflix proprty for
device whitelisting.

Change-Id: Ieccd17128f1b73c819a3f33816eb8c402cfa17e2
2022-06-28 00:41:07 +02:00
Ashish Bhimanpalliwar
9e0dad8886 sm6150-common: rootdir: Increase the console log level
Increase the log level to '4', which would only log KERN_ERR
and lower, onto the console.Earlier it was incorrectly reduced
to 3 which would only log KERN_CRIT and lower.

Fixes: 06b604b6bef40abdb4b507fc13debb2146a922e1("Decrease the console log level")
Change-Id: Ic87d037450dd49138c3208e1b9f844469550364b
2022-06-28 00:41:07 +02:00
Raghavendra Rao Ananta
9aa8c4c9c5 sm6150-common: rootdir: Decrease the console log level
Decrease the log level to '3', which would only log KERN_ERR
and lower, onto the console. This is to avoid false-positives
in the test cases that may emit excessive logs, ultimately
leading to a watchdog bark.

Change-Id: I7967272de8e425e93035cd937982bfb3aee19597
2022-06-28 00:41:07 +02:00
Arian
98c5e0ec31 sm6150-common: WifiOverlay: Update from sweet V13.0.8.0.SKFMIXM
Change-Id: I1fcbec0ae7aec66384002a7fe1a2f2d1347dc8bc
2022-06-28 00:41:07 +02:00
Arian
4162106c46 sm6150-common: WifiOverlay: Align config.xml with AOSP
Change-Id: Icf2ed910505ec1872cb7250141b821a005fc1a23
2022-06-28 00:41:07 +02:00
Arvind Kumar
57d5f1f1d4 sm6150-common: Set soc properties
Set soc model and manufacturer properties

Change-Id: Ieee34b7bfab87b241abc5ed3318b46a5c6f93456
2022-06-28 00:41:07 +02:00
Pavan Kumar M
ac437d967b sm6150-common: hidl: Update uceservice HAL to 2.3
Change-Id: I780fef79b6b370d2058a45a08230de19cce4a0af
2022-06-28 00:41:07 +02:00
Manoj Basapathi
7a23256ee8 sm6150-common: hidl: Update factory version to v2.2
Change-Id: I67c80b81f46c692b0107d86615f2ca97c58d25fa
2022-06-28 00:41:07 +02:00
Arian
f92a01172c sm6150-common: Add udfps handler lib
Change-Id: Ib837e4a70015dc24d431458a1cce5b86e87816a9
2022-06-28 00:41:07 +02:00
Bruno Martins
cc3ba5c9c2 sm6150-common: Move to common fingerprint HIDL
Change-Id: I7cb0a45c865d9dbfd800b1d633f8d5ae613bb1b9
2022-06-28 00:41:07 +02:00
Bruno Martins
2b9128df8a sm6150-common: fingerprint: Remove local UDFPS extension
Common one from hardware/xiaomi can now be used.

Change-Id: I4e7113c9d54c03d341deea78ab3636e38cad3e66
2022-06-28 00:41:07 +02:00
Bruno Martins
c6daece9b1 sm6150-common: Build opensource soundtrigger HAL
Change-Id: I956d53a67841a9e1e296de6b73f08ef2efac7470
2022-06-28 00:41:07 +02:00
Arian
f97544641c sm6150-common: sepolicy: Extend vendor_toolbox permissions to files in persist
Change-Id: Idf0d7b67e861d2dcb8f6b46cbd2cc5b26b77e08d
2022-06-28 00:40:59 +02:00
Arian
dc759f6420 sm6150-common: sepolicy: Label additional usb related wakeup nodes
Change-Id: I21b3a00d504938f0b1da02f606c8f0fb729aa089
2022-06-28 00:23:34 +02:00
Arian
08b94607f0 Revert "davinci: sepolicy: Remove qcom PMIC devices wakeup nodes"
* These are not labelled by qcom sepolicy on 19.1 anymore

This reverts commit a02dd0dd72.

Change-Id: I5beb0916a1942507f13720de0d0d986422e5eb2e
2022-06-28 00:23:34 +02:00
Sebastiano Barezzi
4ba3c81098 sm6150-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2022-06-28 00:23:34 +02:00
Michael Bestas
29a3f78a3a sm6150-common: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES
$ sed -i "s/^-\(.*.\(apk\|jar\)\)/\1/g" proprietary-files.txt

Change-Id: Iaa9d66b0bbdc55f046ee1347cbf83c7eecebb35e
2022-06-28 00:23:20 +02:00
LuK1337
e6fa02024b sm6150-common: Sort blobs list /w sort-blobs-list.py
Change-Id: I197c6353dc50baf4ee76ed6ebf083dc00879bd96
2022-06-28 00:21:46 +02:00
Arian
b3bb71aebc sm6150-common: Add gnss seccomp_policy
Change-Id: Iab89aaa86ccc69b90d0e16cdb5c02e8533ab94c2
2022-06-28 00:21:36 +02:00
Nolen Johnson
7b73446642 sm6150-common: Remove deprecated TARGET_USES_QTI_CAMERA_DEVICE
* Dead as of https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/331507.
* We never needed this.

Change-Id: I8ec420d6264fee70a1602eecdbb4f34f2e5db3dc
2022-06-22 16:31:02 +02:00
Marc Bourgoin
d5d80a5347 sm6150-common: Drop QCOM WFD
Change-Id: I3dd591444dc54ebe3a32e0385cbfc3db6bfc5e1f
2022-06-22 16:23:58 +02:00
Nicolas Geoffray
ef38d89538 sm6150-common: Remove odex/oat files from pinner list
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: I8de2a2935901cbd3eaa50ce2d8aa09f61080ba02
Merged-In: Ie633ea788dab3389a3407ec9a461b5837befca46
2022-04-19 19:35:09 +02:00
Kevin Jeon
cb96f74c9c sm6150-common: Update SurfaceFlinger pin on all targets
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
2022-04-19 19:34:50 +02:00
Arian
b01b18c6fd sm6150-common: Drop renderscript pin
Change-Id: I231931f202adc0209db8e6c7d3449bf1c318b820
2022-04-19 19:34:28 +02:00
Felix
a13246a7fc sm6150-common: Force restorecon for /mnt/vendor/persist
The restorecon_recursive directive in init is only applied if the
file_contexts file changed between builds, but not necessarily if any
file or folder inside /mnt/vendor/persist/ has changed.

The restorecon code checks whether an xattr named
"security.sehash" contains a string that matches the current
combined hashes of the SELinux context files and skips restoring labels
if there is a match, see
https://android.googlesource.com/platform/external/selinux/+/refs/tags/android-9.0.0_r35/libselinux/src/android/android_platform.c#1546

Force wiping that xattr so that restorecon always runs since it's not
very expensive (there are currently only about 50 files on /persist).

The restorecon is needed to fix issues such as wrong stock labels on
/mnt/vendor/persist/sensors/:
sensors_persist_file -> persist_sensors_file

Change-Id: Ic0cd848836ee550499d9236f56ed6e939e35f01e
2022-03-27 13:38:12 +02:00
Arian
f23eac1c98 sm6150-common: sepolicy: Add vendor prefix to camera persist file type
Change-Id: Ia42113acb0fcf5667c0b89ecdd7def13681ca0be
2022-03-27 13:38:07 +02:00
Arian
fd47aee8f1 sm6150-common: Provide partition dependent module names if necessary
Change-Id: I7b113c34775d65081485580d0f36543d6caeed6f
2022-03-17 01:28:20 +01:00
Tim Zimmermann
6b0b6fa895 sm6150-common: Make all elf prebuilts packages
* To get rid of BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES

echo "$(cat proprietary-files.txt | sed 's/.*\.so$/-&/g' | sed 's/.*\.so|.*/-&/g' | sed 's/.*\/bin.*/-&/g' | sed "s/\-\-/\-/g")" > proprietary-files.txt

Change-Id: I0034a5732f522a2dd42d89d9c9ee6c8c1981f302
2022-03-17 01:28:13 +01:00
Arian
a07caa8f8f sm6150-common: releasetools: Use unique version-baseband strings for different regions
Android 12 forbids to assign version-baseband multiple times with
different values for different regions, hence append the hwc value
to the version-baseband string.

The lines have to follow this syntax now:
require version-baseband-${ro.boot.hwc}=${modem_version},${firmware_version}

Example for a device that wants assertions for global and chinese devices:
require version-baseband-CN=4.3.c5-00100,21.4.21
require version-baseband-GLOBAL=4.3.c5-00100,V12.1.2.0.RFJMIXM

Change-Id: Ib2c5b1c4588e6bfff1ebf5b7b1d8933d71e09251
2022-03-17 00:49:16 +01:00
Georg Veichtlbauer
fc459f07b0 sm6150-common: Remove CLANG compile flag
Defaults to true now project-wide.

Change-Id: I1e0ff5adadc889d81c90c816457a72d2621e4b5a
2022-03-17 00:14:36 +01:00
Timi Rautamäki
b112b01134 sm6150-common: Drop Snap
It's not included anymore since LineageOS 19

Change-Id: Ie3f908234cf7a3d94d33ad0e9d170d3738bb9752
2022-03-17 00:14:02 +01:00
Arian
5a4c03d68e sm6150-common: sepolicy: Move xiaomi specific property labels to vendor
Change-Id: I4f2f5e2ee9b0751e3af14fbb1cd4ab93814755f8
2021-12-29 10:19:42 +00:00
Arian
1edab42a1a Revert "davinci: sepolicy: Label manufacturer prop used by camera hal"
This is labelled in system/sepolicy as build_prop now

This reverts commit 50625df1c3.

Change-Id: Ia744a2c2eba1c6aade04e29c975c6b8bc26c9fee
2021-12-29 10:19:01 +00:00
Inseob Kim
87b0b914b1 sm6150-common: sepolicy: Attach vendor_property_type to properties
We are going to enforce that each property has an explicit owner, such
as system, vendor, or product. This attaches vendor_property_type to
properties defined under vendor sepolicy directories.

Bug: 159097992
Test: m selinux_policy && boot device
Change-Id: Ibed833cd9e5d786e82985ded6bc62abdf8cd9ded
Merged-In: Ibed833cd9e5d786e82985ded6bc62abdf8cd9ded
(cherry picked from commit 44eb8e1f89adf04fd413a69391fd444ba68af742)
(cherry picked from commit 1922128397116d551a663d5344b4456a84bf46eb)
2021-12-29 10:18:50 +00:00
Michael Bestas
3dfec47b60 sm6150-common: sepolicy: Switch to SYSTEM_EXT_{PUBLIC,PRIVATE}_SEPOLICY_DIRS
Fixes:
warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated.
    Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated.
    Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
Change-Id: I752602079de8ff4c5370fe3ec861b8746838d878
2021-12-29 10:18:38 +00:00
TheScarastic
3152b1a1cf sm6150-common: fingerprint: Add surfaceflinger udfps extension lib
Squashed in this commit:
Author: TheScarastic <warabhishek@gmail.com>
Date:   Tue Oct 12 13:29:07 2021 +0200

    sm6150-common: fingerprint: Rename fod extension to udfps extension

Author: Vincent Vidal <vinvidal@gmail.com>
Date:   Tue Aug 18 14:42:49 2020 +0200

    sm6150-common: fod: Use FOD_PRESSED_LAYER_ZORDER instead of magic number

Author: Vincent Vidal <vinvidal@gmail.com>
Date:   Tue Aug 18 14:40:50 2020 +0200

    sm6150-common: fod: Include generated_kernel_headers to build libfod_extension

Change-Id: I51fb56c0a20e3cac83afb46ed6a6e2f967159d18
2021-12-29 10:18:16 +00:00
Arian
f0e2002d43 sm6150-common: fingerprint: Setup goodix file permissions
* from MIUI 21.1.20

Change-Id: Iabe5ea1125d44c1189e6227722f9f440c4dcf47a
2021-12-29 10:18:09 +00:00