Commit Graph

759 Commits

Author SHA1 Message Date
Bruno Martins
bb8d9f4905 sm6150-common: sepolicy: Label UDFPS state node
Change-Id: I7a4ca9a3e98e0af90be5aedc88fa1eaa344abb76
2022-11-15 11:20:32 +01:00
Michael Bestas
4e8f1f1f87 sm6150-common: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2022-11-14 22:23:43 +01:00
Nolen Johnson
ac80e30dea Revert "sm6150-common: Use LLVM binutils and LLVM integrated assembler"
This reverts commit 816cf6a1cd.

Reason: This is now default globally.
Change-Id: I4cd4c8af67b8463950045d3887752985b3decc61
2022-11-14 22:23:43 +01:00
Arian
543d7ac0ef Revert "sm6150-common: Decommonize cnss-daemon"
Since updating QMI blobs from sweet Android 12 the cnss-daemon
from Android 11 (on devices with no stock Android 12) fails to
get the correct MAC address. Commonize cnss-daemon to fix the
mismatch. Xiaomis cnss-daemon loads device specific custom
bdwlan firmware and fortunately the one from sweet seems to
support all in-house xiaomi sm6150 devices. However it does
not contain the firmware names for longcheer devices (surya).
But since these devices also need an updated cnss-daemon, they
are suggested to apply a patch like this: [1] to mount their
firmware with the default name (bdwlan.bin) in order to not
loose the tuning with sweet cnss-daemon.

This commit also makes cnss-daemon a module, which it wasn't
before the removal.

[1]: 3595347298

This reverts commit 605de37605.

Change-Id: I17d7aa0cf141fc153a12ff3334178ea3e7091873
2022-11-14 22:23:40 +01:00
Arian
3f2881cb07 sm6150-common: Move to common libpiex_shim
Change-Id: I5266fe4b7cfd108c19b493bc2941097777b29f0a
2022-11-14 22:23:25 +01:00
Arian
2a63fa8cff sm6150-common: Improve camera shim
Change-Id: Id11965102d7d5dce50f989c99810cda6a43aa1ec
2022-11-14 22:23:05 +01:00
daniml3
c4f19714f0 sm6150-common: Add GetPreviewImageData shim for camera
Signed-off-by: daniml3 <daniel@danielml.dev>
Change-Id: Iad9d37b992775b6d7b9b52ed4637c70fd13ede7f
2022-08-19 17:28:21 +02:00
Arian
816cf6a1cd sm6150-common: Use LLVM binutils and LLVM integrated assembler
Change-Id: I408c0e1b272af25e8e606e586a9e1d6e7082afba
2022-08-19 17:28:16 +02:00
Jiakai Zhang
c027a3e451 sm6150-common: Preopt SystemUI for AOSP builds.
Bug: 232860596
Test: See no dex2oat invocation on the first boot.
Change-Id: Icc38efb4b702b518caa22a3abfc7c04d6ba1ac2a
2022-08-19 17:28:00 +02:00
Jiakai Zhang
a90cd875ef sm6150-common: Add a system property for System UI compiler filter.
Bug: 227310505
Test: m
Change-Id: I30863fe677a95844f0cf46da98c103c0132c24d3
2022-08-19 17:26:25 +02:00
Alice Kuo
37edd93211 sm6150-common: Disable LE audio related profiles for sunfish
Bug: 231671426
Test: build
Change-Id: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
Merged-In: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
(cherry picked from commit acb0b19b8348a4b9518d2f46b1599f423f620347)
2022-08-19 17:21:36 +02:00
Sal Savage
09b9b46f05 sm6150-common: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: Id6cd7901555edafef141bbc1bbd5e06dc3a54d0c
2022-08-18 14:32:31 +02:00
Sal Savage
c7bf0ce67e sm6150-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I24fd57bacbf6786a26f7079e7a6e9857dbe170d1
2022-08-18 14:32:31 +02:00
Sal Savage
7e7d7f7d30 sm6150-common: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d
2022-08-18 14:32:31 +02:00
Sal Savage
77256f499d sm6150-common: Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2022-08-18 14:32:31 +02:00
Arian
a2af0b073c sm6150-common: Drop audio.a2dp.default
Change-Id: I7b72116797a2690f6b3c4f13b4edacf57fe937e5
2022-08-18 14:32:31 +02:00
Arian
684970d72a sm6150-common: gps: Fix usage of or operator on booleans
Change-Id: I1e3f9caef674d8a2cfc99092033d96bc4cdd8963
2022-08-18 14:31:55 +02:00
Arian
b4118d4fa2 Revert "sm6150-common: parts: Add support for zero brightness doze mode"
This reverts commit 8720bb5de8.

Change-Id: Icd29a7388a26f76fb5197805e715a464fceed70e
2022-07-13 21:08:38 +02:00
Arian
28b9dec732 sm6150-common: sepolicy: Label new telephony properties
Change-Id: Iad765076ceba263e4933374178eec670ffc81959
2022-07-13 17:54:15 +02:00
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