Commit Graph

2356 Commits

Author SHA1 Message Date
chrisl7 62eff19733 vendor: media: Add fastcv headers for bengal
[1] - hardware/qcom/media/mm-video-v4l2/vidc/venc/src/omx_video_base.cpp:46:10: fatal error: 'fastcv.h' file not found
         ^~~~~~~~~~
1 error generated.

Change-Id: Ie013727493ea6b8fa2a1345f16e6f713b5fd1c8f
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-01-15 03:09:49 +00:00
chrisl7 ee0ffca982 common: sepolicy: Fix AtCmdFwd related selinux denials
Change-Id: I2c4c82fbc28bfa322eb7fdd737cc8eabb3ec74be
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-01-15 03:09:15 +00:00
Jake Weinstein f3b4a95fb6 system: Update to LA.QSSI.13.0.r1-08600-qssi.0
Change-Id: I54ebac9e0bf9ad9bd1a72f2d2fa61aeccf246999
2023-01-14 15:03:33 +09:00
Jake Weinstein d40ae3eec3 common: sepolicy: Allow hub_app to write to DPM/TCM socket
Fixes lots of spam. Qualcomm allows this on many appdomains,
including priv_app and untrusted_app.

01-01 20:47:44.865  6561  6561 W TcmReceiver: type=1400 audit(0.0:90): avc: denied { write } for name="tcm" dev="tmpfs" ino=20937 scontext=u:r:hub_app:s0:c512,c768 tcontext=u:object_r:vendor_dpmtcm_socket:s0 tclass=sock_file permissive=0 app=co.aospa.hub

Change-Id: I20fa1c3f6c90e5bd19173c396ebf963d9c07fffb
2023-01-12 06:08:13 +00:00
Richard Raya 1f19e27191 fixup! system: telephony: Add framework manifest to hidl AtCmdFwdService
Change-Id: I1ba00029ab2ac38905020b50f7d282e4cb3506e5
2023-01-10 04:14:40 -03:00
chrisl7 a3318fb4f6 system: telephony: Add framework manifest to hidl AtCmdFwdService
[1] - This was removed because system atcmdfwd-saidl was added in QSSI 13.0. But because of GRF, vendor hidl manifest must be set to R and S vendor blobs
[2] - I hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.radio.atcmdfwd@1.0::IAtCmdFwd/AtCmdFwdService in either framework or device VINTF manifest.
      E HidlServiceManagement: Service vendor.qti.hardware.radio.atcmdfwd@1.0::IAtCmdFwd/AtCmdFwdService must be in VINTF manifest in order to register/get.
[3] - 12-26 12:13:28.995 W/AutoPasteSuggestionHelper(3603): AutoPasteSuggestionHelper.createProactiveSuggestions():377 Failed to create item chips. Clip items are [ClipItem{ id = 1672071207744, timestamp = 1672071207744, clipItemContent = ClipItemContent{text=I hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.radio.atcmdfwd@1.0::IAtCmdFwd/AtCmdFwdService in either framework or device VINTF manifest.
[4] - 12-26 12:13:28.995 W/AutoPasteSuggestionHelper(3603): E HidlServiceManagement: Service vendor.qti.hardware.radio.atcmdfwd@1.0::IAtCmdFwd/AtCmdFwdService must be in VINTF manifest in order to register/get., htmlText=, itemType=0, entityType=0, uri=, groupId=-1, viewType=0}}].
[5] - 01-04 11:36:04.485 E/AtFwdService(2681):  at vendor.qti.hardware.radio.atcmdfwd.V1_0.IAtCmdFwd$Stub.registerAsService(IAtCmdFwd.java:524)
[6] - 01-04 11:36:04.484 E/HidlServiceManagement(2681): Service vendor.qti.hardware.radio.atcmdfwd@1.0::IAtCmdFwd/AtCmdFwdService must be in VINTF manifest in order to register/get.

Change-Id: Iaee3ef28f9c62c22de41f7d3310cf91709101527
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-01-09 23:08:22 +00:00
chrisl7 fdfcb22de2 vendor: perf-legacy: Update SocIds support from LA.UM.9.15.2.r1-06000-KAMORTA.QSSI13.0
Change-Id: I4e5e7ab2c1aebe1af9c443bd879c2663a26982ed
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-01-09 13:27:46 +00:00
Omkar Chandorkar 25f0132074
vendor: init: Restore support for setting Netflix property in runtime
- This is needed when 2 or targets are binary compatible,
  but have different Netflix proprty for device whitelisting.
- removed in f9f83796b3 (diff-bddfbea90d0ee4e67f976ff668dbb17413ae9703224b866961a7ad03b9305ee6L501)

Change-Id: Iddad3c75f95fc53a0175346e4b7800525359ca3a
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-01-09 14:04:32 +01:00
Jake Weinstein ccbf9fcde2 common: sepolicy: Add public policies to generic and legacy
Also add private to legacy

Change-Id: I2c51d55f91c709d8432e44fa0201bc8b46c15c5c
2023-01-05 09:40:19 +00:00
Jyotiraditya Panda 274ba903e1 common: sepolicy: legacy: Allow system server to read camera properties.
avc: denied { read } for name="u:object_r:vendor_persist_camera_prop:s0" dev="tmpfs" ino=12792 scontext=u:r:system_server:s0 tcontext=u:object_r:vendor_persist_camera_prop:s0 tclass=file permissive=0
W libc    : Access denied finding property "vendor.camera.aux.packagelist"
W CameraManagerGlobal: ignore the torch status update of camera: 2

Change-Id: I85ade7e96c70ae89a61d857155509c7d04d8e48d
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-01-05 04:44:23 +00:00
Arian bd4d86ef20 common: sepolicy: legacy: Allow apps to read auxiliary camera properties
Change-Id: I379e0d3329cd6507a6040bd716a3230a6babb423
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-01-05 04:44:19 +00:00
Jake Weinstein d2f0a861e3 common: sepolicy: Move policies to common directory
The folder structure added by I75165f3bf86f5f099298672977f6f5f5dc46c064
was confusing. In this commit, we are moving policies to
the common directory, which will only take effect on 855 and
newer. Then, as needed, we can backport to legacy.

Change-Id: Idc300d2a31b7851d37827e647a60a2b992ab256c
2022-12-31 09:04:21 +00:00
Jake Weinstein ac3d570e44 vendor: perf-legacy: Update perf configs to LA.VENDOR.1.0.r1-16000-WAIPIO.QSSI13.0
Skipping QAPE/QGPE for now.  Those require learning modules from
taro, which would be a separate commit.

Change-Id: I246ff2ba848b00ea779b9b93ca0ece9b3b3a5172
2022-12-31 06:26:15 +00:00
Adam Shih da0634377e common: Add additional dontaudit lines
Change-Id: Ic2e286d244360784a76673412662cabef02d313a
2022-12-31 06:22:09 +00:00
Adithya R 212e7c739f common: sepolicy: Allow build.prop to set vendor.all.modules.ready
Change-Id: Ia2edd8ff98fa5bbb507fabd32eb5cbd8e9f77cb7
2022-12-30 10:28:52 +00:00
Saikannan Chintakayala 10cf23d619 config: Add Bluetooth HAL 1.1 service permission
Add Bluetooth HAL 1.1 service permission.

CRs-fixed: 3158165
Change-Id: I634599efbb0c20d222beab6b217c9193edc07b45
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-27 16:29:44 -04:00
chrisl7 9a53912d32 vendor: perf-legacy: Set cpuset audio for perf-legacy too
[1] - I forgot that now we have two different folders

Change-Id: I545984810d986aae20d0d4dddf24bbb0f882f543
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-27 12:03:42 +00:00
chrisl7 6f6009dfdd vendor: audio: Build audioadsprpcd
Change-Id: I51accaf5bdec89bc4c31b6fe03b4b32d9242e2c9
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-27 12:03:32 +00:00
chrisl7 4ed3feafd3 vendor: media: Move bengal Codec2 prop definition to ODM
[1] - is set by default in media hal so we will create an override for that
[2] - https://git.codelinaro.org/clo/la/platform/hardware/qcom/media/-/blob/LA.UM.9.15.r1-06800-KAMORTA.QSSI13.0/product.mk#L31

Change-Id: Idea892c7b795461664afb0d5f04bb1d55494e8be
Signed-off-by: Wahid7852 <wahidzk0091@gmail.com>
2022-12-27 12:03:32 +00:00
Eruvaram Kumar Raja Reddy 35c1daff0d vendor: media: bengal: Enable Codec2 for HY11 builds
Add bengal tag to enable HY11 build.

Change-Id: I4f188ac06bf9bfd3f12baeeb5f2cbeab74ed675e
Signed-off-by: Wahid7852 <wahidzk0091@gmail.com>
2022-12-27 12:03:32 +00:00
Omkar Chandorkar e3abadc742 vendor: media: Set netflix revision irresepective of android version
- no reason why netflix support would just disappear with newer qssi

Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Change-Id: I2c652781c1be4fcef1aaf87299f6a04d5091a1d5
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-27 12:03:32 +00:00
chrisl7 7d85224df7 vendor: media: Add bengal init.qti.media.sh for bengal
[1] - We are sending taro definitions on the vendor.

Change-Id: I3017aaf35794506b160f42c5d2783c7160699d7f
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-27 12:03:32 +00:00
chrisl7 64ab7f373c vendor: media: Add C2 audio props to bengal
[1] - From audio-ar

Change-Id: I73a0f8c1dd44a90073b66a98aac63a97d7f4e3ca
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-27 12:03:32 +00:00
chrisl7 9847232c0c vendor: media: Add missing definitions to bengal
Change-Id: I4044eb6f967f99a8db6dcbdf0ae7afd2b6e18c7d
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-27 12:03:32 +00:00
Jake Weinstein 306d32cedc components: Enable media component to bengal
[1] - Everything being used here is also cane enabled on SM8450 audio hal.

Change-Id: Iee0cb5cd7dd872f72b5b9ebe8244f9910146c990
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-27 12:03:32 +00:00
Adithya R 3f6106f53e vendor: init: Directly set modules prop instead of script
For some reason, even when KERNEL_MODULES_OUT is set
it's using the no_modules script. Avoid this and set
the modules.ready prop directly if there are no modules.

This partially reverts commit 93382fa26a.

Change-Id: I237c6b31f335a71913d24a9c15f9c120ac24b1ba
2022-12-27 07:45:14 +00:00
Abhay Singh Gill 94a4528d9b common: sepolicy: legacy: Label QTI Supplicant AIDL HAL
Change-Id: I6f81ed23a6edf702effb01c393a845770fff1f11
2022-12-25 20:04:15 +00:00
Abhay Singh Gill f19af84df4 common: sepolicy: Label QTI Supplicant AIDL HAL
Change-Id: I390912933f6f27bd24401c8051d60081a817db37
2022-12-23 17:19:08 +00:00
Adithya R b34dcb6d28 Revert "telephony: force enable ims features"
Causes constant wakelocks with some networks that
don't support VoLTE, as the modem continuously tries
to register IMS.

CarrierConfig is enough to decide IMS functionality.

This reverts commit b634ff0b03.

Change-Id: I530e5d313de34c432b9819545abc0800fbbace87
2022-12-23 15:09:47 +00:00
Adithya R cfe126a240 telephony: Disable IMS logs in userdebug builds as well
Change-Id: Idf5c3e268842a0c528e4135f3abdb61391d30b56
2022-12-23 00:50:48 +00:00
Adithya R b41a81da56 vendor: media-5.4: Add C2D libs
Needed by libqcodec2_utils.so

Change-Id: I63e05da6cf648518384a22fa8f1c81ce8ff0e97b
2022-12-23 00:39:13 +00:00
Jake Weinstein b1ba67454b common: Update to LA.QSSI.13.0.r1-08200-qssi.0
Change-Id: Idbad644b6bf37e6cac3e9cbaf46e499a8f2398e0
2022-12-22 15:55:40 +09:00
Jake Weinstein e4a758d933 common: Guard AndroidBoardCommon.mk
Without this change, AndroidBoardCommon.mk
is inherited on all devices even if they
are non-QCOM.

This fixes the following errors:
[  0% 768/138981] Creating /out/jake/target/product/oriole/vendor/bt_firmware
FAILED: /out/jake/target/product/oriole/vendor/bt_firmware
/bin/bash -c "(mkdir -p /out/jake/target/product/oriole/vendor/bt_firmware ) && (ln -sf /vendor/bt_firmware /out/jake/target/product/oriole/root/bt_firmware )"
ln: cannot create symbolic link from '/vendor/bt_firmware' to '/out/jake/target/product/oriole/root/bt_firmware': No such file or directory
[  0% 769/138981] Creating /out/jake/target/product/oriole/vendor/dsp
FAILED: /out/jake/target/product/oriole/vendor/dsp
/bin/bash -c "(mkdir -p /out/jake/target/product/oriole/vendor/dsp ) && (ln -sf /vendor/dsp /out/jake/target/product/oriole/root/dsp )"
ln: cannot create symbolic link from '/vendor/dsp' to '/out/jake/target/product/oriole/root/dsp': No such file or directory

Change-Id: Id8938d36ae70c5bd3a4462bc875e390e8228cd62
2022-12-21 09:18:08 +00:00
Jake Weinstein 397e8845a5 Revert "dlkm: Create kernel_headers module qti_kernel_headers"
This reverts commit c7dcf4fc86.

Reason for revert: Breaks existing targets with
error: kernel/msm-4.14/Android.bp:30:1: module "qti_kernel_headers" already defined
device/qcom/common/dlkm/Android.bp:1:1 <-- previous definition here

Change-Id: I857071fe582958c2ff1f68544e2acca2fc257084
2022-12-21 04:26:25 +00:00
Alexander Koskovich 3fd7853104 common: Add support for non NQ NFC platforms
* NXP NFC is becoming increasingly popular as an alternative
   to NQ NFC, especially on the PN5xx platform. Add support
   for disabling NQ NFC in favor of NXP NFC. Rename QTI
   component to reflect this change.

Change-Id: I63dd29357943d6e5a31e479e98e6ff79df9b5124
2022-12-17 18:09:38 -05:00
Anay Wadhera 39ffeb7558 Specify TARGET_PREBUILT_KERNEL for kernel-platform targets
Change-Id: Ie5932222d4cf88e774cfccfa815e4e17a2ad827c
2022-12-17 18:09:38 -05:00
Alexander Koskovich ff7c40e02f dlkm: Update from LA.VENDOR.1.0.r1-16800-WAIPIO.QSSI13.0
Change-Id: I25a882953d4eb9fb87c1843e9bebd067ada01fc8
2022-12-17 18:09:37 -05:00
Robin Peng c7dcf4fc86 dlkm: Create kernel_headers module qti_kernel_headers
Some QCT Andorid.bp modules rely on it

Bug: 155242556
Change-Id: I96505f89fd00c365f766676d2f6646283c969856
2022-12-17 18:09:37 -05:00
Alexander Koskovich cee87bc746 common: Create DLKM component for 5.10+
Change-Id: I48787246fd3a01e6e7ea7acc10e08c9bdac6287e
2022-12-17 18:09:37 -05:00
Alexander Koskovich eea144a2c3 vendor: audio: Build vendor.qti.hardware.pal@1.0.vendor
Change-Id: I7b5ff9268b586330acf0f5662fd426b301638e4b
2022-12-17 22:37:06 +00:00
Vishalcj17 9a6cb6251b media: Fixup makefile inclusion for media-5.4
Change-Id: I9c9759d6f8af0df0bf23039358aadfac83b24a38
2022-12-17 03:34:12 +00:00
Sarthak Garg 790d9e712c common: sepolicy: sepolicy rules for accessing read_ahead_kb
Adding sepolicy rule to fix avc denials while accessing
read_ahead_kb node for vold.

Change-Id: I078b00b07b31a813a2151595e24332cfa2361901
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>

[1] - 10-29 19:13:47.873 W/binder:543_3(543): type=1400 audit(0.0:113): avc: denied { write } for name="read_ahead_kb" dev="sysfs" ino=74683 scontext=u:r:vold:s0 tcontext=u:object_r:vendor_sysfs_mmc_host:s0 tclass=file permissive=0

Change-Id: I8661014f083bddb48808335af5e8b2d2a751851c
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-16 10:06:23 +00:00
Yuanfang Zhang 2a0bb783eb vendor: init: Add support for byte-cntr1
The device under /dev/byte-cntr1 should be with permission
root diag.

Change-Id: Id5e45789995b706360742253fc93dc2304f70442
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-16 10:06:09 +00:00
Qi Jin 4c0b6dad30 sepolicy: Add permission for QtiMapperExtension version 1.3
Change-Id: I7591ad02c90aa4ff6aeb5aeaf2ea2b1c156cc3d0
2022-12-16 07:35:19 +00:00
Vinoth Jayaram d4a7769ad6 common: sepolicy: Allow access for hal_graphics_composer_default.
Allow bootanim prop access for hal_graphics_composer_default.

Change-Id: Ic6d5c2b12a2cc03dfc9b2348b76a7ce9e7dfc2b9
2022-12-08 15:13:21 +00:00
chrisl7 e3aa82fd17 vendor: perf: Set common cpuset to audio-app
Change-Id: I5bd73a64b9c0be978fd7a55f6f79a8cdb7f72768
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-08 15:12:12 +00:00
chrisl7 b41f29e56e vendor: telephony: Add missing holi specific properties
[1] - https://git.codelinaro.org/clo/la/platform/vendor/qcom/holi/-/tree/LA.UM.9.16.r1-12500.03-MANNAR.QSSI12.0

Change-Id: I9661a3937cc44341f8fdb997d272d652646484f5
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2022-12-08 15:11:22 +00:00
Jyotiraditya Panda 11d08a95e7 common: sepolicy: Allow system server to read camera properties.
avc: denied { read } for name="u:object_r:vendor_persist_camera_prop:s0" dev="tmpfs" ino=12792 scontext=u:r:system_server:s0 tcontext=u:object_r:vendor_persist_camera_prop:s0 tclass=file permissive=0
W libc    : Access denied finding property "vendor.camera.aux.packagelist"
W CameraManagerGlobal: ignore the torch status update of camera: 2

Change-Id: I75165f3bf86f5f099298672977f6f5f5dc46c064
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-12-08 15:09:48 +00:00
Arian 4551c5ccb5 common: sepolicy: Allow apps to read auxiliary camera properties
Change-Id: Ib9a4e31ff331678c230b105a39c5d3eafa9ef2f2
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-12-08 15:09:07 +00:00
Alexander Koskovich 4d2a6f9b92 common: Update generate_extra_images to LA.VENDOR.1.0.r1-16800-WAIPIO.QSSI13.0
Change-Id: I199d5e3298bc9ad1f4b9784e1622a1b7c650b963
2022-12-05 04:06:15 +00:00