Commit Graph

42 Commits

Author SHA1 Message Date
Matsvei Niaverau
e9cf96da92 rosemary: Update blobs from V14.0.7.0.TKLMIXM
This reverts commit c478a2e and cb797b3.

Change-Id: I8a2372df789877f45a94dfaf76fecae717e860ab
2024-02-19 12:01:04 +01:00
bengris32
bdfaa636c2 rosemary: Ship MediaTek cgroup/task_profiles configuration
* MediaTek ship their own modified task_profiles and
  use the V30 cgroups configuration.

Change-Id: I15245ea87b00925597db65f1564e808a094c937a
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:43:29 +01:00
bengris32
995d417666 rosemary: Switch back to stock perf configs
* Rearrange power service packages

* Cleanup unneeded power service blobs

Change-Id: I33c6c35164e00f4018d966828fa08dcf6677ca6e
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:43:29 +01:00
Matsvei Niaverau
11a9fb7522 rosemary: Kang Codec2 HAL blobs from V13.0.13.SKLMIXM
Change-Id: I11d1b7a7dc4301a2eff77f3277f5888480b5394e
2024-02-19 11:43:29 +01:00
bengris32
d59a5598bb rosemary: Configure Wi-Fi stack
Change-Id: Id59b8289440c5ae3ab2f9e287d2a10ea94f7b7bf
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:52 +01:00
Matsvei Niaverau
31efd45b31 rosemary: Kang IMS-System blobs from V14.0.7.0
Change-Id: Ide8f7163e69d30108dd807a0cc78f17c589ea10b
2024-02-19 11:42:22 +01:00
Matsvei Niaverau
c36d873f1f rosemary: Bring back Mediatek Power HAL
* Perf configs from: https://github.com/nashc-dev/android_device_realme_nashc/tree/lineage-20/configs/perf

Change-Id: I7bb964e089f1549f849daf08532baaeabcc99379
2024-02-19 11:42:22 +01:00
Matsvei Niaverau
e0ba464a3a rosemary: configs: Update from V13.0.6.0
Change-Id: I5086f3f3ab4be209417965d0af99497317d75aff
2024-02-19 11:39:42 +01:00
bengris32
844699b669 rosemary: audio: Fix UUIDs for AOSP audio pre-processing effects
* EffectsFactoryConfigLoader: Error querying effect 9f35ed76-0b66-4330-8f79-e39ca266dc7c on lib pre_processing
  EffectsFactoryConfigLoader: Error querying effect 300abe9f-dfc5-4340-9c4b-79ef1be4e651 on lib pre_processing
  EffectsFactoryConfigLoader: Error querying effect 3387eb70-9896-4338-90f5-b2de883864c9 on lib pre_processing
  EffectsFactoryConfigLoader: 3 errors during loading of configuration: /vendor/etc/audio_effects.xml
  EffectsFactory: Effect config is partially invalid, skipped 3 elements

Change-Id: I5cf2a493cad4befe42c56f7dfb0c70f5957d2389
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2023-10-09 08:39:32 +02:00
Matsvei Niaverau
dfcd4a1b6e fixup! rosemary: Set correct channel mask for "BT SCO Headset Mic"
Change-Id: I155e23589d8ab644b6a6342c3d9596a7ca98720c
2023-08-23 01:36:24 +02:00
Alexander Koskovich
17899e0d52 rosemary: Add permissions for Hotword Enrollment
* This is already covered by GMS but in order to account
   for non-GMS builds we should place some duplicates here.

Change-Id: I2d0f504106cd4784669a60b514c027fb6974c816
2023-06-22 15:19:13 +02:00
Matsvei Niaverau
2a66236a8f rosemary: Import c2 media codecs from stock
Change-Id: I91dddf7ba62460160166759ba2ce64fec0b6f084
2023-06-01 12:47:06 +02:00
Subhajeet Muhuri
839df9fe6c rosemary: powerhint: Drop PM QoS latency boosting
Change-Id: I683033dcbb12e27ccfbf21eff0b5c9bba0269089
2023-06-01 12:42:02 +02:00
DennySPB
aadc21f027 rosemary: powerhint: Decrease launch boost to 3sec
* 5s is just too much long plus battery drainer

Change-Id: I7e037c45cd2296a8bbd67d6bd63c212c0ef2a805
2023-06-01 12:41:25 +02:00
Deanlancer
493171258f rosemary: powerhint: Remove SchedBoost configs
error:
Failed to write to node: /sys/devices/system/cpu/sched/sched_boost with value: 6, fd: -1

* sched_boost was disabled in kernel

Change-Id: I40d4b5889e710c51deecc9079122fd149fcd047e
2023-06-01 03:25:55 +02:00
bengris32
a21878ca31 rosemary: Don't hold sched_boost at max when unneeded
* Current powerhint configuration would cause sched_boost to always be set to the max value (6) even when the device is idle and not doing anything.

* Instead, we should only apply it when the device is being used, so have it default to 0, 3 when interaction boosting, and 6 when launching apps.

Change-Id: Ic5d60c14a1313b9df27e6796e5a0bddc71aecef0
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
a6f0c8756a rosemary: Import audio policy changes from MIUI 13
Change-Id: Ic6c345bb609f0890885dbbb6dee13d5b1acdfbd6
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
ffa1f81f4d rosemary: powerhint: Drop DefaultIndex from UClamp values
Change-Id: I992f59e726cf1076c446cbfe67edfa9e2fdcf5da
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
9a67b9de6b rosemary: configs: Import rosemary powerhint
* Imported from mt6768-common tree & adapted for rosemary

Change-Id: I0d5a58bebdb85cc6c2645084b7472f50dc20f8e7
2023-04-25 17:59:38 +02:00
bengris32
dd8998b27d rosemary: Drop MediaTek PowerHAL
* We still have to keep some vendor interfaces and libs
  since some HALs have dependencies on them.

* Also switch to stub AIDL power service until we can get
  libperfmgr properly implemented.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I25022ceb2dd5d0541203663b005bfc15d2385435
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
f1315d26a4 rosemary: configs: Import public libraries list from stock
Change-Id: I9e0087ce1d40f5eafda0426d1440980e1a93fae1
2023-04-25 17:59:37 +02:00
bengris32
a3a010b517 rosemary: Copy usb_audio_accessory_only_policy_configuration.xml from stock
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4debc0b3a2b8d973b9b1a688072bb6beaab04769
2023-04-23 19:15:57 +02:00
Bruno Martins
684937ce0a rosemary: Blacklist fingerprint HAL key events
Change-Id: I57db108f5250c120726b77dd32f4666917c9eb7c
2023-04-15 14:36:56 +02:00
Vaisakh Murali
d961ca9019 rosemary: Drop MTK audiopreprocessing
OSS counterpart works well, instead of using prebuilt blobs, use oss
where possible. This has no adverse effect on the audio quality.
Switch to OSS libaudiopreprocessing.

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: Ia9163b6363c79dbdab86d7088946a1fc8b200596
2023-04-15 14:36:56 +02:00
Zinadin Zidan
8b544333c5 rosemary: Drop Mi audio sounds
* Its broken in oss audio hals.

Signed-off-by: Zinadin Zidan <zidan44@pixelexperience.org>
Change-Id: I9b0f5351d306dd9fcb9e82c6bbf829832edfc1b0
2023-04-15 14:36:56 +02:00
TTTT555
fb130898dc rosemary: Fix BT echo without breaking call recording
Change-Id: Ifd597c365b21279c0f2bb1a26267a44aefae30d9
2022-11-12 10:48:38 +03:00
Vaisakh Murali
2c51e3f718 rosemary: Include c2 media codecs
Enables c2 codec detection

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Reviewed-on: https://review.statixos.com/c/android_device_xiaomi_cannon/+/6412
Reviewed-by: Vaisakh Murali <vaisakhmurali@gmail.com>
Tested-by: Vaisakh Murali <vaisakhmurali@gmail.com>
2022-11-12 10:48:38 +03:00
SamarV-121
932a37a2e6 rosemary: Address UPDATE_DEVICE_STATS permission to IMS
* E System  : java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.mediatek.ims (/system/priv-app/ImsService): android.permission.UPDATE_DEVICE_STATS}
2022-11-12 10:48:38 +03:00
TheMalachite
e3f56525b7 rosemary: Add Mediatek IMS permissions
Change-Id: Icbdc3c1df70fb23adcff41006e9ef99798ae8348
2022-11-12 10:48:38 +03:00
bengris32
a238d0a8bb rosemary: Set correct channel mask for "BT SCO Headset Mic"
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
b681f34839 rosemary: Notify kernel for input boost on interaction hint
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I71758a1f5e08730aef0724ecbba59f9f6a9bec3b
2022-11-12 10:48:38 +03:00
Vaisakh Murali
dad39554da rosemary: Improve interaction hint
Drop unneeded pinning of min frequency to maximum cluster frequency
Set max frequencies to cluster maximum
Set uclamp TA to 50%

This should improve UI responsiveness whilst not drain a lot of power.

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: Id8e8c8ca56a99b6c3bc5a24e5f446c9be7e97c9b
2022-11-12 10:48:38 +03:00
Vaisakh Murali
6ca15bb245 rosemary: Use input boost to improve interaction hint
Drop unused GPU node and instead use input touch boost for boosting
whenever a touch input is detected upto 50% and for a duration of
1 millisecond, improving overall scrolling and responsiveness.

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I9d545561f4afb004a08cc6b3b22f2a082268bce3
2022-11-12 10:48:38 +03:00
Sarthak Roy
cd26217314 rosemary: perf: Add interaction powerhint boosts
Change-Id: Ie0ad0e2659af979a79c60e3ff387d2ac9638b12f
2022-11-12 10:48:38 +03:00
Vaisakh Murali
b3f25c665f rosemary: Boost foreground to maximum when launching an app
App launching is one of the tasks that can produce janks and CPU
spikes. Boosting foreground to max to open apps should improve UX.

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2022-11-12 10:48:38 +03:00
Vaisakh Murali
730447a8db rosemary: Allow raising sched_boost to 6 levels
Kernel supports boosting upto 6 different levels of sched boost.
Limiting it to only two seems like a waste of useful resources that
we already have in hand.

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2022-11-12 10:48:38 +03:00
Vaisakh Murali
bb6f83ce78 rosemary: Boost stune on app launch
This should improve app opening speeds

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2022-11-12 10:48:38 +03:00
bengris32
719dced30b rosemary: Import stock power configs
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Idaf780975e2cba5aaba5c0808b833f8f8e547197
2022-11-12 10:48:11 +03:00
bengris32
ec6d1ca575 rosemary: Import seccomp policy from stock
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I6da59a29080180f7dbf8789363028cefe45dedaa
2022-11-12 10:45:57 +03:00
bengris32
5ee1e425f4 rosemary: Import WiFi configs from stock
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:45:57 +03:00
bengris32
d75c6728af rosemary: Import Media configs from stock
* Track configs from AOSP whenever possible

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib0add0f726e2ac16e9706d369edfea0a523378e3
2022-11-12 10:45:57 +03:00
bengris32
10f07f4511 rosemary: Import audio configs from stock
* Track configs from AOSP whenever possible

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I20c8c4fc3016b992d90a09d32263ede379e62e9c
2022-11-12 10:45:57 +03:00