Commit Graph

1280 Commits

Author SHA1 Message Date
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
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