Commit graph

1372 commits

Author SHA1 Message Date
New Author Name
3705fffb02 sm8350-common: audio: Add dolby volume listener 2025-04-07 22:02:27 +00:00
swiitchOFF
36e53fe270 sm8350-common: audio: Sync with MIUI CN 14 dolby effects 2025-04-07 22:02:27 +00:00
New Author Name
cbf7002fa5 sm8350-common: Include Moto Dolby Atmos
* Using dolby from: https://github.com/swiitch-OFF-Lab/hardware_dolby
* dolby: Add mediacodecs support (Useful for Apple Music)

Signed-off-by: swiitchOFF <120115258+swiitchOFF@users.noreply.github.com>
Co-Authored-By: HELLBOY017 <abhaygill017@gmail.com>
Co-Authored-By: Pranav Vashi <neobuddy89@gmail.com>
2025-04-07 22:02:27 +00:00
Vaisakh Murali
716c066c14 sm8350-common: Use HintManager for HWUI
This will send HWUI timings to HintManager for better CPU scheduling.
Setting a 30% margin for CPU should heavily reduce CPU loads for HWUI and
use GPU for the rest.

Change-Id: Ibd808393f655fae73eba1065e53062be0b140d9a
2025-04-07 22:00:38 +00:00
New Author Name
97c2b7154c sm8350-common: Remove FM Tuner from audio input devices
* This fixes google voice recorder

Change-Id: If42676a0087e055e3164da4b0cc43987e32d82b3
2025-04-07 21:58:59 +00:00
jjpprrrr
033a98acf1 sm8350-common: audio: Remove quad mic
*This fixes in-game mic for various games
2025-04-07 21:58:59 +00:00
New Author Name
df40dde354 sm8350-common: audio: Disable stereo support for voip
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: Ic951a4fd43a4b647d5f6f271259a65be18289627
2025-04-07 21:58:59 +00:00
Demon000
f4b11b57fd sm8350-common: overlay: Disable proximity usage during doze
* we have a virtual (ultrasound) proximity sensor
   so this will never work
2025-04-07 21:58:59 +00:00
Michael Bestas
25129cb0c2 sm8350-common: gps: Reduce LOWI debug level
* Kill logcat spam
2025-04-07 21:58:59 +00:00
Danny Lin
559b15b66c sm8350-common: overlay: Don't pin launcher app in memory
Similar to what we did for the camera app, unpin the launcher app from
memory as well. While the default launcher (Launcher3) isn't
particularly big, it doesn't make much sense to pin because the launcher
does not typically load new resources much. Most of its resources should
already be loaded in memory after it starts, so pinning the APK is
redundant.
2025-04-07 21:58:59 +00:00
Jake Weinstein
70870c59a3 sm8350-common: rootdir: Move background cpuset to CPU0-1
Background tasks are not UX-critical.
Free up cores to work on more important
UX tasks.
2025-04-07 21:58:59 +00:00
Jake Weinstein
c00b45b5b3 sm8350-common: rootdir: Do not allow restricted tasks to run on big cores
The restricted cpuset is for system tasks that are
throttled because the screen is off. Google only
runs these tasks on the little cluster
to save power and we will follow suit.
2025-04-07 21:58:59 +00:00
Jun Wang
1cf653ee43 sm8350-common: props: Disable Skia tracing by default
If the prop "debug.hwui.skia_atrace_enabled" is enabled, too many
skia tracing calls will be printed in every frame. This has obvious
overhead on performance/power, and can cause many janks. So disable
it by default, and user can set it manually if necessary.
2025-04-07 21:58:59 +00:00
Kuba Wojciechowski
ea3610f4cb sm8350-common: Set screen recorder max framerate to 120Hz
haydn has 120Hz display, so why not just use it
2025-04-07 21:58:59 +00:00
Murat Kozan
e64b7ababf sm8350-common: Allow perf hal to create vendor/lm
ANDR-PERF-LM: Core: lmMain() 287: Waiting for LM data dir: /data/vendor/lm/, Error: No such file or directory
2025-04-07 21:58:59 +00:00
Peng Xu
123624d279 sm8350-common: Enable support for IEEE80211AX
* This is to allow supporting WiFi 6 mobile hotspots,
   to be noted this is only supported on SDM855+ platforms.

Change-Id: Iab61bd12499968e8823b3078acd1c7b8bce46136
2025-04-07 21:58:59 +00:00
Mahesh Palivela
85e1a4fe33 sm8350-common: Enable support for IEEE80211AC
* This is to allow supporting GO with 11AC support.

Change-Id: I08793eaa6295c5cfe5ac11eeee2f92213af78844
2025-04-07 21:58:59 +00:00
Kumar Anand
70f913752d sm8350-common: Enable automatic channel selection
* Automatic Channel Selection algorithms and implementations
   are used to enable interfaces to automatically figure
   out which channel configuration to use for initiating
   communication, for any mode of operation which initiates
   radiation (AP, Mesh, IBSS, P2P).

   https://wireless.wiki.kernel.org/en/users/documentation/acs

Change-Id: I5c95994ea52495990cf9244c703bc88db170f7f6
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2025-04-07 21:58:59 +00:00
Praveen Chavan
818629d285 sm8350-common: props: Add a property to enable prefetching video
persist.mm.enable.prefetch, if set to true, will enable
prefetching of video input from upstream source to help
improve playback performance for high frame-rate and
high bitrate content

Change-Id: I814785befd9844364afb50eb7d48439406ae0750
Signed-off-by: saikiran2001 <bjsaikiran@gmail.com>
Signed-off-by: thepriyanshujangid <priyanshujangid@yahoo.com>
2025-04-07 21:58:59 +00:00
Jun Wang
a27870c98d sm8350-common: props: Enable the pre-rendering feature
* Pre-rendering feature can improve FPS and reduce the janks
   in scrolling cases.

Change-Id: I2152d0a1a8f9e337cb0355c8874e72f0f3c2cb46
Signed-off-by: NotHarshhaa <reddyharshhaa12@gmail.com>
Signed-off-by: chemusqui1 <61394758+chemusqui1@users.noreply.github.com>
2025-04-07 21:58:59 +00:00
Kuba Wojciechowski
a8a38f4efd sm8350-common: Disable kpti
* As per qualcomm - "SM8150/SM8250/SM8350/SM7250/SM7150/SM6150 - KPTI Not
required".
* It can also help increase performance by a lot in some scenarios.
2025-04-07 21:58:59 +00:00
Akash Srivastava
6d45a70a8c sm8350-common: rootdir: Chown the cgroup.procs nodes
* Perf-hal tries to access the nodes but requires permissions as reflected in the logs
* 11-10 19:25:50.044  1055  1080 E ANDR-PERF-OPTSHANDLER: Cannot open/create foreground cgroup file
2025-04-07 21:58:59 +00:00
kamikaonashi
54571c78e6 sm8350-common: parts: restore brightness after HBM usage
after disabling HBM, the brightness would rise back up, save brightness before enabling HBM and restore it after disabling
2025-04-07 21:58:59 +00:00
Ramii Ahmed
9c5b475a92 sm8350-common: parts: Add High Touch Polling Rate
Used to handle our node to force enable Xiaomi's High Touch polling rate mode from kernel
2025-04-07 21:58:59 +00:00
kamikaonashi
b015e718de sm8350-common: parts: Import DC Dimming and HBM Settings
* Implement DC Dimming preference
* Disable DC Dimming if it's not supported
* Implement HBM switch
* Adapt HBM and DC dimming settings to S style
* Define DC dimming and HBM nodes / keys in one place
* Declare exported flags in manifest
* Fix compilation for QPR1
* Fix compilation for Android 15
* Adapt to sm8350-common devices

Co-Authored-By: Nauval Rizky <enuma.alrizky@gmail.com>
Co-Authored-By: Adhitya Mohan <me@adhityamohan.in>
Co-Authored-By: TheScarastic <warabhishek@gmail.com>
Co-Authored-By: alibei <sebastiankotzias83@gmail.com>
Co-Authored-By: kamikaonashi <thorschi93@gmx.at>
2025-04-07 21:58:59 +00:00
AnierinB
9e80eb08fd sm8350-common: parts: Add thermal profiles tile
* Launches ThermalActivity
2025-04-07 21:58:59 +00:00
Adithya R
f11b516f93 sm8350-common: parts: Fix setting default thermal profile
When the app's default thermal profile was different from the standard
one, it resulted in not being able to set it back to the default mode.

Fixes 37a15544 ("sm8350-common: parts: Automatically determine thermal profile for apps")

Change-Id: I5029cfc72194a93f7ab693b6b6aa966066d7c3bf
2025-04-07 21:58:59 +00:00
Adithya R
eec204e875 sm8350-common: parts: Automatically determine thermal profile for apps
Assume an appropriate default thermal profile based on package information.
2025-04-07 21:58:59 +00:00
someone5678
4af1300b0c sm8350-common: parts: Add {navigation,video} thermal profiles
* icon taken from https://fonts.google.com

Signed-off-by: Pabloescobar-reborn <pabloescobarreborn77@gmail.com>
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2025-04-07 21:58:59 +00:00
Adithya R
fe475100ed sm8350-common: parts: Get rid of proguard flags
This is obsolete.

Change-Id: I1b692d3e1a96c49ac6efd54907ea23c4b4494f7e
2025-04-07 21:58:59 +00:00
kssrao13882
38890ae9a2 sm8350-common: Remove order preference for Thermal Profiles
- In Infinity X rom this tab at top spoils the look of Battery section
2025-04-07 21:58:59 +00:00
Chaohui Wang
7d129e23d5 sm8350-common: parts: Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835
2025-04-07 21:58:59 +00:00
Peter Kalauskas
21318d741e sm8350-common: parts: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e
2025-04-07 21:58:59 +00:00
Adithya R
528bc79bcd sm8350-common: parts: Fix thermal profile screen state handling 2025-04-07 21:58:59 +00:00
EmanuelCN
ed680bb1d9 sm8350-common: parts: Checkout thermal profiles to xiaomi-sm8250 implementation 2025-04-07 21:58:59 +00:00
kenway214
fd7181f4f7 sm8350-common: parts: sepolicy: Initial Sepolicy for Xiaomi parts
Change-Id: 68fed5cda7f4c17aab13ga47e6e212b97b22c2bf
Signed-off-by: kenway214 <kenway214@outlook.com>

peridot: sepolicy: allow parts to get SettingsLib prop

ThermalSettingsFragment's use of ApplicationsState includes a
check of whether a package is an instant app or not. The function
isInstant() in AppUtils reads settingsdebug.instant.packages prop
to retrieve a list of instant packages for debugging purposes.

We do not actually use this property, but this check triggers an
SELinux denial for every package in the list and spams the logs
with permission denied errors. Get rid of these log spams by
allowing parts to read the prop.

Test: open the thermal profile settings and check logs
Signed-off-by: kenway214 <kenway214@outlook.com>
Co-Authored-By: Arian <arian.kulmer@web.de>
2025-04-07 21:58:58 +00:00
Arian
95eb8d73fd sm8350-common: parts: Import from xiaomi_sdm845-common
e261035d91/parts

Change-Id: I442f48780ca020f3e420ee4ccaf8ac07b05457cb
Signed-off-by: Anush02198 <anush.4376@gmail.com>
2025-04-07 21:57:53 +00:00
minaripenguin
f83b9c928c sm8350-common: prop: Enable apk fs-verity
* for some reason, some apps automatically detects that we're rooted due to verityUtils failing to measure the apps apk fs-verity.
2025-04-07 21:57:47 +00:00
Carlos Arriaga
96ecdff057 sm8350-common: sepolicy: Add camera label's
W libc    : Access denied finding property "ro.camera.req.fmq.size"
W libc    : Access denied finding property "ro.camera.res.fmq.size"
Signed-off-by: RobertGarciaa <chae0218@naver.com>
Signed-off-by: DigiGoon <kagatharatarang@gmail.com>
2025-04-07 21:57:12 +00:00
Murat Kozan
8196782848 sm8350-common: sepolicy: Add Leica Camera sepolicy
Signed-off-by: DigiGoon <kagatharatarang@gmail.com>
2025-04-07 21:57:01 +00:00
Murat Kozan
07f59e2eb4 sm8350-common: sepolicy: Label persist.vendor.low.cutoff for Leica Camera
Leica camera
 libc : Access denied finding property "persist.vendor.low.cutoff"

Signed-off-by: DigiGoon <kagatharatarang@gmail.com>
2025-04-07 21:56:16 +00:00
Danny Lin
6ec7d9a895 sm8350-common: Optimize native executables for Cortex-A76 CPU
* Allow the compiler to take advantage of ARMv8.2 extensions
   to improve performance in native executables, not
   just Java code compiled by ART.

Change-Id: Idd3414de107f47a18c2769dc930e6c4bceacdc62
2025-04-07 21:53:10 +00:00
Adithya R
4e2357c35e sm8350-common: Switch to dot product CPU variant
* lisa:/ $ cat /proc/cpuinfo | grep -m 1 Features
   Features: fp asimd evtstrm aes pmull sha1 sha2 crc32
   atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp

 * From this, it's evident that our CPU (Snapdragon 888)
   supports all the features of ARMv8.2-DotProd [1].
   Moreover AOSP sets this arch variant in their generic
   cortex-a55 ART target as well [2]. This should unlock
   some optimizations in different code paths.

[1]:
https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features
[2]:
https://android.googlesource.com/device/generic/art/+/refs/heads/master/armv8_cortex_a55/BoardConfig.mk#23

Change-Id: I484bb2bcc181c62e29c04bc6e467e5edea8ac0d8
2025-04-07 21:52:59 +00:00
Michael Bestas
ba9b775ce5
sm8350-common: Enable ELF checks for libwpa_client dependent libs
Change-Id: I490df02b68da4b9a7088a239672a1dcace66d270
2025-04-01 08:44:40 +02:00
basamaryan
163777f564
sm8350-common: Don't explicitly set as an AB target
AB is the default

Change-Id: I93346d29da38405bf571f138ae905d67966c1f9c
2025-04-01 08:44:40 +02:00
Nolen Johnson
102054b7f3
sm8350-common: Drop PRODUCT_PACKAGES_DEBUG entry
* unnecessary

Change-Id: I22ae2c744ec55168b8367c826e55110e7534466e
2025-04-01 08:44:40 +02:00
Cosmin Tanislav
eb3c37ade2
sm8350-common: switch to common QCOM AIDL bootctrl HAL
Change-Id: I04ab771d3b1c38b58913607fbff1bb3b55e1fe25
2025-04-01 08:44:40 +02:00
x0x00044
7acd607487
sm8350-common: overlay: Remove config_cellBroadcastAppLinks
- This is true by default.

Change-Id: I9f91f4bf49995975d434ad8b74b175693409862a
2025-04-01 08:44:40 +02:00
feiyuchen
09f4530ac8
sm8350-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-01 08:44:39 +02:00
Andy Hung
e247a8fe8b
sm8350-common: rootdir: Optimize for Spatial Audio
Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread.
Reduce glitches caused by core migration.
Reduce power consumption as Spatializer Effect is DSP compute bound.
This change only affects Spatial Audio Effect processing.

Test: instrumented
Test: adb shell 'uclampset -a -p $(pgrep -of
android.hardware.audio.service)'
Test: adb shell cat "/proc/$(adb shell pgrep -of
android.hardware.audio.service)/status"
Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)'
Bug: 181148259
Bug: 260918856
Bug: 261228892
Bug: 261686532
Bug: 262803152
Merged-In: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56

Change-Id: I21697423e8c20b34040c5a6641126918b0d75bb5
2025-04-01 08:44:39 +02:00