Commit Graph

140 Commits

Author SHA1 Message Date
Joel Stein
cb797b3eb4 rosemary: Shim missing libshowlogo symbols
Change-Id: I72dbe1012455a410ad01ceeb0cb9db53ac8f69f5
2022-11-12 10:48:38 +03:00
Alex Damaratski
6ea74b4999 rosemary: Build libsuspend
* Required by kpoc_charger

Change-Id: Ie850456d9ab666ba68dbd5cefebc58675f93b6b7
2022-11-12 10:48:38 +03:00
SamarV-121
d452b3f718 rosemary: Import kpoc_charger blobs
Change-Id: Ibc79247f2e790ed4da97e3df0e71f77ca258a32d
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
Sebastiano Barezzi
2b39fecfee rosemary: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: Ia8cef3905c133441cbe741c83d6d5ecdf4be2338
2022-11-12 10:48:38 +03:00
Vaisakh Murali
e62dbd3d48 rosemary: Enable stune boost for top-app
Reduce the top-app latencies by enabling top-app boosting.
2022-11-12 10:48:38 +03:00
Vaisakh Murali
93ec25bdf8 rosemary: Reduce number of CPUs for system-background apps
system-background isn't too heavy load to handle where cpuset
gives it 6 CPUs to rely on.
Reduce it to 4 CPUs, effectively reducing CPU power load.
2022-11-12 10:48:38 +03:00
TheMalachite
72fb69f423 rosemary: Fixup /data/vendor/audiohal directories creation 2022-11-12 10:48:38 +03:00
Vaisakh Murali
02e9dee8a6 rosemary: Create audio dump directory on post-fs-data
Silence the obscure logspam about not able to create a directory:
AudioParamParser-vnd: utilMkdir(), mkdir fail (/data/vendor/audiohal/audio_param/)
2022-11-12 10:48:38 +03:00
Ash Blake
3904145001 rosemary: fix ownership for /dev/video{0,1}
Mediacodec did not have access and video recording didn't work.
2022-11-12 10:48:38 +03:00
bengris32
ef6b9efaa4 rosemary: Set correct permissions for double_tap node
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
Sebastiano Barezzi
666eb91ef9 rosemary: Define DT2W node for power HAL
Change-Id: I1dc2f23e0c7764a8ca9d5bf6c9f2f78dcd89dbbe
2022-11-12 10:48:38 +03:00
bengris32
1f19cf0b40 rosemary: Increase SF durations
* Idealy we'll want to make these values as low as
  possible as higher values will start to cause latency.
* However, higher values will generally give the GPU more
  time to render the UI, resulting in less janks and lag.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
8d92c5fd56 rosemary: Kang libmtkcam_stdutils library from MIUI 13
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib41db764538c1968482a47582510e3992d58962d
2022-11-12 10:48:38 +03:00
bengris32
383f7b3415 rosemary: Kang libudf library from MIUI 13
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib7c63b7f1218a03107774c516e59c3656246719e
2022-11-12 10:48:38 +03:00
bengris32
28b4fdec96 rosemary: Build vendor variant of libdng_sdk
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ia7f7ad1d2f4159708536ab0f961eb2aedd3a7d4b
2022-11-12 10:48:38 +03:00
bengris32
10a8cdca22 rosemary: Build required power interfaces
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
Andrew Hexen
a1ecec2410 rosemary: rro_overlays: Move rro overlays to vendor
* For GSI compatibility.

Change-Id: I21180e80de1109483f8ce0ab67fba021d4a74b08
2022-11-12 10:48:38 +03:00
David Su
24589e0ecc rosemary: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
2022-11-12 10:48:38 +03:00
Roshan Pius
a7ffc96aa1 rosemary: rro_overlays: Add WifiOverlay
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2022-11-12 10:48:38 +03:00
Weilun Du
2614b5a558 rosemary: rro_overlays: Add TetheringOverlay
BUG: 163800715
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06
2022-11-12 10:48:38 +03:00
Arne Coucheron
3f45a4f3de rosemary: Disable serial console notification
Google added a check for this prop in R, and if it's running
it will show a notification about it that it's impacting performance.
Why it's not disabled by default I don't know, so just force disable
it here.

[bengris32] Convert to standalone init script and install to system_ext

Change-Id: Ia06ef15388e7e701ed526664e7748f133ad01ee2
2022-11-12 10:48:38 +03:00
bengris32
f9a29b388c rosemary: Enable metadata partition
* Set BOARD_USES_METADATA_PARTITION := true

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4939c526b7cd79277e6fd21e08143b0e69101104
2022-11-12 10:48:38 +03:00
SamarV-121
f5f10bc632 rosemary: Rename libwifi-hal.so
* To prevent conflict with aosp's

Change-Id: I922f26c45957f4bc5d2ad85e14ecfcb382abf811
2022-11-12 10:48:31 +03:00
bengris32
1f7119eeec [DNM] rosemary: Set required build broken flags
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:11 +03:00
bengris32
71e6270f33 rosemary: Add missing libwebrtc_audio_preprocessing.so
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I5fe81ab917bb819613a8735088f0c12fbd0a19d7
2022-11-12 10:48:11 +03:00
kubersharma001
89eb22028b rosemary: libinit: Migrate system/core/base to system/libbase. 2022-11-12 10:48:11 +03:00
Lucchetto
37a1f01aeb rosemary: Adapt libinit to Android 11 2022-11-12 10:48:11 +03:00
Demon000
4bd9ec8009 rosemary: init: cleanup includes 2022-11-12 10:48:11 +03:00
Demon000
f78c9685dd rosemary: init: group dalvik property initialization together 2022-11-12 10:48:11 +03:00
Demon000
984575d584 rosemary: init: override dalvik heap config based on total RAM
Change-Id: I5ff7bdc9ab610415093ff6535c34f0013154b8cf
2022-11-12 10:48:11 +03:00
Akash
0c1f0ef04a rosemary: remove seclabel from mi_thermald
Fixes: init: cannot setexeccon('u:r:mi_thermald:s0') for mi_thermald: Invalid argument

Change-Id: I62f55edc8d7c6d52f0c9f2cb64fce4aa51704f00
2022-11-12 10:48:11 +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
577854c24c rosemary: Build default ConsumerIR HIDL service
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:11 +03:00
bengris32
7ee936b142 rosemary: Build android.hidl.allocator@1.0
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:11 +03:00
bengris32
4c9f22bf75 rosemary: Build Thermal 2.0 interface
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib25eca2ef8f800e79c751c608cb0f307a60314bc
2022-11-12 10:48:11 +03:00
bengris32
b04dbbbef3 rosemary: Generate framework compatibility matrix
* See https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I168debe2316d172ac81d5fe7320662a274ea76a0
2022-11-12 10:47:50 +03:00
bengris32
1d6ae629e1 rosemary: Build default WiFi service from source
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I3a0964738ff196350f4d634f51c80ddad30009db
2022-11-12 10:46:47 +03:00
Hridya Valsaraju
3eb2015fdb rosemary: Define BOARD_SUPER_PARTITION_ERROR_LIMIT
Set BOARD_SUPER_PARTITION_ERROR_LIMIT to 9122611200.

Test: make
Bug: 136174903
Change-Id: Ia899e569cd534603ca014eb38629437da7680009
2022-11-12 10:45:57 +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
Akshay Kakatkar
b0b7d6c53e rosemary: overlay: Set config_screenBrightnessSettingMaximum to 255 2022-11-12 10:45:57 +03:00
LuK1337
2106c30536 rosemary: overlay: Set config_screenBrightnessSettingMinimum to 3
Change-Id: I77122cbdc5377ebb21ce91401e856311edc7addf
2022-11-12 10:45:57 +03:00