Commit Graph

1216 Commits

Author SHA1 Message Date
Bruno Martins
88fdfc318a sm8350-common: sepolicy: Remove duplicate lahaina wakeup nodes
Needed after I53aad29624e904b092c3cf73d498c735cf2f1b3e

Change-Id: I245c50c6e5c5d93a58cb4fe11e8e3aef3003ae29
2023-04-16 17:43:25 +02:00
Arian
2a641ef6ff sm8350-common: sepolicy: Label camera libraries as same process hal files
Change-Id: If04a525677e9e137dacb4fd759eb6d1d5d2776ba
2023-04-16 17:43:25 +02:00
Arian
6766cd911e sm8350-common: Build graphics allocator 3.0 interface to vendor
Some camera libraries depend on it

Change-Id: I0f4638c3f383f236e813457fc88fc1c33aaa0dfc
2023-04-16 17:43:25 +02:00
Arian
749023b822 sm8350-common: hidl: Add cameraperf to framework compatibility matrix
Change-Id: I4a7894cab884f775eb8c5a69180fdd065ebcb465
2023-04-16 17:43:25 +02:00
Arian
08a574b256 sm8350-common: sepolicy: Add camera perf and postproc hwservice
Change-Id: I5e054952a9739c1363294564296a26adcf3c8d8a
2023-04-16 17:43:25 +02:00
Arian
b201a744cb sm8350-common: Switch to camera.xiaomi.so
Change-Id: Ia179063af33484349a8c2224d327fb326e6d54bc
2023-04-16 17:43:25 +02:00
Arian
f9363b11e2 sm8350-common: Import public.libraries.txt from haydn V14.0.3.0.TKKMIXM
Change-Id: Ifcd7c40246b8b43d52d151001441bfd09b80f24e
2023-04-16 17:43:25 +02:00
Chenyang Zhong
794542baa6 sm8350-common: sepolicy: Set sensor HAL as a client of audio HAL
Elliptic ultrasonic proximity sensor's libnotifyaudiohal looks for
the audio HAL during elliptic's activate().

avc:  denied  { find } for interface=android.hardware.audio::IDevicesFactory sid=u:r:hal_sensors_default:s0 pid=970 scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:hal_audio_hwservice:s0 tclass=hwservice_manager permissive=0

Change-Id: Ibcd6693acb49c810e8ce1f0ea86cf2238ad10a70
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-04-16 17:43:25 +02:00
Chenyang Zhong
564e70fb54 sm8350-common: Build 64-bit audio HIDL as well
libnotifyaudiohal.so from the elliptic ultrasonic proximity sensor
needs the 64-bit version of android.hardware.audio@6.0.so.

Change-Id: I8a6df0ed82806e8ea0f63b03b4f5a7b5c483fbbf
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-04-16 17:43:25 +02:00
Arian
69c455766c sm8350-common: Decommonize camera blob fixups
These blobs are in device specific proprietary-files

Change-Id: I315ae10b7bca1a9b81e6b77bbf78889db959f362
2023-04-16 17:43:25 +02:00
Bruno Martins
1ee719bb6d sm8350-common: Drop custom APM flag along with no-op audio flags
Custom audio policy manager is hard disabled by CAF
for 2 years now. Remove as well the audio feature flags
that were used to configure it.

Change-Id: Idd34d1cbbdb735d6cf0de3b159c2670bf7ddd1e3
2023-04-16 17:43:25 +02:00
LuK1337
0dcd3f38d1 sm8350-common: Sort blobs list /w sort-blobs-list.py
Change-Id: I197c6353dc50baf4ee76ed6ebf083dc00879bd96
2023-04-16 17:43:25 +02:00
Giovanni Ricca
dcfd80bbdf sm8350-common: media: Sync media configs from haydn V14.0.3.0.TKKMIXM
Change-Id: Id00ae3eb328ceac73e65349b3abc97fb8ffef75f
2023-04-16 17:43:25 +02:00
Giovanni Ricca
6c44bff5f7 sm8350-common: rootdir: Sync rootdir from haydn V14.0.3.0.TKKMIXM
Change-Id: Ibbaf1fd6ac6e45b71c66b79a95fa2c936cd3e695
2023-04-16 17:43:25 +02:00
Giovanni Ricca
cb4f0321cc sm8350-common: wifi: Disable Target Wake Time
* From haydn V14.0.3.0.TKKMIXM

Change-Id: I4b2c2328eca3d23e4ad1ac95abf151793f07e6ab
2023-04-16 17:43:25 +02:00
Arian
ce5bf61978 sm8350-common: Patch ims.apk
Patched to remove com.qti.permission.BIND_QTI_IMS_SERVICE and
Landroid/telephony/TelephonyBaseUtilsStub;->isMiuiRom()

Full patch: https://paste.myself5.de/zitiketuto.diff

Change-Id: I1ecff29d7089bffa50d41acb6b55c6d8e36d1d9c
2023-04-16 17:43:25 +02:00
AdarshGrewal
7f3d4cc88d sm8350-common: Update from haydn V14.0.3.0.TKKMIXM
Change-Id: I319efc1d4ae76192c8314b37b65db72cdfb1ba04
2023-04-16 17:43:25 +02:00
AdarshGrewal
f3e0c86da3 sm8350-common: sepolicy: Label more wakeup nodes
Change-Id: Iba883ad3a4c35bc59222571c7a0069dc47d34d59
2023-04-16 17:43:25 +02:00
Giovanni Ricca
4c87687fcd sm8350-common: configs: Add camera-daemon hint
* From haydn V14.0.3.0.TKKMIXM

Change-Id: Ie513762d0702e06a274ed6cb4915a7a34f281292
2023-04-16 17:43:21 +02:00
Kishor Krishna Bhat
9ab46944ba sm8350-common: Remove frozen and unfrozen cgroup
Removed frozen and unfrozen cgroup configuration which
are outdated and are also not required. This passes
testFreezerKillExitCode test case.

Change-Id: I8fef53a3b957d529cd6ace75e648ce8a5847e046
Signed-off-by: Kishor Krishna Bhat <quic_kishkris@quicinc.com>
2023-04-16 17:37:35 +02:00
Satya Durga Srinivasu Prabhala
bb8438e434 sm8350-common: Add UClamp support for lahaina
Sched Tune is deprecated in 5.4 Kernels and is replaced with
UClamp. As Android releases has to support earlier Kernel versions
like 4.14, UClamp isn't made default yet.

Change-Id: If6f4ae0812ae456089273514de58bb0654bb08c7
2023-04-16 17:37:35 +02:00
Woody Lin
da882c6a8c sm8350-common: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2023-04-16 17:37:35 +02:00
Nate Jiang
fa14a03e39 sm8350-common: Enable set channel on NDP setup
Bug: 190354626
Test: build, CtsVerifier
Change-Id: Ieff18b96ec0f24c1c20c40add4e47a532ece8922
2023-04-16 17:37:35 +02:00
Les Lee
2642071b14 sm8350-common: wifi: Configure correct overlay configuration.
ag/16564596 will change default value to false.
Configure correct overlay configuration.

Bug: 212488775
Test: manual test & build
Change-Id: Iaf1a0a23dae69fde5995e591a757a8ef5374d5b5
2023-04-16 17:37:35 +02:00
Georg Veichtlbauer
678df67d35 sm8350-common: Drop config_setColorTransformAccelerated
It's now enabled by default

Change-Id: I57f059c872fc2ad2fd15e788b1391eeebaff9bde
2023-04-16 17:37:35 +02:00
Michael Bestas
88d8ff6808 sm8350-common: overlay: Update multiple vibration strength levels overlay for 13
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2023-04-16 17:37:35 +02:00
Nolen Johnson
bc2fe835fb sm8350-common: QCOM healthd is globally tracked now
Change-Id: Idf139e0a42372fb78695b0bffaba3909929299ad
2023-04-16 17:37:35 +02:00
Pirama Arumuga Nainar
886c8c28e4 sm8350-common: gps: Fix -Wbitwise-instead-of-logical
Bug: http://b/215753485

Reported by clang-r445002

error: use of bitwise '|' with boolean operands [-Werro
r,-Wbitwise-instead-of-logical]

  if (gnssCbIface != nullptr || gnssCbIface_2_0 != nullptr| gnssCbIface_2_1 != nullptr) {
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                          ||

Test: build with clang-r445002
Change-Id: I9410eb5208227dd70bd036aee02fb2aeb912f266
Merged-In: I9410eb5208227dd70bd036aee02fb2aeb912f266
2023-04-16 17:37:35 +02:00
Edwin Moquete
2218390115 sm8350-common: Remove unused persist.bluetooth.a2dp_offload.cap property
This prop has no effect as of T QPR1.

See: LineageOS/android_packages_modules_Bluetooth@cf25e33

Change-Id: Ic762812dd59429d344ccc55c01bf96b0ffd6dbab
2023-03-19 17:12:27 +01:00
Alexander Koskovich
a25e493da9 sm8350-common: Add Bluetooth power overlays to sysprops
* These are moved to sysprops in Android 13.

   976d33062b%5E%21/#F0

Change-Id: I5bff67a15c537e8a47a19f30776fca6bf2c9fbe5
2023-03-19 17:12:27 +01:00
Alexander Koskovich
286b0959a9 sm8350-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2023-03-19 17:12:27 +01:00
Alice Kuo
1808993378 sm8350-common: Disable LE audio related profiles
Bug: 231671426
Test: build
Change-Id: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
Merged-In: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
(cherry picked from commit acb0b19b8348a4b9518d2f46b1599f423f620347)
2023-03-19 17:12:27 +01:00
Sal Savage
e1186033ba sm8350-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
2023-03-19 17:12:27 +01:00
Sal Savage
c5ced088d3 sm8350-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
2023-03-19 17:12:27 +01:00
Sal Savage
8e6bf6e611 sm8350-common: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d
2023-03-19 17:12:27 +01:00
Sal Savage
5a1ee9c5fa sm8350-common: Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2023-03-19 17:12:27 +01:00
Michael Bestas
e44aac4ba2 sm8350-common: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2023-03-19 17:12:27 +01:00
llololo
2c43d6df60 sm8350-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
2023-03-19 17:12:27 +01:00
Josh Wu
43cf637947 sm8350-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2023-03-19 17:12:27 +01:00
Jakub Pawlowski
3334f2e7f1 sm8350-common: Use bluetooth.audio@2.1
bluetooth.audio@2.1 adds new functionalities required for Bluetooth LE
Audio development

Bug: 150670922
Change-Id: Iac2ece0c029a38fef82e81f5ba3ba491163818ef
2023-03-19 17:12:27 +01:00
dianlujitao
f6d9784077 sm8350-common: audio: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2023-03-19 17:12:27 +01:00
dianlujitao
c961ca948b sm8350-common: Remove libbthost_if from product packages
Change-Id: Iccf81b853ad67c47d23868899bf577ca0a1c6dde
2023-03-19 17:12:27 +01:00
Bruno Martins
e672de6ee1 sm8350-common: Remove QTI BT stack bits
Change-Id: Ice6c2b0735aa7cb4b2e638a794c778883e706c97
2023-03-19 17:12:24 +01:00
AdarshGrewal
a1cf0b5981 Revert "sm6250-common: Switch to QTI bt stack"
This reverts commit 14509d9e2f.

Change-Id: Ibb4d42d067c0ce1e45e8000cd8224d11b58c6c3a
2023-03-19 16:59:44 +01:00
Michael Bestas
8a4059e02e sm8350-common: Compile the kernel without GCC
Change-Id: I882c0d8600f88c1bb939c7ee247230ec5e70338a
2023-03-05 10:01:37 +05:30
AdarshGrewal
346f014dd7 sm8350-common: sepolicy: Drop duplicate wakeup node labels
Change-Id: I528d6cfcdfb40b1f2fad8706e2121eb20bc81dc6
2023-03-05 10:01:31 +05:30
Edwin Moquete
d141088910 sm8350-common: Switch to legacy sepolicy_vndr
Change-Id: I13229c3057bf32c81b0fdace075f0791cb8ad380
2023-03-05 10:01:27 +05:30
Tyler Trephan
0247e26e19 sm8350-common: sensors: Updated multihal to use new sensors AIDL interface.
Test: make android.hardware.sensors@aidl-multihal
Fix: 206867060
Change-Id: I9b78a0f25117d11fdf4beb1e0913393c1c14620d
2023-03-05 10:01:19 +05:30
Jiyong Park
380fa0ba2c sm8350-common: aidl: Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
Change-Id: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
(cherry picked from commit 25368375b1759a13cacbfa1a9a183d4eee7381b2)
2023-01-21 23:56:23 +05:30
AdarshGrewal
c4615e50d6 sm8350-common: Stop building libdisplayconfig.qti vendor variant
Change-Id: I84e3f2506e020c197a3d5be43cb55e7beeddd608
2023-01-21 23:56:23 +05:30