Commit graph

1411 commits

Author SHA1 Message Date
Alucard-Storm
14045005f3 sm8350-common: sepolicy: add missing autoHBM policy (again) 2025-04-09 00:49:05 +00:00
Alucard Stormbringer
8c060e305a sm8350-common: sepolicy: add missing autoHBM policy 2025-04-09 00:47:17 +00:00
kenway214
9e750ef2d1 sm8350-common: Expose aux cameras to com.snapchat.android
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-04-07 23:44:59 +00:00
drkphnx
a6a0bbf8e1 sm8250-common:move gamebar to system settings and add icon as well
Signed-off-by: drkphnx <dark.phnx12@gmail.com>
2025-04-07 23:44:59 +00:00
John Galt
b226c659cb sm8350-common: CameraProvider: set saner values
1500 is WAAAAY too high on haydn. Set max to a saner of 750.

Also prior to this change, 80 was default for torch, so set 80 as
default.
2025-04-07 23:44:59 +00:00
Cyber Knight
c165248466 sm8350-common: sepolicy: Address a cameraserver neverallow
- For some reason, allowing cameraserver to access sysfs_leds on lahaina results in a neverallow.
- Hence, allow cameraserver to access a new type, sysfs_torch which only accesses the relevant nodes we utilize to alleviate the neverallow.

Change-Id: I8625b32f2bb501bbf85f0c026dca22a8e0bcc939
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-04-07 23:44:49 +00:00
John Galt
51659a044d sm8350-common: camera: Add enabled bool for finished workarounds
Change-Id: Iede122113f17789cdf88896cb32bc30f574ec54f
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-04-07 23:44:21 +00:00
bengris32
c873db5b07 sm8350-common: camera: Implement setTorchModeExt
Change-Id: Id61420be75b7efd1d13a4b0ee1d103ebd3835516
Signed-off-by: electimon <electimon@gmail.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-04-07 23:44:04 +00:00
bengris32
77e324ab72 sm8350-common: camera: Implement supportsSetTorchModeExt
Change-Id: I2ec2f4a30723763e6123a1b742468752f38e3d2f
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-04-07 23:44:04 +00:00
Dhina17
acf4649586 sm8350-common: Implement torch light control
[RealJohnGalt: Modify for oneplus usage and add toggle switch]
[cyberknight777/ralph950412: Adapt nodes and SEPolicy for Xiaomi SM8350]
[Hexdare: Adapt nodes and SEPolicy for Haydn]

Change-Id: Icd32d1f6aedb55462c9df4d7cc63a2a4c4e4263e
Signed-off-by: ralph950412 <ralph950412@gmail.com>
Signed-off-by: Hexdare <mohammedasimuddin786@gmail.com>
2025-04-07 23:44:04 +00:00
kenway214
3c102e80f4 sm8350-common: Introduce GameBar v2.0
Signed-off-by: kenway214 <kenway214@outlook.com>
Signed-off-by: Hexdare <mohammedasimuddin786@gmail.com>
2025-04-07 23:43:42 +00:00
Chenyang Zhong
9fcc609526 sm8350-common: rootdir: import diag related usb entries
Looks like apps like Network Signal Guru connects to the diag-router
through an emulated(?) USB device.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: 0mar99 <omarag9099@gmail.com>
2025-04-07 23:41:35 +00:00
EndCredits
8fa7797f8d sm8350-common: Allow some domain to access diag hal
Signed-off-by: EndCredits <endcredits@crepuscular-aosp.icu>
Signed-off-by: 0mar99 <omarag9099@gmail.com>
2025-04-07 23:41:35 +00:00
Jack Pham
5684a5e044 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-04-07 23:41:35 +00:00
danielml
de2fb061fd sm8350-common: Fix vendor.qti.diaghal@1.0 elf checks
Change-Id: I6336f5a2fda3721e03bfc21030a9b1092d0c9828
Signed-off-by: RobertGarciaa <chae0218@naver.com>
2025-04-07 23:41:35 +00:00
Chenyang Zhong
350a96ba76 sm8350-common: Import diag HAL
Apps like Network Signal Guru needs diag HAL.

PR:
PixelExperience-Devices/device_xiaomi_venus#1

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: 0mar99 <omarag9099@gmail.com>
Co-Authored-By: David Wheatley <hi@davwheat.dev>
2025-04-07 23:41:27 +00:00
Alucard-Storm
892334b356 sm8350-common: build vendor.qti.hardware.capabilityconfigstore@1.0
F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
2025-04-07 23:39:14 +00:00
johnmart19
d9e11d3f64 sm8350-common: Enable VoNR Calls support 2025-04-07 23:38:38 +00:00
pjgowtham
c723e710ab sm8350-common: Disable logging sensors-hal events
This sets log_level to 0
10-14 14:17:17.674 14629 14629 I sensors-hal: get_system_config:67, log_level: 0

This is done especially to disable spammy logging of oplus ambient light sensor events
10-14 14:17:12.821 12603 14590 I sensors-hal: handle_oplus_ambient_light_event:157, oplus_ambient_light: ts=3858719100254, lux=11, data_c=0, delta_ms=0, data_cnt=0

Change-Id: Ib097c172bb01ae62dec542a76b289a9641764bc2
2025-04-07 23:30:55 +00:00
Alec Mouri
190314fe37 sm8350-common: Force device to treat 170M as sRGB in SF
Bug: 229442032
Test: builds, boots
Change-Id: I2910f9d025ca6a6f3e73544e8f14346cfb0bc177
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2025-04-07 22:55:09 +00:00
Pullakavi Srinivas
b614ffb3a8 sm8350-common: hwc: Disable SF composition prediction model.
CRs-Fixed: 3243885
Change-Id: I64f82a25768b561bb343fdb7686b7d6c020d024a
2025-04-07 22:55:02 +00:00
quic_swarbu
0560c71b5d sm8350-common: display: Disable the property debug.sf.enable_gl_backpressure
Change-Id: Ib328ee094d7c164b50007703ab7610661c2ec017
2025-04-07 22:54:54 +00:00
Adithya R
ed52a2da30 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-04-07 22:54:37 +00:00
Adithya R
4df8637a38 sm8350-common: init: Move audio-app cpuset to 1-2
audio driver affines pm-qos requests to these cpus so it makes sense
to use them for audio-app as well

Change-Id: I61223db706042e215b1ab5ca9eb4562989e362f6
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2025-04-07 22:48:53 +00:00
justinweng
999a59389d sm8350-common: Extend audio offload buffer size to 256kb
Extend buffer size for offload playback to reduce the frequency of CPU
wake up.
It makes ADSP to process more data one time and reduce the number of
times to wake up CPU.

Bug: 137973303
Test: MP3 playback

Change-Id: Ib0b2a8827647ed780bb20bd9dfa2a383153eb282
Signed-off-by: justinweng <justinweng@google.com>
Signed-off-by: xNombre <kartapolska@gmail.com>
Signed-off-by: Pascoato <viniciuspascoato@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2025-04-07 22:48:53 +00:00
New Author Name
970c93c19c sm8350-common: audio: Import OOS modified volumes
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-04-07 22:48:53 +00:00
New Author Name
c4db2ee46d sm8350-common: audio: Bring all stream effects
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
2025-04-07 22:48:53 +00:00
Mikhail Naganov
1e5e95bcbf sm8350-common: Switch audio HAL to V7
Updated audio policy manager configuration files to comply
with the changes in the XML schema.

Bug: 142480271
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioEffectV7_0TargetTest
Change-Id: I1f96e61c6d18763099d0f87e2b880948dad80f9a
2025-04-07 22:48:53 +00:00
swiitchOFF
df46129318 sm8350-common: audio: Sync with Spatial Audio 2025-04-07 22:48:53 +00:00
New Author Name
b21976670a sm8350-common: Audio Policy: Import Bluetooth Devices Encodings for Dolby Processing 2025-04-07 22:48:53 +00:00
New Author Name
6d742f2f90 sm8350-common: audio: Add dolby volume listener 2025-04-07 22:48:53 +00:00
swiitchOFF
eeff2b9977 sm8350-common: audio: Sync with MIUI CN 14 dolby effects 2025-04-07 22:48:53 +00:00
New Author Name
9d295d35ba 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:48:53 +00:00
New Author Name
5574e90af9 sm8350-common: Remove FM Tuner from audio input devices
* This fixes google voice recorder

Change-Id: If42676a0087e055e3164da4b0cc43987e32d82b3
2025-04-07 22:48:53 +00:00
jjpprrrr
3fb0d41ece sm8350-common: audio: Remove quad mic
*This fixes in-game mic for various games
2025-04-07 22:48:53 +00:00
New Author Name
773bf91753 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 22:48:53 +00:00
kamikaonashi
d27ef355a4 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 22:48:53 +00:00
Ramii Ahmed
b5ada337b7 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 22:48:53 +00:00
kamikaonashi
9ab4ac0793 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 22:48:53 +00:00
AnierinB
b267176238 sm8350-common: parts: Add thermal profiles tile
* Launches ThermalActivity
2025-04-07 22:48:53 +00:00
Adithya R
b7a863ceca 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 22:48:53 +00:00
Adithya R
ed57368818 sm8350-common: parts: Automatically determine thermal profile for apps
Assume an appropriate default thermal profile based on package information.
2025-04-07 22:48:53 +00:00
someone5678
78acd8b27e 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 22:48:53 +00:00
Adithya R
2bddba6d6c sm8350-common: parts: Get rid of proguard flags
This is obsolete.

Change-Id: I1b692d3e1a96c49ac6efd54907ea23c4b4494f7e
2025-04-07 22:48:53 +00:00
kssrao13882
6bea9a609f 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 22:48:53 +00:00
Chaohui Wang
a2ecf17759 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 22:48:53 +00:00
Peter Kalauskas
6dc4f4bc6e 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 22:48:53 +00:00
Adithya R
8dc4142d4b sm8350-common: parts: Fix thermal profile screen state handling 2025-04-07 22:48:53 +00:00
EmanuelCN
fbc0ac7ff0 sm8350-common: parts: Checkout thermal profiles to xiaomi-sm8250 implementation 2025-04-07 22:48:53 +00:00
kenway214
78bf8f6398 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 22:48:53 +00:00