Commit Graph

554 Commits

Author SHA1 Message Date
Jens Reidel
b4168df24a 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
74de1a91a8 sm8450-common: Commonize most kernel modules
Change-Id: Ic879ebe41c76db2df8c21a7fc0ab5dfe73a4a6bc
2024-12-05 23:21:32 +01:00
Arian
9686ce8f6d 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
7bcd98dbb2 sm8450-common: Update blobs from diting V816.0.8.0.ULFMIXM
Change-Id: I8e61a915a29c26db1c053bb822139d55d2355431
2024-11-07 11:39:08 +01:00
LuK1337
07a6229b63 sm8450-common: Use common lib_fixups
Change-Id: I862e547f3375184729eb1a909bb7d6f676d45dfe
2024-11-07 11:15:26 +01:00
Arian
d1549b7943 sm8450-common: media: Drop android version check for netflix bsp property
Change-Id: I1ee7623776b604e5ab7901633e482299a41bdbcc
2024-10-26 13:59:24 +02:00
basamaryan
90eeb76192 sm8450-common: Move to Xiaomi fingerprint AIDL
Change-Id: I68dba7184034fd37454c7d32a065f041cb611625
2024-10-26 10:20:59 +02:00
Arian
90a814cba5 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
a5c1a7a463 sm8450-common: Switch to python extract-utils
Change-Id: I2bc74ab7331516a6e7958fd9238b0e7d2e66872c
2024-10-25 14:44:22 +02:00
LuK1337
56c279284e sm8450-common: Shim WFD with libgui_shim/libinput_shim
Change-Id: I42bf06bc6b19942303031ef0147dafa6df127fe5
2024-10-24 23:05:04 +02:00
Michael Bestas
831d70d678 sm8450-common: Sync extract scripts with 22 templates
Change-Id: I7963ae050cfb193c5d0c2636da9c1e8f82bcdbdb
2024-10-24 22:50:32 +02:00
Arian
495e3ee0cc 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
efa789fd31 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
cf8ad00c4b sm8450-common: Use libhidlbase_shim for vendor.libdpmframework
Change-Id: Iefe50b82b5b13bbdee10819a0c60c14240fab7ce
2024-10-24 22:50:32 +02:00
Michael Bestas
ad4f54a9e9 sm8450-common: Switch to AIDL USB HALs
Change-Id: I70f6a4e57eef577d86987bfae44f381a4f107624
2024-10-24 22:50:32 +02:00
Michael Bestas
ff4c728cc6 sm8450-common: Switch to AIDL thermal HAL
Change-Id: I6ae621194044ab66fad69b9ef997b3b347bf6120
2024-10-24 22:50:32 +02:00
Arian
26fb81fa37 sm8450-common: Add missing xiaomi ecc list to vendor
Change-Id: If442b92d42b518a0119c0ac6151069ff7f6e15f9
2024-10-24 22:50:10 +02:00
Arian
9da3b9a3e2 sm8450-common: Import missing AtFwd2 app
Change-Id: Ie1d25e22e3b06aa586b0f3e7e8c2045933e2adf7
2024-10-23 10:55:28 +02:00
Bruno Martins
e7d5bb5ad4 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
d7ec52bc4b 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
63248dc54b sm8450-common: Kill touch_report for good
Change-Id: I455ac88ab2fe0aa3616464f0689d651a7508f4f1
2024-10-06 17:47:23 +02:00
Arian
bd9ac6e510 sm8450-common: Use extract-utils FIX_SONAME helper
Change-Id: I84a38b3a253e0bafbd2f44c385dfee05157e01e9
2024-10-06 12:50:26 +02:00
Arian
35d9a69aa0 Revert "sm8450-common: Disable redir_party_num"
Reason for revert: The migrations should not be modified retrospectively!

This reverts commit e0ab3da8d5.

Change-Id: I300174770d95cf0e019fc3ab5f6076b5b08990df
2025-03-25 17:35:58 +01: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
Kevin Chyn
1a10435e07 sm8450-common: Add fingerprint configuration to overlay
The framework was changed in Android R to require explicit authenticator registration.
This change allows apps to continue to use the fingerprint sensor.

Bug: 147445115

Test: Builds
Change-Id: Id3385edc784b2053c8b54ec3153728f4e6e22a45
2024-09-08 16:31:44 +02:00
Steve Kondik
c10b3be5b3 sm8450-common: Remove hw_acc effect
* Not used.

Change-Id: I68882a0435b8459031ae31ecc46af6bb62eacf17
2024-09-06 15:20:32 +02:00
Jens Reidel
38dfb43fbd sm8450-common: sensors: Add more padding to oem_msg
Change-Id: Id60a1b5a9c3e39cdf8316ca5f94ca43902cbf917
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-09-03 20:33:50 +02:00
Arian
bedc50155e sm8450-common: sepolicy: Drop nfc rules which are handled by sepolicy_vndr already
Change-Id: Ifa04e62bc2cb5a9b24cdaf5c6de92edda4613525
2024-09-01 18:22:12 +02:00
Arian
5ad8f0c7cb sm8450-common: sepolicy: Remove xiaomi specific gnss rules
We don't use stock GNSS stock anymore, thus these are not necessary anymore

Change-Id: I730e5101ea69e2c9d456d53a82c30433f916706c
2024-09-01 18:22:12 +02:00
SGCMarkus
9a8f56e9ff sm8450-common: Unset BOARD_USERDATAIMAGE_PARTITION_SIZE
This not only saves a lot of build time when building with
TARGET_USERIMAGES_SPARSE_EXT_DISABLED and/or
TARGET_USERIMAGES_SPARSE_F2FS_DISABLED which is required
on A14, but also removes the need for the build system to
temporarily create a 40+GB userdata image.
Which means that less free space is required to start the
build.

Change-Id: Ibf48e7cdf566a4653e85352a79170b354d917234
2024-08-30 00:54:37 +02:00
Arian
de62713972 sm8450-common: udfps: Drop leftover reading of fp vendor
Change-Id: I6c4be210f8f7032192d910e47eca2caa767e7fe8
2024-08-29 22:00:24 +02:00
Arian
492920b846 sm8450-common: sensors: Add v2 suffix to sensors.xiaomi
Change-Id: Ie6ef0e5fd4653eae298a3455edf14e05508e1cfd
2024-08-29 21:06:27 +02:00
Michael Bestas
2e1be78dbd sm8450-common: Sync extract scripts with templates
Change-Id: I98a36854c5a0c0390592911bb2558b34eff77efc
2024-08-29 20:13:14 +02:00
Arian
34bf4cba7b sm8450-common: Drop modemManager blobs
Change-Id: Ic0d8eff53db30254da2c7cbfab0db4ade1fb1bc8
2024-08-29 19:24:23 +02:00
Arian
b72d2bef9e sm8450-common: Drop perf lm blobs
Change-Id: I38a0031ea3f325c67277ed34341e532cf4ff060b
2024-08-29 19:24:23 +02:00
Arian
7da67c1b9c sm8450-common: Drop trusted user interface blobs
Change-Id: I6f52fb63b4ca222eacbe49ad5debfd0624a03e07
2024-08-29 19:24:23 +02:00
Arian
37e589bc58 sm8450-common: Drop qguard blobs
Change-Id: Ie2eaa48e0a7fc0195dd35e2a4d5a7122cd73bbd7
2024-08-29 19:24:23 +02:00
Arian
70aea26af1 sm8450-common: Drop qesk blobs
Change-Id: Ib5e64bdde9fea4ff868ee2222ae1064eb3ef3d48
2024-08-29 19:24:23 +02:00
Arian
8b048f66e1 sm8450-common: Drop psiclient blobs
Change-Id: I81346135d961b772c5981ee818f65f8ccedb7ceb
2024-08-29 19:24:20 +02:00
Arian
d9c2ff2e9b sm8450-common: Drop gms premier_tier
Change-Id: I064b3098bf53fe406c0aca3cf16fc54dfc5f2516
2024-08-29 19:24:04 +02:00
Arian
dfbabc034b sm8450-common: Drop embmssl blobs
Change-Id: I8fadba34ce12ac8371e116404249c7ecd9338e7e
2024-08-29 19:24:04 +02:00
Arian
5bf536cc39 sm8450-common: Drop eid blobs
Change-Id: If78a25fdc4179b27e3b9ce8f2d925389bb0299c4
2024-08-29 19:24:04 +02:00