Commit Graph

1067 Commits

Author SHA1 Message Date
Bruno Martins
1aeec1b45a sm8550-common: Update from OOS 11.A.38
Change-Id: Ibdc84266921447a348759b4a5618abbd688ecd40
2024-01-04 14:21:18 +00:00
Bruno Martins
7f4680a7f0 sm8550-common: Build QTI memtrack AIDL service from source
Change-Id: Ie549c42700821017a172ec8dc15086f87cd579f9
2023-12-26 12:24:45 +00:00
LuK1337
5dfc965751 sm8550-common: Reserve more space on /product
Change-Id: I25884eb89ea7d4cbe2b82504c21c83c8513095aa
2023-12-14 22:53:43 +00:00
Georg Veichtlbauer
7eeb9543cb sm8550-common: Inherit generic overlays from OPlus
Change-Id: I7ecb6c9ea6636450076918bef6dce9986342ae3e
2023-12-12 09:01:21 +00:00
Bruno Martins
4ef447e8a9 sm8550-common: Fixup kernel modules load list
These modules are no longer built, so remove from the list.

Change-Id: I6243938b84c41a9a8588ef3cbd3f293e6c506dc7
2023-12-07 21:45:45 +00:00
Bruno Martins
2e0d17209b sm8550-common: Allow extracting only firmware images
Change-Id: Icab3f013661304e3a9ec89b0816a8139f6b8e8e5
2023-12-05 16:53:05 +00:00
LuK1337
ba8a3a34a6 sm8550-common: Prevent adding same dependency twice in blob_fixup
Change-Id: Idedeb51e027a09f64a29ac67a3a2f2a0594213f6
2023-12-05 16:53:01 +00:00
Michael Bestas
8897d29c2e sm8550-common: Add firmware extraction support
Change-Id: If6cb6334a8f7b2fcc77c8947569eba1b2002190a
2023-12-05 14:26:01 +00:00
rakegand
ce175dad7e sm8550-common: Move SPU NVM directories creation to earlier stage.
Change-Id: Ic6d1a83c7fc7a54d6f8d78f91e5f3167dd7017fe
2023-12-05 11:30:48 +00:00
Kumar Anurag Singh
abfe5fd0e4 sm8550-common: ueventd.rc: Add permissions for msm_lsm cdev
permissions are required for sthal communication
with kernel module to work.

Change-Id: I6f3daed36d20f70ce0fb789cc9142a4cd5a3923f
2023-12-05 11:30:48 +00:00
Bruno Martins
9155394557 sm8550-common: Remove vendor.nxp.nxpnfc HIDL entries from compat matrix
AIDL HAL is now being used, HIDL HAL is gone.

Change-Id: Ia494fc1e2d8c2ccfbb7aba8530f0c1d6d9d6331c
2023-12-05 10:44:51 +00:00
pjgowtham
06c3ba8ee5 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
2023-12-05 10:42:30 +00:00
Bruno Martins
214fa16623 sm8550-common: Tweak surfaceflinger work durations
This matches early stock Android 14 based builds.

Change-Id: Ic8c4391495c4a9a3bf7e1803f51e414b1835e27d
2023-12-05 10:07:16 +00:00
Bruno Martins
b1f1e181a3 sm8550-common: Bring in select pre-OOS 14 audio changes
Somehow missed during last updates from OOS 13.x.

As sidenote, all changes related to spatial output were skipped,
keeping AOSP output (and aligned with vanilla kalama config) instead
of switching to custom one.

Change-Id: I7e0864eb31ba9637af2fbd14bb55d971b7e14cd9
2023-12-05 09:54:16 +00:00
Pranav Vashi
1b7fb33156 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>
2023-12-04 17:18:41 +00:00
chandu078
0355988cbd sm8550-common: overlay: Add back config_defaultPeakRefreshRate
* Reason for revert: won't work with min/max refresh rate impl.

This reverts commit 9e1db8d50fbf25496f732fa5b44c1cda0ff8e6b2.

Change-Id: I48a684656283eafe723480d62c7e766636aa0c66
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2023-12-04 15:19:46 +00:00
Michael Bestas
31ec9d9907 sm8550-common: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2023-12-03 22:07:05 +00:00
Bruno Martins
561f7bdb3b sm8550-common: Dedup bluetooth_audio vintf fragment copy
Build system complains about broken copy rule and this is indeed
copied as part of android.hardware.bluetooth.audio-impl.

Change-Id: I43fe6037d8c44c62038a67c101b4c5851f26e5da
2023-12-02 22:48:23 +00:00
Pranav Vashi
760806520e sm8550-common: Do not build atrace HAL
Change-Id: I71b9f8055408f6ff60e40842d488b9850358720f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2023-12-02 16:05:35 +00:00
Pranav Vashi
b439077951 sm8550-common: Remove debug kernel modules no longer built
Required after disabling CONFIG_DEBUG_FS.

Change-Id: I51d1d06e1839672126804c7c6f6bc60bf2789822
2023-12-02 13:43:18 +00:00
LuK1337
03fefc1c64 sm8550-common: Include vendor/debugfs.config
This disables the following kernel configs:
* CONFIG_DEBUG_FS
* CONFIG_PAGE_OWNER

Change-Id: Idbf74e3dee4dccff4708462271e79374e28449ae
2023-12-02 13:43:12 +00:00
Shivank Garg
09350ebeed sm8550-common: audio: Update APM to use AUDIO_OUTPUT_FLAG_SPATIALIZER
-AUDIO_OUTPUT_FLAG_SPATIALIZER is standard flag for spatial audio

Change-Id: I95b378addddee2a04246d3f001b51fd556585617
2023-11-29 23:20:03 +00:00
Preetam Singh
07181e864b sm8550-common: audio: Add spatial output stream for BT sco and BLE devices.
Change-Id: I07e163feeaa32fd64a30a81ec3c7b3a94e13e42d
2023-11-29 23:20:03 +00:00
Preetam Singh
b4a780a688 sm8550-common: audio: Add spatializer output.
-Added spatializer mix port and routes for A2DP

Change-Id: I76b7fde6c2aa22f98b66f9fb6f9c847346ba6429
2023-11-29 23:20:03 +00:00
Bruno Martins
288af1afd3 sm8550-common: init: Override QTI audio rpc daemon service definition
The rpc daemon doesn't support loading ADSP libs from odm partition,
therefore locally set environment variable ADSP_LIBRARY_PATH to allow
that to happen, just like stock does.

Just as a sidenote, during early bringup phase the quick workaround
was to move the relevant blobs from odm to vendor, but then ditched
in favor of copying the stock script. Now, instead of copying it,
simply override the service definition and avoid one duplicate copy
rule.

Change-Id: Ic78536afda4f86ea589e57adf496b4db8256aea1
2023-11-17 10:37:23 +00:00
Andy Hung
b41613c723 sm8550-common: audio HAL: Enable RT priority inheritance
Test: instrumented
Bug: 181148259
Bug: 260918856
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
2023-11-17 10:35:20 +00:00
Suren Baghdasaryan
bb049ce55f sm8550-common: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
2023-11-17 10:35:20 +00:00
Bruno Martins
b30230bc59 sm8550-common: init: Override AOSP a-HAL service definition
Qualcomm adds oem_2901 and oem_2912 as group members.

Change-Id: I90e9d45069a8100bf922a5058fae5dbc5e5ef0c9
2023-11-17 10:35:20 +00:00
Bruno Martins
330bd7ac17 sm8550-common: overlay: Remove obsolete config_keyboardTapVibePattern
Change-Id: Ic89566183d2cdc4a20ea83f462c56a14184621ae
2023-11-16 23:01:58 +00:00
Rick Yiu
16f831c8c9 sm8550-common: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Icfe520e7f7367461607cc8fb5e524d9699e79124
2023-11-15 22:17:09 +00:00
Bruno Martins
0dde171bdb sm8550-common: Remove obsolete ro.charger prop
The health AIDL HAL service is not allowed to read ro.charger.*
system properties. Moreover, suspend and resume for charger mode
is enabled by default in the QTI healthd-ext.

Change-Id: Icff054944b019e93d8a99515c040a3004eb583a6
2023-11-14 22:18:03 +00:00
Bruno Martins
1396a1382d sm8550-common: Update from OOS 11.A.27
Change-Id: If086ad788c070230598ca4e0c4f69bbeab6a1e4d
2023-11-06 19:14:56 +00:00
Bruno Martins
75ab73568f sm8550-common: Replace board flag for building GKI modules
Android 14 introduced BOARD_SYSTEM_KERNEL_MODULES and it conflicts with
the currently implemented GKI handling setup, so workaround and migrate
to SYSTEM_KERNEL_MODULES.

Change-Id: I77798268c825a08761c103faaf3a38a9e086dad4
2023-10-28 12:11:16 +01:00
Bruno Martins
194ee64a7a sm8550-common: Migrate to common data-ipa-cfg-mgr
Change-Id: I8e16b81461390eb7491fc51e604ba08a53c7d364
2023-10-27 11:03:50 +01:00
SGCMarkus
3d6fb1c755 sm8550-common: Add security.rkp-V3 dependency to keymint service
The symbol _ZN4aidl7android8hardware8security7keymint29IRemotelyProvisionedComponent10descriptorE
was moved from android.hardware.security.keymint-V2-ndk to android.hardware.security.rkp-V3-ndk.

Change-Id: I7f3c40e3e8a2a848cdcb73e5232952f63681aa58
2023-10-26 10:30:55 +01:00
SGCMarkus
f9528766de sm8550-common: Build older NDK versions for prebuilt blobs
Change-Id: I4adffc367b1b62225bcb801338d9bbe55f92deb6
2023-10-26 10:30:55 +01:00
LuK1337
bcd70d5159 sm8550-common: Build android.frameworks.sensorservice@1.0.vendor
Required by mm-pp-deps.

Change-Id: Iaf821dcbb07d7820f2fc3ff5ca9cca5e973360f2
2023-10-26 10:30:55 +01:00
LuK1337
4637fb60f5 sm8550-common: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2023-10-25 22:34:03 +01:00
LuK1337
d8d342f05f sm8550-common: Build AIDL NXP NFC HAL
Change-Id: I6ace3ac149c84d2cb9e2773e7ef5ddbf24c35b92
2023-10-25 22:33:09 +01:00
Gabriel Biren
7a85a23414 sm8550-common: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2023-10-25 22:33:09 +01:00
Bruno Martins
313005ba7c sm8550-common: Update from OOS 11.A.26
Change-Id: Ifc14f737bd6b562976a62b1622a554c340903a06
2023-10-12 10:01:01 +01:00
David Sehr
5607999db7 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
2023-09-27 09:45:43 +01:00
Bruno Martins
23a8f73f0e sm8550-common: Decommonize touchscreen firmware
Change-Id: I99a3d03457474fa49f5d3fee8d696b89c0b7c860
2023-09-23 18:20:17 +01:00
me-cafebabe
40188691c5 sm8550-common: overlay: Enable all available vibration intensity levels
Change-Id: I42676c713b38097ec49b0ea032948628d5bca7bc
2023-09-22 16:52:23 +01:00
Michael Bestas
d497fc6443 sm8550-common: overlay: Update multiple vibration strength levels overlay for 13
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2023-09-22 16:52:23 +01:00
Murat Kozan
e791065dec sm8550-common: overlay: Enable vibration multiple intensities
* Activates some options on Settings>accessibility>vibration

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I61fa2fede6af2f7f8b7829eccd348d694a4e1a72
2023-09-22 16:52:23 +01:00
Bruno Martins
ff322f633c sm8550-common: Update path of external kernel modules
It now closely matches QCOM paths.

Change-Id: I50379d9143cb162270584f48b4ad6f3311eec4ca
2023-09-18 21:45:54 +01:00
Bruno Martins
9d365530cd sm8550-common: Correct secure MSM kernel modules loading stages
This now matches securemsm-kernel configs for kalama.
Essentially, QCOM explicitly loads hdcp_qseecom_dlkm in recovery
and also decided to load qrng_dlkm in the first-stage in order
to improve booting times.

Change-Id: I6ff0debc8eaabf3d2ee0d06771f74b90d21e1804
2023-09-18 21:45:54 +01:00
Pranav Vashi
d4526e57f9 sm8550-common: Remove kernel LTO specification
Change-Id: I055f07b01e413eef5daf8b7f8f3fac86cd27a89c
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2023-09-18 21:32:41 +01:00
Bruno Martins
3966afc2a2 sm8550-common: Add remaining kernel dependency repos
Change-Id: Id01a1a2f7c705737a3135002d35f342b1e440d88
2023-09-18 21:32:41 +01:00