Commit graph

1411 commits

Author SHA1 Message Date
Arian
253e8c8daf sm8350-common: parts: Import from xiaomi_sdm845-common
e261035d91/parts

Change-Id: I442f48780ca020f3e420ee4ccaf8ac07b05457cb
Signed-off-by: Anush02198 <anush.4376@gmail.com>
2025-04-07 22:48:53 +00:00
Alan Chen
c43f41744a sm8350-common: wifi: Enable Optimized Power Management
gEnablePowerSaveOffload was renamed to gOptimizedPowerManagement

[1]: 10989ba376
[2]: 9ef1447db3
2025-04-07 22:48:53 +00:00
Luk1337
6bb1a11f01 sm8350-common: wifi: Disable RX wakelock feature
Change-Id: If79e1512a83f5162444683e1fa8f5560f98b6c9a
2025-04-07 22:48:53 +00:00
Panchajanya1999
c2514748d4 sm8350-common: wifi: Disable WLAN Firmware loggings
firmware loggings are not at all necessary for general development.

Change-Id: I111943a641670ea052f68148103e377771297d77
2025-04-07 22:48:53 +00:00
kerneltoast
6e5132171e sm8350-common: wifi: Relax WiFi re-association RSSI thresholds
Change-Id: I073f08eed69b2454e1fd2350c8f7e8bb8983641b
2025-04-07 22:48:53 +00:00
Akash Srivastava
06bdcde4b0 sm8350-common: overlay: Declare 6ghz wifi support
* Currently it was only enabled for hotspot. Lets enable it for all usecase
* Configs taken from: https://cs.android.com/android/platform/superproject/+/master:device/google/gs101/rro_overlays/WifiOverlay/res/values/config.xml;l=25?q=config_wifi6ghzSupport&sq=&ss=android%2Fplatform%2Fsuperproject, https://cs.android.com/android/platform/superproject/+/master:packages/modules/Wifi/service/ServiceWifiResources/res/values/config.xml;l=43?q=config_wifi11axSupportOverride&ss=android%2Fplatform%2Fsuperproject
2025-04-07 22:48:53 +00:00
Peng Xu
c5e068278b sm8350-common: wifi: Enable support for IEEE80211AX
* This is to allow supporting WiFi 6 mobile hotspots,
   to be noted this is only supported on SDM855+ platforms.
2025-04-07 22:48:53 +00:00
Mahesh Palivela
eb81eb49d6 sm8350-common: Enable support for IEEE80211AC
* This is to allow supporting GO with 11AC support.

Change-Id: I08793eaa6295c5cfe5ac11eeee2f92213af78844
2025-04-07 22:48:53 +00:00
Anand
083c4662b5 sm8350-common: wifi: 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
2025-04-07 22:48:53 +00:00
Jake Weinstein
ab45e1154b sm8350-common: overlay: Disable global mode and CDMA choices
* Cleans up mobile network settings.

 * CAF already disables world mode in CarrierConfig
   which is the proper way to do it, so remove the
   overlay entierly since it's deprecated anyways.

Change-Id: Ib331062fa77a18661bbfcd1a49f62ddf9144228c
Signed-off-by: DigiGoon <kagatharatarang@gmail.com>
2025-04-07 22:48:53 +00:00
Kuba Wojciechowski
a2e5c0a997 sm8350-common: Set screen recorder max framerate to 120Hz
haydn has 120Hz display, so why not just use it
2025-04-07 22:48:53 +00:00
Demon000
91f1177695 sm8350-common: overlay: Disable proximity usage during doze
* we have a virtual (ultrasound) proximity sensor
   so this will never work
2025-04-07 22:48:53 +00:00
Danny Lin
778516cdf1 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 22:48:53 +00:00
Vaisakh Murali
577391852a 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:48:53 +00:00
Michael Bestas
7cc0e4d1cd sm8350-common: gps: Reduce LOWI debug level
* Kill logcat spam
2025-04-07 22:48:53 +00:00
1xtAsh
e5f17616df sm8350-common: props: Silence some log spam messages 2025-04-07 22:48:53 +00:00
Jun Wang
78408120db 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 22:48:53 +00:00
Praveen Chavan
245317a066 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 22:48:53 +00:00
Jun Wang
10b870bbb0 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 22:48:53 +00:00
Kuba Wojciechowski
46e2f74abf 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 22:48:53 +00:00
minaripenguin
34ba693f9f 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 22:48:46 +00:00
AdarshGrewal
4dc74e98b8 sm8350-common: sepolicy: Allow perf hal to read graphics composer
perf@2.2-servic: type=1400 audit(0.0:375085): avc: denied { search } for name="975" dev="proc" ino=742738 scontext=u:r:vendor_hal_perf_default:s0 tcontext=u:r:hal_graphics_composer_default:s0 tclass=dir permissive=0

Signed-off-by: DigiGoon <kagatharatarang@gmail.com>
2025-04-07 22:48:33 +00:00
Alan Stokes
15e3056d32 sm8350-common: sepolicy: Allow Camera hal to access /proc/stat
denied { read } for name="stat" dev="proc" ino=4026532134 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:proc_stat:s0 tclass=file permissive=0

Bug: 72643420
Test: Boots, denials gone.
Signed-off-by: DigiGoon <kagatharatarang@gmail.com>
2025-04-07 22:34:09 +00:00
Carlos Arriaga
4a900b0815 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 22:33:30 +00:00
Murat Kozan
ebcbd96ec3 sm8350-common: sepolicy: Add Leica Camera sepolicy
Signed-off-by: DigiGoon <kagatharatarang@gmail.com>
2025-04-07 22:33:30 +00:00
Murat Kozan
290b495872 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 22:33:17 +00:00
Akash Srivastava
994d976a91 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 22:32:34 +00:00
Jake Weinstein
f30f9c3d0a 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 22:32:13 +00:00
Jake Weinstein
0345dc2da0 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 22:32:06 +00:00
Danny Lin
a6821e0211 sm8350-common: Use armv8-2a for 2nd arch variant
Fixes error:
Incorrect TARGET_2ND_ARCH_VARIANT, armv8-a. Use armv8-2a instead
2025-04-07 22:15:48 +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
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