673 Commits

Author SHA1 Message Date
ralph950412
ce1fa43ac6 sm8150-common: add libaudioclient_shim.sm8150 2026-02-06 07:40:27 +01:00
7c95b943ef sm8150-common: Initialize for Evolution X 11.x+ 2026-02-06 15:24:24 +09:00
Sourajit Karmakar
39ff97f5e7 sm8150-common: Disable FRP
* This should really be disabled after unlocking the bootloader.

Change-Id: Ie947fcf94c968ba12bedbe2071801ef6a1b6b269
Signed-off-by: firebird11 <hbgassel@gmail.com>
2026-02-06 15:24:24 +09:00
firebird11
4d5bab92a5 sm8150-common: Add back Saturated color
Change-Id: I34b1447dcebf59b6f468e7a671516c4ae86067c7
Signed-off-by: firebird11 <hbgassel@gmail.com>
2026-02-04 19:59:37 +01:00
firebird11
dc654b0a42 sm8150-common: Remove dcvs init
*not needed anymore

Change-Id: I321f9ca6773c82c6c1f63d3a4f81aa1fa030acb0
Signed-off-by: firebird11 <hbgassel@gmail.com>
2026-02-04 19:58:32 +01:00
basamaryan
55747067ce sm8150-common: Override kernel BPF version
Change-Id: I3c581f3120b6258b3b45020c5ba12f6bf5b0ee27
2026-02-03 21:44:49 +01:00
firebird11
f197397453 sm8150-common: Move Powerhint to device
Change-Id: I82d8d8bf49dfeb4c6adb1b669fb2a1b8e2115e20
Signed-off-by: firebird11 <hbgassel@gmail.com>
2026-02-02 17:21:01 +01:00
firebird11
0d59b71c45 sm8150-common: Sensor based UDFPS, Double and Single tap (2/5)
* Based on commits from @pwnrzr and @ivecera

Change-Id: I994a9ef28815d11ffb303a56a2f20f2c80d62551
Signed-off-by: firebird11 <hbgassel@gmail.com>
2026-02-02 17:19:38 +01:00
Yumi Yukimura
1e82114a41 sm8150-common: Update some soong config variables to bool type
Change-Id: Ice4a8e2cc6d756a743116b46299cf833a0e78c57
2026-02-02 12:30:07 +01:00
armdebug
ab2c03f8de sm8150-common: parts: Switch to brightness nodes for popup LEDs
Switching to brightness node allows the PopupCameraService to have
direct control over the LED state, ensuring the lights turn on
instantly and turn off reliably when the handler expires.

Change-Id: I634f64656a016688f28d481be1a36436e9272e67
2026-02-02 12:29:32 +01:00
Michael Bestas
bd96d4c375 sm8150-common: Patch some blobs to depend on libtinyxml2-v34.so
libtinyxml2 10.1.0 update which landed in BP4A contains ABI
incompatible changes which cause runtime crashes.

Change-Id: Icc67da5f754b0bb30dce6192b1e520fdf1349ac5
2026-02-02 12:29:14 +01:00
LuK1337
73ea3a7c67 sm8150-common: Shim WFD with libinput_shim
Change-Id: I5c64d4fb6608cf6134ee7647802d9befc26fc8fb
2026-02-02 12:28:41 +01:00
basamaryan
6f86ae3b23 sm8150-common: Update WFD system blobs from dada OS2.0.217.0.WOCMIXM
Change-Id: I95dfb07cae97f3c8716a7cb6d87a7081de986748
2026-02-02 12:27:26 +01:00
LuK1337
a3e59359f3 sm8150-common: Opt out of speaker_layout_channel_mask field
Required for ABI compatibility with audio HAL compiled before 15 QPR2.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/9426
Change-Id: Ic910f0634ee0707c21dad77f5264fd89fb33f1c0
2026-02-02 12:23:17 +01:00
Danny Trunk
75d6e0f8c0 sm8150-common: Add shim for missing symbol in lib-imsvideocodec.so
This is a squash of the following:

Author:     Danny Trunk <dtrunk90@gmail.com>
AuthorDate: 2022-01-28 15:37:29 +0100

    Fixes:

        E ims_media_jni: Error loading library lib-imsvideocodec.so: dlopen failed: cannot locate symbol "_ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEb" referenced by "/system/product/lib64/lib-imsvideocodec.so"...

    Change-Id: I4364a1e1da2ae2120194f44c233f1f8b1cd0f7ac

Author:     Bruno Martins <bgcngm@gmail.com>
AuthorDate: 2022-09-21 12:15:09 +0100

    sdm845-common: Migrate to proper libgui shim

    It has been placed under hardware/lineage/compat.

    Change-Id: I3767d8a44cbd9af891fbac7a67380b205b414a37

Author:     Cosmin Tanislav <demonsingur@gmail.com>
AuthorDate: 2024-08-17 04:59:30 +0300

    sdm845-common: Do not manually build dependencies

    Change-Id: I4046d8eeabfc70842898b7034f75cdd6bcfc441b

Change-Id: I4364a1e1da2ae2120194f44c233f1f8b1cd0f7ac
2026-02-02 12:22:35 +01:00
LuK1337
d582b8efbe sm8150-common: Remove vendor/lineage device framework matrix inclusion
See: I78da6340f38b93fdc4c3694cb8f431f387d16c0d
Change-Id: I0b9f527de50ca02082be9b92375559f4893b2688
2026-02-02 12:19:47 +01:00
Yumi Yukimura
55343de734 sm8150-common: manifest: Bump target-level to 6
Change-Id: I8d419d248f29b7d316a87d55e19ae7ff141e19a5
2026-02-02 12:18:30 +01:00
armdebug
08d362480a sm8150-common: parts: Update popup camera setting icon from Material Icons
Change-Id: I40d0b2ea32bce7690d5d340727abe114fba9086d
2026-02-02 12:17:04 +01:00
armdebug
3387a8b45b sm8150-common: parts: Drop redundant WAKE_LOCK and GET_TASKS permissions
Change-Id: Id6a1b13978b12e6178f58f272441ce726353a2f5
2026-02-02 12:16:50 +01:00
basamaryan
5933954e4a sm8150-common: parts: Move popupcamera strings to devicesettings
Change-Id: I5378f2527068fd64ca3551a7666826e7b8a3816f
2026-02-02 12:16:37 +01:00
armdebug
4bc08feacb sm8150-common: parts: Use SimpleSummaryProvider for ListPreference
Setting the summary with string formatting (%s) is deprecated.

Reference: https://developer.android.com/develop/ui/views/components/settings/customize-your-settings#summaries
Change-Id: I70b186738814bdab486e3f1892f34a9ab3a48e46
2026-02-02 12:16:23 +01:00
Bruno Martins
03ad842f1e sm8150-common: parts: Apply Expressive theme
Change-Id: I03c814b97c8401428f2b358d065a99503df9d1cc
2026-02-02 12:16:09 +01:00
Bruno Martins
6886935e1a sm8150-common: parts: Convert for M3E support
Change-Id: Ib4d1088f5be3fc2b5c2ff90d5cd1b86603551037
2026-02-02 12:15:58 +01:00
Bruno Martins
22612fcbe7 sm8150-common: parts: Fully migrate to AndroidX
Change-Id: I873a18de1b7382ee9dc0be4da0ff53192a99b1db
2026-02-02 12:15:43 +01:00
Bruno Martins
22decdfedc sm8150-common: parts: Clean up imports
Change-Id: I483a137865e0e558ecadfb1ed25d0f46daf0f3b2
2026-02-02 12:15:31 +01:00
53f0356512 sm8150-common: parts: Move to PreferenceFragmentCompat
PreferenceFragment was deprecated in API level 28.

https://developer.android.com/jetpack/androidx/releases/preference#1.1.0

Change-Id: Ie8a4b04bd588afbbbc5882349ddbc05f988f80bf
2026-02-02 12:15:18 +01:00
armdebug
c9bfaa5c18 sm8150-common: overlay: Beautifiy RROs
* Ran through lineage/scripts/dev/beautify_rro.py
* Used the --maintain-copyrights flag to preserve existing headers.

Change-Id: I025eca15cb28866924b84188b058e097935279f6
2026-02-02 12:15:04 +01:00
Yumi Yukimura
7ed87cfb41 sm8150-common: Migrate to QTI USB Gadget AIDL HAL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
2026-02-02 12:14:49 +01:00
Yumi Yukimura
7e53fca1f8 sm8150-common: Move usage of USB MTP/PTP functionality with USB F_FS driver
* `vendor/qcom/opensource/usb/vendor_product.mk` enables it for
  kernel 4.9~4.19, and we're on kernel 4.9

Change-Id: I7bc8153b4016ab804d4e385ece5808f187a87886
2026-02-02 12:14:33 +01:00
Alexander Koskovich
6c771d5383 sm8150-common: Pick up USB configurations from QCOM
* If we want to override anything in particular, e.g.
   PID/VIDs we will create a seperate script named
   'init.xiaomi.usb.rc'.

Change-Id: I83882d8992eb367211871130c163f4ca5689fcd4
2026-02-02 12:14:11 +01:00
armdebug
d950832dc7 sm8150-common: overlay: Clean up overlays
Remove overlays that are either default or have been deprecated.

Change-Id: I83fe2d76262af14690f6f3136c3899d7fe2c6440
2026-02-02 12:13:58 +01:00
grepfox
ad496771ee sm8150-common: overlay: Drop config_deviceHardwareKeys and config_deviceHardwareWakeKeys
* it is 64 by default as per [1]
[1] d518e8d4a3/lineage/res/res/values/config.xml (L147)

Change-Id: I803a796caacd835b54ccdf5950bbf6764ccaae2b
2026-02-02 12:13:11 +01:00
grepfox
65a7b1030e sm8150-common: Drop IOP remnants
Change-Id: I481d9341e84f568926786e6f16fee9a59ad2cc7e
2026-02-02 12:12:48 +01:00
LuK1337
d0e63873ea sm8150-common: Move libmmparser_lite.so to "Media" section
Change-Id: Ic2a08519a2d9e9299d419b56479fa82ffc7ea664
2026-02-02 12:12:06 +01:00
Bruno Martins
876555cd96 sm8150-common: Declare WFD lib as symlink during extraction
Change-Id: I83e3ec03e1ddc58f3a7df008789b1e31584946e1
2026-02-02 12:11:51 +01:00
armdebug
e92952bf3d sm8150-common: sepolicy: Address some property denials
Change-Id: I97783d97e9eadfc4d23bd651106d6cc24ec0ce85
2026-02-02 12:11:38 +01:00
armdebug
0e7bfe1cd4 sm8150-common: Add some properties from nabu OS1.0.6.0.TKXMIXM
Change-Id: I98dc03ff53a7d2563ab99b6fde5f2fc35c5eb924
2026-02-02 12:11:27 +01:00
Arian
7e562bc8a1 sm8150-common: Stop including vendor/debugfs.config
We disable debug fs in the defconfigs directly since
I01a4dd199a357dd85838c071020bf966079a2092.

Change-Id: Ifcf9dd9d7a48ee93999c783f0f361e75bb97e364
2026-02-02 12:11:12 +01:00
Bruno Martins
9cdeab34e6 sm8150-common: sepolicy: Label extcon_usb1 nodes
Change-Id: I92d728a1bc283beedf33b015c3115221140d527d
2026-02-02 12:10:59 +01:00
armdebug
13f7ed6593 sm8150-common: Move some properties around
* To satisfy SELinux permission checks
* Drop duplicate and unused props while at it

Change-Id: I8ff18198e7c6e880c2742384923dd5ad87cd37d9
2026-02-02 12:10:45 +01:00
armdebug
cf4ba3ff5d sm8150-common: Migrate partition scheme selection logic to Soong select
Change-Id: I80a617ea3ec52de799a606463ae33610eb198272
2026-02-02 12:10:32 +01:00
LuK1337
bb5cb8aac9 sm8150-common: audio: Disable ULL mode
* Ultra low latency playback is currently broken. Crackling audio
   can be well noticed while playing WhatsApp audio messages or even
   during some games.

 * This patch routes all audio that normally used audio-ull-playback
   paths to low-latency-playback paths instead, thus meaning we're
   switching from ULL to LL mode.

Change-Id: I7d672f1ff10b984c8096c9c4ca83475e730fd16f
2026-02-02 12:10:14 +01:00
armdebug
b9c7469d7f sm8150-common: Revert "Build AIDL NXP NFC HAL"
This reverts commit 384d3ddf48.

Change-Id: I343467dd953fe5cfd83c61baef480de0c5dd8b8a
2026-02-02 12:08:01 +01:00
armdebug
537ca2e973 sm8150-common: Limit max brightness for "green" & "blue" leds
* Reducing max_brightness limits the LED current draw from 8mA to approximately 1mA.
* This mitigates light leaking.

Change-Id: I3f9b08f3073e256fba102495c6134375fe02b6ae
2026-02-02 12:06:22 +01:00
armdebug
a760ec9de3 sm8150-common: sepolicy: Fix parts LED denials
avc: denied { search } for comm="eageos.settings" name="leds"
dev="sysfs" ino=51054 scontext=u:r:devicesettings_app:s0
tcontext=u:object_r:sysfs_leds:s0 tclass=dir permissive=0

Change-Id: I7549118b354cdc357ef2c57db9cc21216b2b173a
2026-02-02 12:06:05 +01:00
Ivan Vecera
b36c0ceabe sm8150-common: Build UDFPS sensors sub-HAL
* Build and ship UDFPS sensor sub-HAL for devices with UDFPS
* Allow sensors HAL access /sys/touchpanel directory

Change-Id: I440350e0d4d4296cbc77e68e8f87cc727b08528b
2026-02-02 12:05:46 +01:00
Bruno Martins
0231d5ce90 sm8150-common: Set vendor init lib via soong config
Change-Id: I8f7e6b987bee58dbf09ca9ad7cfd5a7e99e19c3b
2025-11-18 01:05:21 +01:00
Sebastiano Barezzi
54bd30a3c0 sm8150-common: libinit: Introduce libvariant and related Soong select
Change-Id: I1aa99abc47d483cba2a0552e497667212919358c
2025-11-18 01:05:21 +01:00
Sebastiano Barezzi
c4580d732a sm8150-common: libinit: Use early return
Change-Id: I860c3ec6eb736381021e545e5a73ac232eb0c8cc
2025-11-01 15:07:00 +01:00
Sebastiano Barezzi
d3bdd47698 sm8150-common: libinit: Move to local header path
We'll stop exporting the headers with the refactor

Change-Id: I66174d5f732f8d04e4a5d10fa2b54563bd5aeeb2
2025-11-01 15:07:00 +01:00