Commit Graph

78 Commits

Author SHA1 Message Date
Michael Bestas
7dc92aba67 sm6150-common: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
2024-06-17 12:23:25 +02:00
Bruno Martins
22ae2ff2f8 sm6150-common: Use common libqti-perfd-client and power-libperfmgr
Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd
2024-05-19 18:07:53 +02:00
basamaryan
2a17de6423
sm6150-common: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-04-10 13:26:48 -04:00
Michael Bestas
f531fce60d
sm6150-common: Switch to android.hardware.usb@1.3-service.dual_role_usb
Change-Id: Ibd14f7d31dfaf41e040302eda3bc49f351deb618
2024-04-10 13:26:48 -04:00
Michael Bestas
9202e79a7a
sm6150-common: Build recovery QTI health AIDL service
We have a recovery partition.

Change-Id: I10841b26feea3c214349a20b2eedec74924f993a
2024-04-10 13:26:46 -04:00
Bruno Martins
53d51eceb1
sm6150-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-04-10 13:26:46 -04:00
LuK1337
d58ad40aa3
sm6150-common: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2024-04-10 13:26:45 -04:00
Krzysztof Kosiński
7c273239a4
sm6150-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-04-10 13:26:45 -04:00
Gabriel Biren
6885f726e2
sm6150-common: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2024-04-10 13:26:45 -04:00
Josh Wu
6735f03614
sm6150-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2024-04-10 13:26:45 -04:00
Tim Zimmermann
0e2890fafe sm6150-common: Inherit non_ab_device.mk
* This is required to build applypatch for updating recovery

Change-Id: I38053691f7724b5d6c30159c410d5d04ac136180
2023-12-15 14:06:36 +01:00
Daniel Rosenberg
8563c5735c sm6150-common: Enable casefolding support on userdata
This enables casefolding, which is required for removal of sdcardfs.

Test: Wipe data and boot. lsattr /data/media, check for +F
Bug: 138322712
Change-Id: I020aa6bb9c121e7bda83c07bc9fb37dcfa26702c
2023-08-21 19:38:38 +02:00
Michael Bestas
630f539308 sm6150-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-08-20 18:47:33 +02:00
Arian
da59885981 sm6150-common: rootdir: Import dynamic non-ab fstabs from LA.UM.9.1.r1-13500-SMxxx0.QSSI13.0
Change-Id: Ib54d1fa04bbc57ec432c0e21cc90d04051321564
2023-08-20 18:46:58 +02:00
Alessandro Astone
187d4ed71c sm6150-common: Build and enable fastbootd
Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
2023-08-20 18:46:58 +02:00
Arian
e786690216 sm6150-common: Commonize dynamic partitions
Change-Id: If754f1d40d5dd7488a0137fa90d82dce89bbc1dd
2023-08-20 18:46:58 +02:00
Lucchetto
d1c9828f55 sm6150-common: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
bb60b16ec9 sm6150-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
2023-06-04 10:55:32 +02:00
Sebastiano Barezzi
5ef61b13a0 sm6150-common: Go away Megvii
* Nuke Megvii proprietary files and build stub ones from hardware/xiaomi

Change-Id: I53f8f0897b25517741a06c5962c02fe8fda61072
2023-05-18 12:52:52 +02:00
Alexander Koskovich
aee39d4741 sm6150-common: Move ueventd.qcom.rc to /vendor/etc.
* This is the preferred location as of Android 12.

Change-Id: I8c7d2230281b6d8da802bf10f88461289849acaf
2023-01-27 01:32:59 +00:00
Alexander Koskovich
185b3de9b3 sm6150-common: Update telephony package list to LA.QSSI.12.0.r1-05600-qssi.0
Change-Id: Id6fdabd9d5e0df6d23a982e0e39e06a8acff67ef
2023-01-27 01:32:59 +00:00
Hridya Valsaraju
b15c927d19 sm6150-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-01-27 01:32:59 +00:00
Robert Shih
552cdd17f1 sm6150-common: Enable AIDL DRM HALs
Bug: 219538389
Test: atest GtsMediaTestCases
Change-Id: Iaf321aabf7f0ef3d86c518982781d95c4a648506
2023-01-27 01:32:59 +00:00
basamaryan
ec6b1f72bb sm6150-common: Build DRM 1.4 to vendor
Change-Id: I1b642a1b0bc032f1e7f174bd072a485a20533fba
2023-01-27 01:32:59 +00:00
Michael Bestas
f36bb4282b sm6150-common: Move qti_whitelist.xml to /system_ext
Change-Id: Id8617513cfd686b3f6888a89c1b1db196acfb476
2023-01-27 01:32:59 +00:00
Bruno Martins
c86cfcb00b sm6150-common: Deduplicate handheld_core_hardware.xml copy rule
Since Android 10 that this is already done while inheriting from
full_base_telephony.mk.

Change-Id: If533fbf95a9cf9798ddba24955a624d26f550d62
2023-01-27 01:32:59 +00:00
Bruno Martins
53b6eec2be sm6150-common: Drop component overrides
This is no longer needed as of Android 13.

Change-Id: I38435c47c8781678f82014decbbae40dcab0a07b
2023-01-27 01:32:59 +00:00
Jiakai Zhang
c027a3e451 sm6150-common: Preopt SystemUI for AOSP builds.
Bug: 232860596
Test: See no dex2oat invocation on the first boot.
Change-Id: Icc38efb4b702b518caa22a3abfc7c04d6ba1ac2a
2022-08-19 17:28:00 +02:00
Arian
a2af0b073c sm6150-common: Drop audio.a2dp.default
Change-Id: I7b72116797a2690f6b3c4f13b4edacf57fe937e5
2022-08-18 14:32:31 +02:00
Arian
e0b57d8fa6 sm6150-common: Update blobs from sweet V13.0.8.0.SKFMIXM
Change-Id: Icd49e5186f0385d412d0bdc59e0956a09298f4bd
2022-07-13 17:54:03 +02:00
Arian
b09191563e sm6150-common: media: Drop media_codecs_c2.xml
Change-Id: Ic4f7e078538d6c362d07669d77ed0083528e25f1
2022-06-28 00:41:07 +02:00
Arvind Kumar
57d5f1f1d4 sm6150-common: Set soc properties
Set soc model and manufacturer properties

Change-Id: Ieee34b7bfab87b241abc5ed3318b46a5c6f93456
2022-06-28 00:41:07 +02:00
Bruno Martins
cc3ba5c9c2 sm6150-common: Move to common fingerprint HIDL
Change-Id: I7cb0a45c865d9dbfd800b1d633f8d5ae613bb1b9
2022-06-28 00:41:07 +02:00
Bruno Martins
c6daece9b1 sm6150-common: Build opensource soundtrigger HAL
Change-Id: I956d53a67841a9e1e296de6b73f08ef2efac7470
2022-06-28 00:41:07 +02:00
Arian
b3bb71aebc sm6150-common: Add gnss seccomp_policy
Change-Id: Iab89aaa86ccc69b90d0e16cdb5c02e8533ab94c2
2022-06-28 00:21:36 +02:00
Marc Bourgoin
d5d80a5347 sm6150-common: Drop QCOM WFD
Change-Id: I3dd591444dc54ebe3a32e0385cbfc3db6bfc5e1f
2022-06-22 16:23:58 +02:00
Timi Rautamäki
b112b01134 sm6150-common: Drop Snap
It's not included anymore since LineageOS 19

Change-Id: Ie3f908234cf7a3d94d33ad0e9d170d3738bb9752
2022-03-17 00:14:02 +01:00
Arian
3cf7b626a4 sm6150-common: fingerprint: Conditionally implement UDFPS
hardware/fingerprint.h is imported from android-12.0.0_r1.
The xiaomi fingerprint extension command was added to the
fingerprint_device struct and it was clang-formatted.

Change-Id: I5c5f876eb47a558059a2423ca5f6cc75afaf3e1d
2021-12-29 10:16:45 +00:00
Arian
565809d0b5 Revert "sm6150-common: fingerprint: Allow to build without fingerprintextension"
This reverts commit a8c1391091.

Change-Id: I78244b2491b8ba824907cf1cb056c2f26bffbc72
2021-12-29 10:13:58 +00:00
Edwin Wong
81eed3a59a sm6150-common: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I106a727f2f29bf5472484402b2801a630b0d6301
2021-12-29 10:12:43 +00:00
Arian
d0f9f39f19 sm6150-common: Provide bluetooth and gatekeeper interfaces on vendor
Change-Id: I482503cafaab16d50241ad90b1f51e882727c6f2
2021-12-29 10:12:06 +00:00
Pavel Dubrova
dd3827764f sm6150-common: Provide android.frameworks.sensorservice@1.0 on vendor
Following the commit f19703e ("common-treble: Provide radio, keymaster
and secure_element HAL on vendor"), starting with Android 12 most HAL
libraries are not included in VNDK anymore - they need to be explicitly
pulled in to `/vendor` for odm blobs to be allowed to access them:

    QCamera : <MCI><ERROR> mm_camera_load_shim_lib: 3306: dlopen failed
    with error dlopen failed: library
    "android.frameworks.sensorservice@1.0.so" not found: needed by
    /odm/lib/libmmcamera2_stats_modules.so in namespace (default)

android.frameworks.sensorservice@1.0 is used by at least mm-camera
framework.

Signed-off-by: Pavel Dubrova <pashadubrova@gmail.com>
Change-Id: I72d9bcda1fdfd48c5fb9cb21666edd995ae4d9af
2021-12-29 10:11:45 +00:00
Marijn Suijten
52e32c0ddd sm6150-commone: Provide android.system.net.netd@1.1 on vendor for netmgrd
Following the previous commit, starting with Android S most HAL
libraries are not included in VNDK anymore - they need to be explicitly
pulled in to `/vendor` for odm blobs to be allowed to access them:

    linker  : CANNOT LINK EXECUTABLE "/odm/bin/netmgrd": library "android.system.net.netd@1.1.so" not found: needed by main executable

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Change-Id: Ide8adad466a61412a984a46d1562f8f2f6a62be3
2021-12-29 10:11:45 +00:00
Marijn Suijten
4e1847ceca sm6150-common: Provide radio, keymaster and secure_element HAL on vendor
In [1] Google removed many HIDL HAL libraries from VNDK, causing them to
only be installed to the system partition.  This is inaccessible for
vendor apps and results in the usual:

    linker  : CANNOT LINK EXECUTABLE "/odm/bin/hw/android.hardware.keymaster@4.0-service-qti": library "android.hardware.keymaster@4.0.so" not found: needed by main executable
    linker  : CANNOT LINK EXECUTABLE "/odm/bin/hw/android.hardware.keymaster@4.0-service-qti": library "android.hardware.keymaster@4.1.so" not found: needed by /odm/lib64/libqtikeymaster4.so in namespace (default)
    linker  : CANNOT LINK EXECUTABLE "/odm/bin/hw/vendor.somc.hardware.modemswitcher@1.0-service": library "android.hardware.radio.config@1.0.so" not found: needed by /odm/lib64/libril-qc-hal-qmi.so in namespace (default)
    linker  : CANNOT LINK EXECUTABLE "/odm/bin/hw/qcrild": library "android.hardware.secure_element@1.1.so" not found: needed by /odm/lib64/libril-qc-hal-qmi.so in namespace (default)
    linker  : CANNOT LINK EXECUTABLE "/odm/bin/hw/qcrild": library "android.hardware.secure_element@1.2.so" not found: needed by /odm/lib64/libril-qc-hal-qmi.so in namespace (default)
    linker  : CANNOT LINK EXECUTABLE "/odm/bin/hw/qcrild": library "android.hardware.radio.deprecated@1.0.so" not found: needed by /odm/lib64/libril-qc-hal-qmi.so in namespace (default)

These libraries are listed in common-treble because they're used by ODM
apps but have no explicit vendor dependency (ie. a binary placed on
/vendor) to put them in a vendor-available space.  The default is to
include system variants which is why the dependencies have to be
suffixed with `.vendor` so that they're shipped in `/vendor` and are
available for our ODM blobs even on GSIs.

[1]: d610435ac4

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Change-Id: I8344b85fb4e86a913bd8d9071ce49150ed093575
2021-12-29 10:11:39 +00:00
Jiyong Park
cd2df7634f sm6150-common: Add updatable_apex.mk
The product abstracts configs that need to be set to support updating of APEXes.

Change-Id: Id5aa944ceba6a6846308f1c18a08af8b3bb38589
2021-12-29 10:08:35 +00:00
Martin Liu
d299288eaf
sm6150-common: mm: Adjust zram write back policy
The first default zram write back time is 3 hours which
is for go device to quickly save more ram. For Pixel
devices, we have more working set and could bring launch
time impact if we write back too fast. Thus, adjust the
first time write back time to 24 hours which is aligned
with periodic write back time.

Bug: 166739872
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I2388dd6d75ab0a938fe0edae0563fd26e48c9908
2021-08-06 19:28:33 +02:00
Jenhao Chen
9010fc737d
sm6150-common: Enable zram writeback
Bug: 128889899
Test: Boot to home

Change-Id: I48ae06e54a66a7d6965afbe8db3d2f157cf8a1f4
2021-08-06 19:25:07 +02:00
Adithya R
b2d8bf6c26
sm6150-common: Configure zram from separate fstab
Change-Id: I3d093f06b08ad1cc049325d0136b60cab70c29d0
2021-07-23 22:53:14 +02:00
Bruno Martins
7e0b1d8983
sm6150-common: Migrate to Xiaomi power HAL AIDL
Change-Id: I42170d51a517170b58d532addd9c38496e43457c
2021-06-21 23:43:14 +02:00
Wei Wang
fe82d2824b
sm6150-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2021-06-18 18:37:26 +02:00