Commit Graph

238 Commits

Author SHA1 Message Date
Alexander Koskovich
4765fe4830 sm8550-common: overlay: Use CarrierConfig DTMF & CSP booleans.
* Overlays were deprecated awhile ago for these.

Change-Id: I51b70aa15f128186063ce52446cb67715a957185
2024-04-07 14:05:52 +08:00
Etan Cohen
c148057a0f sm8550-common:: overlay: Depend on carrier provisioning for WFC.
Change-Id: I2cdeb1e39a68922dc8489998f65dcc6c891da31c
2024-04-07 14:05:04 +08:00
Srinath Sridharan
46063e0a08 sm8550-common: overlay: Set config_sustainedPerformanceModeSupported
This config will support the Sustained Performance Mode.

Change-Id: Ic992ea6fd910cf679a940b273c95968f4c60adbb
2024-04-07 14:05:04 +08:00
Cassie
4a50635375 sm8550-common: overlay: Use the new auto network selection UI
Change-Id: I76698911103601d5f3ad67e1099790af8c2fdc18
2024-04-07 14:05:04 +08:00
Jake Weinstein
bcfaa1dce2 sm8550-common: CarrierConfig: Disable global mode and CDMA choices
* Cleans up mobile network settings.

Change-Id: I0c6b4d1fc3ccd79739ee9b1cc6aecc42e5a83516
2024-04-07 14:04:52 +08:00
xboxfanj
e5e433f2f3 sm8550-common: overlay: Move rro packages to vendor partition
In Android 14, prioritization of partitions is emphasized, diverging
from previous versions where priorities were respected universally.
Overlay precedence now plays a critical role, with the following
partition order dictating overlay precedence:

 - system
 - vendor
 - odm
 - oem
 - product
 - system_ext

When multiple overlays contend for the same resources, the order of
overlays becomes crucial. An overlay takes precedence over others if it
has configurations following its own. This prioritization, while
impactful for GSI compatibility, is essential for maintaining order and
functionality.

Change-Id: I8b7568dcc418dbbd1ccb39e2d0dc66504f19fcdd
2024-04-06 17:11:36 +08:00
chaptsand
1773d825ec sm8550-common: Sync keystore feature permissions with stock
Change-Id: I9f0b136ef222728724f6b36a873273323539a9bc
2024-04-06 17:11:32 +08:00
Tim Zimmermann
bd7878a051 sm8550-common: audio-impl: Set SEC specific BT SCO sample rate audio param
This lets us convert AOSP's bt_wbs to SEC's g_sco_samplerate.

Change-Id: I78d5d36044421daf99b8a13aa417060a3cf959a3
2024-04-06 16:07:27 +08:00
LuK1337
ff14ded886 sm8550-common: audio-impl: Pass call state to audio hal and patch RIL
* Fixes 2nd sim audio when in call.

Co-authored-by: Simon1511 <me@simon1511.de>
Change-Id: I25ced80d833a36ac1141d5894aed99a0931d3946
2024-04-06 16:07:27 +08:00
Aaron Kling
c99d9755e1 sm8550-common: audio-impl: Verify that hal implements get_audio_port before calling
Change-Id: I3652382433d365407bf006d71f36743aa89a76ee
2024-04-06 16:07:27 +08:00
chaptsand
3b377ac48d sm8550-common: audio-impl: Rebrand to samsung sm8550
Change-Id: I60ddb98bc2cedc642ec9773be8cf1ee1891cf33b
2024-04-06 16:07:27 +08:00
chaptsand
6f19b76776 sm8550-common: Import audio@7.1 default impl from android-14.0.0_r29
Change-Id: I2c71b180a1632dbf1fa164f6c4f7e35a6d8dff27
2024-04-06 16:07:27 +08:00
Tim Zimmermann
6f1ff0ce47 sm8550-common: Introduce sehradiomanager
Change-Id: I3b63c01b2ac34c7571edfdffdad046acd6135c94
2024-04-06 16:07:27 +08:00
chaptsand
2f7ac75ac6 sm8550-common: Build some telephony packages
Change-Id: I9435f561cf8bc1cce79b2cb690e5f41073f6f2bb
2024-04-06 16:07:27 +08:00
Simon1511
68366ae241 sm8550-common: libsec-ril: Always return an empty value for GET_SMSC_ADDRESS
* Make parameter of type RilData (second last one) passed to SecRil::RequestComplete()
  in OnGetSmscAddressDone() be NULL, so that the framework passes an empty value when sending SMS

* Before U this value was not being used, on U the value returned is "SMSC",format_specifier
  which is considered invalid when passed back to RIL for sending SMS, however when an empty value
  is passed RIL will select the default SMSC, like it did on T and sending SMS works again

* For the SMSC patch, SecRil::RequestComplete() in OnGetSmscAddressDone()
  now looks like this instead: (code**)(), the parameters stayed the same

Change-Id: I608be406969d7fa58f15ef36340aff4ad1ce9fd0
Co-authored-by: Tim Zimmermann <tim@linux4.de>
Signed-off-by: chaptsand <chaptsand@gmail.com>
2024-04-06 16:07:27 +08:00
David Sehr
ad2c2e9469 sm8550-common: Enable usage of dex2oat64
Use 64-bit dex2oat for better dexopt time.

Bug: 153380900
Test: boot and install an application
Change-Id: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
(cherry picked from commit 126f03be80f57a8a0411842011152d9381589b78)
Merged-In: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
2024-04-06 16:07:27 +08:00
pjgowtham
c00acb8be8 sm8550-common: Disable logging sensors-hal events
This sets log_level to 0
10-14 14:17:17.674 14629 14629 I sensors-hal: get_system_config:67, log_level: 0

This is done especially to disable spammy logging of oplus ambient light sensor events
10-14 14:17:12.821 12603 14590 I sensors-hal: handle_oplus_ambient_light_event:157, oplus_ambient_light: ts=3858719100254, lux=11, data_c=0, delta_ms=0, data_cnt=0

Change-Id: Ib097c172bb01ae62dec542a76b289a9641764bc2
2024-04-06 16:07:27 +08:00
Woody Lin
3178e8ba23 sm8550-common: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2024-04-06 16:07:27 +08:00
Pranav Vashi
c80fc07a76 sm8550-common: Switch to armv9-a ARCH variant
Running below command:
$ cat /proc/cpuinfo | grep -m 1 Features
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp
asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512
asimdfhm dit uscat ilrcpc flagm ssbs sb paca pacg dcpodp flagm2 frint i8mm
bf16 bti

armv8-a-branchprot doesn't really do justice as armv8-2a or armv9-a
optimizations are not enabled. According to wikichip [1], it is
evident that we support armv8-2a.

[1] https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features

Change-Id: Ia986a60febb275e36ffe89518edf8c4ae3fc7225
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-04-06 16:07:27 +08:00
LuK1337
85157b05e3 sm8550-common: Use libcrypto-v33 from hardware/lineage/compat
Because vndk prebuilt has SONAME set to libcrypto.so, it prevents linker
from loading libcrypto.so built from source.

Change-Id: Ic9e29f7b00b469163f48ea407fc9b5d5e90816c8
2024-04-06 16:07:27 +08:00
basamaryan
92002bb9ce sm8550-common: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-04-06 16:07:27 +08:00
Krzysztof Kosiński
1aff62d644 sm8550-common: Add prebuilt protobuf 3.9.1 to vendor partition.
Needed to work around a Qualcomm HAL prebuilt.

Bug: 203713560
Bug: 258322017
Bug: 254854421
Test: Forrest
Change-Id: I4eebc60f10fbea6a66127ed3e08441db32536f78
2024-04-06 16:07:27 +08:00
Cole Faust
541beb98d0 sm8550-common: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qcom has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
2024-04-06 16:07:27 +08:00
Bruno Martins
faa9eaf4f8 sm8550-common: Remove non-existent module from PRODUCT_PACKAGES
Strangely, build system only complains since U QPR2.

Change-Id: Icb966372233841972fa9f695cc735797c43fb71e
2024-04-06 16:07:27 +08:00
llololo
2022194ad5 sm8550-common: Remove A2DP input module in audio policy configuration
No Pixel device support A2DP sink functionality.

Bug: 163050296
Test: A2DP related test.
Change-Id: I269220cf29451ea79362fc004fa073713f72fdb2
2024-04-06 16:07:27 +08:00
dianlujitao
b1726a6c2b sm8550-common: audio: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2024-04-06 16:07:27 +08:00
Kumar Anurag Singh
d7ce41d388 sm8550-common: audio: remove direct flag for VOIP RX
remove direct flag for VOIP RX.

Change-Id: I9ee6f300b7a891afd1ad06c063424509d16d271e
2024-04-06 16:07:27 +08:00
chaptsand
1031306d74 sm8550-common: Update blobs from S9160ZHU2CXCF
Change-Id: If12629e7b478f004914e4e2978f3b15c75ee7aed
2024-04-06 16:07:27 +08:00
Park Ju Hyung
761e927a83 sm8550-common: Relax timers for automatic refresh rate switching
Due to visible gamma shifts on our panels, we should make the switchings
to happen conservatively.

With idle timer >= touch timer, idle timer now always takes precedence,
but we're leaving touch timer property to immediately switch back to
120 Hz on touch input events.

Change-Id: If8b1e00a2d2213c4d2288ab28fad4ba0826a36e8
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-04-06 16:07:27 +08:00
Bruno Martins
c959531ebb sm8550-common: Also patch gatekeeper HAL to load libcrypto-v33.so
Then again, due to asn1t.h structs changes.

Change-Id: Id3552124ddc07bf80446fd2b37b40f39c6be7a76
2024-04-06 16:07:27 +08:00
LuK1337
aacb95b6fc sm8550-common: Shim Samsung keymint service with libcrypto-v33.so
Current asn1t.h structs aren't binary compatible with our keymaster.

Change-Id: Id78b71c1f08216f861a033097cd015ba3c109925
2024-04-06 16:07:27 +08:00
chaptsand
14f9a37725 sm8550-common: Configure RAM Plus
Change-Id: I19387c70498ca93f155329fdaf4c4f27a167f88f
2024-04-06 16:07:27 +08:00
chaptsand
6aeeebc7f2 sm8550-common: Switch to prebuilt vibrator AIDL
Change-Id: I374a156bc7262db5b2617ae3e7d82ac711d27a2e
2024-04-06 16:07:27 +08:00
chaptsand
8f2ff23c0f sm8550-common: Setup prebuilt NXP NFC stack
Change-Id: Iec022b01aa57973b7f1c54f7384e4d2c6b85b506
2024-04-06 16:07:27 +08:00
chaptsand
edd289d7db sm8550-common: init: Import changes from S9160ZHS2BXAF
Change-Id: If35c0ce7a4720ef5ebf3c405e33ae3209f529d96
2024-04-06 16:07:27 +08:00
chaptsand
4f23356c79 sm8550-common: init: Checkout to LA.VENDOR.13.2.0.r1-22400-KAILUA.QSSI14.0
Change-Id: I02932f3da7923dfc8b4fcdc04f98f89cbb610c69
2024-04-06 16:07:27 +08:00
rakegand
f01ee5ef27 sm8550-common: init: Move SPU NVM directories creation to earlier stage.
Change-Id:	Ic6d1a83c7fc7a54d6f8d78f91e5f3167dd7017fe
2024-04-06 16:07:27 +08:00
chaptsand
3d8c0f4e8c sm8550-common: init: Import mdm-helper launch script
Change-Id: I275c639f6dde12a29f0006c5fca8de46a0fda89a
2024-04-06 16:07:27 +08:00
quic_farenl
fa4495acb8 sm8550-common: init: Enable MDM Helper on kalama
Change-Id: I6531e7227d38e1c472fb646dce63bf00b545d009
2024-04-06 16:07:26 +08:00
Minghao Zhang
46195b2ddc sm8550-common: init: Add Init-Service for fan service on Kalama HHG
Add service to control fan speed and could be enabled by setting
property.

Change-Id: I17037028c506095210ee89002413adc920c29147
2024-04-06 16:07:26 +08:00
PRANAY BHARGAV BHAVARAJU
c9ade9f4ba sm8550-common: Add UID for configuring Thales eSE weaver
Add UID for Thales eSE weaver module in
order to bind OMAPI service to weaver HAL.

Change-Id: Icab8581c57ad443b1b6faa81097a1671fa16ec03
2024-04-06 16:07:26 +08:00
chaptsand
f1b741d4d4 sm8550-common: Remove Secure Element interface for SIM cards (UICC)
* W libc    : Unable to set property "ctl.interface_start" to "android.hardware.secure_element@1.2::ISecureElement/SIM1": error code: 0x20
* E init    : Control message: Could not find 'android.hardware.secure_element@1.2::ISecureElement/SIM1' for ctl.interface_start from pid: 759 (/system/bin/hwservicemanager)
* I hwservicemanager: Tried to start android.hardware.secure_element@1.2::ISecureElement/SIM1 as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly.

Change-Id: I95dcfce6fa822452b251dec02f8f15909d7480ee
2024-04-06 16:07:26 +08:00
chaptsand
b0ad41e948 sm8550-common: Add Codec2 software service to Codec2 HAL interface
Cmdline: media.hwcodec /vendor.qti.media.c2@1.0-service
 3361 F DEBUG   : pid: 3361, tid: 3361, name: vendor.qti.medi  >>> media.hwcodec <<<
 3361 F DEBUG   : uid: 1046
 3361 F DEBUG   : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
 3361 F DEBUG   : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
 3361 F DEBUG   : signal 0 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
 3361 F DEBUG   :     x0  0000000000000000  x1  00000077dbb62f00  x2  00000077dbb6dc98  x3  4c4d410100000000
 3361 F DEBUG   :     x4  00000077da9a7900  x5  0000000001414d4c  x6  0000000001414d4c  x7  00000077da8cf004
 3361 F DEBUG   :     x8  0000000000000001  x9  0000000000000d21  x10 0000000000000d21  x11 0000000000000000
 3361 F DEBUG   :     x12 2064616f6c6e750e  x13 00f022e2114c8a7e  x14 00000077da605840  x15 00000000000000c3
 3361 F DEBUG   :     x16 0000000000000001  x17 00000077dbb2f040  x18 00000077db0aa000  x19 b4000077414267b8
 3361 F DEBUG   :     x20 b40000760142bb70  x21 00000077da8a0000  x22 b4000077414267b8  x23 000000753ec3751c
 3361 F DEBUG   :     x24 00000077d9b88000  x25 0000000000007f20  x26 000000000000060f  x27 000000000000054c
 3361 F DEBUG   :     x28 0000000000007000  x29 0000007fced48170
 3361 F DEBUG   :     lr  000000753ec3ae34  sp  0000007fced48160  pc  000000753ec3ae34  pst 0000000080001000
 3361 F DEBUG   : 1 total frames

Change-Id: I6babac8f4ec0489f8bd5855b4e00bf64a20dd899
2024-04-06 16:07:26 +08:00
chaptsand
05cc5c130c sm8550-common: Refactor proprietary files
* Add missing blobs
* Reorder proprietary-files.txt
* Build some libraries from source as seen in stock

Change-Id: I9f777283407dc6749592463bcdb082728b291ade
2024-04-06 16:04:16 +08:00
chaptsand
de6aab45d0 sm8550-common: Update props from S9160ZHS2BXAF
Change-Id: I47dd2283e261a2632242e85320c47a135a1a2035
2024-03-30 23:25:46 +08:00
chaptsand
445eb40afe sm8550-common: Import Samsung changes over USB scripts
Change-Id: I57b0f0e3e795886132c3ea0d8fb0af5b0cfbe78d
2024-03-30 23:25:46 +08:00
chaptsand
34a3e80503 sm8550-common: Import USB scripts from vendor/qcom/opensource/usb/etc
Change-Id: Idaba4e9f46a6723a4bd5a4b7cdd47ee992ce392d
2024-03-30 23:25:46 +08:00
chaptsand
64e174b102 sm8550-common: Import samsung radio manifests
Change-Id: Iaf5447f63d3d231d754a22964576ee6ffc1c9d5f
2024-03-30 23:25:46 +08:00
chaptsand
06c51f1a9c sm8550-common: Update blobs from S9160ZHS2BXAF
Change-Id: I3978168113b48f5c03be95ec8494093f46f0a042
2024-03-30 23:25:46 +08:00
chaptsand
67c2a084da sm8550-common: Add reserved space for dynamic partitions
* For further modifications

Change-Id: Ia00c6c2305714697cedc604096feb96e16da63b2
2024-03-30 23:25:24 +08:00