Commit Graph

1267 Commits

Author SHA1 Message Date
LuK1337
f2b025afea sm8350-common: Add vendor.nxp.nxpnfc_aidl.INxpNfc/default
Change-Id: I15696723afdac3074e96271c0be6c7f19bbed232
2024-01-26 15:57:47 +01:00
Bruno Martins
c2e936999b sm8350-common: Build Widevine DRM HAL dependencies
The vendor variants of android.hardware.drm@1.[0-4] are no longer
implicitly built since the migration to AIDL ClearKey DRM HAL.

Change-Id: I79c69e93e27f3c2f4a1c6f7acf5f013ee8f6cd03
2024-01-26 15:57:47 +01:00
Bruno Martins
700c7f34aa sm8350-common: Migrate to AIDL ClearKey DRM HAL
Change-Id: Iad5cc1176978137c647069197b33f49fb4d98ab2
2024-01-26 15:57:47 +01:00
Krzysztof Kosiński
6998158401 sm8350-common: Add prebuilt protobuf 3.9.1 to vendor partition.
Needed to work around a Qualcomm HAL prebuilt.

Bug: 203713560
Bug: 258322017
Bug: 254854421
Test: Forrest
Change-Id: I4eebc60f10fbea6a66127ed3e08441db32536f78
2024-01-26 15:57:47 +01:00
Michael Bestas
d064ac4a31 sm8350-common: Switch to common QTI vibrator HAL
Change-Id: I281c6d993901ad86592d43afcac2171840998738
2024-01-11 15:44:15 +01:00
TheStrechh
dbeb8520f0 sm8350-common: sepolicy: Label more wakeup dirs
Change-Id: I603fbc74059636f86180645cdf8d38274b0af745
2024-01-11 15:44:15 +01:00
TheStrechh
1cd9cedf75 sm8350-common: rootdir: Set up missing fingerprint data dirs
* needed for redwood/taoyao/vili

Change-Id: I2a9312ec07bf227965d3655709459079926ade9d
2024-01-11 15:44:15 +01:00
Carlos Arriaga
65c8b28baa sm8350-common: rootdir: Update dir's for camera
* Needed for redwood/vili/taoyao/zijin

Change-Id: I93f1d7d016a34e70c2772c8bfabb7d4fd0210cc2
2024-01-11 15:44:15 +01:00
TheStrechh
b730d27c62 sm8350-common: vibrator: Add support to awinic_haptic node
Change-Id: Ie9c417de8a03a143b410e83e0caedb3700bcc668
2024-01-11 15:44:15 +01:00
TheStrechh
0b9d19951a sm8350-common: Add redwood support
Change-Id: I1baab3cc53c3f0cb19ae3103d53f5413ba088545
2024-01-11 15:44:11 +01:00
LuK1337
1895fbd451 sm8350-common: sepolicy: Migrate to snxxx NFC AIDL HAL
Change-Id: Ibe4c30bcb5b912109478a548019d19a85d27a4bb
2023-10-29 00:17:40 +08:00
LuK1337
d536e30ca9 sm8350-common: Build AIDL NXP NFC HAL
Change-Id: I6ace3ac149c84d2cb9e2773e7ef5ddbf24c35b92
2023-10-29 00:13:11 +08:00
Madhanraj Chelladurai
a20d1da042 sm8350-common: gps: Add NULL check before object access
Correct the NULL check code block and add NULL check before
object access.

Change-Id: Ic41b781b41fb4e21bbff8801d500a41a6d7219d0
CRs-fixed: 3084543
2023-10-28 23:54:17 +08:00
me-cafebabe
f09da84023 sm8350-common: gps: Fix compilation on U
Change-Id: I7ca7e78addd6385289b8449edae8b682839ecc91
2023-10-28 23:46:39 +08:00
Charles Chen
4008f22d05 sm8350-common: Replace isolated_app with isolated_app_all
Replace certain policies for isolated_app with the newly introduced
isolated_app_all for better scalability.

Bug: 265540209
Test: m
Change-Id: I1b6866d56f15089babe368bb60335c7ed99bdd6b
2023-10-28 23:45:17 +08:00
Bruno Martins
89bec86297 sm8350-common: Migrate to restructured sepolicy_vndr
The new folder structure now looks like this:

  device/qcom/sepolicy_vndr
  ├─ legacy-um (meant for sdm845 until sm8350)
  ├─ sm8450
  └─ sm8550

Change-Id: I4ed1a06af779909d64172da294c4a99a3ae9ba0d
2023-10-28 23:43:10 +08:00
LuK1337
4f27250530 sm8350-common: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2023-10-27 00:50:38 +08:00
Gabriel Biren
231b1a47b5 sm8350-common: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2023-10-27 00:50:31 +08:00
Arian
2ed616667b fixup! sm8350-common: Configure common Powershare HIDL
Change-Id: Ic720909c803c20aaec72dae9b25ed2070b144f9d
2023-08-21 15:09:10 +02:00
LuK1337
b042c893a5 sm8350-common: Include vendor/debugfs.config
This disables the following kernel configs:
* CONFIG_DEBUG_FS
* CONFIG_PAGE_OWNER

Change-Id: Idbf74e3dee4dccff4708462271e79374e28449ae
2023-08-21 15:07:50 +02:00
Hridya Valsaraju
dac515ede3 sm8350-common: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.

Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
2023-08-21 15:07:50 +02:00
Michael Bestas
22f550f593 sm8350-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-08-21 15:07:42 +02:00
Giovanni Ricca
547958b311 fixup! sm8350-common: Update display blobs from Sony Xperia 1 III (XQ-BC72) 61.2.A.0.410
Change-Id: I8ff8518321d6416886b24d329cecc2e47e1fbb4c
2023-08-21 13:04:53 +00:00
Michael Bestas
ba4dd1f2cb sm8350-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-08-21 13:04:53 +00:00
Michael Bestas
3017c2408c sm8350-common: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2023-08-21 13:04:53 +00:00
Michael Bestas
a82c5a3af1 sm8350-common: gps: Remove all Wno-error flags
Almost all warnings/errors have been fixed.
Ignore undefined bool conversion error on purpose.

Change-Id: I00cb5f38711fa9f873da030fc6a0ebc6cde3ceeb
2023-08-21 13:04:53 +00:00
Albert I
77d363cd53 sm8350-common: gps: Implement list empty error code for msg_q
This fixes enum-conversion warning due to implicit type enum casting
between linked_list and msg_q which happens only for status -6.

Change-Id: I27ba74c4d840b7ba0cb1017d69a30fc25b80d6b9
2023-08-21 13:04:53 +00:00
Albert I
356462e0b6 sm8350-common: gps: Address logical-op-parentheses warning
Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33
2023-08-21 13:04:53 +00:00
Albert I
e05f48f56c sm8350-common: gps: Reorder initializations list to satisfy warnings
-Wreorder-ctor is a compile-time, Clang-only flag which is enabled by
default since Clang 12, which will warn whenever a specified field will
be initialized right after field specified below it. However, since it
doesn't sweep through all fields, compiler may miss some of them.

This order has been checked thoroughly through many trial and errors to
ensure that no such warns will be triggered anymore.

Change-Id: Id24cbb7277dc8d6c02767f8f365818ab6c017683
2023-08-21 13:04:53 +00:00
Michael Bestas
c3b3bc2886 sm8350-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2023-08-21 13:04:53 +00:00
Georg Veichtlbauer
65180b6723 sm8350-common: Remove unneeded NFC package
* NfcNci and SecureElement are built by handheld_system.mk

Change-Id: I83f686b67778634b584a58d8bae95d237e6dbad1
2023-08-21 13:04:53 +00:00
Luofan Chen
1967ec2c79 sm8350-common: gpt-utils: Check ufs device first before checking partition names
- 4b6405a7f0

Change-Id: I51663ff8e074681191ac708fcd7b4d28e890deaf
2023-08-21 13:04:53 +00:00
Bruno Martins
9dae84932c fixup! gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti)
Change-Id: Iee2dff5e4550239319326e4c707f89006c13ddb8
2023-08-21 13:04:53 +00:00
FlowerSea0208
afa2607ddd sm8350-common: Configure common Powershare HIDL
Change-Id: I1287d066eca7d1a274b491f80166ed68c5b11459
2023-08-12 16:52:07 +08:00
FlowerSea0208
6f2ec9d60e sm8350-common: sepolicy: Add fod_press_status rules
Change-Id: I60d18f2c9ab2f3b7da5c80d9a2b21236dae3d36e
2023-08-12 16:52:07 +08:00
EcrosoftXiao
bc476fbaca sm8350-common: Add Xiaomi dtool HAL
Change-Id: I56af84663e44672c5f0e105be323dea7902e1c75
2023-08-12 16:51:40 +08:00
EcrosoftXiao
e5363bb71f sm8350-common: sepolicy: Address more denials for fp hal
Change-Id: I9a0ad1bc605ea6fd40b8f0a1301129bad1c61fbd
2023-08-12 16:50:49 +08:00
EcrosoftXiao
a06760b18b sm8350-common: sepolicy: Allow hal_fingerprint_default to access vendor_fingerprint_device
Change-Id: I8770a65a01e622f7c541bf88cf4b70c40792a169
2023-08-12 16:50:20 +08:00
Arian
19cbd7ae08 sm8350-common: udfps: Set fod status based on vendor acquired and cancel
Change-Id: I8cbabdfd48576a1afdbf9d2c542ed82a11a4874c
2023-08-12 16:47:22 +08:00
EcrosoftXiao
d52d3b7ff7 sm8350-common: sepolicy: Allow hal_fingerprint_default to creat netlink_socket
Change-Id: Icb8b0619ebee908c241e90c76439895c7026adec
2023-08-12 16:47:22 +08:00
EcrosoftXiao
5ee0ae3439 sm8350-common: sepolicy: Label display drivers
Change-Id: If97042228749352bc804888d8cb31ccf56742542
2023-08-12 16:47:14 +08:00
FlowerSea0208
00327ecb3a sm8350-common: Make the value of screen density overridable
Looks too small on some devices

Change-Id: I0accc5fdd0ad4cb0b466e226cfc9ec4bc96a66d4
2023-08-10 00:01:27 +08:00
FlowerSea0208
7b872cd510 sm8350-common: Add support for mars and star
Change-Id: I8d6b915eb5037180f299f0a4b7beca84575787c5
2023-08-10 00:01:17 +08:00
Giovanni Ricca
19691486d9
sm8350-common: sepolicy: Address mlipay denials
Change-Id: Ie7ed48158db6f5f5facab5dfb2efc8560c83fe49
2023-05-15 11:22:04 +02:00
chaptsand
3364309e72
sm8350-common: sepolicy: Allow platform app to find SoterService
* Fix selinux denied of WeChat fingerprint payment

- E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.soter::ISoter sid=u:r:platform_app:s0:c512,c768 pid=3613 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_hal_soter_hwservice:s0 tclass=hwservice_manager permissive=0

Issue: https://gitlab.com/LineageOS/issues/android/-/issues/4701

Change-Id: I3176f8e709fb31aec16a31094b78f753d1d16b43
2023-05-14 17:23:42 +02:00
Arian
3213b818ce sm8350-common: Update display blobs from Sony Xperia 1 III (XQ-BC72) 61.2.A.0.410
This matches LA.UM.9.14.r1-20000.01-LAHAINA.QSSI13.0

Change-Id: I27371702f040423d8c349ff5ea8d620849f3703a
2023-04-27 20:28:47 +02:00
Arian
a928936647 sm8350-common: Update display HDR blobs from tundra S3SJS32.1-86-1-4
This matches LA.UM.9.14.r1-19600.01-LAHAINA.QSSI12.0 and is unchanged
up to at least LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0

Change-Id: I8cd347aa31102604916a149c5b956d00735592cd
2023-04-27 20:28:47 +02:00
Arian
5943e273d8 sm8350-common: sepolicy: Label libSNPE.so as same process hal file
Change-Id: I2c8e996fe2b7772e88c925966a6bef04f47d3661
2023-04-25 16:54:44 +02:00
Arian
cb86ec236a sm8350-common: Restructure display blobs sections
* Drop andvanced_sf_offsets.xml as that's only used by
  libcomposerextn.qti.so which we do not include.

* Move QDCM blobs to postprocessing section

* Move libhdr_tm to a seperate section for future blob updates

Change-Id: I40dcd9d5a466ccac61ea04fbb45e0665154a0710
2023-04-16 17:49:30 +02:00
Bruno Martins
e86ecfdac5 sm8350-common: Unset DEXPREOPT_GENERATE_APEX_IMAGE
This was missed in commit Ib2cea88499cf08274d620d9d85ffcafc31fee868.

Change-Id: I8a130456021da1532279c3f0ac0ca0110e68b9b4
2023-04-16 17:49:30 +02:00