Commit Graph

520 Commits

Author SHA1 Message Date
bengris32
9bd655dafe rosemary: Import gs101 USB gadget implementation
Change-Id: I8569c2830d6a23a7b5cb1e1de1e8559867449510
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 15:26:30 +00:00
Michael Bestas
173be5e078 rosemary: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2024-02-19 13:03:00 +01:00
Matsvei Niaverau
4caa9502d6 rosemary: firmware: Pin md1img from V13.0.5.0
Change-Id: I98e7fea38709d5cb5a61f6c2e53b99a8fea748b5
2024-02-19 12:55:33 +01:00
Bruno Martins
75c9a0567a rosemary: Allow extracting only firmware images
Change-Id: Icab3f013661304e3a9ec89b0816a8139f6b8e8e5
2024-02-19 12:55:18 +01:00
Bruno Martins
0db5d75294 rosemary: Add firmware extraction support
Rename from factory image dump to the common partition naming.

Change-Id: I61b0f4cdddf65166cb12a39926e1fcb504241975
2024-02-19 12:14:46 +01:00
bengris32
b8b7b383cc rosemary: Switch to common USB service
Change-Id: Ie7bc896c51c435ddd7906f02409c3610386e9ea3
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:02:32 +01:00
R0rt1z2
e76dccff1a rosemary: Hexpatch camera lib to increase maximum JPEG streams for an app
* Increase maxAppJpegStreamNum to 17 in order to fix GCam lags.

Change-Id: I190a2c39e406e0a8389a7bf29b420ef4f2352e2d
2024-02-19 12:01:04 +01:00
bengris32
c007cdcb64 rosemary: Link audio modules against prebuilt libalsautils.so
* Fixes USB DAC.

Change-Id: I995ae271748b34fe6f0c3d60e590649e3582fb2b
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:01:04 +01:00
Edwin Moquete
67b8d9a9a4 rosemary: Disable display refresh rate override
This got enabled by default on U, and it causes apps like
Chrome and Youtube to set the refresh rate to 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
2024-02-19 12:01:04 +01:00
bengris32
3c2af33644 rosemary: Update IMS from plato V14.0.7.0.ULQMIXM
Change-Id: I9ab402b7d2bdacba06caaabda18e70c9a8189ae4
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:01:04 +01:00
Woomymy
a91b06d074 rosemary: Add a shim to link sensor blobs against android.hardware.sensors@1.0-convert
* `libndksensorbridge` was converted to AIDL and is no longer linked to
  this static library that contains symbols required by our sensor
  blobs. Add a shim linked to `android.hardware.sensors@1.0-convert` to
  fix our sensors

Change-Id: I969f97bb15d0abcc71f87352722995db3826e122
Signed-off-by: Woomymy <woomy@woomy.be>
2024-02-19 12:01:04 +01:00
Matsvei Niaverau
3f5de9cf2e Revert "rosemary: Link sensor libraries against stock libsensorndkbridge"
This reverts commit dd798d4d97071edb204d8d95d98183cd9172cf3b.

Change-Id: I520764cf7781dc8cf4717cb7218534861cf5f98e
2024-02-19 12:01:04 +01:00
bengris32
8137b5f957 rosemary: Rework CarrierConfig
* MediaTek use their own CarrierConfig format, apart from hardcoding
  the entire CarrierConfig into the RIL stack (for some weird reason),
  they also provide XMLs too, but these seem to specify multiple mncs
  per carrier_config entry, which is not supported by AOSP.

* Use a script that allows us to not only merge multiple carrier config
  XMLs together, but also create a copy of the carrier config entry
  should multiple mncs be specified.

Change-Id: I0987164e083c3983d747b87dccb920892bc63614
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:01:04 +01:00
bengris32
9a00e02133 rosemary: Merge Global RSC properties into vendor.prop
* When the CN RSC configuration is loaded and the device is used on
  a non-chinese carrier, RIL crashes are almost guaranteed because
  MediaTek engineers are stupid.

* Workaround this by merging the Global RSC configuration into vendor.prop

Change-Id: I930e187d6ed4295a40523a7e8fe932d59ce63478
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:01:04 +01:00
Woomymy
ef9c77c1f9 rosemary: Link media.c2 service against v33 libstagefright_foundation
* Fixes crashes and high CPU usage

Change-Id: I60c07d10c2db9335d20c6dbaaaeacc9313aebf06
Signed-off-by: Woomymy <woomy@woomy.be>
2024-02-19 12:01:04 +01:00
Matsvei Niaverau
e5a6a37a87 rosemary: Kang RIL blobs from V13.0.5.0.SFFMIXM
Change-Id: I0e8a97fcd723b5c930cf833b4710a95c35f18c71
2024-02-19 12:01:04 +01:00
bengris32
691416d63f rosemary: init: charger -> vendor.charger
Change-Id: I6ae98b350c3bbdba1ae67914c389ca84ede5c16f
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:01:04 +01:00
Kshitij Gupta
0750d98980 rosemary: init: Fix backlight on charger
Change-Id: I10115623f79dcf9ebe6904c9f736885eab0b3233
2024-02-19 12:01:04 +01:00
bengris32
9708fd333b rosemary: Support AOSP charger animation
Change-Id: I93628ae9bb730c233ed93c796d640d9854c447f3
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 12:01:04 +01:00
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