Commit graph

1351 commits

Author SHA1 Message Date
Mahesh Palivela
0d3a0bbd2a sm8350-common: Enable support for IEEE80211AC
* This is to allow supporting GO with 11AC support.

Change-Id: I08793eaa6295c5cfe5ac11eeee2f92213af78844
2025-04-07 21:37:38 +00:00
Kumar Anand
552a60d338 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:37:38 +00:00
Praveen Chavan
15f2f80d2f 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:37:15 +00:00
Jun Wang
5fe2586b3c 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:36:59 +00:00
Kuba Wojciechowski
97f5b6efd7 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:36:42 +00:00
Akash Srivastava
26b9a5d0f2 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:36:31 +00:00
kamikaonashi
9590e9c1e8 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:34:28 +00:00
Ramii Ahmed
4708d51a81 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:33:42 +00:00
kamikaonashi
675a14ba3e 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:33:42 +00:00
AnierinB
d623393e11 sm8350-common: parts: Add thermal profiles tile
* Launches ThermalActivity
2025-04-07 21:33:42 +00:00
Adithya R
8907b9860a 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:33:42 +00:00
Adithya R
b22a046986 sm8350-common: parts: Automatically determine thermal profile for apps
Assume an appropriate default thermal profile based on package information.
2025-04-07 21:33:42 +00:00
someone5678
928345bf70 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:33:42 +00:00
Adithya R
44bff16ba9 sm8350-common: parts: Get rid of proguard flags
This is obsolete.

Change-Id: I1b692d3e1a96c49ac6efd54907ea23c4b4494f7e
2025-04-07 21:33:42 +00:00
kssrao13882
04950a6e41 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:33:42 +00:00
Chaohui Wang
e420f646bd 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:33:42 +00:00
Peter Kalauskas
8f7fa04c27 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:33:42 +00:00
Adithya R
f1b552a3e8 sm8350-common: parts: Fix thermal profile screen state handling 2025-04-07 21:33:42 +00:00
EmanuelCN
9ac68341c5 sm8350-common: parts: Checkout thermal profiles to xiaomi-sm8250 implementation 2025-04-07 21:33:42 +00:00
kenway214
87d30813c3 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:33:42 +00:00
Arian
98d9a54b24 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:33:42 +00:00
minaripenguin
d04bfae972 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 11:31:42 +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
Andy Hung
5a8515c1ac
sm8350-common: rootdir: Enable RT priority inheritance
Test: instrumented
Bug: 181148259
Bug: 260918856
Merged-In: If56e449a9c6f1a49e372591893d8714534574e3a
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
2025-04-01 08:44:39 +02:00
emilchung
7204976ce3
sm8350-common: rootdir: add context_hub into audio hal group
While implementing the capo nanoapp for audio configuration, we met
some chre socket connected error due to the access group denied.

Add context_hub group for audio hal to connect chre socket.

go/capo-algo

Bug: 141128522
Bug: 149069556
Test: FULL build with audio hal part and local prebuilts nanoapp.
Test: Audio HAL communicates normally with CHRE socket.
Change-Id: Iea84411682f4c3e08f8b37a5b21818b0e9b04983
2025-04-01 08:44:39 +02:00
Alexander Koskovich
fb32cd3a00
sm8350-common: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html

Change-Id: I19460ef266a646b046f1e7d2f0b4eab7c48ae536
2025-04-01 08:44:39 +02:00
Yung Ti Su
3fc3cca687
sm8350-common: Enabling sound trigger V2_3
Bug: 139071862
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: I4123b0af64fc7bed934026540136e3811fab32f3
2025-04-01 08:44:39 +02:00
Giovanni Ricca
e514d5df3f
sm8350-common: hidl: Unset kernel target level
Change-Id: Id2941d31ff7f1e5e1bb479fe31f5695345b02f12
2025-04-01 08:44:39 +02:00
basamaryan
1525a08736
sm8350-common: Use the common Xiaomi FCM
Change-Id: I0ca395bc5c23c26e1546d3dd1839592530cc0e3f
2025-04-01 08:44:39 +02:00
Bruno Martins
e505b0bd25
sm8350-common: Inherit from QTI FCM
Change-Id: I0bdd4d63b60a1e29cdd69e71f7268932a105c16b
2025-04-01 08:44:39 +02:00
Bruno Martins
f02a3ab3e6
sm8350-common: Use the common device compatibility matrix from QCOM
Change-Id: I0c0f3ecddbe6d7b232cc0d13c78ca58094e4e720
2025-04-01 08:44:39 +02:00
Yan Yan
592f3fe21e
sm8350-common: Add feature flag for IPSEC_TUNNEL_MIGRATION
This commit adds the IPSEC_TUNNEL_MIGRATION feature flag,
with XFRM_MIGRATE used as the implementation

Bug: 273379472
Test: build, flash and verify with "adb shell pm list features"
Test: atest IpSecManagerTunnelTest
Change-Id: Id2ee3e65183e32ea63f6251ba921e1e4c6b09ed0
2025-04-01 08:44:38 +02:00
Yumi Yukimura
25e5c62e80
sm8350-common: manifest: Bump target-level to 6
Change-Id: I8d419d248f29b7d316a87d55e19ae7ff141e19a5
2025-04-01 08:44:36 +02:00
Giovanni Ricca
323eb695e0
fixup! sm8350-common: Mark CNE symlink target as required package
Change-Id: I54480890f80789596dafe5b1fc3a1866d2baa989
2025-03-29 21:50:41 +01:00
Giovanni Ricca
ef275cb7c1
fixup! sm8350-common: Nuke ATFWD
Change-Id: I61fbb2ab8a8d5b86c1aa0250b71fb9b0b12c4ece
2025-03-29 21:50:41 +01:00
Giovanni Ricca
94c32c3826
sm8350-common: sepolicy: Reformat it
Change-Id: I052f1941e8193e331d3548d2b548f776890f1193
2025-03-29 21:50:41 +01:00
Giovanni Ricca
bfa77e53ef
sm8350-common: sepolicy: Drop redundant dynamic_fps node label
* The whole folder is labeled with `vendor_sysfs_graphics` on
  genfs_contexts.

Change-Id: I2e772590a988be8c106a0c3070a4d4dc7b1502a8
2025-03-29 21:50:41 +01:00
Giovanni Ricca
87f82a56b6
sm8350-common: sepolicy: Drop vendor_sysfs_double_tap definition
* We use `/dev/xiaomi-touch` to handle dt2w.

Change-Id: I86f733ad1b0a1d28de67e39b987a8bf19a9dcd5b
2025-03-29 21:50:40 +01:00
LuK1337
3fa213b65e
sm8350-common: Move WfdCommon boot jar declaration to vendor
Change-Id: I8fa2c0f64692873b432cc252ec88b388a32023a1
2025-03-29 21:50:40 +01:00
Michael Bestas
9e1826293b
sm8350-common: Migrate mount point creation out of Android.mk
Change-Id: Id5986b8a740e45f864eecdd2bd82d9455f128d6b
2025-03-29 21:50:39 +01:00
Tyler Wear
7fb59fd876
sm8350-common: tetheroffload: Version 1.1
Update tetheroffload to version 1.1.

Change-Id: I004e44e416a88a1b39a4c80366df9008722f096b
2025-03-18 21:18:10 +01:00
Bruno Martins
b287ccacaa sm8350-common: sepolicy: Remove duplicate snxxx AIDL rules
These are now part of qcom/sepolicy_vndr.

Change-Id: I709c29e827d51e22507027862a56cca1efcdc984
2025-02-08 15:03:46 +00:00
Pawin Vongmasa
82ca5e0a16
sm8350-common: Move input surface to CCodec
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small
Bug: 131800183
Change-Id: I8783a7de4a4fdf7ff2eac6697c71f6592c9a9e06

Change-Id: I0789784bcdb7d42ec344a8ad7ec4cae03ae82a41
2025-01-13 07:57:53 +01:00
dianlujitao
5c05f11845
sm8350-common: remove OMX
* OMX HW video codecs are no longer used after enabling Codec2
 * OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.

Change-Id: I65852151c8fb6387add5fc4402ba3f13c97b5f64
2025-01-13 07:57:53 +01:00