Commit Graph

572 Commits

Author SHA1 Message Date
Arian
6f679abae0 sm8450-common: overlay: Drop TelecommResCommon which only sets default values
Change-Id: Ieee4af31a9f88564eeec87448465a04fc37f091d
2025-01-19 16:30:25 +01:00
Arian
3a71c3fceb sm8450-common: Update blobs from diting V816.0.10.0.ULFMIXM
Change-Id: I2bb3b90768f448aeaf37e3a5770fc3d080665e1d
2025-01-14 19:47:42 +01:00
Arian
b1900e57f5 sm8450-common: Add second wl2866d regulator module to load list
Change-Id: I489543a27cdff376a1c714832ec5b0f0525a3c32
2025-01-14 11:41:38 +01:00
Pc1598
089049fc06 sm8450-common: Load fpc1540 module
Change-Id: Ied5c93603d05c9422c9c27242ac7b583d28a4e15
2025-01-14 10:23:18 +01:00
Michael Bestas
cd27c4870a sm8450-common: Disable OMX service
Change-Id: I5381e098af64271f9d71c484262e1710e8fcacea
2025-01-14 10:22:26 +01:00
Michael Bestas
b5b02f1307 sm8450-common: sepolicy: Remove /sys/class/qcom-battery label
It's set globally now

Change-Id: Idccb51649fa72f6343534cdc4a951cd96909ff62
2025-01-14 10:19:55 +01:00
Arian
6bf2921b60 sm8450-common: Add missing 32-bit libvmmem
32-bit display parts require it:
01-07 18:15:00.608  1854  6236 E qdgralloc: Could not load libvmmem: dlopen failed: library "libvmmem.so" not found

Change-Id: I82fd02d02c9024765369703a2a7f3de8069aa59b
2025-01-07 19:59:36 +01:00
Arian
8f09755ba4 sm8450-common: udfps: Simplify display request ioctl struct
Change-Id: I99db6477dd6c14aab5e60bce841b48b68cd36b1d
2025-01-07 18:57:32 +01:00
Arian
bfb4f71ed5 sm8450-common: udfps: Update fod_finger_state node based on actual udfps state
Change-Id: I9f468457acfe373b9fdab7df7a9065905629263c
2025-01-07 18:57:32 +01:00
Arian
43a4efa61e fixup! sm8450-common: Do not manually build dependencies 2025-01-05 18:44:25 +01:00
Arian
9474c3c739 sm8450-common: sensors: Move to new xiaomi-touch
Change-Id: Ic64b3e927b51fb8ccc0d9b1be023fca749ac6a48
2024-12-29 13:39:43 +01:00
Arian
bf5798fa8f sm8450-common: udfps: Drop fod_press_status listening
Only the udfps sensor should listen for fod_press_status and udfpshandler
uses the regular methods called by frameworks then.

Change-Id: I9c8418b9fccbaff2e74d3db932f1af05a4e7aba3
2024-12-29 13:39:43 +01:00
Arian
db5f13b6ff sm8450-common: udfps: Compare against the aidl AcquiredInfo
Change-Id: I5b6eb5a4544373d71b89abc0e301126eb55e31d1
2024-12-28 20:53:43 +01:00
Nick Reuter
76046d4f74 sm8450-common: Address missing libbinder symbols in libwfdnative
_ZN7android6binder12atrace_beginEmPKc
_ZN7android6binder10atrace_endEm

Change-Id: I942d51721461dbbf9c8d0f2f32128529bb7480c3
2024-12-28 16:59:31 +01:00
Nick Reuter
5f326227d8 sm8450-common: Bump libwfdservice to android.media.audio.common.types-V4
Change-Id: I81060d8c73430a9598c676e18dc04e31a2f31c0c
2024-12-28 15:54:39 +01:00
Jens Reidel
dc0c4c2cec sm8450-common: Commonize fan53555 and stmvl53l5 modules
Change-Id: I02a27f18f59a4336d77d077fef7a80db5e7405c3
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-12-11 21:56:48 +01:00
Jens Reidel
7b715be9b5 sm8450-common: Update blobs from diting V816.0.9.0.ULFMIXM
Change-Id: I87bd76c40ea6982760b3044525f9d5ddfe96b592
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-12-10 18:58:27 +01:00
Arian
9c8f2725d0 sm8450-common: Commonize most kernel modules
Change-Id: Ic879ebe41c76db2df8c21a7fc0ab5dfe73a4a6bc
2024-12-05 23:21:32 +01:00
Arian
4877097d3f sm8450-common: overlay: Don't let any carrier default WFC mode to IMS Preferred
Qualcomm has added another WFC preference setting `IMS Preferred`
which is not supported in AOSP. If we let carriers default to this
setting, the AOSP settings app shows that WFC is disabled and
`Unexpected WFC mode value: 10` is logged. Even though the default
mode is still working fine, the user is unable to change to this
mode again once a different mode was selected. To fix this, remove
all default WFC mode settings with value "10" and let these carriers
default to "2" (`WiFi Preferred`, the default in AOSP) instead.

Leave the `carrier_wfc_supports_ims_preferred_bool` configs in place,
such that, in case the following patches are present in the system,
the user is still able to select the `IMS Preferred` mode in settings
manually.

097dacd55b
a451b1fd23
a79d737742
d8ff55888f#
a2beaccd8f

Additionally, enable the WFC mode settings for the affected carriers
which didn't enable them before such that the user can still prefer
cellular calls over vowifi without disabling vowifi completely.

Change-Id: Ie6b9f30da45450c43a465de1170ef11d1d4ba1ee
2024-11-13 14:04:44 +01:00
Arian
5e6dd23417 sm8450-common: Update blobs from diting V816.0.8.0.ULFMIXM
Change-Id: I8e61a915a29c26db1c053bb822139d55d2355431
2024-11-07 11:39:08 +01:00
LuK1337
d882486e9d sm8450-common: Use common lib_fixups
Change-Id: I862e547f3375184729eb1a909bb7d6f676d45dfe
2024-11-07 11:15:26 +01:00
Arian
bfcbdbd6bc sm8450-common: media: Drop android version check for netflix bsp property
Change-Id: I1ee7623776b604e5ab7901633e482299a41bdbcc
2024-10-26 13:59:24 +02:00
basamaryan
d6e5c3a63d sm8450-common: Move to Xiaomi fingerprint AIDL
Change-Id: I68dba7184034fd37454c7d32a065f041cb611625
2024-10-26 10:20:59 +02:00
Arian
c474a52936 sm8450-common: Allow gettid syscall for wfdhdcphalservice
10-25 15:22:18.582     1     1 I init    : starting service 'wfdhdcphalservice'...
10-25 15:22:18.595     1     1 I init    : ... started service 'wfdhdcphalservice' has pid 4702
10-25 15:22:16.536  4702  4702 E wfdhdcphal: wfdhdcphalservice starting...
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: failed to get path of fd 5: No such file or directory
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: allowing syscall: connect
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: allowing syscall: fcntl
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: allowing syscall: sendto
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: allowing syscall: socket
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: allowing syscall: writev
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: compile_file: <fd>(33): nonexistent syscall 'fstatat'
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: compile_file: <fd>(52): nonexistent syscall 'open'
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: compile_file: <fd>(53): nonexistent syscall 'ugetrlimit'
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: compile_file: <fd>(64): nonexistent syscall 'readlink'
10-25 15:22:16.536  4702  4702 W wfdhdcphalservice: libminijail[4702]: logging seccomp filter failures
10-25 15:22:16.538  4702  4702 E wfdhdcphalservice: libminijail[4702]: blocked syscall: gettid
10-25 15:22:18.622     1     1 I init    : Service 'wfdhdcphalservice' (pid 4702) received signal 31
10-25 15:22:18.623     1     1 I init    : Sending signal 9 to service 'wfdhdcphalservice' (pid 4702) process group...
10-25 15:22:18.623     1     1 I libprocessgroup: Removed cgroup /sys/fs/cgroup/uid_1000/pid_4702
10-25 15:22:18.623     1     1 E init    : process with updatable components 'wfdhdcphalservice' exited 4 times in 4 minutes
10-25 15:22:18.627     1     1 I init    : processing action (sys.init.updatable_crashing=1) from (/system/etc/init/flags_health_check.rc:10)
10-25 15:22:18.628     1     1 I init    : starting service 'exec 37 (/system/bin/flags_health_check UPDATABLE_CRASHING)'...
10-25 15:22:18.637     1     1 I init    : ... started service 'exec 37 (/system/bin/flags_health_check UPDATABLE_CRASHING)' has pid 4703
10-25 15:22:18.637     1     1 I init    : SVC_EXEC service 'exec 37 (/system/bin/flags_health_check UPDATABLE_CRASHING)' pid 4703 (uid 1000 gid 1000+0 context default) started; waiting...

Change-Id: I9ab6ca254a1e6509cfd9de36765496e875407fb0
2024-10-25 15:24:31 +02:00
Arian
c1c927570f sm8450-common: Switch to python extract-utils
Change-Id: I2bc74ab7331516a6e7958fd9238b0e7d2e66872c
2024-10-25 14:44:22 +02:00
LuK1337
162301fc91 sm8450-common: Shim WFD with libgui_shim/libinput_shim
Change-Id: I42bf06bc6b19942303031ef0147dafa6df127fe5
2024-10-24 23:05:04 +02:00
Michael Bestas
6c828f7c5d sm8450-common: Sync extract scripts with 22 templates
Change-Id: I7963ae050cfb193c5d0c2636da9c1e8f82bcdbdb
2024-10-24 22:50:32 +02:00
Arian
c10273a166 sm8450-common: Allow setsockopt syscall for qcom c2audio
```
$ strace -f vendor/bin/hw/vendor.qti.media.c2audio@1.0-service
[...]
[pid  5194] socket(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 13
[pid  5194] setsockopt(13, SOL_SOCKET, SO_SNDTIMEO, "\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 13
[pid  5194] --- SIGSYS {si_signo=SIGSYS, si_code=SYS_SECCOMP, si_call_addr=0x7a905a365c, si_syscall=__NR_setsockopt, si_arch=AUDIT_ARCH_AARCH64} ---
```

Change-Id: Ifa0420883cbf663f8c7576798b1f35031f660f54
2024-10-24 22:50:32 +02:00
Arian
2313085cfe sm8450-common: Allow gettid syscall for atfwd@2.0
09-18 17:27:17.797     1     1 I init    : ... started service 'vendor.atfwd' has pid 6264
09-18 17:27:17.805  6264  6264 W ATFWD-daemon: libminijail[6264]: failed to get path of fd 3: No such file or directory
09-18 17:27:17.805  6264  6264 W ATFWD-daemon: libminijail[6264]: allowing syscall: connect
09-18 17:27:17.805  6264  6264 W ATFWD-daemon: libminijail[6264]: allowing syscall: fcntl
09-18 17:27:17.805  6264  6264 W ATFWD-daemon: libminijail[6264]: allowing syscall: sendto
09-18 17:27:17.805  6264  6264 W ATFWD-daemon: libminijail[6264]: allowing syscall: socket
09-18 17:27:17.805  6264  6264 W ATFWD-daemon: libminijail[6264]: allowing syscall: writev
09-18 17:27:17.806  6264  6264 W ATFWD-daemon: libminijail[6264]: logging seccomp filter failures
09-18 17:27:17.808  6264  6264 E ATFWD-daemon: libminijail[6264]: blocked syscall: gettid
09-18 17:27:17.826     1     1 I init    : Service 'vendor.atfwd' (pid 6264) received signal 31
09-18 17:27:17.826     1     1 I init    : Sending signal 9 to service 'vendor.atfwd' (pid 6264) process group...

Change-Id: I9a556785b9bbda0f08974ad2b367c77c649ee01b
2024-10-24 22:50:32 +02:00
Arian
4e6162aed7 sm8450-common: Use libhidlbase_shim for vendor.libdpmframework
Change-Id: Iefe50b82b5b13bbdee10819a0c60c14240fab7ce
2024-10-24 22:50:32 +02:00
Michael Bestas
e3a18bd853 sm8450-common: Switch to AIDL USB HALs
Change-Id: I70f6a4e57eef577d86987bfae44f381a4f107624
2024-10-24 22:50:32 +02:00
Michael Bestas
954da32897 sm8450-common: Switch to AIDL thermal HAL
Change-Id: I6ae621194044ab66fad69b9ef997b3b347bf6120
2024-10-24 22:50:32 +02:00
Arian
73ce1b7bba sm8450-common: Add missing xiaomi ecc list to vendor
Change-Id: If442b92d42b518a0119c0ac6151069ff7f6e15f9
2024-10-24 22:50:10 +02:00
Arian
2fcd0d44fd sm8450-common: Import missing AtFwd2 app
Change-Id: Ie1d25e22e3b06aa586b0f3e7e8c2045933e2adf7
2024-10-23 10:55:28 +02:00
Bruno Martins
2711cd0ffb sm8450-common: Work around using prebuilt audio primary HAL
Since audio.primary.taro is no longer present in PRODUCT_PACKAGES,
the vintf files are not copied anymore, so account for that and merge
to the manifest instead.

Change-Id: I71b091950e5ecc810779d3ab51e99807d6648d0b
2024-10-17 11:08:26 +02:00
Arian
86baef3eba sm8450-common: Use patchelf 0.17.2 as the default patchelf version
This will also be used for the utility functions like FIX_SONAME

Change-Id: I0b2ac5b601d24c5cc3626ca41d2fad0e662ac72f
2024-10-13 16:01:05 +02:00
Arian
40b7625455 sm8450-common: Kill touch_report for good
Change-Id: I455ac88ab2fe0aa3616464f0689d651a7508f4f1
2024-10-06 17:47:23 +02:00
Arian
f88a4d2569 sm8450-common: Use extract-utils FIX_SONAME helper
Change-Id: I84a38b3a253e0bafbd2f44c385dfee05157e01e9
2024-10-06 12:50:26 +02:00
Arian
6a75b5eba7 sm8450-common: qcril_database: Add migration to disable redir_party_num
Caused incoming caller number not being parsed correctly by Phone app on
VoLTE and VoWiFi. No idea why Xiaomi enabled this ancient prop.

Co-authored-by: Andrzej Perczak <linux@andrzejperczak.com>
Change-Id: I5a9c30c3f0e42c7816d3dc7eebb73e97cdc0fed8
2024-10-06 12:46:31 +02:00
Arian
9c5a91d22e sm8450-common: qcril_database: Add missing migration for db 15.0
The shipped qcrilNr.db on diting miui V816.0.7.0.ULFMIXM has version 15.0
and sets persist.vendor.radio.unicode_op_names to true. However xiaomi
missed to include the migration to vendor, leading to OTA updates missing
the new change. Add the migration based on observing the stock db changes.

Change-Id: Iced27d8d8ea02594dd4c26a5ed6b8c51b4b61f20
2024-10-06 12:46:31 +02:00
Arian
3becfcd8cf sm8450-common: Import qcril_database and generate the db at build time
Imported from diting V816.0.7.0.ULFMIXM

Change-Id: I7798bd3c33d3b6f801e8f48a06fe994947715db9
2024-10-06 12:46:15 +02:00
Arian
2cdae336ba sm8450-common: Move qcom-system-daemon seccomp_policy to the proper section
Change-Id: Iec44788ae2089e1dda9e09d641a8a1d271992f6e
2024-10-06 10:28:25 +02:00
Arian
d6bbf893e4 sm8450-common: Drop unused qapeservice seccomp_policy
Change-Id: I7945dde5ce3533932dffdcda840017a34eb04df6
2024-10-06 10:27:32 +02:00
Arian
dc53442771 sm8450-common: Drop 32bit c2audio seccomp policy
Change-Id: I3b342f43ed594bca8425cc05c4c1b96807cf5e80
2024-10-06 10:27:07 +02:00
Arian
c9907b44ff sm8450-common: Move ELF check comments to top of proprietary-files.txt
Change-Id: Ibe39a9b1534e8c1a911b8ef5c0859aa7a9905481
2024-09-30 10:09:21 +02:00
Michael Bestas
f9aa9445d7 sm8450-common: Enable ELF checks for libwfdmmsrc_proprietary
Change-Id: I7eecffc5481b44451094a6816e50436ad084db7a
2024-09-30 10:09:21 +02:00
codeworkx
f310e063fc sm8450-common: wifi-display: Add WfdCommon to boot jars
Change-Id: I2465b9509d8514f594a62160899a50c23f263b7f
2024-09-30 10:09:21 +02:00
Michael Bestas
10ad3aeb45 sm8450-common: extract-files improvements
Change-Id: I517698ca3b5a93e10a5b167417631c7f8d0ab9e2
2024-09-30 10:09:21 +02:00
Manish Kushwaha
0fa9bde971 sm8450-common: Migrate sensor HAL to AIDL interface
Bug: 247478991
Test: tested on-device (P23) ab/P46941077
Test: `sensor_test -ahal list` and `sensor_test list`
Test: `sensor_test -ahal sample -s0` and `sensor_test sample -s0`

Change-Id: I40f6ab6b7780c53cd638a1f77c95f6c324dc2d15
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2024-09-29 20:14:23 +02:00
Arian
473d47f403 sm8450-common: Update blobs from diting V816.0.7.0.ULFMIXM
Change-Id: If775227bb482d816248711ba8fbd15472cd724f3
2024-09-29 20:01:13 +02:00