213 Commits

Author SHA1 Message Date
Gary Jian
bf4d1abdcc
sm6250-common: Upgrade IRadio version to 1.5
Bug: 147070523
Bug: 154066681
Test: manually
Change-Id: I765a0822dabf206391d19037f971a46281758b3f
2021-11-01 08:22:28 +00:00
Alexander Winkowski
7f99605ccc
sm6250-common: Update thermal HAL
* From hardware/google/pixel at d774cbb949e98627e4172bf8fc11e8d954599aa7.

Change-Id: I3a3a0c29575d0595e71a30f1e64e33ca34d2eb27
2021-11-01 08:20:48 +00:00
Sebastiano Barezzi
27f575c973
sm6250-common: Move to common Xiaomi light AIDL
Change-Id: I00494cd392d19abd97cd65aeb4ec4bd9c9b11352
2021-11-01 08:18:28 +00:00
Sebastiano Barezzi
b8b22c6cfb
sm6250-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
2021-10-18 18:48:59 +02:00
Sebastiano Barezzi
ee712a1a86
sm6250-common: Uprev clearkey DRM HIDL to 1.4
Change-Id: Id0895fee70495913f57bc8408ea433660467a7c7
2021-10-18 18:48:59 +02:00
Sebastiano Barezzi
d594b710b7
sm6250-common: Build vendor interfaces libraries
Change-Id: I0c8760ff6923c2d2a43ec058554d724ca6600f3c
2021-10-18 18:48:59 +02:00
Sebastiano Barezzi
c82f8ada0b
sm6250-common: Build netutils-wrapper-1.0
Change-Id: I30ac498fc3b5ca431b7cdf1989562d0d1ad0a464
2021-10-18 18:48:59 +02:00
Sebastiano Barezzi
894afbd8a9
sm6250-common: rootdir: Move to Android.bp
Change-Id: I28c3cb806d47e0e2c4f1fc0cf909d90638f2d2af
2021-10-18 18:48:52 +02:00
Kyle Lin
b037c145f5
sm6250-common: rootdir: Enable s2idle
Test: build and check the suspend_resume trace
Bug: 142553453
Change-Id: I176c0e1adbe3c6a90b9da90dd10ad664024bf164
2021-10-14 19:22:19 +02:00
Alexander Winkowski
aff1d9eb0b
sm6250-common: audio: Use audio_policy_volumes.xml from AOSP
Change-Id: I50fdea6316dedce109cd78ca63102073d4011681
2021-10-14 19:22:18 +02:00
Dobsgw
95081e601a
sm6250-common: audio: fixup audio io policy voip_rx flags
Flags for VOIP were mixed up as we move to CAF policy configuration. Amend the flags to get things working again.

Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>
Change-Id: I2a2b202e2a58db9a26f571c091b1fa0b8f2949f6
2021-10-07 21:30:01 +02:00
Alexander Winkowski
6291e7aa67
Revert "sm6250-common: audio: do not use direct flag for voip rx output"
* Causes crackling sound for notifications.

This reverts commit 198163984bb6e2f2301d85e35e627f43db95c832.

Change-Id: Ic0440713f1bd938cd97f127248227ec677c7dbe6
2021-10-07 21:29:58 +02:00
Sebastiano Barezzi
f7b5a79d5c
Revert "sm6250-common: Update camera provider service to 2.5."
* Reason for revert: camera HAL doesn't implement notifyDeviceStateChange.

This reverts commit 2ac59b869bed37bfaa480411ff98eed8991285f3.

Change-Id: I7919e0c0160a4108c9d066e914211cb4daa9c24b
2021-09-23 19:02:58 +02:00
Sebastiano Barezzi
75fface281
sm6250-common: Drop 32bit sensor stack
* Unused

Change-Id: I3d53d38190f8de097d3aee0384935b0bc0e6d65c
2021-09-23 18:42:58 +02:00
Alexander Winkowski
759befef55
sm6250-common: Update sensors service to 2.1
Change-Id: Ie417407c36929cf34ecbdd28feb1cab996fe1f30
2021-09-23 18:42:58 +02:00
Alexander Koskovich
2ac59b869b
sm6250-common: Update camera provider service to 2.5.
Change-Id: Id13db7bbd2d0ee1bd544e1670990c3caf46768ab
2021-09-23 18:42:58 +02:00
Sebastiano Barezzi
4b391001ab
sm6250-common: Remove 32bit camera libraries
* Unused

Change-Id: I62bb4c1042e15366c61399520984d30dd9421bb8
2021-09-23 18:42:58 +02:00
Alexander Winkowski
3f6eaf2696
sm6250-common: Drop prebuilt camera provider
Change-Id: Ibc9fcb5acfcbfa3432f0f0f7a9589a20217fa1ed
2021-09-23 18:42:58 +02:00
Alexander Koskovich
34dcc11300
sm6250-common: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html

Change-Id: I19460ef266a646b046f1e7d2f0b4eab7c48ae536
2021-09-23 18:42:57 +02:00
Alexander Koskovich
54830186e5
sm6250-common: Don't mount TraceFS twice.
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2021-09-23 18:42:57 +02:00
Alexander Winkowski
6a60791b24
sm6250-common: audio: Drop Xiaomi ACDB ID changes
Change-Id: I3cbd6f345d8800585885a41cd760cae71607f75a
2021-09-23 18:42:57 +02:00
Alexander Winkowski
4cdaecf58a
sm6250-common: audio: Correct maximum microphone count
* miatoll devices have 2 microphones only

Change-Id: Ib8a71f4b3a3ada7850d8089df5c87b0869ebb1e1
2021-09-23 18:42:57 +02:00
Eric Laurent
198163984b
sm6250-common: audio: do not use direct flag for voip rx output
Dedicated output profile for VoIP should not be a direct output as
it prevents from playing two audio tracks simultaneously which breaks
call signalling played on top of Rx call audio.

Bug: 64392515
Test: Fi call, Duo Calls
Change-Id: I4e62ba3be3da079ff32be9b92d5d5fa28e0f5e2b
[dereference23: Apply the change to audio_io_policy.conf as well]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2021-09-23 18:42:55 +02:00
Alexander Winkowski
a99d14b726
sm6250-common: Move LineageOS HALs to a separate compatibility matrix
Change-Id: If2f6d49cfc8609e15bc1ce5d725f54cdb91c5a4e
2021-09-09 18:46:36 +02:00
Mimi Wu
b744748f1d
sm6250-common: Modify sepolicy for toolbox to rm -rf /data/per_boot
type=1400 audit(1581489923.612:571): avc: denied { getattr } for comm="rm" path="/data/per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.612:572): avc: denied { read } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.612:573): avc: denied { open } for comm="rm" path="/data/per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.616:574): avc: denied { getattr } for comm="rm" path="/data/per_boot/ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=1
type=1400 audit(1581489923.616:575): avc: denied { write } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.616:576): avc: denied { remove_name } for comm="rm" name="ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.619:577): avc: denied { unlink } for comm="rm" name="ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=1
type=1400 audit(1581489923.656:578): avc: denied { rmdir } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I22706c63fb13ea2aae0cd9fe8b92edc578fd459e
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: Albert I <kras@raphielgang.org>
2021-09-09 18:46:36 +02:00
Mimi Wu
316cdce3f5
sm6250-common: Add sepolicy for kernel to access /data/per_boot/zram_swap
type=1400 audit(0.0:4): avc: denied { read } for path="/data/per_boot/zram_swap" dev="dm-5" ino=29313 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I338040c9166ddd5eb2f06d7cba1aee85da988c53
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: Albert I <kras@raphielgang.org>
2021-09-09 18:46:36 +02:00
Albert I
233e73dbc0
sm6250-common: sepolicy: Allow neural networks HAL to read ADSP properties
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3fa6f51b746703bab2faf3f5fd6334b221a8636c
2021-09-09 18:46:36 +02:00
Albert I
e42d1c571f
sm6250-common: sepolicy: Allow apps and camera HAL access to secure ADSP domain
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ibb1071299632ab53726638dbcc134d4bca59fc52
2021-09-09 18:46:35 +02:00
dianlujitao
92b6e36b71
sm6250-common: Make fastrpc_shell_3 publicly available
* Used by GCAM for DSP-accelerated HDR processing
 * Arguably we should label /vendor/dsp/cdsp/fastrpc_shell_3 to
   same_process_hal_file like Pixels, but the partition is prebuilt thus
   we're unable to relabel it.
 * Copy the file to writable tmpfs, setup attributes and bind mount back
   to workaround the limitation.

[ghostrider-reborn]:
Allow adsp/cdsprpcd and neuralnetworks HAL to access fastrpc_shell_3

[kras edit:
 1. rename some contexts as per qva/kona
 2. extend to allow camera HAL and VPP service to access it as well]

[dereference23: Remove VPP policy because atoll doesn't use it]

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ide90e5c7307d413db5ece736e859559f06679545
2021-09-09 18:46:35 +02:00
Alexander Winkowski
c653ce51be
sm6250-common: Pull SELinux policy from Xiaomi SM8250 tree
Change-Id: I83dce3c678f796034fd39947414c8067d338edf2
2021-09-09 18:46:35 +02:00
Alexander Winkowski
eef8a24f25
sm6250-common: Switch to fully prebuilt libdisplayconfig
* Fixes WiFi Display

Change-Id: Idd77de921651b33214c22676e4d9d5c250b2ef9c
2021-09-09 18:46:35 +02:00
Omkar Chandorkar
bd3229b85d
sm6250-common: Use prebuilt vendor libdisplayconfig.qti.so
There are several VMTs inside that library that are prone to change
on CAF merges.

So far, last LA.QSSI.11.0.r1-12300-qssi.0 merge already modified
ConfigInterface VMT in a way that's not backwards compatible thus
it'd be better if we provided a prebuilt library instead.

Change-Id: I25fe58e6721b8d0e67882f576cfaf288c9992fc9
2021-09-09 18:46:34 +02:00
Sebastiano Barezzi
ad4bcb28be
sm6250-common: Build WFD libs
Change-Id: I859cd3ff8e1729323f2c72df4feca55559262878
2021-09-09 18:46:34 +02:00
Sebastiano Barezzi
45be1c4d97
sm6250-common: Import WifiOverlay from CAF
* From LA.UM.9.1.r1-09100-SMxxx0.0

Change-Id: Icfd70a632425aec908b2189710ecf31ee21449cc
2021-09-09 18:46:34 +02:00
Arun Kumar Khandavalli
1b2ef8baa6
sm6250-common: wifi: Enable LPRX by default
LPRX was disabled previously on request because of some power issues.
Now that all the power issues is resolved enable the LPRX by default.

Change-Id: Ie3655bacfd06d47598b04e8c2c89233a000307ce
CRs-Fixed: 2459952
2021-09-09 18:46:34 +02:00
sheenam monga
e224a1ba6e
sm6250-common: wifi: Remove drop_bcn_on_chan_mismatch ini
Currently, with drop_bcn_on_chan_mismatch disable
default value of drop_bcn_on_chan_mismatch is overwritten
and abnormal rssi is observed for some beacons.
To avoid the issue remove drop_bcn_on_chan_mismatch
from ini, So that default value of drop_bcn_on_chan_mismatch
can be used.

Change-Id: I6e7ec9327a2e13d1fed73bec2fedf8b584989930
CRs-Fixed: 2588983
2021-09-09 18:46:33 +02:00
Sunil Ravi
fbfdd34544
sm6250-common: wifi: Disable TDLS offchannel.
TDLS off-channel feature is needed only for
certification. Disable the feature in production
builds.

Bug: 161320896
Test: Basic wifi sanity test.
Change-Id: I6d7a3e6bf58402c3c398bb8570cdc5ab1f7ca05d
2021-09-09 18:46:33 +02:00
Yaroslav Furman
6b34f7820a
sm6250-common: wifi: Disable logging
Change-Id: Ib9d2e325dc64d068a08412f12c792ec0e5a0c1be
2021-09-09 18:46:33 +02:00
LuK1337
43facd7f9c
sm6250-common: wifi: Enable DFS channel scanning in P2P search
- Fixes P2P when connected to 5GHz access point.

Change-Id: Ie94aa06e9b6be9345688a1e10caa9a62b180eb30
2021-09-09 18:46:33 +02:00
Alex Naidis
2ee0ca84b8
sm6250-common: wifi: Enable QPower and Deep Sleep at the same time
* This enables Deep Sleep mode, additionally to QPower
* With this configuration, QPower manages the new Deep sleep mode
 -> Leads to amazing power savings

Change-Id: I32dbaee6406fbe01594176ba14c9f3f0c6d16714
2021-09-09 18:46:32 +02:00
Ramii Ahmed
1db4accfb5
sm6250-common: wifi: Enable Channel Bonding for 2.4GHz
Change-Id: Ic7922dbf6f1d64f90290b91d71c15c8acf30b0b6
2021-09-09 18:46:32 +02:00
Ramii Ahmed
43646c5316
sm6250-common: wifi: Enable SAE support
Change-Id: I33c516f413befd82ef7c78da38b441297db987d0
2021-09-09 18:46:32 +02:00
Jimmy Chen
18066f4ebc
sm6250-common: wifi: move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: Icea6361942873b5177c5fa59f9628c3b383b4509
2021-09-09 18:46:32 +02:00
Alexander Winkowski
daf99d589e
sm6250-common: Import WiFi configs
* From curtana-user 11 RKQ1.200826.002 V12.0.5.0.RJWINXM release-keys

Change-Id: I8d6a32645274c3c17db08d2e20f8f4083233e95b
2021-09-09 18:46:31 +02:00
Sebastiano Barezzi
bad4e02fbf
sm6250-common: Build Wi-Fi stack
Change-Id: I2e99bb95cbcdb2fdb652e20bb1e9e55b53cab2eb
2021-09-09 18:46:31 +02:00
Alexander Winkowski
bd6d8f6542
sm6250-common: Import excluded-input-devices.xml
* From curtana-user 11 RKQ1.200826.002 V12.0.5.0.RJWINXM release-keys

Change-Id: Iacecd13232e064e95e6bb3470763d12d10f4a0a3
2021-09-09 18:46:31 +02:00
Bharat Pawar
6095f69aaf
sm6250-common: Enable LED based vibrator
Enable LED based vibrator for talos, moorea and
atoll targets.

Change-Id: I079eefaefff77fe19304acc8749773febf91a7fc
2021-09-09 18:46:31 +02:00
Sebastiano Barezzi
cf73e010cc
sm6250-common: Be sure to build vndservicemanager
* We need it for our blobs

Change-Id: Ib757b97ee2c7d43fe606225366d729854ab987fc
2021-09-09 18:46:30 +02:00
Sebastiano Barezzi
252b9680bf
sm6250-common: Use QTI USB init configs from USB HAL repo
Change-Id: Ic9dc848773e996c60de0e9f273a7e9eaec178b3b
2021-09-09 18:46:30 +02:00
Volodymyr Zhdanov
068695c76f
sm6250-common: Build USB HAL from source
Change-Id: Ia6b43a0af36680164d7807e6deb67da408784a6b
2021-09-09 18:46:30 +02:00