Commit Graph

158 Commits

Author SHA1 Message Date
Danny Baumann
4b6dea3164 rosemary: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2022-11-12 10:48:38 +03:00
Matsvei Niaverau
ae3a95cacf rosemary: Import stock CarrierConfig overlay
Change-Id: Id62c30bd4dca69fb6d9bb9265f93d031e683748b
2022-11-12 10:48:38 +03:00
LuK1337
01fa8eac53 rosemary: Add debug IMS props to workaround CarrierConfig restrictions
We support IMS features on carriers not listed in the CarrierConfig, so let's use the props to enable it everywhere.

Change-Id: Id3ad71d522a22048f7ad86d89695ad262361632d
2022-11-12 10:48:38 +03:00
Brad Ebinger
14216e50cc rosemary: Use new config for MMTEL/RCS
Configure the new MMTEL and RCS configurations in Telephony.
Also, configure the RcsService to be the default RCS service.

Bug: 111305845
Change-Id: I0d709b8248f1c40f0a5b50ec799396706eeadd65
2022-11-12 10:48:38 +03:00
bengris32
37de0a9144 rosemary: Force enable VoLTE TTY and WFC support
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
5ee76ae127 rosemary: libshim_vtservice: Shim for legacy MediaMuxer ctor
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
c0bb8db4fe rosemary: libshim_vtservice: Use AttributionSourceState properly
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
2e85cebfc9 rosemary: libshim_vtservice: Call AudioTrack constructor directly
* Also compile shim only for 32bit since the constructors symbol changes
  between 32bit and 64bit and our IMS stack is 32bit only anyway.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
R0rt1z2
c66158fbdd rosemary: Shim another missing libsink symbol
[1] LineageOS/android_frameworks_native@992496b
2022-11-12 10:48:38 +03:00
SamarV-121
313ab44fc7 rosemary: libshim_vtservice: Update to S
[1] LineageOS/android_frameworks_av@bda4575#diff-0e7ff81a94e7f5ce90bdb128b6ceea84c201a721055b05afccfa2ec814036907
[2] LineageOS/android_frameworks_av@3376113#diff-0e7ff81a94e7f5ce90bdb128b6ceea84c201a721055b05afccfa2ec814036907
2022-11-12 10:48:38 +03:00
Arian
577563da43 rosemary: Provide a shim for libsink
added opPackageName as a parameter to the constructor
  of AudioTrack which breaks our libsink which was compiled
  for an older libaudioclient.

* fixes the following error:
CANNOT LINK EXECUTABLE "/system/bin/vtservice": cannot locate symbol "_ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_tjj20audio_output_flags_tPFviPvS4_ES4_i15audio_session_tNS0_13transfer_typeEPK20audio_offload_info_tjiPK18audio_attributes_tbfi" referenced by "/system/lib/libsink.so"

https: //github.com/LineageOS/android_frameworks_av/commit/fd90fdfe2a611ae824a32e236da288b1fdfd445d
Change-Id: I290e1beca02d46c4393d17356fa22741d771f847
2022-11-12 10:48:38 +03:00
Kshitij Gupta
ea833c5f6c rosemary: Add IMS blobs
Change-Id: I93db50affa3ebf4453f978f75da5fb88944594c9
2022-11-12 10:48:38 +03:00
bengris32
8cdcb98a4c rosemary: Remove displayfeature entry from manifest
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I83b3d9cf28c3441045ce1b51b3b61e37a475c69f
2022-11-12 10:48:38 +03:00
bengris32
157bf2b080 rosemary: Reserve space on system and product partitions
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I25e561c9090949726740dbe0a4d276100c25801a
2022-11-12 10:48:38 +03:00
bengris32
82483ad939 rosemary: Build system variants of libhidltransport/libhwbinder
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
bengris32
56d4ffeb69 rosemary: Build Health 2.0 interface
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
Arne Coucheron
3dc3773a12 rosemary: Add 0x2000 to additional gralloc usage bits
Fixes warning.

| gralloc4: Buffer descriptor with invalid usage bits 0x2000

Change-Id: I8e67bec9ade6e80e2e362f7a3c287f74b7d81242
2022-11-12 10:48:38 +03:00
R0rt1z2
84b9836f32 rosemary: Shim another missing showlogo symbol 2022-11-12 10:48:38 +03:00
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