Commit Graph

1290 Commits

Author SHA1 Message Date
Giovanni Ricca
fb29102341
sm8350-common: Import missing IMS lib
Change-Id: I9c6cd5e9d493fcee5a2b8d6fa3c097f253d46382
2024-06-20 22:20:28 +02:00
Michael Bestas
111a9bbf28
sm8350-common: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
2024-06-20 22:20:26 +02:00
Chirayu Desai
9ee014a60e
sm8350-common: Disable UFFD GC
Unable to determine UFFD GC flag for kernel version "5.4.268-qgki".
You can fix this by explicitly setting PRODUCT_ENABLE_UFFD_GC to "true"
or
"false" based on the kernel version.
1. Set PRODUCT_ENABLE_UFFD_GC to "true" if the kernel supports
userfaultfd(2)
   and MREMAP_DONTUNMAP.
2. Set PRODUCT_ENABLE_UFFD_GC to "false" otherwise.

Change-Id: Ie77d9a86a7fe94e4cade1868ffea27194f724e03
2024-06-20 18:16:01 +02:00
Arian
41d4ea3a7c sm8350-common: Update blobs from V816.0.2.0.UKKMIXM
Change-Id: I1bf5bed6b285e61d7cc3f9f16349fdd974061b48
2024-05-20 18:02:56 +02:00
Arian
ccfa3da2c0 sm8350-common: Update radio properties from haydn V816.0.1.0.UKKCNXM
This fixes IMS on yupik and shima :party:

Change-Id: I7334b6cc5eb2a1a6b2c3b2bf8357428082f4721d
2024-05-20 18:02:56 +02:00
Giovanni Ricca
69bfa64a72 sm8350-common: Update blobs to haydn V816.0.1.0.UKKCNXM
Change-Id: I0679f0d96977957c38e55b9998fc059dfd41f07b
2024-05-20 18:02:56 +02:00
basamaryan
ea53efe1f0 sm8350-common: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-05-20 18:02:56 +02:00
Tomasz Wasilczyk
0c8e060735 sm8350-common: gps: Don't include cutils/threads.h
Bug: 289414897
Test: buildserver
Change-Id: I14b99f42feaae7af00cbd17cfe482eb2e5da71e8
2024-05-20 18:02:56 +02:00
Cole Faust
917686a74b sm8350-common: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Floral has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
2024-05-20 18:02:56 +02:00
Edwin Moquete
3d7216ac91 sm8350-common: Disable display refresh rate override
This got enabled by default on U, and it causes apps like
Chrome and Youtube to set the refresh rate to 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
2024-05-20 18:02:56 +02:00
Alexander Winkowski
cac6fa53cf sm8350-common: sepolicy: Remove unused rules
Change-Id: I0e96b7af787b01c4c6e6f7cfc8744a1c34acbc6b
2024-05-20 18:02:56 +02:00
Alexander Winkowski
4726aafd72 sm8350-common: sepolicy: Rework batterysecret rules
Change-Id: I98b231406fa1a2910cbedd133b33554e7d1c9268
2024-05-20 18:02:56 +02:00
Alexander Winkowski
af39848862 sm8350-common: sepolicy: Simplify fingerprint rules
Reuse existing AOSP fingerprint_vendor_data_file label

Change-Id: I8632de158050edf87e1b04ec83f0c8c3a61ff0c0
2024-05-20 18:02:56 +02:00
Michael Bestas
662a3fa088
sm8350-common: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2024-04-17 15:46:36 +02:00
Bruno Martins
5abee74873
sm8350-common: Allow extracting only firmware images
Change-Id: Icab3f013661304e3a9ec89b0816a8139f6b8e8e5
2024-04-17 15:46:36 +02:00
EcrosoftXiao
d10c89e7a2 sm8350-common: audio: Nuke unsupported haptics output configuration
* Fixes Pixel ringtones

Change-Id: Ib81fd4209be8201d13aeea485910169371f82582
Signed-off-by: Bartłomiej Rudecki <ejbtrd@gmail.com>
2024-02-10 11:53:53 +08:00
ralph950412
8465b3f238 sm8350-common: Remove libtinyxml
It's deprecated and not being built.

Change-Id: I4142cb9bed49f87e7250ccaa5f4262254b3f11ff
2024-02-10 11:53:53 +08:00
Alessio Balsini
3f74c415ac sm8350-common: Use FUSE passthrough by default
Enable the persist.sys.fuse.passthrough.enable flag for the device
configuration to enable the FUSE passthrough feature.
This feature has been enabled on Cuttlefish, Wembley and Redbull devices for
months and no issues have been detected yet.

Bug: 168023149
Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable',
    ScopedStorageTest
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3f39b02af436f7e508bb70efc702565a667a051c
2024-02-10 11:53:53 +08:00
Suren Baghdasaryan
af19263b9c sm8350-common: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
2024-02-10 11:53:53 +08:00
Rick Yiu
160297726b sm8350-common: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Icfe520e7f7367461607cc8fb5e524d9699e79124
2024-02-10 11:53:53 +08:00
Michael Bestas
0b6fcd4d62 sm8350-common: Add firmware extraction support
Change-Id: If6cb6334a8f7b2fcc77c8947569eba1b2002190a
2024-02-10 11:53:53 +08:00
Bruno Martins
4aca996701 sm8350-common: Move to QTI health AIDL service
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.

Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9
2024-01-26 15:57:47 +01:00
LuK1337
a7f178aaa3 sm8350-common: Build android.frameworks.sensorservice@1.0.vendor
Required by mm-pp-deps.

Change-Id: Iaf821dcbb07d7820f2fc3ff5ca9cca5e973360f2
2024-01-26 15:57:47 +01:00
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