Commit Graph

486 Commits

Author SHA1 Message Date
bengris32
0fbdcaba83 rosemary: Force enable IMS features via overlay
Change-Id: Ie258bff336586919a1127c3f7241e3ef9d689dd5
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:43:48 +01:00
Matsvei Niaverau
9d2e60de79 rosemary: rro_overlays: Kang dimens from sweet
* From d146e191db/overlay/frameworks/base/core/res/res/values/dimens.xml and 400d8f98e5/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml

Change-Id: Id8de3457f074f9b09216a8f500051ebfb85162d5
2024-02-19 11:43:48 +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
LinkBoi00
9c25c81d8e rosemary: Kang bluetooth firmware from A145PXXU1AWA3
This firmware fixes the a2dp crash that was worked around by commit [1]

[1]: e7f12ea3db

Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
Change-Id: Ibf7816de894e17c59b6b62b9039c74742ccd8b55
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
R0rt1z2
79e98e94d5 rosemary: libshim_sink: Port to U
* Since commit eb57617 [1], the legacy callback interfaces in the Android
  AudioTrack system have been deprecated and replaced by a newer callback
  interface. Consequently, the user parameter, which was previously part
  of the constructor, has been incorporated into this new interface.

* To address the resulting build issues, update the function signatures
  to match the new methods. Although AOSP provides a wrapper [2] for this
  purpose, it's declared within an anonymous namespace, effectively making
  it private to its own translation unit. To work around this limitation,
  provide a local copy of the wrapper instead.

* Also format the shim with `clang-format`.

- [1]: eb57617e55
- [2]: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/av/media/libaudioclient/AudioTrack.cpp;l=289;bpv=1

Change-Id: Ieae7df3f5f003538a0319cc77051322a989b93a8
2024-02-19 11:43:29 +01:00
Davide Garberi
1f736c9d1f rosemary: Update drm entries to 1.4
Change-Id: Icb46e2aa511c28327b23a67f4e2c02a5cbc3f021
2024-02-19 11:43:29 +01:00
Alexandru Scurtu
d7d7eb025a rosemary: Build sensorservice 1.0 HAL system and vendor variant
* E init    : Control message: Could not find 'android.frameworks.sensorservice@1.0::ISensorManager/default' for ctl.interface_start from pid: 516 (/system/bin/hwservicemanager)

Change-Id: If696de35b0d70e1f67d72be456347c6c7fd691f7
2024-02-19 11:43:29 +01:00
bengris32
e61a7e2dec rosemary: Pin patched mediatek-telephony-base and ImsService
Change-Id: I4a9246e837bc7baa709894640e03a24a27d3dc79
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:52 +01:00
Saikrishna1504
a5ecdc6e3e rosemary: dtbo: Fix TypeError in append_certs.py 2024-02-19 11:42:52 +01:00
basamaryan
9fa7814f9d rosemary: Rename mkdtboimg.py
* Changed in https://android-review.googlesource.com/q/topic:%22colefaust_rename_mkdtboimg%22

Change-Id: Idd2ade7035c79207321ecbc70d6a4ddf9f4ed600
2024-02-19 11:42:52 +01:00
Yi-Yo Chiang
be06ba6a45 rosemary: Remove references to BOARD_BUILD_SYSTEM_ROOT_IMAGE
This variable is always false or empty now.
Remove it so we can mark it as deprecated later.

Bug: 241346584
Test: Presubmit
Change-Id: I57cbe875f556bb853d4ea9b1d458c9c554c6bfa5
2024-02-19 11:42:52 +01:00
bengris32
ceda317994 rosemary: Wrap Wi-Fi flags with quotation marks
Change-Id: I04d26ee28f72d4bea727f91df395c8bdb7db3237
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:52 +01:00
Gabriel Biren
4591f69c3e rosemary: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2024-02-19 11:42:52 +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
Bruno Martins
a73731bae3 rosemary: Migrate to AIDL ClearKey DRM HAL
Change-Id: Iad5cc1176978137c647069197b33f49fb4d98ab2
2024-02-19 11:42:52 +01:00
LuK1337
f1213f20de rosemary: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2024-02-19 11:42:52 +01:00
bengris32
62990a3329 rosemary: Link sensor libraries against stock libsensorndkbridge
* libsensorndkbridge was converted to use AIDL, yay...

Change-Id: I7611acbc48093646c614cd8066c9dc40bdd7f9a2
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:45 +01:00
bengris32
4231fbf702 rosemary: Switch Boot HAL to AIDL
Change-Id: Ic921cb8e3f5a70665f09c9506e5ab8311daaa904
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:22 +01:00
Matsvei Niaverau
8d95e35aaa rosemary: libinit: Add rosemary_p and secretr support
Change-Id: Ia17ced88920269b1cfa6f94e9515398438e69fef
2024-02-19 11:42:22 +01:00
Georg Veichtlbauer
34da731823 rosemary: Update deprecated screen power items
* screen.on -> screen.on.display0
* screen.full -> screen.full.display0

AOSP frameworks/base: 8ac63071a4e6da7e0740f5eb6c6753218efcfd3a

Change-Id: Iad50e6cb63368e2d71e6fa1dbb6997c0f95d321e
2024-02-19 11:42:22 +01:00
Mike Ma
01937abc71 rosemary: Power profile audio & video support
Add power consumed by audio and video hardware to power profile.
Attribute these power to specific app.
Bug: 70531798
Test: PowerProfileTest
Test: BatteryStatsHelperTest
Test: PowerCalculatorTest

Change-Id: I4811efa14ce97983258cd59bfd328181fe95baf4
2024-02-19 11:42:22 +01:00
Tim Zimmermann
4fd0d68159 rosemary: overlay: Set LTE+ threshold bandwidth to 0
* so LTE+ icon will show whenever it's available

Change-Id: I45a569fa52d19f4b9af370d7a18c4198e29febc6
2024-02-19 11:42:22 +01:00
Luca Stefani
7f921b7745 rosemary: overlay: Enable LTE+ icon
* Matches the hardcoded default value in stock

Change-Id: Iadb2a78fdb1fad971ee37e434dba616cfab172b9
2024-02-19 11:42:22 +01:00
bengris32
0adb87bb21 rosemary: Update stock CarrierConfig overlay
* Main carrier config from MtkCarrierConfig asset default_v2.9.3.xml,
  with vendor specific settings appended to the end.

Change-Id: I7bcb5f9714720e3b42b5b1e5dc13cfe4233ac874
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:22 +01:00
bengris32
967d552a2f rosemary: Switch to AOSP audio service
Change-Id: I933b66e3821562022eb837af91ad4039e22fb578
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:22 +01:00
Matsvei Niaverau
681c35fbcd rosemary: sepolicy: Drop proc_vm_dirty definition
* Moved to common Mediatek sepolicy

Change-Id: I5d01898ca413f9ca3d7c022a07ffed0c4b6bae9d
2024-02-19 11:42:22 +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
bengris32
a3b88a8eda rosemary: Add shim for proprietary AudioTrack constructor
Change-Id: Icc7a1f9c748578f5b58499e7a76213673c4bcf54
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:22 +01:00
bengris32
dad12723d2 rosemary: Link agpsd against v32 libcrypto
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I9567f46ec4cc70ad0d35511dba36132eb55fefda
2024-02-19 11:42:22 +01:00
bengris32
481eb83edf rosemary: Shim missing libshowlogo symbol
* ui::Size was changed going from VNDK32 to VNDK33 [1] and
  ui::Size::INVALID constant was removed. However, all we need
  to do is set INVALID to a Size with a width/height of -1.

[1]: 6d043c5c5c

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4a224c6c3f622152a8bdc9f70bca18263af068cd
2024-02-19 11:42:22 +01:00
Jiyong Park
36c694ab53 rosemary: gnss: Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: Id16039722fd70d4e2e934a0988f13a768ce833ec
Change-Id: Id16039722fd70d4e2e934a0988f13a768ce833ec
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
185ce80ec3 rosemary: proprietary-files: Update from V13.0.6.0
Change-Id: Ia718959e606d0b610c39777ca6a163b6f3de8a2b
2024-02-19 11:42:22 +01:00
Matsvei Niaverau
7ca83331ca rosemary: Update props from V13.0.6.0
Change-Id: Ib961d755d10ca1b51b08cbb8ee0c35f2b5a5c78b
2024-02-19 11:42:22 +01:00
Matsvei Niaverau
47baf4a55b rosemary: Checkout packages from V13.0.6.0
* Drop unneeded shims

* Spoofing roles is not needed anymore, so drop USB HAL

Change-Id: I4af4ace2db11e2388d5c14157f72f30ec5c5e625
2024-02-19 11:41:55 +01:00
Matsvei Niaverau
e584ba191a rosemary: manifest: Update from V13.0.6.0
Change-Id: I1730bd887df16305074cf341e1ad189ec873d9b3
2024-02-19 11:39:42 +01:00
bengris32
a11a873073 rosemary: Create required symlinks for graphics
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I5b3ebbda43dd594cc944aad77c28eea0815a5cbb
2024-02-19 11:39:42 +01:00
Matsvei Niaverau
e0ba464a3a rosemary: configs: Update from V13.0.6.0
Change-Id: I5086f3f3ab4be209417965d0af99497317d75aff
2024-02-19 11:39:42 +01:00
Matsvei Niaverau
843dbbd7e0 rosemary: rootdir: Update from V13.0.6.0
Change-Id: Id244a2ae3e7f1cad4ac668af6590959035f16426
2024-02-19 11:39:42 +01:00
Matsvei Niaverau
97dcc44562 Revert "Revert "rosemary: Build Lineage Health HAL""
This reverts commit dd395cf5f7.

Change-Id: Ief50a7a4478cabeedb3fc00c69f7fabbea3d2f58
2023-10-09 14:11:19 +02:00
LuK1337
5531bcd019 rosemary: Include device FCM from vendor/lineage
Sadly we aren't able to include it globally without breaking other
devices ;((((

Change-Id: Ia29d6fb047a09a2b4767312cb2a3252c87095723
2023-10-09 14:07:06 +02:00
Matsvei Niaverau
2f383d49ae rosemary: Correct vendor security patch date
* Should be taken from system's build.prop instead

Change-Id: I4da6127e9d87b6ab6d1c2a229e170672850e77d8
2023-10-09 11:37:32 +02:00
Matsvei Niaverau
29e9a6838f rosemary: rro_overlays: Drop status bar and rounded corner overlays
Change-Id: Iad02b8c41b3703b7aeb578266bda60b40ea14ebd
2023-10-09 11:32:51 +02:00
Matsvei Niaverau
c4c728b193 rosemary: sepolicy: Correct maxim_ds28e16 node location
Change-Id: I0949a053675a071efec584f282eb91f88cae4209
2023-10-09 09:53:48 +02:00
Matsvei Niaverau
da8e5743a0 rosemary: sepolicy: Allow batterysecret to write to vendor_sysfs_usb_supply
Change-Id: I30bf27da8d675a0ee9e489eafac078a491d53ab0
2023-10-09 09:25:39 +02:00
LuK1337
ddf15185be rosemary: Set default Settings.Global.DEVICE_NAME according to MIUI
MIUI uses ro.product.vendor.marketname for default device name.

Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
2023-10-09 08:39:59 +02:00
althafvly
4a2f4468f2 rosemary: libinit: Set default USB and Bluetooth name
Change-Id: I65948d08d95b138d9faed262ad3376305b9510a7
2023-10-09 08:39:59 +02:00
luk1337
e210ef7949 rosemary: Don't override fingerprint in recovery
- Incremental ota checks for build fingerprint

Signed-off-by: althafvly <althafvly@gmail.com>
Change-Id: Ice245ffcedac03dceb2e77b69a35e3f2ab659d06
2023-10-09 08:39:59 +02:00