Commit Graph

2356 Commits

Author SHA1 Message Date
Adithya R 9b4ce7e515 common: Set `ro.soc.manufacturer` for qcom devices
All current qcom platforms set QTI as the manufacturer.

Change-Id: I1b41a972f90d9518a110f4cf7843ae71050576fe
2023-03-07 04:35:15 +00:00
Adithya R d88799f3aa sepolicy: Allow NNHAL full read access to {q,x}dsp_device
Required on 5.4 and older platforms.

Change-Id: Ied9eea539b95e21dc1584d671cdfbc59ef73df33
2023-03-07 04:35:15 +00:00
Adithya R 77e52b789a vendor: media: Set netflix revision irrespective of android version
Change-Id: Ibeda8db053ad7989443c16bcd4fa6758c18498cf
2023-03-07 04:35:15 +00:00
Adithya R 29fa00eac2 vendor: media: Move media init scripts here
Change-Id: Ib74bcb2845e2fc342127a56e6b383da439f0e73e
2023-03-07 04:35:15 +00:00
electimon 27bff8be38 common: vendor/qseecomd: Add libtime_genoff
* This blob is loaded by qseecomd's libdrmtime module
  which provides time services for services such as
  keymaster.

Change-Id: Ifcdfaec976c7f06b2b7c30836c79496a0276c2c9
Signed-off-by: electimon <electimon@gmail.com>
2023-03-06 06:08:58 +08:00
electimon f6ebf68755 fixup! vendor: extract-utils: Use kernel version specific proprietary-files.txt if exists
* Due to the way the checks were added, when $KERNEL_VERSION fails
  to resolve, it will still pick up the proprietary-files.txt of
  the current directory. This is indicated with the output of
  extract-files.sh having extranous slashes and double extraction.

* To solve this we only extract based on kernel version if
   1. $COMPONENT/$KERNEL_VERSION/proprietary-files.txt exists
   2. $KERNEL_VERSION is declared beforehand.
  if not, fallback to classic extraction, which includes
  error handling.

Change-Id: If4bf45b300010d7f665a74abf661d0170c40af44
2023-03-05 18:17:16 +08:00
electimon 918e9bfd43 common: system/audio: Use optional includes
* The audio component provides important configuration,
  we should allow it to be used even if the audio HAL
  isn't at the hardcoded location. This changes also
  matches vendor/audio's optional includes.

Change-Id: Ibbd8797b5352f7889ede0ec618cb40af39ad80cd
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:32 +08:00
electimon 6e93bc0b99 common: sepolicy: Move AOSPA specific sepolicies to their own folders
* With this, qcom common sepolicy compiles on AOSP based ROMs.

Change-Id: Ie5e2c5660305a859ebfb0ddbec8fd19be3ac11e4
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:32 +08:00
electimon fea0af2f6b common: vendor/media: Add vendor.qti.hardware.vpp interfaces
* This is linked by okinawa camera HAL and belongs
  to the QCOM Media stack

Change-Id: I065cd7b91c8b69ff69e026d8bd206749f3fd92b3
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:32 +08:00
electimon f4b943ae2f common: vendor/init: Move early/post_boot scripts from soong
* Since legacy variants are copied out to the same place
  it causes 2 install targets for the respective install
  path, thus causing the following error:
  error: overriding commands for target `out/vendor/bin/init.qcom.post_boot.sh'

Change-Id: I246da97954566de2c07393eb320df7d96297b280
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:32 +08:00
electimon 837c8db971 common: vendor: Introduce display vendor module
* This commit introduces common SDM stack for
* 4.14, 4.19, 5.4, future commits will add
* 5.10 and other kernel versions as needed

* CAF Tags
* 4.14: LA.UM.9.11.r1-04900-NICOBAR.QSSI12.0
* 4.19: LA.UM.9.12.r1-15100-SMxx50.QSSI13.0
* 5.4: LA.UM.9.16.r1-09800-MANNAR.QSSI12.0

TODO: Check compatibility with HALs
Change-Id: Ie6732cc3ebfabf14c1b22955179cda3c9ca476d0
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:32 +08:00
electimon 4191856d66 vendor: extract-utils: Use kernel version specific proprietary-files.txt if exists
Change-Id: I008dadb63a7530a2290545f42ced6dc9d27cdc36
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:32 +08:00
electimon e96355ded8 common: vendor: Introduce qseecomd module
* Based upon LA.UM.9.16.r1-09800-MANNAR.QSSI12.0,
  qseecomd module provides qseecomd stack for devices
  on >5.4 kernels using DMABuf.

[TODO: Evaluate enabling this component on ALL]
Change-Id: I3b1c7a95193e296a173dc6e628e42ab66a96483f
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:32 +08:00
electimon bfd3ea7a5e common: vendor: Introduce keymaster module
* Based upon LA.UM.9.12.r1-13500.01-SMxx50.QSSI12.0,
  keymaster module provides keymaster/gatekeeper blobs
  specifically version 4.1 which is compatible with devices
  that use 4.0.

[TODO: Evaluate enabling this component on ALL]
Change-Id: I216b047ce7c3bcab5ba25eeb8c359c0d4cee5865
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:32 +08:00
electimon cfdbb08e0e common: vendor: Introduce qseecomd-legacy module
* Based upon LA.UM.9.12.r1-13500.01-SMxx50.QSSI12.0,
  qseecomd-legacy module provides qseecomd stack
  for devices on <5.4 kernels. Newer devices use
  DMABuf and are therefore not compatible with
  these blobs.

Change-Id: Ia23e5a797fe1f322bb98f79e324d09e452bcfe85
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:32 +08:00
electimon 848c5d4808 common: vendor: Introduce dsprpcd module
* Based upon LA.UM.9.12.r1-13500.01-SMxx50.QSSI12.0,
  This module contains *dsprpcd services with
  a selector to enable the correct services

[TODO: Evaluate enabling this component on ALL]
Change-Id: I79aaa8fd359ba4c8450f5896b9cfb873cec1f468
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 02:01:31 +08:00
electimon 567a41944c common: vendor: Introduce charging module
* Based upon LA.UM.9.12.r1-15100-SMxx50.QSSI13.0,
  This module contains userspace charging blobs
  typically provided to OEMs as prebuilts.

[TODO: Evaluate enabling this component on ALL]
Change-Id: I380ac70e40bc7dc8317d13ed7bee01e8c1125a68
Signed-off-by: electimon <electimon@gmail.com>
2023-03-05 01:00:18 +08:00
chrisl7 7f06544cb0 vendor: telephony Enable singlereg.feature for all 4.14, 4.19 and 5.4
[1] - It appears that Qualcomm has enabled this for all through IQtiRadio 2.7 in descending order, starting with 9.16, 9.15, 9.14...
      all our latest bsp are with IQtiRadio 2.7, so enable it

[2] - Fix IUceService logspam

Change-Id: I24bb664bda3559751b7e3757420be4d290765a59
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-27 00:00:00 +00:00
chrisl7 fa6e9e79db vendor: media: Add missing C2 blobs
Change-Id: I90e12edcf99ab217bb42e1cfc25a84a287092cea
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-26 23:53:16 +00:00
Jake Weinstein 6e2b66614e vendor: Introduce wlan-legacy component
LA.VENDOR.1.0 cnss-daemon breaks Wi-Fi on older
SoCs.

Change-Id: I8e50fe07983381a52297e5a7e6b384662e43bd82
2023-02-25 02:09:12 +00:00
electimon e6f634e232 common: vendor/init: Fix post boot settings for sm6150
* Set the correct governor for memory lat/bw devices

Change-Id: I8cab823492186474b75930191892ee89372bb278
Signed-off-by: electimon <electimon@gmail.com>
2023-02-23 19:19:01 +00:00
Jake Weinstein 83a2e71da4 vendor: media-5.4: Drop C2D2 libraries
These are already in adreno-6xx-legacy, which
is used for 5.4 again due to Chrome flickering
in the newer Adreno libraries.

Change-Id: I297e7b2478e2ef66887f3949bcd85ea49c24ac2f
2023-02-24 02:33:24 +09:00
Omkar Chandorkar 181a629d1e sepolicy: address hub denials
- fixes `02-05 18:56:02.829  6540  6540 W TcmReceiver: type=1400 audit(0.0:75): avc: denied { connectto } for path="/dev/socket/tcm" scontext=u:r:hub_app:s0:c512,c768 tcontext=u:r:vendor_dpmd:s0 tclass=unix_stream_socket permissive=0 app=co.aospa.hub`

Change-Id: I6cef7dbbef2bbe776b3eb26dc45772f1579b75b3
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-17 05:43:49 +00:00
Ahmed Harhash 1c9e2c17c2 common: sepolicy: kona: Drop qtr_sdk_use policy
Change-Id: Iab055b6fd5c1c8343272d5286c71886ac61105a1
2023-02-16 18:34:09 +00:00
Jake Weinstein 82fe1b8dff common: sepolicy: lahaina: Add more wakeup nodes
Test: SuspendSepolicyTests.sh on Nothing Phone (1).

Change-Id: Ifd6de26fd53571e156a8f649350729063097b1e5
2023-02-16 02:23:42 +00:00
Pavan Kumar M 8bb35d5a51 common: sepolicy: Add sepolicy rules to run imsdaemon on bengal
Change-Id: I29a810f7daf1aa147261b08b4005ee6edb06267a
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-15 20:20:12 +00:00
chrisl7 6e8803a452 vendor: telephony: Enable single reg feature for bengal too
[1] - 17080eb242
[2] - 14c5a4fb66

Change-Id: Id82c2a1fd2cfecad13baaf7a756a21e87397513c
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-15 20:19:27 +00:00
Ashok Gandla cbf98010b6 common: sepolicy: QCS6125: support for vendor_boot and init_boot partion
Included vendor_boot and init_boot partion for AB OTA

Change-Id: Iaaf1c6660a6691ed6a474ed6debdc4d239f7e52b
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-15 20:18:48 +00:00
chrisl7 6e32a4d4dd sepolicy: Update SM8150-8350 sepolicy
[1] - From LA.UM.9.16.r1-12800-MANNAR.QSSI13.0

Change-Id: I1d78ebd7336b550792a797b3e243472288a73b73
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-15 20:18:20 +00:00
Kujou Yuko 01114b5c86 sepolicy: common: Don't audit storaged to read debugfs_mmc files
* This sepolicy triggers a neverallow check on new platforms (e.g.
   taro).

Ref:
 1. https://git.codelinaro.org/clo/la/platform/system/sepolicy/-/blob/LA.QSSI.13.0.r1-09000.01-qssi.0/public/te_macros#L537-L547
 2. https://git.codelinaro.org/clo/la/platform/system/sepolicy/-/blob/LA.QSSI.13.0.r1-09000.01-qssi.0/private/domain.te#L588-L600

Change-Id: I453920dc5e2f4d1695c06e8ad2ba1540024dab4d
2023-02-15 06:45:39 +00:00
Jake Weinstein 92132caeea system: Update to LA.QSSI.13.0.r1-09000.01-qssi.0
Change-Id: If02ed9eadeb16e2ae256accdc5d8aac1bfbb4686
2023-02-11 12:15:56 +09:00
Jake Weinstein b316c59d31 common: Inherit compatibility_matrix.xml from vendor-common
Change-Id: I7dbb6a66401ae6c3ec827a8b6037944d84ef605b
2023-02-08 09:09:41 +00:00
Jprimero15 d6dabf22d9 common: sepolicy: legacy: Fix more pasr memory denials
01-04 05:26:11.303 W/.pasr   (3079): type=1400 audit(0.0:179): avc: denied { read } for name="u:object_r:vendor_pasr_prop:s0" dev="tmpfs" ino=15696 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_pasr_prop:s0 tclass=file permissive=0 app=com.qti.pasrservice
01-04 05:26:20.209 E/SELinux (443): avc:  denied  { find } for interface=vendor.qti.memory.pasrmanager::IPasrManager sid=u:r:hal_pasrmanager_memory_qti:s0 pid=6570 scontext=u:r:hal_pasrmanager_memory_qti:s0 tcontext=u:object_r:hal_pasrmanager_memory_hwservice:s0 tclass=hwservice_manager permissive=0
01-04 08:16:59.438 E/SELinux (443): avc:  denied  { add } for interface=android.hidl.base::IBase sid=u:r:hal_pasrmanager_memory_qti:s0 pid=4636 scontext=u:r:hal_pasrmanager_memory_qti:s0 tcontext=u:object_r:hidl_base_hwservice:s0 tclass=hwservice_manager permissive=0

Change-Id: I3633de8c2775e60f78c44a0cea3c9416f7506c9a
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-02-08 07:41:32 +00:00
Kujou Yuko 4f8b5049cb system: audio: Add missing QSSI QXR NDK platform backend lib
Change-Id: I757de1c4ebc568021c6ffd2b0de4f4fa90ee5579
2023-02-08 11:44:05 +09:00
Sudarshan Rajagopalan 9bd6d99dc1 common: sepolicy: legacy: Add policy for new pasr hal
Add sepolicy for vendor.qti.memory.pasrmanager.
 - define property contexts for pasr
 - include get_prop permission for vendor.pasr. properties

Change-Id: I94ff1a9c261496e3bffa072bb4efd24b46e8bb3c

Jprimero15 Edits:
* removed: type hal_pasrmanager_memory_hwservice, hwservice_manager_type; (duplicated from sepolicy-legacy)
* commented out: hal_attribute_hwservice(hal_pasrmanager_memory, hal_pasrmanager_memory_hwservice) (neverallow)
* applied commit: Attach vendor_property_type to properties
* changed /vendor/ to /(vendor|system/vendor)/

Change-Id: Id9f1f7756a15ba610ea2fcf64ff647527f725b0a
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-02-05 05:55:38 +00:00
Jprimero15 4b3f799654 common: sepolicy: legacy: hal_perf -> vendor_hal_perf
Change-Id: Iee50c1931b2865f0ddbc2aa89113cdc6deaea358
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-02-05 03:14:38 +00:00
Jprimero15 45cd2b9b5f common: sepolicy: legacy: More denial fixes
* add dontaudit while at it

Change-Id: Ibab56cd5ecc6959ec34e492a5b2f028650489e10
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-02-05 03:14:30 +00:00
Jake Weinstein 8874d5f5de common: Move 5.4 family to adreno-6xx-legacy
Sadly, newer libraries cause corruption when switching
tabs in Chrome.

Change-Id: Ib9bd93a483179fcf5a34c16bb755c1a56b8fe234
2023-02-02 01:56:45 +09:00
Michael Bestas 18f7f724fd common: sepolicy: legacy: Label persist.vendor.bluetooth. properties
* As seen on non legacy

Change-Id: I06c8b554256565f536fc643e3a743272c841cdef
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-01-25 10:53:53 +00:00
Chirayu Desai db5ad3323a common: sepolicy: legacy: Label persist/rfs recursively
* restorecon_recursive silenty fails otherwise.

Change-Id: If31d9b55dc68f39ee6b43d784167e7233b8e07c8
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-01-25 10:53:30 +00:00
Bruno Martins 24e89eed83 common: sepolicy: legacy: Allow mm-qcamerad to access v4L "name" node
Change-Id: I42b329d782795feed776b09d5c12d89be9bac868
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-01-25 10:52:59 +00:00
Bruno Martins f5ce19c896 common: sepolicy: legacy: Fix video4linux "name" node labeling
Do u even regex, br0?

Change-Id: If907448d394f967268c9f72051bec5a47220087b
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-01-25 10:52:37 +00:00
Bavyasritha Alahari 5c4dff9a3f common: sepolicy: legacy: remove legacy sysmon_app domain
Remove unused sysmon_app domain from the legacy test
and corresponding rule in seapp_contexts.

Change-Id: I54390f9d186477e5ac52b363392db4efbe546664
2023-01-25 10:50:35 +00:00
Michael Bestas 97e4802166 common: sepolicy: legacy: Label persist partition for all SoCs
Change-Id: I8db3acb9a1b958ec59c7f14c6ee16ea466548cc7
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-01-25 10:50:14 +00:00
Jake Weinstein 2b1d3d1de6 common: sepolicy: legacy: Add support for MSM8937/MSM8953/MSM8998/SDM660
from LA.UM.9.6.4.r1-03900-89xx.QSSI13.0 and LA.UM.11.2.1.r1-02600-sdm660.0

Includes support for MSM8937/MSM8953/MSM8998/SDM660

Change-Id: Iaa111b2eebaf7ef755b57cea26d6c4ba0a4d5def
2023-01-20 06:42:13 +00:00
Tobias Merkel 25050e82ef common: sepolicy: move hub_app rules to private
Change-Id: I16b8c19d3753b9aa9236c924188400aaa476e1fc
2023-01-20 06:20:10 +00:00
Jake Weinstein f815cf4635 common: sepolicy: Commonize system SEPolicy
There's no reason for these to be separate since
all devices use the same QSSI system policy.

This also fixes inheriting of system policies
as the directory in the Makefile and
the actual directory did not match before.

Change-Id: I48b178f136b2a6ff0d0bb36264149b46ef3884c4
2023-01-20 03:18:58 +00:00
Anay Wadhera b1e2ebf875 init: switch to aidl supplicant interface
Change-Id: Id84db47dd94e50010641337c4dcf956a4c4a6be8
2023-01-17 06:07:40 +00:00
Kaushik Sadashiva Reddy c8fcb80c2f vendor: telephony: Unset radio rat on property for 5.10 family
This is not needed anymore as RAT info is
passed in the results for network scan and
is being set as part of the API
setNetworkSelectionModeManual_1_5

Change-Id: Id9cbc34b7c854c52a71c0f209cc6fbf32eccff9f
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-01-15 13:00:08 +00:00
Adithya R 6b935d9a85 common: sepolicy: Allow mediaswcodec to access gpu_device
Required by Adreno stack.

type=1400 audit(0.0:744): avc: denied { read write } for name="kgsl-3d0" dev="tmpfs" ino=1176 scontext=u:r:mediaswcodec:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=0

Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Change-Id: Ie04f15ee768d3c070e2c3a8499cd9d8b1e94e06d
2023-01-15 12:59:48 +00:00