1564 Commits

Author SHA1 Message Date
77bfc857be sm8350-common: parts: Switch to SwitchPreferenceCompat 2026-01-21 09:26:11 +09:00
Bruno Martins
0a48861515 sm8350-common: parts: Apply Expressive theme
Change-Id: I03c814b97c8401428f2b358d065a99503df9d1cc
2025-12-31 01:44:34 +09:00
Bruno Martins
9d601a8e70 sm8350-common: parts: Defer applying divider
Android 16 QPR1 + M3E changes the inflation and lifecycle timing of
PreferenceFragmentCompat layouts, resulting in internal RecyclerView
being created later than before.

As a result, PreferenceFragmentCompat.setDivider() can be invoked
before the internal RecyclerView exists thus causing below NPE:

  11-25 18:06:19.705 7903 7903 E AndroidRuntime: FATAL EXCEPTION: main
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: Process: org.lineageos.lineageparts, PID: 7903
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.recyclerview.widget.RecyclerView.invalidateItemDecorations()' on a null object reference
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at androidx.preference.PreferenceFragmentCompat$DividerDecoration.setDivider(PreferenceFragmentCompat.java:909)
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at androidx.preference.PreferenceFragmentCompat.setDivider(PreferenceFragmentCompat.java:247)
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at com.android.settingslib.widget.SettingsBasePreferenceFragment.onViewCreated(SettingsBasePreferenceFragment.kt:47)
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at org.lineageos.lineageparts.SettingsPreferenceFragment.onViewCreated(SettingsPreferenceFragment.java:156)
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at org.lineageos.lineageparts.profiles.SetupTriggersFragment.onViewCreated(SetupTriggersFragment.java:89)
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3099)
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:607)
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:285)
  (...)
 # 11-25 18:06:19.705 7903 7903 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:9041)
 # 11-25 18:06:19.705 7903 7903 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
  11-25 18:06:19.705 7903 7903 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
  11-25 18:06:19.727 2241 6629 W ActivityTaskManager: Force finishing activity org.lineageos.lineageparts/.PartsActivity

Test: Open System profiles settings, create a new profile and verify
      that the activity no longer crashes.
Change-Id: Ifb741011baaa6d721d0ca0db2d68d30037eb8930
2025-12-31 01:44:27 +09:00
0xCAFEBABE
d4ae3d2235 sm8350-common: Update some soong config variables to bool type 2025-12-30 22:37:38 +09:00
LuK1337
cd33b79ad5 sm8350-common: Remove vendor/lineage device framework matrix inclusion 2025-12-30 22:34:02 +09:00
beingashwani
dc2446bd7d sm8350-common: disable verbose camera logs
* fixes camera jitter/ui lag in some scenario
2025-10-14 04:16:22 +09:00
Subhajeet Muhuri
a5bae6559a sm8350-common: Silence Codec2 spammy logs
I QC2Buf  : Buffer 0xf3041d10 imported as 0xf3042690
W QC2V4l2Codec: [avcD_13] unknown/unsupported param Output::HdrStaticMetadata index = 0xD200180A

Change-Id: I5de137760aa0ffb5cb52a12ae074c2862de24a40
2025-10-14 04:15:50 +09:00
dhanush281
1de080ddfe sm8350-common: props: Force disable low ram config
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-14 04:08:35 +09:00
009b8ac153 Revert "sm8350-common: properties: adjust LMKD"
This reverts commit 0191b499f4.
2025-10-14 04:08:07 +09:00
Sourajit Karmakar
58cb5002e6 sm8350-common: Disable FRP
* This should really be disabled after unlocking the bootloader.

Change-Id: Icf5305cba66e9e613000a6ef53b32fa59760a7f2
2025-10-14 04:04:17 +09:00
Joey Huab
c926702c11 Revert "[SQUASH] sm8350-common: fastcharge implementation"
This reverts commit d2793a3f48.
2025-08-19 12:09:53 +09:00
Joey Huab
eee22f781a Revert "sm8350-common: remove IRestricted from fastcharge"
This reverts commit 307240d592.
2025-08-19 12:03:18 +09:00
Joey Huab
e9a919f61c Revert "sm8350-common: rro_overlays: Enable ambient AOD"
This reverts commit 51f11a7fa7.
2025-08-09 01:48:27 +09:00
Adithya R
510ca4bbf1 sm8350-common: Move citsensorservice to background cpuset
This service hogs a considerable amount of CPU all the time as its
busy calculating compensation for our under-display light sensor
(and also spamming logcat, which we can take care of later).

  PID USER         PR  NI VIRT  RES  SHR S[%CPU] %MEM     TIME+ ARGS
 1969 system 20 0 12G 9.2M 9.0M S 4.6 0.1 1:13.15
vendor.xiaomi.sensor.citsensorservice@2.0-service

Move it to background CPU set like the sensors multihal to lower
power consumption from big cores.

Change-Id: I8c7b2835b2b53654642ac20fd97df3b8a5ad96eb
2025-08-08 22:26:04 +09:00
Giovanni Ricca
9297fe32e1 sm8350-common: Commonize citsensor stack
Change-Id: I2902359ad66a6e94e40cf9dee9f52c0803e9dfad
2025-08-08 22:25:59 +09:00
Sugakesshaa
963c464686 sm8350-common: overlay: Overlay Dolby Atmos profiles
Change-Id: I67998e9329004e416e6e5a66e9d4b0d9fe919b43
2025-08-08 22:11:38 +09:00
Adithya R
2a84ed6887 sm8350-common: Add sepolicy for Dolby Atmos
Change-Id: I8c41ff32e579cec9c871d6a0177ca027034281c8
2025-08-08 21:39:03 +09:00
Fabian Leutenegger
080fdc7bfc sm8350-common: Link dolby blobs against v33 libstagefright_foundation
* fixes crashes and absurdly high CPU usage while using dolby

Co-authored-by: Woomymy <woomy@woomy.be>
Change-Id: Ib72b775dae677f3085d0b0e2afcbb709d8690063
2025-08-08 20:44:32 +09:00
Sugakesshaa
fab88decab sm8350-common: Import Dolby C2 Media service
from OnePlus 11 CPH2447_15.0.0.401(EX01)

Change-Id: Icdfc5b11c7635d0707c2a39f54e0c8d149c771bc
2025-08-08 20:44:26 +09:00
Omkar Chandorkar
9eb7717818 sm8350-common: Introduce Dolby Atmos support
Change-Id: I46b62d08ad51c321c997792301524fc0c18d6ba6
Co-authored-by: Sugakesshaa <sugakesshaa@gmail.com>
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2025-08-08 20:44:15 +09:00
sushmit1
c67ab03fd1 sm8350-common: Add libmisoundfx 2025-07-25 15:03:52 +09:00
New Author Name
9e457375ca sm8350-common: Remove FM Tuner from audio input devices
* This fixes google voice recorder

Change-Id: If42676a0087e055e3164da4b0cc43987e32d82b3
2025-07-25 11:54:03 +09:00
jjpprrrr
d119fa6826 sm8350-common: audio: Remove quad mic
*This fixes in-game mic for various games
2025-07-25 11:54:03 +09:00
AdarshGrewal
c2785ff90e sm8350-common: audio: Disable Stereo channel support for voip over audio path
* This breaks in-game voice chat and audio in some messaging apps
   causing it to plays with a higher pitch and speed, making it sound
   like chipmunks.

Change-Id: I0baf0d01481b755372c3420bb58b73d2f38eb2d9
2025-07-25 11:54:03 +09:00
Joey Huab
2d44c6d394 Revert "sm8350-common: add ViPER4FX if-exists"
This reverts commit 907517572b.
2025-07-24 16:11:55 +09:00
Vincent Wang
95bfb8503b sm8350-common: rro_overlays: Enable fp screen off unlock feature
Edit: Turn on by default

Bug: 389002332
Flag: android.hardware.biometrics.screen_off_unlock_udfps
Test: 1. FP screen off unlock should be included in settings
      2. FP screen off unlock should be enabled by default
Change-Id: I65eda6ae6f69ff4e6a3191d91fb8be42797c7fcb
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2025-07-17 00:04:45 +09:00
Matt Pietal
51f11a7fa7 sm8350-common: rro_overlays: Enable ambient AOD
Bug: 373844670
Test: manual - check devices
Flag: com.android.systemui.shared.ambient_aod
Change-Id: I793e7dbab1c039ba82a1f96b7d56ca4b3e1ebbfe
2025-07-17 00:04:45 +09:00
Yumi Yukimura
7b92d5a258 sm8350-common: Setup DeviceAsWebcam
Change-Id: Icf8e10cd21c4eef9a66af624971ffe9c4d39d992
2025-07-17 00:04:45 +09:00
Roberto Sartori
eb486d4bb7 sm8350-common: Switch from time_daemon to TimeKeep
* time_daemon just refuses to work properly on mata.
    Sony's TimeKeep, instead, does the job flawlessly,
    so just ditch the former in favor of the latter.

Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
Change-Id: I54f50ed3d49efc2834d478781b15e6ee428a3062
2025-07-17 00:04:45 +09:00
Giovanni Ricca
6e0adc2285 sm8350-common: Decommonize libQnnHtpStub
Turns out this is platform specific. Fixes crashes on
libarcsoft_super_night_raw calls on yupik devices

Change-Id: I06b22517d313a8eeb116b0b969615203b0d53823
2025-07-17 00:04:45 +09:00
Alexander Winkowski
bcfc991349 sm8350-common: Use SPDX copyright headers
Change-Id: I0ea8da2780914a239929d48de9b9caaccf098224
2025-07-17 00:04:45 +09:00
Edgar Arriaga
2f7dc94b0f sm8350-common: overlay: Set default pin amount for home app
Bug: 288900050
Test: dumpsys pinner
Flag: EXEMPT refactor

Change-Id: I87e15ec968f59acd65e3d4bc80d1bad08704bc53
2025-07-17 00:04:45 +09:00
Michael Bestas
359345383d sm8350-common: overlay: Remove deprecated config_mobile_tcp_buffers/networkAttributes
Change-Id: Ieda947e283cde11cf74a01dc1b438e1deeb902c9
2025-07-17 00:04:45 +09:00
Chenyang Zhong
51901d3c8f sm8350-common: overlay: drop sw372dp dimens
This one seems to be overriding the actual overlayed value of
rounded_corner_content_padding on the device side.

Change-Id: I64383583a6a54e44a9c801bb3c8dd14c11fa45f9
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2025-07-17 00:04:45 +09:00
Giovanni Ricca
3db25260f9 sm8350-common: Add Xiaomi FX Tunnel manifest entry
Change-Id: Id3d1690bf8ce2af92afeb7d4b16d20b5bf30d3f0
2025-07-17 00:04:41 +09:00
Giovanni Ricca
f61b75ba58 sm8350-common: sepolicy: Unlabel Xiaomi Dtool service
Change-Id: I8a35505f4d0d369dd8160f1b425f4c5c48f38325
2025-07-15 17:53:58 +09:00
Demon000
b1c5641e8a sm8350-common: Add support for udfps long press sensor
Change-Id: I7196dce967c9adbc62bb5156ade749c92c7780a1
2025-07-15 17:53:56 +09:00
Giovanni Ricca
e2491ea9c0 sm8350-common: Opt-in libudfpshandler
Change-Id: If67c415d33215d9ef954ded4d118aad5841e589a
2025-07-15 17:53:56 +09:00
Michael Bestas
71ab56973e sm8350-common: Enable UFFD GC
Kernel has support for it now.

Change-Id: I3863ee71477f321fe47646571b857fdc39a1902b
2025-07-15 17:53:42 +09:00
basamaryan
989dd25e37 sm8350-common: Shim libwfdservice with libaudioclient_shim
Change-Id: Idd6603ad16926226f22423a2bba2075d430015d5
2025-07-10 18:43:46 +09:00
Michael Bestas
4114fac832 sm8350-common: sepolicy: Remove duplicate labels
Change-Id: I3575e6bad93b2f9d69f94033944c44b7f9fbc243
2025-07-10 18:43:46 +09:00
ralph950412
a28ac22367 sm8350-common: Commonize libcvapiv2*
Change-Id: I7b4f2df7620177a00b99b35fe58d463ac97ea2fa
2025-07-10 18:43:43 +09:00
ArianK16a
9fce812db4 sm8350-common: Kang libops.so from Davinci
- Helps fix DRM issues
2025-07-10 18:43:43 +09:00
Joey Huab
b95891af58 Revert "sm8350-common: set ART debug to release mode"
This reverts commit 727abe81d8.
2025-07-10 07:44:22 +09:00
ghostrider-reborn
ae9ba3a846 sm8350-common: Fix battery and USB OTG detection in recovery mode
* in lahaina (msm-5.4) pmic driver now lies in adsp [1], so
   adsp firmware must to be loaded along with qti battery/
   charger kernel module, in order to get battery and usb
   power_supply up & running

[1]:
https://source.codeaurora.org/quic/la/device/qcom/common/commit/rootdir/etc/init.recovery.qcom.rc?h=LA.UM.9.14.r1-18600-LAHAINA.0&id=4e2b0f663a8f4b73000c81999055363411aaf12c

Depends-On: Id0e64302dbbdc53620cbc1825c36e13bb9e58aef
Change-Id: I835fa5daaa53eb704cc6c0777d7069d47ecbe10c
2025-07-02 20:30:08 +09:00
Bruno Martins
596ef97ec6 sm8350-common: sepolicy: Label extcon_usb1 nodes
W ExtconUEventObserver: Unable to read /sys/devices/platform/soc/soc:extcon_usb1/extcon/extcon3/cable.0/name. This probably means the selinux policies need to be changed.
W ExtconUEventObserver: Unable to read /sys/devices/platform/soc/soc:extcon_usb1/extcon/extcon3/cable.1/name. This probably means the selinux policies need to be changed.

Change-Id: I92d728a1bc283beedf33b015c3115221140d527d
2025-07-02 20:30:08 +09:00
Yumi Yukimura
4c3749d1b1 sm8350-common: Migrate to QTI USB Gadget AIDL HAL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
2025-07-02 11:24:52 +09:00
LuK1337
71ccd9f528 sm8350-common: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2025-07-02 11:24:52 +09:00
Pratham Pratap
5081d2b8af sm8350-common: Set sys.usb.mtp.batchcancel for MTP over FFS
* Currently, cancelEvents in MTP will cancel the requests one by
   one, and it will check each response to confirm success or
   failure. However, if kernel usb controller driver got the
   cancel request, the driver will handle all requests in the same
   endpoint so that the second io_cancel in cancelEvents will be
   useless causing the cancelEvents to return error and fail the
   transfer.

 * Fix this by setting sys.usb.mtp.batchcancel for the targets
   using MTP over FFS.

Change-Id: Icea9a2815c79ff710ee887d02e4c99dfe5ad6361
2025-07-02 11:24:52 +09:00
Jack Pham
3e51157bc7 sm8350-common: Configure USB Diag over FFS
On targets where diag-router is used, override the
vendor.usb.diag.func.name property to 'ffs' to
instantiate the Diag function instances to use
F_FS instead of the legacy f_diag driver.

Change-Id: I529a081a0d6988628944a9020b61c061baa877a4
2025-07-02 11:24:52 +09:00