Commit Graph

154 Commits

Author SHA1 Message Date
Marc Bourgoin
f8263cb11f sm8550-common: Build vendor.qti.hardware.capabilityconfigstore from s…
…ource

Change-Id: I9bd58ddae3c1b3868db23dc44dfb80ad337e0e1b
2024-07-29 17:17:30 +08:00
Luofan Chen
886fbb531c sm8550-common: Kang SDM blobs from Motorola rtwo 14 RETAIL
Depends-On: Ibe803492625943260135ac8b42defe9089fdd779
Change-Id: Ibaa710ddddae4e10765674ac7fcadb1cd8b56572
2024-07-29 17:17:30 +08:00
Luka Panio
c976a615ff sm8550-common: Enable qti.media.c2audio if disabled
Change-Id: I1612c101978d3f1b4ef0afda6868a7723b355f13
2024-07-29 17:17:30 +08:00
Luka Panio
d5a9167bf3 sm8550-common: Set BOARD_ROOT_EXTRA_FOLDERS
Change-Id: I6d3ef85bef4476b1ad57196d4c965d7dc52e309e
2024-07-29 17:17:30 +08:00
Bruno Martins
6d3fc1d26a sm8550-common: Unset BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qualcomm targets can now build hermetic partitions.

Change-Id: I241105e01d85fea983b34846ca675666ac07541b
2024-07-25 00:00:18 +08:00
Bruno Martins
7627b68b2a sm8550-common: Declare EGL libs as symlinks during extraction
Change-Id: I4b2f3e79b5e518889d9771bf8990e27babca8b61
2024-07-25 00:00:18 +08:00
Bruno Martins
b91ffb69f0 sm8550-common: Move to new RFS install_symlink targets
Change-Id: I9560fd0da00958d9349a0881b5a5f64a2c02e495
2024-07-25 00:00:18 +08:00
Paul Crowley
0cc67f6fe0 sm8550-common: Remove wait_for_keymaster and all references
No longer needed now init listens for property changes on a
separate thread.

Bug: 186580823
Test: Cuttlefish boots successfully
Change-Id: Ief3a546d2154231d18957c2f703bd128966d7288
2024-07-25 00:00:18 +08:00
danielml
632bcf702d sm8550-common: seccomp: Allow qwesd the pipe2 syscall
Change-Id: I77d0947b5befaa2139c17e169a85cfe72d1ad311
Signed-off-by: danielml <daniel@danielml.dev>
2024-07-25 00:00:18 +08:00
Michael Bestas
6524ab8f47 sm8550-common: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
2024-07-24 00:00:48 +08:00
Chirayu Desai
50ecd21c29 sm8550-common: Don't set BOARD_API_LEVEL
build/make/core/board_config.mk:1001: error: BOARD_API_LEVEL must not
set manully. The build system automatically sets this value..

Change-Id: If59ae9dea6cb13701d7217a1c0a355d4e07113eb
2024-07-24 00:00:48 +08:00
chaptsand
651fcc5e12 sm8550-common: Update blobs to S9160ZHS4CXG2
Change-Id: Iff219893dd4d51781b77c2782ccfd38bd2fe6c1a
2024-07-24 00:00:48 +08:00
chaptsand
eb3e1e5343 sm8550-common: Build AIDL fingerprint HAL
Change-Id: Icafb53447a132517b916b83429753ab6d5810dab
2024-07-24 00:00:48 +08:00
chaptsand
5bc3efdd11 sm8550-common: Ship SEC HyPer AIDL HAL
Without this, the camera will be stuck for 10 seconds before the preview is displayed.

* W ServiceManagerCppClient: Service vendor.samsung.hardware.hyper.ISehHyPer/default didn't start. Returning NULL
* E HYPER_NATIVE_VINTF: Couldn't access HyPer Hal
* E HYPER_NATIVE_VINTF: Acquire on JNI, HyPerHalVersion is NULL
* E CHI     : [SS_ERR ]: [CHI         ]: chxextensionmodule.cpp: ExecuteMemBoost: 25099: MemBoost open fail by 0
* I CHI     : [SS_LOW ]: [CHI         ]: chxsecperf.cpp: AcquirePerfLock: 1157:  0] OPEN_CAMERA (1000)
* I CHI     : [SS_LOW ]: [CHI         ]: chxsecperf.cpp: AcquirePerfLock: 1014: OverheatLevel [0~6](0xFFFFFFFF)
* I CHI     : [SS_LOW ]: [CHI         ]: chxsecperf.cpp: AcquireHyperVInt: 1355: AcquireHyperVInt : maxlimit[3360000], minlimit[2092800], duration[3000]
* I ServiceManagerCppClient: Waiting for service 'vendor.samsung.hardware.hyper.ISehHyPer/default' on '/dev/binder'...

Thanks luk1337 for pointing it out.

Change-Id: I1505ec2ecd7185a47f9bf9bb39a77f475adbe27c
2024-04-10 15:57:00 +08:00
Avinash Nalluri
7b7180c13e sm8550-common: Set default network preference to NR
Change-Id: Ic4aa31000ae59f1657fee0345ca66e8b37504d6f
2024-04-10 15:57:00 +08:00
Santiago Seifert
201f8d6149 sm8550-common: Unpin updatable-media from memory
Bug: 214499288
Change-Id: I83757ae6a053ec6b10b08322c4e76d988f1a4a48
Test: Presubmit
2024-04-07 14:09:55 +08:00
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