Commit Graph

501 Commits

Author SHA1 Message Date
Matsvei Niaverau
44b07ec8d8 rosemary: Link agpsd against v32 libssl
Change-Id: Id433ea70a50397b44a4baa44ce0366586ab06b70
2024-02-19 12:01:04 +01:00
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
Matsvei Niaverau
51c495ac4f rosemary: props: Set correct volume steps value
* Move to vendor prop as well

Change-Id: Ibe4d18b35bea15acb261714bf88deffccb03db7a
2024-02-19 12:01:04 +01:00
=?UTF-8?q?Erik=20M=C3=BCller?=
9321ad9943 rosemary: overlay: Disable proximity sensor check before pulsing
* The device's ultrasound proximity sensor is not active
   during standby, thus it can't be used as a check before
   pulsing. This fixes Ambient Display.

Change-Id: I1fc416247ed13cbfba245f37a4aafeae74ddbff7
2024-02-19 12:01:04 +01:00
AdarshGrewal
988af5070a rosemary: overlay: Enable front-facing camera protection
* Prevents halo ring/effect on front camera

Change-Id: Idd657262b74a5fb1d2d614b6063fe4c3c5a362af
2024-02-19 12:01:04 +01:00
bengris32
c7cee9a245 rosemary: sepolicy: Label our custom Sensors service
Change-Id: I15f7021e7487b844f7f1f5cad2cc8a150bcaca4d
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:01:04 +01:00
Matsvei Niaverau
736ea06a8e rosemary: Switch to common InCallService
Change-Id: I5d85e1abaf79f22b7f6ed337e8b1e5d66fcdd6cd
2024-02-19 12:01:04 +01:00
TheScarastic
24f8ceeff2 rosemary: overlay: Add support for doze auto brightness
Based on observing it's values, xiaomi.sensor.aod reports
the following events:

4.0: Bright environment
5.0: Dark environment

Change-Id: Ie589066bd860a7fed3989092c21aee73686ecea4
Signed-off-by: Arian <arian.kulmer@web.de>
2024-02-19 11:43:48 +01:00
Cosmin Tanislav
fc0874544e rosemary: sensors: Standardize xiaomi pickup sensor
* Use standard sensor type
 * Ignore non-wakeup sensor variant
 * Ignore events that do not properly match a pickup

[LinkBoi00] Adapt sensor name for our device

Change-Id: I2bab89362aa225344a69c4969096ea9a61ef3033
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
2024-02-19 11:43:48 +01:00
Tyler Trephan
51a67cce2b rosemary: sensors: Updated multihal to use new sensors AIDL interface.
Test: make android.hardware.sensors@aidl-multihal
Fix: 206867060
Change-Id: I9b78a0f25117d11fdf4beb1e0913393c1c14620d
2024-02-19 11:43:48 +01:00
Alexander Koskovich
1b43808a56 rosemary: sensors: Add hals.conf as a required prebuilt
Change-Id: I634ac114824c992736a30053aa3f3e05da5da330
2024-02-19 11:43:48 +01:00
Cosmin Tanislav
eb172fc6cf rosemary: sensors: Import 2.X sensors hal proxy
Change-Id: I0a5beb744638763e6c3cd4caaba01deda56136b7
2024-02-19 11:43:48 +01:00
Arian
77dea6511d rosemary: sensors: Provide unique vintf manifest and init rc names
Change-Id: Id323d05eb5c8702659bbf48f02aad2637411e005
2024-02-19 11:43:48 +01:00
Cosmin Tanislav
b30b027fe4 rosemary: sensors: Avoid target name conflicts
Change-Id: I170c8c7e4edbfcdebf5d6f6df148b72993d805f6
2024-02-19 11:43:48 +01:00
Cosmin Tanislav
8f7ec28a6f rosemary: Import 2.1 sensors multihal
Change-Id: I0a612caab86f3f250e9263cc3f3454a4d546f6d6
2024-02-19 11:43:48 +01:00
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