Commit Graph

536 Commits

Author SHA1 Message Date
Jooyung Han
1a152a5909 rosemary: Install bootcontrol HAL APEX
Bug: 297467553
Test: VtsHalBootAidlTargetTest
Change-Id: Id206966e9f181283082b85dadbf409e3bf4017db
2024-03-24 15:18:04 +01:00
basamaryan
c7b003dffb rosemary: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-03-24 15:14:50 +01:00
Sebastiano Barezzi
6ff709ac55 rosemary: rro_overlays: Enable config_dozePulsePickup
Change-Id: Ice5cd780eb77e2ae78a3a84a0140c321ad84f143
2024-03-07 09:05:06 +01:00
Giovanni Ricca
cc33f170f6 rosemary: Build goodix lib from source
Change-Id: Ibaf1b9489b509318032c720c9c83e315cfe6ab3e
2024-03-07 08:49:47 +01:00
Matsvei Niaverau
2e8c53f7ff rosemary: firmware: Ship preloader as well
Change-Id: I762f2c0627d4f32561cc0cad9bbe5327992dacda
2024-03-01 15:44:14 +01:00
bengris32
38c0cbd8a8 rosemary: Build create_pl_dev
* create_pl_dev is an OSS replacement for mtk_plpath_utils.

Change-Id: I0c484acaf582d2e802116c4927d98e98e2e7a179
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-03-01 15:44:06 +01:00
Matsvei Niaverau
ce2501886f rosemary: firmware: Do not update logo partition
* Poco users will not like that

Change-Id: I07d14f21f0e61e34b427f4da97375cb34d5065ca
2024-02-27 08:47:07 +01:00
bengris32
1c5d75b9bd rosemary: usb_gadget: Don't error when failing to write saving state
Change-Id: If5c7e7b98c4e130d1cb57a4a4168abc05d547e5d
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:23:03 +00:00
bengris32
56773b97a4 rosemary: Build our USB gadget HAL
Change-Id: I34bb0aea22d5b17dc3cd48603a640cf04f0ef20c
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:21:46 +00:00
bengris32
2d366f4316 rosemary: rootdir: Set permissions for USB service
Change-Id: I046e5b7f062171862eba1532efd128e057940042
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:19:56 +00:00
Sriharsha Allenki
8dddc352fa rosemary: rootdir: Set the sys.mtp.device_type property
VtsTrebleSysProp test cases fail if the
sys.mtp.device_type is unset. Set the property to
value 3 so that the device appears as a phone on the
host PC.

Change-Id: I1123ca808cf027d6d787c58f58133b6ce67af4de
2024-02-19 16:19:56 +00:00
bengris32
1830492e21 rosemary: rootdir: Copy rndis function setup from gs101
Change-Id: I23ded1acdde9417e3d8a0f2ba69b88d41b6cba07
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:19:56 +00:00
bengris32
999dfed2fb rosemary: rootdir: Add support for NCM function
Change-Id: Ic6708956d3068a9cd5cb8a6681ac5fac75e3be7e
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:19:53 +00:00
Ray Chi
019fe6c82b rosemary: rootdir: move the permission change to usb rc
Since permission change in hal rc may be late, gadget
hal would enable USB function failed. The solution will
change the permission before USB gadget hal starts.

Bug: 206902205
Test: build pass and verified pass
Change-Id: I45c1318f647220480fa03ba3b813a81b21393d71
2024-02-19 16:12:30 +00:00
bengris32
c1369dcf85 rosemary: Move gadget handling out of init and remove unneeded functions
Change-Id: Icd390609918f767962df47dfe839a75082796ee7
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:10:43 +00:00
bengris32
8011d0ff19 rosemary: usb_gadget: Adapt implementation for rosemary
Change-Id: Id63c894d82bbc2d89246d35537ec1b19f3319746
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 16:05:13 +00:00
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