Commit Graph

583 Commits

Author SHA1 Message Date
Arian
0439ed5c48 sm8450-common: rootdir: Drop platform specific setup from init.qcom.early_boot.sh
Change-Id: Ie07521b41d5d1a9652af325ad96ab29f5dd89230
2025-03-14 10:46:48 +01:00
Arian
c4ce48c269 sm8450-common: rootdir: Drop platform specific setup from init.qcom.post_boot.sh
This did nothing except setting persist.vendor.mmi.misc_dev_path
and writing build image information to /sys/devices/soc0.

`zeus:/ # bash -x /vendor/bin/init.qcom.post_boot.sh
++ getprop ro.board.platform
+ target=taro
++ cat /proc/sys/kernel/osrelease
+ KernelVersionStr=5.10.230-gki-g4e1607caf9af
+ KernelVersionS=10
+ KernelVersionA=5
+ KernelVersionB=10
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ chown -h system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
chown: /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate: No such file or directory
+ chown -h system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
chown: /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor: No such file or directory
+ chown -h system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
chown: /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy: No such file or directory
++ getprop vendor.boot.emmc
+ emmc_boot=
+ case "$emmc_boot" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ '[' -f /data/prebuilt/AdrenoTest.apk ']'
+ '[' -f /data/prebuilt/SWE_AndroidBrowser.apk ']'
+ case "$target" in
+ '[' -f /sys/devices/soc0/select_image ']'
+ image_version=10:
++ getprop ro.build.id
+ image_version+=AP4A.250105.002
+ image_version+=:
++ getprop ro.build.version.incremental
+ image_version+=1738747703
++ getprop ro.product.name
+ image_variant=zeus
+ image_variant+=-
++ getprop ro.build.type
+ image_variant+=userdebug
++ getprop ro.build.version.codename
+ oem_version=REL
+ echo 10
+ echo 10:AP4A.250105.002:1738747703
+ echo zeus-userdebug
+ echo REL
++ getprop persist.vendor.console.silent.config
+ console_config=
+ case "$console_config" in
+ echo 'Enable console config to '
Enable console config to
++ ls -l /dev/block/bootdevice/by-name/misc
+ misc_link='lrwxrwxrwx 1 root root 16 1970-11-04 04:28 /dev/block/bootdevice/by-name/misc -> /dev/block/sda11'
+ real_path=' /dev/block/sda11'
+ setprop persist.vendor.mmi.misc_dev_path /dev/block/sda11`

Change-Id: I20177ec77805feed90c019a6390cbad03f462577
2025-03-14 10:46:48 +01:00
Arian
2c3f5dfa7a sm8450-common: rootdir: Drop useless init.qcom.class_core.sh
This did nothing for us:
`zeus:/ # bash -x /vendor/bin/init.qcom.class_core.sh
++ getprop ro.board.platform
+ target=taro
+ '[' -f /sys/devices/soc0/hw_platform ']'
++ cat /sys/devices/soc0/hw_platform
+ soc_hwplatform=MTP
+ '[' -f /sys/devices/soc0/soc_id ']'
++ cat /sys/devices/soc0/soc_id
+ soc_hwid=457
+ '[' -f /sys/devices/soc0/platform_version ']'
++ cat /sys/devices/soc0/platform_version
+ soc_hwver=65536
+ case "$target" in`

Change-Id: I6e0f4b123387582975b15c0c39272877909739bb
2025-03-14 10:46:48 +01:00
LuK1337
035ee2950a sm8450-common: Unmount /firmware after fastbootd starts
Fixes `fastboot flash modem modem.img`.

Change-Id: I17e2183f666979c94c3f5b1affd660bfd60df15d
2025-03-14 10:46:13 +01:00
Yan Yan
dfe245d078 sm8450-common: Add feature flag for IPSEC_TUNNEL_MIGRATION
This commit adds the IPSEC_TUNNEL_MIGRATION feature flag,
with XFRM_MIGRATE used as the implementation

Bug: 273379472
Test: build, flash and verify with "adb shell pm list features"
Test: atest IpSecManagerTunnelTest
Change-Id: Id2ee3e65183e32ea63f6251ba921e1e4c6b09ed0
2025-03-14 10:45:44 +01:00
Bruno Martins
c28e24a6fa sm8450-common: sepolicy: Remove duplicate snxxx AIDL rules
These are now part of qcom/sepolicy_vndr.

Change-Id: I709c29e827d51e22507027862a56cca1efcdc984
2025-03-14 10:41:43 +01:00
Arian
d361023121 sm8450-common: Build and configure xiaomi touch hal
Change-Id: I01cb169d6f9609985a9eb70ba86b1497bd58aac1
2025-03-14 10:39:44 +01:00
Michael Bestas
06a5e2beed sm8450-common: Migrate mount point creation out of Android.mk
Change-Id: Id5986b8a740e45f864eecdd2bd82d9455f128d6b
2025-01-19 17:03:48 +01:00
Arian
425ed40e12 sm8450-common: Update display, GPS and QCC blobs from ingot UKQ1.240227.165
Change-Id: I6eb2b234e071fe5f3f0bef605d6b22aba250b74d
2025-01-19 17:03:48 +01:00
Michael Bestas
fb97277571 sm8450-common: gps: Convert remaining Android.mk to bp
Change-Id: I75e6af92795fe755a48557aa06106406b14c6750
2025-01-19 17:03:48 +01:00
Michael Bestas
8514a7ba23 sm8450-common: gps: Remove unused implementations
Change-Id: I079edea073f3ae43eaebbf04712e99ec1a931b10
2025-01-19 17:03:48 +01:00
Arian
32b643fecc sm8450-common: overlay: Update wifi overlay comments from AOSP
Change-Id: I0c04f497abb33e2ebd1bd4b3c30cc8956197006a
2025-01-19 17:03:38 +01:00
Arian
a5eb029a97 sm8450-common: overlay: Remove backup calling strings
AOSP killed them in [1].

[1]: 30b81d637e

Change-Id: Ie1d5d5ac76425cf49b834e6f578f6a6bde640d4e
2025-01-19 16:30:25 +01:00
Arian
e48676c6b0 sm8450-common: overlay: Drop TelecommResCommon which only sets default values
Change-Id: Ieee4af31a9f88564eeec87448465a04fc37f091d
2025-01-19 16:30:25 +01:00
Arian
ece7546c1c sm8450-common: Update blobs from diting V816.0.10.0.ULFMIXM
Change-Id: I2bb3b90768f448aeaf37e3a5770fc3d080665e1d
2025-01-14 19:47:42 +01:00
Arian
d50f90c627 sm8450-common: Add second wl2866d regulator module to load list
Change-Id: I489543a27cdff376a1c714832ec5b0f0525a3c32
2025-01-14 11:41:38 +01:00
Pc1598
32cac3f919 sm8450-common: Load fpc1540 module
Change-Id: Ied5c93603d05c9422c9c27242ac7b583d28a4e15
2025-01-14 10:23:18 +01:00
Michael Bestas
b73b5581fb sm8450-common: Disable OMX service
Change-Id: I5381e098af64271f9d71c484262e1710e8fcacea
2025-01-14 10:22:26 +01:00
Michael Bestas
f63da9d96b 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
78d1f6a685 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
2d4890cddc sm8450-common: udfps: Simplify display request ioctl struct
Change-Id: I99db6477dd6c14aab5e60bce841b48b68cd36b1d
2025-01-07 18:57:32 +01:00
Arian
e5a374590f 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
b12c61816a fixup! sm8450-common: Do not manually build dependencies 2025-01-05 18:44:25 +01:00
Arian
9e2c96b9d9 sm8450-common: sensors: Move to new xiaomi-touch
Change-Id: Ic64b3e927b51fb8ccc0d9b1be023fca749ac6a48
2024-12-29 13:39:43 +01:00
Arian
a38c722ccd 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
0350379ac1 sm8450-common: udfps: Compare against the aidl AcquiredInfo
Change-Id: I5b6eb5a4544373d71b89abc0e301126eb55e31d1
2024-12-28 20:53:43 +01:00
Nick Reuter
8e260a8be6 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
846fecff26 sm8450-common: Bump libwfdservice to android.media.audio.common.types-V4
Change-Id: I81060d8c73430a9598c676e18dc04e31a2f31c0c
2024-12-28 15:54:39 +01:00
Jens Reidel
181e56cef6 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
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