Commit graph

349 commits

Author SHA1 Message Date
Michael Bestas
0e153691e4
sm6225-common: Build missing audio libraries
Change-Id: I109751c9255ef8b8848983efb9556c4c2701e703
2023-04-20 20:13:06 +03:00
Michael Bestas
d24cb26618
sm6225-common: Remove unsupported A2DP offload codecs
These codecs don't work with the AOSP BT stack

Change-Id: If7dd128362480bfd841deab6800f4f36be4990d4
2023-04-20 19:15:58 +03:00
Edwin Moquete
11b9d8ec42
sm6225-common: Re-enable bluetooth AAC frame control
This prop was removed while switching to the AOSP BT stack,
which seems to cause issues with some AAC headphones.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/5381
Change-Id: I384df444be353475458ab156e4ec09542e23388a
2023-04-20 19:14:51 +03:00
Michael Bestas
dd73d8c021
sm6225-common: Set persist.vendor.qcom.bluetooth.scram.enabled=true
Fixes SBC/AAC A2DP offload

Change-Id: I8b025e3f61e0f8ad951bd98b88d5307f65191730
2023-04-20 19:13:12 +03:00
Bruno Martins
ced455eb30
sm6225-common: Fix A2DP when offload is disabled
Ensure that A2DP still works in case one disables offload in the
Developer options for whatever reason.

Change-Id: I89fd37962b2d063d6e30f84234568d552131fd97
2023-04-20 19:12:32 +03:00
Cheney Ni
4703ee1711
sm6225-common: Support A2DP offload for Bluetooth Audio HAL V2
Remove primary flags from hearing aid also.

Bug: 124277691
Bug: 124014853
Test: manual with BluetoothAudioHAL enabled / disabled
Change-Id: Ibc86687a6a6c2f0767a213ccd408e7bb5de98985
2023-04-20 19:12:32 +03:00
dianlujitao
3700001fbc
sm6225-common: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2023-04-20 19:12:32 +03:00
Michael Bestas
cfec62436f
sm6225-common: Remove unused a2dp_audio_policy_configuration.xml
Change-Id: I36a06d3829b0ec2fd89ae49899f3ed268f6d9993
2023-04-20 19:12:32 +03:00
llololo
99fe141990
sm6225-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-04-20 19:12:32 +03:00
Michael Bestas
78fd61d1c4
sm6225-common: Import vendor a2dp_audio_policy_configuration from CLO
Change-Id: I8563c2ea7c1ffe1e491d543b5c6dd32831ca1884
2023-04-20 19:12:32 +03:00
Michael Bestas
5cb5a1a942
sm6225-common: Move properties around
* Move whatever makes sense to vendor
* Eliminate system.prop

Change-Id: I2fd914463fec036b09ca673dfa2f72ff1992ca87
2023-04-20 19:12:32 +03:00
Michael Bestas
a3f3ca2931
sm6225-common: Update properties
* Remove properties that are same as defaults
* Add missing properties from stock
* Correct some properties from stock

Change-Id: I9ee3b8c1760e33b14a1b8a81a99c80ade35cdfd2
2023-04-20 19:12:28 +03:00
Michael Bestas
c8c5c3db01
sm6225-common: Sort properties
Change-Id: Ifd699f4be39f62e357621b4d3e892fc9589dd02a
2023-04-20 18:28:20 +03:00
Michael Bestas
a49c8ff4c0
sm6225-common: Remove unused system properties
* Move navigation bar/WiFi Display to overlays
* Remove unused blur prop
* Remove atfwd prop that is set in init scripts

Change-Id: Ia946b6391bcb6e12f6700f449d928ea86024c3a3
2023-04-20 04:38:04 +03:00
Michael Bestas
9344cd855c
sm6225-common: Remove deprecated IORAPD properties
IORap has been removed

Change-Id: Idcfefc42666195d6af7aeb66897b1d7b54ef9cda
2023-04-20 04:29:26 +03:00
Michael Bestas
718a266c49
sm6225-common: Remove unused media properties
Change-Id: I86a074de04b28143c78b7f8339427adb87c63e25
2023-04-20 04:26:11 +03:00
Edwin Moquete
a929343a30
sm6225-common: Remove unused hwui props
Change-Id: Ia6f7cdb9aa2a135c078c3d95c5914774be351975
2023-04-20 04:16:52 +03:00
Michael Bestas
91036a08a8
sm6225-common: Get rid of hardware_revisions.sh
This is useless for us and requires a bunch of SEPolicy changes.

Change-Id: I760cb419612f0a196a863f6bf1869e11341ab8d3
2023-04-19 20:35:11 +03:00
Michael Bestas
00cf17f1db
sm6225-common: sepolicy: Label init.mmi.boot.sh and resolve denials
Change-Id: I78dcfb47e28a20304e64880aeae1876d566d7924
2023-04-19 20:35:11 +03:00
Michael Bestas
458f933282
sm6225-common: init.mmi: Drop setprop ro.vendor.build.fingerprint
This doesn't work and it would be wrong if it worked.

Change-Id: I0d4123eb33c3a18eea36e01308df21764e2df3ac
2023-04-19 20:35:11 +03:00
Michael Bestas
28e3cb2afe
sm6225-common: init.oem.hw: Drop set_ro_vendor_incremental
Change-Id: Ic4d3d1775c437847f2aaecd87e504ba39bf93ac5
2023-04-19 20:35:11 +03:00
Michael Bestas
a44f1a0a7a
sm6225-common: init.mmi.touch: Drop SELinux permissive check
This part of the script causes unnecessary denials to show up when
we are in permissive mode.

Change-Id: I4b1fd469d0f37e8f31c998ee480b51078edd8a99
2023-04-19 20:35:10 +03:00
Michael Bestas
af60676a5a
sm6225-common: Add com.dsi.ant to vintf manifest
Fixes:
E HidlServiceManagement: Service com.dsi.ant@1.0::IAnt/default must be in VINTF manifest in order to register/get.
E LegacySupport: Could not register service com.dsi.ant@1.0::IAnt/default (-2147483648).
I android.hardware.bluetooth@1.0-service: Error while registering ANT service: -2147483648

Change-Id: Ifec99544b90dcf11f83e22c0436b89bb1a279e6a
2023-04-19 20:35:10 +03:00
Kevin Jeon
f87caaf5b6
sm6225-common: Update SurfaceFlinger pin on all targets
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
2023-04-19 20:35:10 +03:00
Nicolas Geoffray
089d6be078
sm6225-common: Remove odex/oat files from pinner list
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: I8de2a2935901cbd3eaa50ce2d8aa09f61080ba02
Merged-In: Ie633ea788dab3389a3407ec9a461b5837befca46
2023-04-19 20:35:10 +03:00
dianlujitao
0242b9ef44
sm6225-common: Add missing telephony java libs
Change-Id: Ib027cd630b16995e13f4d063fbdd98fbbb04f5c1
2023-04-19 20:35:10 +03:00
Dhina17
80c520fd2e
sm6225-common: Enable wifi display
Change-Id: Ie5110f71c61b1ac55410ae28bed911fca6b60d98
2023-04-19 20:35:10 +03:00
Dhina17
82591a2f5b
sm6225-common: Use source built libqsap_sdk lib
- It's already being compiled. (bengal.mk#426)

Change-Id: I453eabf49fcef6d90982a34e33a0e3cde46c18ba
2023-04-19 20:35:10 +03:00
Georg Veichtlbauer
0da5a48473
sm6225-common: Remove aptX(HD) encoder shared libs
Encoder shared libraries are no longer required as of Android 13 QPR2.

Change-Id: I893a9000070cb2582ada0af91547f5176e6fea84
2023-04-16 13:37:59 +03:00
Michael Bestas
062f7e52c4
sm6225-common: Drop libspeakerbundle lib
Change-Id: I6d238b2c36c68232078a3be481213f27166024a3
2023-04-16 13:37:58 +03:00
Rohit
a08f482b21
sm6225-common: Build amplifier HAL
Change-Id: I1dbec8a83b8763497b11f2a602c7929b65b26ab7
2023-04-16 13:37:58 +03:00
LuK1337
b5c77053ad
sm6225-common: amplifier: Add (and run) clang-format file
Change-Id: Iaa76db2b802de191e5b494fc0ec91988efc13ff5
2023-04-16 13:37:58 +03:00
Alexander Koskovich
d444f1758b
sm6225-common: amplifier: Clean up makefile
Change-Id: I416005aec3e4b6a686079d7e4796e5b548ee0e9f
2023-04-16 13:37:58 +03:00
Rohit
41ac68de1e
sm6225-common: amplifier: Rebrand to AW882xx
* AW882xx logic was the same as the TFA one anyways

Change-Id: I87cd6aecd88e2a906d6cc7a293510d0a463cb3f8
2023-04-16 13:37:58 +03:00
Pig
6e093e6109
sm6225-common: amplifier: Fix device list initializations
Update missing device list initializations.

Reported-by: Signed-off-by: SayanAcharya <rowdysayan99@gmail.com>
Co-authored-by: Signed-off-by: SayanAcharya <rowdysayan99@gmail.com>
Change-Id: Iaa44429e7a2514f882828089355fca1634b79200
2023-04-16 13:37:58 +03:00
PIPIPIG233666
635e13c2cb
sm6225-common: Add custom audio amplifier for TFA amp feedback
* Based on observing reverse engineering from davinci stock audio HAL.
 * Fixes speaker distortion on high volume.

 * Same logic with Smosia, rewritten by me.

Co-authored-by: Smosia <stasenko_nv@nrcki.ru>
Change-Id: I369555a9fcb06065177636b436d2e006c7a0b07d
2023-04-16 13:37:58 +03:00
Michael Bestas
1266db56ca
Revert "sm6225-common: Switch to prebuilt audio HAL"
This reverts commit 61223126f7.
2023-04-16 13:37:57 +03:00
Michael Bestas
e57a75c253
sm6225-common: sepolicy: Label extcon nodes
Change-Id: Idc944f15a83f4f1385efce16d7617b57e1dbf3b1
2023-04-16 13:37:57 +03:00
Michael Bestas
b0083807a3
sm6225-common: sepolicy: Remove duplicate sysfs_wakeup nodes
Change-Id: I54afb6b48bc97d2c8376b5bdc3e4c924a73a2e68
2023-04-16 13:37:57 +03:00
Mohammad Asaad Akram
6495c38ca5
sm6225-common: Enable asynchronous library events in WPA supplicant
Change-Id: I3b028afa54605bd57d9fb5700d792cb9e5e0e76f
2023-04-16 13:37:57 +03:00
Alexander Koskovich
498c8a27e3
sm6225-common: Sort kernel cmdline and additional flags as a list
* This allows better readability and eases tracking further changes.

Change-Id: I3a23f7ccb238b5f0e18dfa18080f1ae8ff51109f
2023-04-16 13:37:57 +03:00
Bruno Martins
720e8838d2
sm6225-common: Inherit from QTI FCM
Change-Id: I0bdd4d63b60a1e29cdd69e71f7268932a105c16b
2023-04-16 13:37:57 +03:00
Michael Bestas
63ad5d2156
sm6225-common: Remove ro.opengles.version
This is set in init scripts

Change-Id: I8cf804050277846659a11e470efa2c7d35f6e688
2023-04-16 13:37:49 +03:00
Michael Bestas
1982480758
sm6225-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-04-14 05:22:18 +03:00
Bruno Martins
2e3af9588b
sm6225-common: Remove QTI BT stack bits
Change-Id: Ice6c2b0735aa7cb4b2e638a794c778883e706c97
2023-04-14 05:21:41 +03:00
Sal Savage
7fd93c6458
sm6225-common: Replace BTM_DEF_LOCAL_NAME with a sysprop
Change-Id: I2c90efac01e61500eb1be23bb0ae6f96c2acdc53
2023-04-14 05:19:11 +03:00
Alexander Koskovich
da8595804a
sm6225-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2023-04-14 05:18:18 +03:00
Nolen Johnson
da5da01b44
sm6225-common: bluetooth: Disable clean turn on
* This isn't needed anymore.

Change-Id: Ib77e5212099d82bbc07aea6044eb35109faff5cb
2023-04-14 05:17:16 +03:00
Michael Bestas
18814cf0ce
sm6225-common: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES
Change-Id: Iaa9d66b0bbdc55f046ee1347cbf83c7eecebb35e
2023-04-14 05:16:04 +03:00
Bruno Martins
a3b781eca8
sm6225-common: overlay: Remove BT related configs
These have been migrated to sysprops in Android 13.

Change-Id: I34c1f6b882a61df6db95523997002512354d875e
2023-04-14 05:13:11 +03:00