858 Commits

Author SHA1 Message Date
Michael Bestas
c13c853650 sm8450-common: overlay: Remove Dialer overlay
Call recording is now enabled by default

Revert "sm8450-common: overlay: Enable call recording"

This reverts commit adec2e2a23.
2026-01-21 09:37:49 +09:00
dodyirawan85
8162df4d1b sm8450-common: Label persist.vendor.audio.scenario property
Signed-off-by: dodyirawan85 <dev.irawans@gmail.com>
2026-01-19 22:15:22 +09:00
edc3a2785f sm8450-common: Patch libaudiocloudctrl to depend on libtinyxml2-v34.so 2026-01-17 16:19:45 +09:00
chaitanyakm
d5770fcc35 sm8450-common: dolby: switch to HW blobs
https://github.com/Chaitanyakm/hardware_dolby
2026-01-17 15:59:03 +09:00
pabloescobar-reborn
507ddeb3e3 sm8450-common: audio: Switch to some prebuilt audio blobs 2026-01-17 15:58:58 +09:00
dkpost3
3e29ba279e sm8450-common: sensors: Allow access to display's sysfs
2026-01-13 05:39:15.471  2151-2151  sensor-notifier         sensor-notifier                      W  type=1400 audit(0.0:30): avc:  denied  { search } for  name="disp-DSI-0" dev="sysfs" ino=114375 scontext=u:r:vendor_sensor_notifier:s0 tcontext=u:object_r:vendor_sysfs_displayfeature:s0 tclass=dir permissive=0
2026-01-13 05:39:15.477  2151-2151  libsensor-ssccalapi     sensor-notifier                      E  open /sys/class/mi_display/disp-DSI-0/panel_info failed, reopen
2026-01-13 05:39:15.477  2151-2151  libsensor-ssccalapi     sensor-notifier                      E  open json first screeen!
2026-01-13 16:49:27 +09:00
ozturkmutlu65
721de30bc8 sm8450-common: Add com.android.bluetooth context to seapp_contexts 2026-01-12 15:49:28 +01:00
LuK1337
9ff9bf07e5 sm8450-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
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2026-01-12 15:49:28 +01:00
Michael Bestas
c8dab17910 sm8450-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-01-12 15:49:28 +01:00
Michael Bestas
76b6e022f0 sm8450-common: Patch qccsyshal to load versioned libprotobuf
Change-Id: I9ec95bf55afd62a03b2bd787c8b82c15b921a452
2026-01-12 15:49:28 +01:00
pabloescobar-reborn
e96df448df fixup! sm8450-common: Do not balance msm_drm and kgsl_3d0 IRQs
Fix regex that incorrectly printed as '&,115,332' instead of adding

Signed-off-by:pabloescobar-reborn <pabloescobar-reborn77@gmail.com>
2026-01-12 15:49:28 +01:00
adithya2306
5ad8d9a6a0 sm8450-common: Disable doze brightness handling every time
Co-authored-by: Maulanariaddy <maulriaddy@gmail.com>
2026-01-12 15:49:25 +01:00
Fiqri Ardyansyah
ac311ad69f sm8450-common: sensors: Increase padding of _oem_msg struct to 264 bytes
It seems that the _oem_msg struct is used for more than 256 bytes
and causes the buffer overflow.

01-02 15:25:44.407  2064  2075 F libc    : Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb400007eda640000 in tid 2075 (HwBinder:2064_1), pid 2064 (sensor-notifier)
01-02 15:25:44.484 16719 16719 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-02 15:25:44.484 16719 16719 F DEBUG   : LineageOS Version: '23.0-20251224-UNOFFICIAL-marble'
01-02 15:25:44.484 16719 16719 F DEBUG   : Build fingerprint: 'POCO/marble_global/marble:15/AQ3A.241006.001/OS2.0.211.0.VMRMIXM:user/release-keys'
01-02 15:25:44.484 16719 16719 F DEBUG   : Revision: '0'
01-02 15:25:44.484 16719 16719 F DEBUG   : ABI: 'arm64'
01-02 15:25:44.484 16719 16719 F DEBUG   : Timestamp: 2026-01-02 15:25:44.445943826-0600
01-02 15:25:44.484 16719 16719 F DEBUG   : Process uptime: 1017s
01-02 15:25:44.484 16719 16719 F DEBUG   : Cmdline: /vendor/bin/sensor-notifier
01-02 15:25:44.484 16719 16719 F DEBUG   : pid: 2064, tid: 2075, name: HwBinder:2064_1  >>> /vendor/bin/sensor-notifier <<<
01-02 15:25:44.484 16719 16719 F DEBUG   : uid: 1000
01-02 15:25:44.484 16719 16719 F DEBUG   : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
01-02 15:25:44.484 16719 16719 F DEBUG   : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
01-02 15:25:44.484 16719 16719 F DEBUG   : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb400007eda640000
01-02 15:25:44.484 16719 16719 F DEBUG   : Cause: [GWP-ASan]: Buffer Overflow, 0 bytes right of a 256-byte allocation at 0x7eda63ff00
01-02 15:25:44.484 16719 16719 F DEBUG   :     x0  b400007dd60b1790  x1  0000007c45f70400  x2  b400007eda63ff00  x3  0000000001fa26a7
01-02 15:25:44.484 16719 16719 F DEBUG   :     x4  0000000000000000  x5  8080808080808080  x6  0000000000000010  x7  7f7f7f7f7f7f7f7f
01-02 15:25:44.484 16719 16719 F DEBUG   :     x8  b400007d960ae880  x9  0000000001fa26a7  x10 0000000000000020  x11 0101010101010101
01-02 15:25:44.484 16719 16719 F DEBUG   :     x12 000000000000003a  x13 0000000000000004  x14 ffffffffffffffff  x15 0000000034155555
01-02 15:25:44.484 16719 16719 F DEBUG   :     x16 0000000000000001  x17 0000007ed9e9391c  x18 0000007c45908000  x19 b400007eda63ff00
01-02 15:25:44.484 16719 16719 F DEBUG   :     x20 0000007c45f70f80  x21 0000007c4226fe98  x22 0000007c45f705ac  x23 0000000000000000
01-02 15:25:44.484 16719 16719 F DEBUG   :     x24 0000000000000001  x25 0000000000000000  x26 0000007c45f70f80  x27 0000000000000000
01-02 15:25:44.484 16719 16719 F DEBUG   :     x28 0000000000000810  x29 0000007c45f705d0
01-02 15:25:44.484 16719 16719 F DEBUG   :     lr  005338dc6345a174  sp  0000007c45f70400  pc  0000007c42251860  pst 0000000060001000
01-02 15:25:44.484 16719 16719 F DEBUG   : 12 total frames
01-02 15:25:44.484 16719 16719 F DEBUG   : backtrace:
01-02 15:25:44.484 16719 16719 F DEBUG   :       #00 pc 0000000000030860  /vendor/lib64/libssccalapi@2.0.so (process_msg(_oem_msg*)+280) (BuildId: 9ad00dc25330b7205a59210bb55b0d48)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #01 pc 000000000000a170  /vendor/bin/sensor-notifier (SscCalApiWrapper::processMsg(_oem_msg*)+84) (BuildId: d4a4812927801f7f5d5f040a71989d8c)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #02 pc 000000000000aa4c  /vendor/bin/sensor-notifier ((anonymous namespace)::RawLightSensorCallback::onEvent(android::hardware::sensors::V1_0::Event const&)+84) (BuildId: d4a4812927801f7f5d5f040a71989d8c)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #03 pc 0000000000025cd4  /vendor/lib64/android.frameworks.sensorservice@1.0.so (android::frameworks::sensorservice::V1_0::BnHwEventQueueCallback::_hidl_onEvent(android::hidl::base::V1_0::BnHwBase*, android::hardware::Parcel const&, android::hardware::Parcel*, std::__1::function<void (android::hardware::Parcel&)>)+172) (BuildId: eb1c957b4dc973b9815f20028e2fc932)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #04 pc 0000000000025f18  /vendor/lib64/android.frameworks.sensorservice@1.0.so (android::frameworks::sensorservice::V1_0::BnHwEventQueueCallback::onTransact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+204) (BuildId: eb1c957b4dc973b9815f20028e2fc932)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #05 pc 000000000008eec4  /vendor/lib64/libhidlbase.so (android::hardware::BHwBinder::transact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+96) (BuildId: 1f1b763d02c2ca69f301812ca73907c4)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #06 pc 0000000000041df4  /vendor/lib64/libhidlbase.so (android::hardware::IPCThreadState::joinThreadPool(bool)+1372) (BuildId: 1f1b763d02c2ca69f301812ca73907c4)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #07 pc 0000000000041878  /vendor/lib64/libhidlbase.so (android::hardware::PoolThread::threadLoop()+28) (BuildId: 1f1b763d02c2ca69f301812ca73907c4)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #08 pc 0000000000017444  /vendor/lib64/libutils.so (android::Thread::_threadLoop(void*)+252) (BuildId: 88c08c6057f7bad16889c7c8a07a3364)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #09 pc 0000000000019bb0  /vendor/lib64/libutils.so (libutil_thread_trampoline(void*) (.__uniq.226528677032898775202282855395389835431)+24) (BuildId: 88c08c6057f7bad16889c7c8a07a3364)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #10 pc 0000000000080f70  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+184) (BuildId: cbe71727ecbc12f0ff67ea4610ee3521)
01-02 15:25:44.484 16719 16719 F DEBUG   :       #11 pc 0000000000073730  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: cbe71727ecbc12f0ff67ea4610ee3521)
01-02 15:25:44.484 16719 16719 F DEBUG   : allocated by thread 2075:
01-02 15:25:44.485 16719 16719 F DEBUG   :       #00 pc 0000000000068874  /apex/com.android.runtime/lib64/bionic/libc.so (gwp_asan::AllocationMetadata::CallSiteInfo::RecordBacktrace(unsigned long (*)(unsigned long*, unsigned long))+84) (BuildId: cbe71727ecbc12f0ff67ea4610ee3521)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #01 pc 0000000000068fc4  /apex/com.android.runtime/lib64/bionic/libc.so (gwp_asan::GuardedPoolAllocator::allocate(unsigned long, unsigned long)+564) (BuildId: cbe71727ecbc12f0ff67ea4610ee3521)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #02 pc 0000000000058e0c  /apex/com.android.runtime/lib64/bionic/libc.so ((anonymous namespace)::gwp_asan_malloc(unsigned long)+184) (BuildId: cbe71727ecbc12f0ff67ea4610ee3521)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #03 pc 00000000000597e4  /apex/com.android.runtime/lib64/bionic/libc.so (malloc+88) (BuildId: cbe71727ecbc12f0ff67ea4610ee3521)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #04 pc 00000000000f8504  /vendor/lib64/libc++.so (operator new(unsigned long)+28) (BuildId: ada37e5198285720b02f7d77fd27626c7782fe29)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #05 pc 000000000000aa18  /vendor/bin/sensor-notifier ((anonymous namespace)::RawLightSensorCallback::onEvent(android::hardware::sensors::V1_0::Event const&)+32) (BuildId: d4a4812927801f7f5d5f040a71989d8c)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #06 pc 0000000000025cd4  /vendor/lib64/android.frameworks.sensorservice@1.0.so (android::frameworks::sensorservice::V1_0::BnHwEventQueueCallback::_hidl_onEvent(android::hidl::base::V1_0::BnHwBase*, android::hardware::Parcel const&, android::hardware::Parcel*, std::__1::function<void (android::hardware::Parcel&)>)+172) (BuildId: eb1c957b4dc973b9815f20028e2fc932)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #07 pc 0000000000025f18  /vendor/lib64/android.frameworks.sensorservice@1.0.so (android::frameworks::sensorservice::V1_0::BnHwEventQueueCallback::onTransact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+204) (BuildId: eb1c957b4dc973b9815f20028e2fc932)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #08 pc 000000000008eec4  /vendor/lib64/libhidlbase.so (android::hardware::BHwBinder::transact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+96) (BuildId: 1f1b763d02c2ca69f301812ca73907c4)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #09 pc 0000000000041df4  /vendor/lib64/libhidlbase.so (android::hardware::IPCThreadState::joinThreadPool(bool)+1372) (BuildId: 1f1b763d02c2ca69f301812ca73907c4)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #10 pc 0000000000041878  /vendor/lib64/libhidlbase.so (android::hardware::PoolThread::threadLoop()+28) (BuildId: 1f1b763d02c2ca69f301812ca73907c4)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #11 pc 0000000000017444  /vendor/lib64/libutils.so (android::Thread::_threadLoop(void*)+252) (BuildId: 88c08c6057f7bad16889c7c8a07a3364)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #12 pc 0000000000019bb0  /vendor/lib64/libutils.so (libutil_thread_trampoline(void*) (.__uniq.226528677032898775202282855395389835431)+24) (BuildId: 88c08c6057f7bad16889c7c8a07a3364)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #13 pc 0000000000080f70  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+184) (BuildId: cbe71727ecbc12f0ff67ea4610ee3521)
01-02 15:25:44.485 16719 16719 F DEBUG   :       #14 pc 0000000000073730  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: cbe71727ecbc12f0ff67ea4610ee3521)

Looking at process_msg() in libssccalapi@2.0.so, it appears the _oem_msg
struct is used up to 264 bytes, so increase padding to 264 bytes. This
should fix the sensor-notifier crash permanently.

Change-Id: I97849cd4e5e41d3b25e8324c0a6ad50469559b8d
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2026-01-12 15:49:25 +01:00
3cf501c195 Revert "sm8450-common: parts: Drop per-app refresh rate"
This reverts commit 179b28dac6.
2026-01-12 15:49:25 +01:00
bgcngm
0bb4e9c02f sm8450-common: Migrate to common libqti-perfd-client and power-libperfmgr
-Import powerhint.json from lahaina
-powerhint: Adapt and tune for marble

Co-authored-by: beingashwani <ashwanic177@gmail.com>
Co-authored-by: bheatleyyy <bheatleyyy@users.noreply.github.com>
2026-01-12 15:49:25 +01:00
KenHV
49633ff859 sm8450-common: Overlay: Define config_screenRecorderAVCProfileLevel
* Fixes lags in native screen recorder
* Also set debug.sdm.support_writeback=0
2026-01-12 15:49:25 +01:00
Danny Lin
250801e610 sm8450-common: Disable EGL image tracking
This is a surfaceflinger debugging feature that we don't care about, so
disable it to reduce overhead.
2026-01-12 15:49:25 +01:00
Adithya R
b8089d93b3 sm8450-common: Defer refresh rate changes when screen is off
Some devices with video mode panels experience refresh rate mismatches when the screen is turned off. Specifically:
- The scheduler sets the refresh rate to 120 Hz after the screen turns off at 60 Hz (VRR idle).
- However, the HWC ignores this change, resulting in SurfaceFlinger (SF) incorrectly assuming the device is at 120 Hz when the display is turned back on.
- This causes a mismatch, as HWC continues rendering at 60 Hz, leading to inconsistencies.

To enable this behavior, set the following property:
- `debug.sf.defer_refresh_rate_when_off=1`

Change-Id: I46fd9e6b983138c1f625d52a65451eb04ce42820
2026-01-12 15:49:25 +01:00
7a0b3e8176 sm8450-common: Switch to SwitchPreferenceCompat 2026-01-12 15:49:25 +01:00
Bruno Martins
9e6535d6d0 sm8450-common: parts: Apply Expressive theme
Change-Id: I03c814b97c8401428f2b358d065a99503df9d1cc
2026-01-12 15:49:25 +01:00
Bruno Martins
698256d4d4 sm8450-common: devicesettings: Convert for M3E support 2026-01-12 15:49:25 +01:00
Saroj-Tajpuriya
046f735657 sm8450-common: sepolicy: Add binder call permissions for various HALs in system_app 2026-01-12 15:49:25 +01:00
Bruno Martins
f66df24175 sm8450-common: ThermalSettingsFragment: 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
2026-01-12 15:49:25 +01:00
Joey
143491786a sm8450-common: parts: Drop per-app refresh rate
Revert "sm8450-common: Add support for `60Hz in Landscape` in Per-App-RR"

This reverts commit dcd282605cb62c1b2d96503f8b69edb83bad6c75.
2026-01-12 15:49:25 +01:00
tusharind0074
133655dd80 sm8450-common: add missing libjnihelper.so 2026-01-12 15:49:25 +01:00
Chris Goldsworthy
a4ea13fb54 sm8450-common: rootdir: Remove redundant mlock() limit setting
The per-process limit for the mlock() family of system calls only
needs to be set in one group of config files. Remove from here as it
is being set in init.qcom.rc.

Change-Id: Ia7d46800eabe2954e3e2618a38ff180c88fee348
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2026-01-12 15:49:25 +01:00
beingashwani
62f3897382 sm8450-common: disable verbose camera logs
* fixes camera jitter/ui lag in some scenario
2026-01-12 15:49:25 +01:00
Ghosuto
2a5ceb69f1 sm8450-common: sepolicy: Add sepolicy to compat ignore list
This fixes the following error while building:
  SELinux: The following public types were found added to the policy without an entry into the compatibility mapping file(s) found in private/compat/V.v/V.v[.ignore].cil, where V.v is the latest API level.
  devicesettings_app settingslib_prop

Co-authored-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2026-01-12 15:49:25 +01:00
sashascurtu
fa45a4af12 sm8450-common: Build sensorservice 1.0 HAL
Fixes:
W HidlServiceManagement: Waited one second for android.frameworks.sensorservice@1.0::ISensorManager/default
I hwservicemanager: Since android.frameworks.sensorservice@1.0::ISensorManager/default is not registered, trying to start it as a lazy HAL.
I HidlServiceManagement: getService: Trying again for android.frameworks.sensorservice@1.0::ISensorManager/default...
W libc    : Unable to set property ctl.interface_start to android.frameworks.sensorservice@1.0::ISensorManager/default: error code: 0x20

Change-Id: If6fdef9dc39daaba9138fe3f8acf06cb6a0e78f8
2026-01-12 15:49:25 +01:00
Sourajit Karmakar
860bc4ef9a sm8450-common: Disable FRP
* This should really be disabled after unlocking the bootloader.

Change-Id: Icf5305cba66e9e613000a6ef53b32fa59760a7f2
2026-01-12 15:49:25 +01:00
me-cafebabe
f912a51198 sm8450-common: rootdir: Remove duplicate definition of service 'time_daemon'
* /vendor/etc/init/init.time_daemon.rc already defines it

Change-Id: I080f55adbfce6c3f0b8efe088a39145c9e54c2af
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2026-01-12 15:49:25 +01:00
beingashwani
6d916b93ac sm8450-common: fix a fatal dolby hal denial
10-07 18:59:18.204  1292  1292 I auditd  : avc:  denied  { read } for  comm="vendor.dolby.ha"  tcontext=u:object_r:vendor_audio_prop:s0  tclass=file  permissive=0
10-07 18:59:18.212  1292  1292 I auditd  : avc:  denied  { write } for  comm="vendor.dolby.ha"  name="property_service"  tclass=sock_file  permissive=0
2026-01-12 15:49:25 +01:00
markakash
12e185ebbf sm8450-common: Use 8Gb dalvik heap size config
- Helps fix java.lang.OutOfMemoryError: Failed to allocate a 24 byte
   allocation with 2582544 free bytes and 2522KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC
2026-01-12 15:49:25 +01:00
beingashwani
4017fb40f4 [REAPPLY] sm8450-common: Fix the auto brightness
* Support commit for this change is here 4db7648eaec53b6f9f68643876e361240fe00af7.
* this prevents the sudden brightness increase in white screens in auto brightness mode.
2026-01-12 15:49:25 +01:00
beingashwani
40b74e9b13 sm8450-common: fix auto brightness issues
- fixed delay of auto brightness mode.
- The problem with auto brightness is In night time You keep your brightness at below 5-10% for obvious reasons, Then you decide to view any white screen ( it could be manga , wallpaper, video anything) the brightness will increase drastically causing pain in eyes
2026-01-12 15:49:25 +01:00
Yohan Black
3096b64008 sm8450-common: init: Give proper permissions for /dev/diag
* E Diag_Lib:  Diag_LSM_Init: Failed to open handle to diag driver, error = 13

* This gives proper permission to /dev/diag node so that diag driver can load successfully

Change-Id: I51cf76188ebe57b0c5c27d5c6236049f3ca9170c
2026-01-12 15:49:25 +01:00
swiitchOFF
917b4869ef fixup! sm8450-common: Include Aospa Dolby Atmos
* Using dolby from: https://github.com/xiaomi-sm8450-marble/android_hardware_dolby
[1]: sm8450-common: Add dolby volume listener effect
[2]: sm8450-common: audio: Bring all stream effects
[3]: sm8450-common: HIDL: Move all hidl files to devicetree
[4]: sm8450-common: audio: Sync with Spatial Audio

Co-Authored-By: HELLBOY017 <abhaygill017@gmail.com>
Signed-off-by: swiitchOFF <120115258+swiitchOFF@users.noreply.github.com>
2026-01-12 15:49:25 +01:00
ralf979
1c7ccddde1 sm8450-common: overlay: set 60hz refresh rate for AOD 2026-01-12 15:49:25 +01:00
Fabian Leutenegger
2f241e820e sm8450-common: sunset dolby vision
Revert "sm8450-common: Add support for Dolby Vision"

This reverts commit 0a38dbb184.
2026-01-12 15:49:25 +01:00
Fiqri Ardyansyah
77ff93ba08 sm8450-common: Drop unused QTI VM manager blobs
marble did not shipping vm-bootsys firmware image.

Change-Id: I6d7cb43fe5bffc1989e882df70196fa7d6e44413
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2026-01-12 15:49:25 +01:00
chaitanya
7ab993c371 Revert "sm8450-common: overlay: Decouple display state from auto-suspend"
This reverts commit 3e833645856b17bf828479e73e8516956237444c.
2026-01-12 15:49:25 +01:00
New Author Name
0ce7dad2ce [DNM] sm8450-common: sepolicy: Add sepolicy for diag-router app
* Needed only for user build
* Guard do not use for userdebug/eng build

Co-Authored-By: Tiernan Hubble <thubble@thubble.ca>
Co-Authored-By: TogoFire <togofire@mailfence.com>
2026-01-12 15:49:25 +01:00
Subhajeet Muhuri
41d4019851 sm8450-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
2026-01-12 15:49:25 +01:00
Luffitys
c777ae400f sm8450-common: Build missing wifi-display libs
Co-Authored-By: EdwinMoq <EdwinMoq@users.noreply.github.com>
2026-01-12 15:49:25 +01:00
Vinoth Jayaram
a15e5e2d01 sm8450-common: Disable HWC for VDS except wfd.
We should disable debug.sf.enable_hwc_vds and
enable vendor.display.vds_allow_hwc
to allow only wfd to go through hwc path.

Change-Id: I67a96fc749dcc7c3fe77ed7c325004c03ba0b38f
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2026-01-12 15:49:25 +01:00
Michael Bestas
9ac5239de1 sm8450-common: overlay: Remove deprecated config_mobile_tcp_buffers/networkAttributes
Change-Id: Ieda947e283cde11cf74a01dc1b438e1deeb902c9
2026-01-12 15:49:25 +01:00
Arian
59a4ff21c3 sm8450-common: doze: Get rid of HelpDialogFragment class
As preparation to upgrade the sdk get rid of this private class.
Fragments must be a public static class to be properly recreated from instance state.

Also change the behaviour to only hide the dialog when confirmed instead of also when it is cancelled.

Change-Id: I171aa2345058edae7520c37942c3c11b3cdfdfdc
2026-01-12 15:49:25 +01:00
Joey Huab
19402604bd sm8450-common: Fix overlay for custom ambient display 2026-01-12 15:49:25 +01:00
Fiqri Ardyansyah
fc5671809f sm8450-common: wlan: Use default value for assoc failure timeout
Using the value from xiaomi changes is out of bounds since [1]
it reduces the value limit, so if using the value from xiaomi
it will fallback and use the default value. If we use the max
value it causes internet connection problems when using wifi,
so let it use the default value.

[1]: b64278b0a5

Change-Id: I7f6ef4d96ce40d123526ae1b951b544f52d28ff9
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2026-01-12 15:49:25 +01:00
Bing Sun
0257e16f66 sm8450-common: wlan: Remove g_prefer_5g_scc_to_dbs
Driver has removed g_prefer_5g_scc_to_dbs related code, so remove
ini g_prefer_5g_scc_to_dbs.

Change-Id: I026fc3012ca4ab0217a4243e9fe145c8a45559ac
CRs-Fixed: 3070670
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2026-01-12 15:49:25 +01:00