Commit Graph

840 Commits

Author SHA1 Message Date
Arian
1bc49c2aff sm6150-common: Decommonize vendor security patch level
This common tree is updated further than the EOL state of
some devices now. For EOL devices we can not update the
device specific proprietary vendor blobs. Since the vendor
security patch level should be set according to the least
updated components in vendor this differs betweeen devices,
hence decommonize it so that devices with up-to-date stock
can update it.

Change-Id: I320b2f93f7b78d01393259662450f328bbef5484
2022-07-13 17:54:15 +02:00
Arian
e0b57d8fa6 sm6150-common: Update blobs from sweet V13.0.8.0.SKFMIXM
Change-Id: Icd49e5186f0385d412d0bdc59e0956a09298f4bd
2022-07-13 17:54:03 +02:00
Arian
c59c8ee2f1 sm6150-common: wifi: Update from sweet V13.0.8.0.SKFMIXM
Change-Id: I0fb87ac8d9b8cfae99f1b1c1fce8ac13810af8fc
2022-06-28 00:41:08 +02:00
Arian
54a9eac768 sm6150-common: gps: Update to LA.UM.9.1.r1-11200-SMxxx0.0
Change-Id: I6ef1b531da58204047a0e269131bf3876eb788b4
2022-06-28 00:41:07 +02:00
Arian
8165447971 sm6150-common: gps: Update configs from sweet V13.0.8.0.SKFMIXM
Change-Id: I44bcd03b00d9b829ab8a86ef46ee1bcd580f7511
2022-06-28 00:41:07 +02:00
Mike Cailean
4242a98d17 sm6150-common: gps: Comment out ANTENNA_INFO_VECTOR_SIZE by default
The values provided in gnss_antenna_info.conf are
for illustration purpose only and should not be
used in production

Change-Id: I29afd24893e95b918126c4dc7b94e064b39920b7
CRs-fixed: 2967039
2022-06-28 00:41:07 +02:00
Hoss Zhou
553228f127 sm6150-common: gps: Add nmea tag block grouping feature
Tag Block grouping is used to report more than 12 SVs in GSA.
It is controlled by item NMEA_TAG_BLOCK_GROUPING_ENABLED in
gps.conf and only applicable to GSA.

Change-Id: Id9b89af96419c179554ce9f5c8d702f19153ed32
CRs-Fixed: 2813599
2022-06-28 00:41:07 +02:00
Vinoth Jayaram
338269c5d4 sm6150-common: display: Enable support for protected content GPU composition
Enable protected contents GPU composition for all targets.

Change-Id: I7db5c3bee340dea313c8ee16ae13b8114fd2390e
2022-06-28 00:41:07 +02:00
Rajavenu Kyatham
745358489d sm6150-common: Disable partial FB excl rect
Change-Id: Iface126e34d30e89cafc3a5955270769244398ec
CRs-Fixed: 2598494
2022-06-28 00:41:07 +02:00
Shawn Shin
3ade89d769 sm6150-common: qcc-tr: define new AID for qcc-trd
Change-Id: I47c9b034600c9b31a17de2808030af38f69e10e0
2022-06-28 00:41:07 +02:00
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