Commit Graph

2540 Commits

Author SHA1 Message Date
Jake Weinstein a0f7b8bd8b vendor: audio: Disable loop on compress read for targets < 5.10
This change isn't ready for older audio HALs and
breaks compress audio record, such as in WhatsApp.

Change-Id: I84c8427210f265964d8fdb1818d5b4dcd2abe56a
2023-11-01 00:38:46 +09:00
Jake Weinstein 4241b96328 vendor: Introduce adreno-t component variant
This will be used on kalama and crow.

Change-Id: I3d798e6811b7fc4cf57f273d13b26d593e617876
2023-10-31 23:42:52 +09:00
Jake Weinstein ba451f0035 vendor: Rename adreno components
Make way for kalama. The new naming matches
Qualcomm's branching strategy, which notes
the launch version of the SoC.

adreno-5xx-legacy is unchanged because
  it predates GRF.

adreno-r should be used for Android 11 GRF
  platforms, such as msmnile, kona, and lahaina.

adreno-s should be used for platforms launching
  with Android 12, such as taro and parrot.

adreno-t (coming soon) should be used for platforms
  launching with Android 13, such as kalama.

Note: adreno-t does not seem to support Adreno 6xx,
  so platforms that upgraded kernel versions and
  launching Android versions, such as kona and bengal
  on 5.15 may use adreno-s, which is consistent with
  Qualcomm's releases as well.

Change-Id: Id454e3b742622e69747ab3382b5b686dac4484ff
2023-10-31 23:42:52 +09:00
Arian 842a8e17e2 sepolicy: qva: Allow vendor_cnd to read wifi_hal_prop
The `wifi.interface` property was labelled as `exported_default_prop` by
system/sepolicy in android 11. Since android 12 it is labelled as
`wifi_hal_prop` which causes the following denial.

W libc    : Access denied finding property "wifi.interface"
W cnd     : type=1400 audit(0.0:22): avc: denied { read } for name="u:object_r:wifi_hal_prop:s0" dev="tmpfs" ino=26257 scontext=u:r:vendor_cnd:s0 tcontext=u:object_r:wifi_hal_prop:s0 tclass=file permissive=0

Change-Id: I6cf8ad4133ca3013d844d4ef3b2701de22f408b0
2023-10-27 00:49:35 +00:00
Bruno Martins 0ae2084d9a sepolicy: common: Label UCSI power supply
QCOM started ignoring UCSI power supply in healthd-ext [1],
but there's no rule to allow accessing the node. Label it
as a regular USB power supply node just for the sake of
simplicity.

[1] 7e1bf288a5)

Change-Id: I206ea93d45ee024db9e8b5c05e57081aee3e0dbd
2023-10-27 00:48:51 +00:00
Oscar Shu 4639dc4a3d system: overlay: Update overlay to support MAC randomization on open SSIDs
Bug: 270441948
Test: compile
Change-Id: I20cfba88dcb948bb09206b17f5a8ee5730b0d82b
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-26 21:43:44 +00:00
Shuibing Dai 8376e23407 system: overlay: Enable updating country code from scan results for generic case
Bug: 271928725
Bug: 267944733
Test: manually test
Change-Id: I6f1f0ce3afdf203812965ede07422f454566f33d
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-26 21:43:27 +00:00
Yuan Si 5c192275f6 sepolicy: kona: Remove duplicated genfs context
ca49676f90 (diff-09112ee2412ac4f3dccef5052cfbb1b943415434585d17d7d523bf06452c29bcR107)

Change-Id: I340de62e90df4440c48d84a7a2dae3305dd39ae8
Signed-off-by: Yuan Si <do4suki@gmail.com>
2023-10-26 07:58:08 +00:00
Fabian Leutenegger c41a7ef4a7 vendor: wlan: Build supplicant AIDL interfaces to vendor
Change-Id: I0069e31d39422af7cf23eb6a587d4d8254efbe58
Signed-off-by: CHRISL7 <70589286+CHRISL7@users.noreply.github.com>
2023-10-25 13:51:52 +00:00
Fabian Leutenegger 441e2afded vendor: telephony: Build a bunch of AIDL radio interfaces to vendor
Change-Id: I803ed3b077f4554b3ffbae26a274ea91fc3aa66a
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-25 13:39:05 +00:00
Fabian Leutenegger cafbf28ebe
fixup!: vendor: bt: Build android.hardware.bluetooth.audio-V3-ndk vendor interface to AIDL bt
Change-Id: Ic7903f16e3602a1194caa3aa26a29352e7bf4aa9
2023-10-22 19:01:36 +02:00
Jake Weinstein 0f66a66357 system: overlay: Update to LA.QSSI.14.0.r1
Based on Nothing Pong
qssi-user-14-UKQ1.230804.001-2309192131-release-keys

Change-Id: I482b10c01f89319b3891cce453ddea3be92cd327
2023-10-22 14:34:50 +00:00
CHRISL7 da81bf23d7 vendor: bt: Build android.hardware.bluetooth.audio-V3-ndk vendor interface to AIDL bt
Change-Id: Ie0776645c4843f9c5df0b1cfc53a92e0464cdd20
Signed-off-by: CHRISL7 <70589286+CHRISL7@users.noreply.github.com>
2023-10-22 13:45:38 +00:00
Alex Sarraf 27a3913daf display: Set debug.sf.auto_latch_unsignaled to 0 for 5.10 and lower
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.

Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0
2023-10-22 16:46:32 +09:00
Jake Weinstein b485cf0844 vendor: display: Latch unsignaled buffers for 4.14 and lower
While this does not really matter for QSSI builds because
QSSI sets this in device/qcom/qssi/system.prop, it does
matter for our builds. This is already set for 4.19+

Change-Id: I50cca3130e2e87fba06c40c2921d1002497f7f6a
2023-10-22 16:46:32 +09:00
Jprimero15 ffea0f28a2 common: sepolicy: legacy: Remove hal_tui_comm
Change-Id: Ic1355046e2e41afe210970529f0c0da2ebaa03e2
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-10-22 04:11:54 +00:00
Gagan Malvi 69bdae323f sepolicy: msmsteppe: Remove duplicated genfs context
Change-Id: Ie5e33f669a64d36b8ff05a84f71400895d6350ee
Signed-off-by: Gagan Malvi <malvi@aospa.co>
2023-10-21 09:20:27 +02:00
chrisl7 20495911e7 vendor: wlan/wlan-legacy: Remove prebuilt_hidl_interfaces after switch to AIDL wifi hal
Change-Id: I98907b95a9f8b54e7f8f8d6cca78fe2664f8442c
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-20 16:20:36 +00:00
chrisl7 94dbffb126 sepolicy: Allow surfaceflinger to access firmware
03-22 23:06:16.439  1020  1020 W surfaceflinger: type=1400 audit(0.0:26): avc:  denied  { read } for  name="a610_zap.mdt" dev="dm-4" ino=994 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_firmware_file:s0 tclass=file permissive=0
03-22 23:06:16.439  1020  1020 W surfaceflinger: type=1400 audit(0.0:27): avc:  denied  { read } for  name="a610_zap.mdt" dev="dm-4" ino=994 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_firmware_file:s0 tclass=file permissive=0
03-22 23:06:16.411  1020  1020 W surfaceflinger: type=1400 audit(0.0:24): avc:  denied  { read } for  name="a630_sqe.fw" dev="dm-4" ino=1000 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_firmware_file:s0 tclass=file permissive=0
03-22 23:06:16.411  1020  1020 W surfaceflinger: type=1400 audit(0.0:25): avc:  denied  { read } for  name="a630_sqe.fw" dev="dm-4" ino=1000 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_firmware_file:s0 tclass=file permissive=0

03-22 23:06:17.093     0     0 W subsys-pil-tz soc: qcom,kgsl-hyp: loading /vendor/firmware/a610_zap.mdt failed with error -13
03-22 23:06:17.093     0     0 W subsys-pil-tz soc: qcom,kgsl-hyp: loading /system/vendor/firmware/a610_zap.mdt failed with error -13
03-22 23:06:17.093     0     0 W subsys-pil-tz soc: qcom,kgsl-hyp: Falling back to syfs fallback for: a610_zap.mdt
03-22 23:06:17.068     0     0 W kgsl-3d0: loading /vendor/firmware/a630_sqe.fw failed with error -13
03-22 23:06:17.068     0     0 W kgsl-3d0: loading /system/vendor/firmware/a630_sqe.fw failed with error -13
03-22 23:06:17.068     0     0 W kgsl-3d0: Falling back to syfs fallback for: a630_sqe.fw

Change-Id: If60e58d57ae2bb0632bdbf8f5dd2575aebf9f70e
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-20 16:20:31 +00:00
chrisl7 d510e9ac64 sepolicy: generic: Move AIDL wifi label to sepolicy_vndr
Change-Id: I924921293d12a4375f890e5e507f26cf384fe643
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-20 16:20:20 +00:00
chrisl7 509cca85e3 sepolicy: Fix location denials
03-22 23:06:17.419  1387  1387 W lowi-server: type=1400 audit(0.0:56): avc:  denied  { write } for  path="socket:[22445]" dev="sockfs" ino=22445 scontext=u:r:vendor_location_lowi_server:s0 tcontext=u:r:vendor_location:s0 tclass=unix_stream_socket permissive=0
03-22 23:06:17.423  1390  1390 W xtra-daemon: type=1400 audit(0.0:57): avc:  denied  { write } for  path="socket:[22445]" dev="sockfs" ino=22445 scontext=u:r:vendor_location_xtra_daemon:s0 tcontext=u:r:vendor_location:s0 tclass=unix_stream_socket permissive=0
03-22 23:06:17.423  1388  1388 W slim_daemon: type=1400 audit(0.0:58): avc:  denied  { write } for  path="socket:[22445]" dev="sockfs" ino=22445 scontext=u:r:vendor_location_slim_daemon:s0 tcontext=u:r:vendor_location:s0 tclass=unix_stream_socket permissive=0
03-22 23:06:17.751  1388  1388 W NDK     : type=1400 audit(0.0:59): avc:  denied  { call } for  scontext=u:r:vendor_location_slim_daemon:s0 tcontext=u:r:servicemanager:s0 tclass=binder permissive=0
03-22 23:06:17.751  1388  1388 W NDK     : type=1400 audit(0.0:60): avc:  denied  { call } for  scontext=u:r:vendor_location_slim_daemon:s0 tcontext=u:r:servicemanager:s0 tclass=binder permissive=0

Change-Id: I18a1dfcbd69664b706df97579df58886dd71133e
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-20 16:20:14 +00:00
chrisl7 db1aa4b385 sepolicy: qva: Label location_slim_daemo SELinux find denial
[1] - 03-20 21:10:44.705     0     0 E SELinux : avc:  denied  { find } for pid=1208 uid=1021 name=android.frameworks.sensorservice.ISensorManager/default scontext=u:r:vendor_location_slim_daemon:s0 tcontext=u:object_r:fwk_sensor_service:s0 tclass=service_manager permissive=1

Change-Id: Iec5977b37a03408de95038d21d347d462da05fac
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-20 16:20:00 +00:00
Vamsi Krishna Gattupalli d083490b9c vendor: init: init.qcom.post_boot: Remove logging to kmsg device
Change-Id: Ie9c8bf1852c3fcf16eea2c25438e70477128f871
Signed-off-by: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
Signed-off-by: CHRISL7 <70589286+CHRISL7@users.noreply.github.com>
2023-10-20 16:19:40 +00:00
Ansa Ahmed 366f36caf9 vendor: init: To disable cdsp daemon if cdsp defective
To disable cdsp daemon by checking value of node
fastrpc_cdsp_status which is set after checking if
NSP is defective.

Signed-off-by: Ansa Ahmed <quic_ansa@quicinc.com>
Change-Id: Iddab5d7f80429b0f1190a630e8886b0441da57a7
Signed-off-by: redznn <wandersonrodriguesf1@gmail.com>
2023-10-20 16:17:34 +00:00
Fan Zhang 033aba49ef vendor: init: ueventd: set permission for audio node
agm service needs to open msm_audio_ion node
agm service needs to open aud_pasthru_adsp
set permissions in ueventd.qcom.rc

Change-Id: I130307e3c6abed0289c8ad86db6b459e3891ca14
Signed-off-by: redznn <wandersonrodriguesf1@gmail.com>
2023-10-20 16:17:24 +00:00
Jiazai Wu 65f42caa8b vendor: init: ueventd: set permission for aud_passtrhu_modem
AMS uses aud_passtrhu_modem for GPR communication with modem.

Change-Id: Iaf2fc6d795267e2d1249f615ad6beb30b7abd425
Signed-off-by: redznn <wandersonrodriguesf1@gmail.com>
2023-10-20 16:17:07 +00:00
Mesquita ae0c1c93d3 fixup! sepolicy: common: Add the attributes corresponding to the umdservice
* move from generic to common folder

Change-Id: I173bf374d993810bd442790da6ac4616d18b9843
Signed-off-by: Mesquita <mesquita@aospa.co>
2023-10-19 10:25:38 -03:00
Yashaswini Guvvala 19bd126728 sepolicy: generic: Add the attributes corresponding to the umdservice
Change-Id: I1102eda821c08084eccbdd2162b68989aed7c628
2023-10-19 02:36:35 +00:00
Omkar Chandorkar 8ab53f98ee common: overlay: Sync with LA.QSSI.13.0.r1-09700-qssi.0
- Match overlay names with QSSI

Change-Id: Ibef16e374d78200ec933bed65f327292da91895f
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-10-19 02:21:38 +00:00
Himanshu Agrawal 383897af5f common: sepolicy: legacy: Compilation fix for newer upgrade.
Change-Id: I7eb38060cb0a1ad3e09d221022bd5955fb95b396
[Jprimero15: also include /dev/btfmslim ]
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-10-16 00:43:03 +00:00
Himanshu Agrawal 4fd34ca8ae
common: sepolicy: legacy: Add sepolicy rules for TZAS
Add the sepolicy rules for trustzone
access service to provide it access to
various vendor and android services.

Change-Id: I80f8bcb9a917ed18331fa3b92f1e8c65f8c631ad
[Jprimero15: Change to vendor_hal_perf to align with our changes]
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-10-16 06:51:23 +08:00
redznn 3acbd9d825 system/vendor: telephony: Build QTI systemhelper AIDL interface
Change-Id: I87c7289077b61d595b0b09e6fd5ac49b454d563a
Signed-off-by: redznn <wandersonrodriguesf1@gmail.com>
2023-10-14 00:59:30 +00:00
Jyotiraditya Panda fb2ddc0297
common: dlkm: Use prebuilt location of make
Change-Id: Iefaa7a23c5264a16ac49bc54aba5293b103a25a3
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2023-10-13 04:26:22 +05:30
Divyanand Rangu 2b04dc70e1 sepolicy: taro: Add labels to /sys/block/dev/sd*
Adding a new label to /sys/block/dev/sd*
Allow vendor_qti_init_shell to have permissions to
update read_ahead_kb nodes of
 - /sys/block/ram*
 - /sys/block/loop*
 - /sys/block/sd*
 - /sys/block/zram0

Change-Id: I123fb7608b95c33ec15b6c5ad3f1e7dd471c6853
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2023-10-12 18:30:14 +00:00
Adithya R 27af2a0410 sepolicy: qva: Label ssgqmigd64
Change-Id: Id6d0b4e4bf3b21cad9d4264ca4e4b234750f8fdc
2023-10-12 18:30:04 +00:00
Adithya R d166014ca3 sepolicy: qva: Label mutualex as vendor_qms_exec
mutualex was renamed to qms and the rules were renamed in ac8c01a9.
Label it in order to keep supporting older devices.

Change-Id: I579fa3a285c25ff7130cd79fa4a160cc31bb23f4
2023-10-12 18:29:56 +00:00
Arian 128a709a0d Revert "Remove rules for xtwifi-inet-agent as the daemon is removed"
This reverts commit 7e92c8ac9902f26654910890f6e1965f498f9a09.

Change-Id: I49ee8db516b1653d62c837d3130ab5186363a806
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2023-10-12 18:29:48 +00:00
Arian e3249c4ffe Revert "sepolicy: Remove unused sensors-qesdk binary name."
This reverts commit 48cb65d7a54a48ea9e688a85ff7c3f17afbb4ab9.

Change-Id: Ia2a39024f8e391c417b27f1346fc2d39c28a2b7f
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2023-10-12 18:29:43 +00:00
Adithya R eb0177f8dd fixup! vendor: Drop 32bit libs from >=5.10 components
They're unused.

Change-Id: Ib2ed92b5d5ec14f991c19d4d49bdba175fc8b8de
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-10-12 18:29:38 +00:00
Adithya R 566c613cd7 dlkm: Make the presence of system_dlkm optional
Avoid errors like:

find: 'device/xiaomi/marble-kernel/system_dlkm/': No such file or directory

Change-Id: I98134a59a05df3c6565494fbf1f44c5eb1066a77
2023-10-12 18:29:26 +00:00
Adithya R a9592e9bfa dlkm: Allow vendor ramdisk modules in its own subdir
Keeps the prebuilt kernel tree clean.

Change-Id: Ia162b6911f06ccac22c976e1aa7398f616edd136
2023-10-12 18:29:21 +00:00
chrisl7 c39f15bbb6 vendor: init: Remove duplicate ueventd definitions
Change-Id: I3d2e7485ec8f362ab3274bec80f3406a0e661243
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-12 18:29:13 +00:00
Arian 9eecb8d567 Revert "sepolicy_vndr: Remove sepolicy changes for eID services"
This reverts commit b188847d3b4166bd334171bfdba962b0b55103b7.

Change-Id: Ib56e8a098e5c13749d9afb2f7bda53cea98e492e
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2023-10-12 18:28:47 +00:00
Jake Weinstein 385b4abeb5 system: telephony: Update to LA.QSSI.14.0.r1
Updating to Xiaomi Nuwa

Change-Id: I679774901ba0e884ab03b51c320191e2ed2c4225
2023-10-11 20:23:08 -05:00
chrisl7 5229813bad system: Update blobs to LA.QSSI.14.0.r1
Skipping telephony for now. Using
blobs from Nothing Pong.

Change-Id: I10dc7448c61cd9a3d7e222316285e3440d5527cc
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-11 20:22:31 -05:00
chrisl7 25f53d360f common: Allow overriding the PRODUCT_MAX_PAGE_SIZE_SUPPORTED value
Change-Id: I1fb4f7b2c6cae00c12841dab9f71dec537a193f3
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-10 16:34:33 +00:00
Roopesh Nataraja e791149f44 common: Opt out of 16K alignment changes
As 16K alignment is not a mandatory requirement in Android 14,
opt out of it by setting PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 4096

Change-Id: I1555e39dc1c0127b8dd77928d1f09ad37a051395
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-10-10 16:32:37 +00:00
Jake Weinstein 229b199bf2 vendor: display: Disable UBWC-P on <6.1 targets
This is not supported on legacy targets.

Change-Id: I520cf65d4415281bb90ae03ba84e7e65bbafdf84
2023-10-08 21:08:23 +00:00
Jake Weinstein b62fe29693 vendor: display: Disable custom content metadata region on <5.15 targets
Pre-8550 devices do not currently support this.

Change-Id: I9aac7cf293ff314eae6fed594a8307f71f682f32
2023-10-08 21:08:15 +00:00
Sanghoon Shin 88bd54df76 qcc: add new AID
To switch from vendor_qtr to vendor_qcc.

This is to sharing data file access between QDMA native processes
and protect data file from 3rd party access.

CRs-fixed: 3303809
Change-Id: I242420395f59fc5fb89f3494be71f600c24a2009
2023-10-08 21:07:48 +00:00