Commit Graph

603 Commits

Author SHA1 Message Date
Arian
d01a75fc1c sm8450-common: Update blobs from cupid OS2.0.1.0.VLCMIXM
Change-Id: I313f8c609b57fb23f456b1ce667ffaa2dcd4e82c
2025-04-07 17:44:12 +02:00
Arian
55bc269892 sm8450-common: Update blobs from cupid V816.0.10.0.ULCMIXM
Change-Id: I47ee63fd391f01a6eb8e8e9f16354bd94fefe456
2025-04-06 13:33:03 +01:00
LuK1337
ca8c10aea2 sm8450-common: Add libwfdservice_shim for WFD
e69a5be2449122f90220151f9d01ace15221facf | AOSP in system/hardware/interfaces
broke the ABI ;'(

Change-Id: I3badfc56581a6bf3de5d7e996fa51f59eb164aae
2025-04-06 13:32:53 +01:00
Michael Bestas
b88b0f4e04 sm8450-common: Enable ELF checks for libwpa_client dependent libs
Change-Id: I490df02b68da4b9a7088a239672a1dcace66d270
2025-04-03 19:25:13 +02:00
basamaryan
8859f26471 sm8450-common: Don't explicitly set as an AB target
AB is the default

Change-Id: I93346d29da38405bf571f138ae905d67966c1f9c
2025-04-03 19:19:58 +02:00
feiyuchen
58a89634b7 sm8450-common: rootdir: Add "system" group to Audio HAL
needed for using EdgeTpu.
Due to this code goes to AOSP, please see CL details and test result in
b/289097511#comment24.

Bug: 289097511
Change-Id: Ie0969309346cd85b4bb8ac71860a529710c73345
2025-04-03 19:19:15 +02:00
Arian
ee556f9c63 sm8450-common: Update blobs from diting V816.0.12.0.ULFMIXM
Change-Id: I2331e71bad9f7c8c0e3a53993343b2e7dedbee4a
2025-03-25 18:08:00 +01:00
Anand S
86c9cc3f3b sm8450-common: qcril-database: Add migration to turn off poweron_opt
If this value 1 it breaks SMS receiving.

Change-Id: I7f56ecaac51abb6525c6022d92eac1c285ab0688
2025-03-25 17:57:10 +01:00
Arian
6bd08deb33 sm8450-common: qcril-database: Add migration to turn off 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
2025-03-25 17:47:36 +01:00
Arian
8669740561 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
2025-03-25 17:47:07 +01:00
Arian
a9102a09f5 sm8450-common: Generate qcrilNr.db during build
Change-Id: I1f3425713b9b5b1cc7185bc94124b9f01efe3abb
2025-03-25 17:39:15 +01:00
Arian
b6d0f0fb2b sm8450-common: nonui-notifier: Switch to shared_ptr to avoid memory leaks
Change-Id: I950bd5f6abd1dd78093864f5813ab22f0e093ded
2025-03-25 17:26:37 +01:00
Arian
9aa22d6c2a sm8450-common: udfps: Switch to unique fd and shared pointer to avoid memory leaks
Change-Id: I746bfd8dbbb20a30ff173ed50b8e0ffaee73bda2
2025-03-25 17:22:21 +01:00
Nolen Johnson
ebc72b42ff sm8450-common: Drop PRODUCT_PACKAGES_DEBUG entry
* unnecessary

Change-Id: I22ae2c744ec55168b8367c826e55110e7534466e
2025-03-14 10:59:19 +01:00
dianlujitao
50649469cd sm8450-common: move to aidl bootctrl hal
Change-Id: I50fd09148097f0cda03c1a105340a3fd5f55ce8d
2025-03-14 10:59:00 +01:00
Cosmin Tanislav
8462c095d9 sm8450-common: Build audio blobs from source
Change-Id: Ia2d82e4252fead1dbd6b3267abc83b161b0b5712
2025-03-14 10:50:11 +01:00
Arian
22a43f9447 Revert "sm8450-common: Work around using prebuilt audio primary HAL"
This reverts commit 2711cd0ffb.

Change-Id: Ia5725d3f3a7d2c15436e26d8fd8b05248e5c3128
2025-03-14 10:49:30 +01:00
Arian
edd428da2f sm8450-common: Drop shoebox soundfx library
Change-Id: Iaaa0e3fd637a15e231b60d7c6ea13370bf3ec272
2025-03-14 10:49:19 +01:00
Jaideep Sharma
12ef3a32fe sm8450-common: configs: Remove shoebox effect
This effect is no longer supported, hence removing it.

Change-Id: I9636c69a8257dd453193cb0f0f7087e2bb9dd6d6
2025-03-14 10:46:48 +01:00
Arian
3dd2e7eb74 sm8450-common: rootdir: Drop platform specific setup from init.qcom.sh
Change-Id: I4c2298b7c110d3a4b9fc8530e8197ead75a02ff6
2025-03-14 10:46:48 +01:00
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