Commit Graph

1188 Commits

Author SHA1 Message Date
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
Bowgo Tsai
c423b6dc9d sm8350-common: Removing GSI keys
Those keys will be embedded into VtsSecurityAvb on host side
instead, to verify the GSI image used on the device.

Bug: 149806769
Test: build and checks those keys are removed from
      $OUT/recovery/root/first_stage_ramdisk/avb/
Change-Id: I8a002ba6f1421fb460056ccae6572050bdb0ce3c
2023-01-21 18:07:56 +05:30
Giovanni Ricca
91909d8cea sm8350-common: Update blobs to haydn V13.0.4.0.SKKMIXM
Change-Id: I1960beab441ef320c00994cab150a4ef7a40b212
2022-12-31 14:30:20 +01:00
Alexander Koskovich
f964734af4 sm8350-common: Enable WFD property "persist.debug.wfd.enable".
Change-Id: Iadaef9cba8c378c54ea106f539d78f2a72388a97
2022-12-31 14:30:20 +01:00
Dyneteve
58e993f75c sm8350-common: overlay: Remove "SIM x is HD capable" message
sed -i '/config_update_service_status/ s/true/false/g' \
       rro_overlays/CarrierConfigOverlay/res/xml/vendor.xml

Change-Id: I26ce187483d6d8c18bcd1901cd6d71ca6ec1e31f
2022-12-31 14:29:58 +01:00
AdarshGrewal
4209e6c3c8 sm8350-common: Allow overriding content detection refresh rate props
There is a visible gamma shift when switching to high refresh rate on
some devices where it's poorly tuned (like haydn). Since its fine for
properly tuned devices (like renoir/lisa) lets keep these props here
and override on devices where its necessary.

Change-Id: Ie120376e330edfef59a4a535545ac7c014a3b557
2022-10-30 16:37:05 +01:00
Arian
ab1b4db897 sm8350-common: Drop media target variant property from system_ext.prop
This is set properly by vendor/bin/init.qti.media.sh

Change-Id: I408d27624fd47183a8b93380bc1d8e5e83dd856e
2022-10-11 00:08:45 +02:00
Arian
3bd4fbc7d7 sm8350-common: sepolicy: Allow camera hal to read mnt_vendor_file
This is necessary to find the dualcamera calibration in persist

Change-Id: I89d5d7839e13aeb2f5373b8bdc2e03830407cfb0
2022-09-27 12:12:25 +02:00
Erfan Abdi
ec2683f06c sm8350-common: Add hotword priv app permissions
Change-Id: Ic936e852cb77fe47c0ce69465b7a3717c2619b7e
2022-09-26 23:58:16 +02:00
Arian
a555d6afac sm8350-common: Commonize HotwordEnrollment
Change-Id: Idc7b8de462b3d9359d99c964468f94619a2b947c
2022-09-26 23:56:37 +02:00
Bruno Martins
7469b72e89 sm8350-common: Blob out audio HAL extensions
These targets are using prebuilt audio HAL and for some reason,
using the source-built liba2dpoffload breaks A2DP. Just use
prebuilt HAL extensions to avoid mismatches.
Build libtinycompress explicitly as that was built implicitly as
dependency of the audio HAL extensions previously.

Change-Id: I37a5601afdbfdcb81a1053b366fad79fadf4eaa7
2022-09-26 17:12:40 +02:00
Arian
3be76db707 sm8350-common: overlay: Set preferred refresh rate on keyguard to 60
This ensures that the device doesn't switch to hrr while
doze mode is active.

Change-Id: I8488e86e56a46aea95f2835d8667c23401625f0b
2022-09-26 17:12:40 +02:00
TheScarastic
3427df5cfe sm8350-common: overlay: Add support for doze auto brightness
Based on observing it's values, xiaomi.sensor.aod reports
the following events:

4.0: Bright environment
5.0: Dark environment

Change-Id: Ie589066bd860a7fed3989092c21aee73686ecea4
Signed-off-by: Arian <arian.kulmer@web.de>
2022-09-26 17:12:40 +02:00
Adithya R
5a9786b385 sm8350-common: Add xiaomi cit sensor service
This service contains notifiers (Backlight2SlpiNotifier,
Freq2SlpiNotifier) which are responsible for relaying
current brightness and refresh rate to our under-display
light sensor. Without it, the screen brightness affects
light sensor readings, making auto brightness unusable.

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: I1e6249e915e4973167dc1642af5e15717d2c03ef
2022-09-26 17:12:40 +02:00
Giovanni Ricca
42b801c2e4 sm8530-common: Switch to fragmented defconfigs
Change-Id: I5c3a7c41a9764221a2872830abf078ecc2cdf192
2022-09-26 17:12:40 +02:00
Giovanni Ricca
ca24a1db5c sm8350-common: sepolicy: Nuke duplicate wakeup nodes
Change-Id: I3fc529731fc592ffbb5051c8b1769342a5b2b132
2022-09-26 17:12:40 +02:00
Arian
98afa0b8da sm8350-common: vibrator: Update effect names
Change-Id: Icff77bcb42fafc688eb1c1e2397b5353f77de511
2022-09-26 17:12:40 +02:00
Alexander Koskovich
8bd2080cc3 sm8350-common: Switch to /vendor_dlkm for kernel modules
* This lets us flash /vendor regardless of the kernel situation.

Change-Id: Ie1c18354b26006e416d06474f5844ceef3cfbaf3
2022-09-26 17:12:40 +02:00
Alexander Koskovich
7689e18385 sm8350-common: Update to Boot Control HAL v1.2
Change-Id: I26da6b732fdce8c69c4390effe3d7b727d71adac
2022-09-26 17:12:40 +02:00
Siddeswar Aluganti
8e17df623a sm8350-common: gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti),
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

Change-Id: I3fb2934c44f3c2555ef36437ae97c9a47bb874ed
2022-09-26 17:12:40 +02:00
Benergy Meenan Ravuri
fa34ced5a5 sm8350-common: gpt-utils: Do fsync after writing partition entries
Do fsync after writing partition entries to ensure data
is actually written before rebooting device.

Change-Id: I09659cab247fe280dc608e30a88d912034cbc01a
2022-09-26 17:12:40 +02:00
Arian
91901deedc sm8350-common: gpt-utils: Add product to ab partition list
Change-Id: I1424f65ff02a325130115d0b7f40be8a964ec2aa
2022-09-26 17:12:40 +02:00
Arian
4a39060209 sm8350-common: gpt-utils: Drop unused sparse_crc32
Change-Id: I020ddf0b518e9219681be8764f2e0818e3fe74eb
2022-09-26 17:12:40 +02:00
Michael Bestas
bd03a069f6 sm8350-common: bootctrl: Remove bootctrl.xiaomi_sm8350 target
* This is no longer used after switching to QTI 1.1 impl.

Change-Id: Id770b77da62c3b16eaea83cec366b299b1ea49d2
2022-09-26 17:12:40 +02:00
LuK1337
c04036a792 sm8350-common: Set max_retry_alloc_output_timeout to 0
Seems like original value makes some videos stop playing after a while?

Change-Id: Ic427e50475121e1a1d785b39a5fe807e6a09459e
2022-09-26 17:12:40 +02:00
Michael Bestas
4246a7adf3 sm8350-common: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES
Change-Id: Iaa9d66b0bbdc55f046ee1347cbf83c7eecebb35e
2022-09-26 17:12:40 +02:00
Giovanni Ricca
3c565193f5 sm8350-common: gps: Revert oem changes
Change-Id: Ia13ce8d80233a493aa90723a1e974871ddce641b
2022-09-26 17:12:40 +02:00
Giovanni Ricca
467b1af609 sm8350-common: gps: Update to LA.UM.9.14.r1-19200.02-LAHAINA.QSSI13.0
Change-Id: I467ece57b82127382f11e48d0dd80e362df0d1c9
2022-09-26 17:12:40 +02:00
Giovanni Ricca
3648477f6e sm8350-common: Update WCNSS_qcom_cfg.ini from haydn V13.0.3.0.SKKMIXM
Change-Id: Ib8f20a16b14559b62835e07efa86076c54c5d369
2022-09-26 17:12:40 +02:00