Commit Graph

138 Commits

Author SHA1 Message Date
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
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
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
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
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
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
e0ba464a3a rosemary: configs: Update from V13.0.6.0
Change-Id: I5086f3f3ab4be209417965d0af99497317d75aff
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
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
bengris32
36cff998be rosemary: Switch to AOSP Boot implementation
* We can no longer use the MediaTek boot control implementation
  due to legal issues. Switch to the AOSP one.

Change-Id: I1d983fd7148ca40a00c3cf21b6773d2c5ecb78f4
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2023-10-09 08:39:32 +02:00
Matsvei Niaverau
71a4c652d1 rosemary: Build PowerOffAlarm
Change-Id: I952d4953574ad9db48acb99721f5919110b044c2
2023-07-26 13:20:00 +02:00
Alexander Koskovich
17899e0d52 rosemary: Add permissions for Hotword Enrollment
* This is already covered by GMS but in order to account
   for non-GMS builds we should place some duplicates here.

Change-Id: I2d0f504106cd4784669a60b514c027fb6974c816
2023-06-22 15:19:13 +02:00
Matsvei Niaverau
dd395cf5f7 Revert "rosemary: Build Lineage Health HAL"
This reverts commit c4a4c66c1a.

Change-Id: Id124dec21f2e3443d15e4d905f2fdb761252b0cd
2023-06-22 14:41:58 +02:00
Michael Bestas
c4a4c66c1a rosemary: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-06-21 09:52:20 +02:00
Matsvei Niaverau
2a66236a8f rosemary: Import c2 media codecs from stock
Change-Id: I91dddf7ba62460160166759ba2ce64fec0b6f084
2023-06-01 12:47:06 +02:00
Tim Zimmermann
ebed921d4c rosemary: Switch to new AIDL memtrack HAL
Change-Id: I3ae077b5f59e4fcf32489eef64bce8551d758998
2023-06-01 12:44:18 +02:00
Matsvei Niaverau
9775d2f5c3 rosemary: rootdir: Rework fstab ramdisk including
Change-Id: Ia3a9d873776c88079b70ba70294632a8d0c92ab4
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
3f1c47629a rosemary: Drop mtk_plpath_utils
* Useless and not presented at our hardware repo

Change-Id: I0b10db303b64fe5121e58dc710432680f292ba14
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
06f2322d01 rosemary: Build FMRadio
* MtkFMRadio is no longer needed, original one was updated for Mediatek support

* Also add Mediatek FM flag for our prebuilt jni

Change-Id: I4e0ebd7352ad04e97ce65d3aec5a1b9d030fb3c3
2023-04-25 17:59:38 +02:00
Erfan Abdi
b84a270aa6 rosemary: Build FM radio app
Change-Id: I653283d1d010b57bdcab0320ee0baf0eca17b408
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
c5109ed16e rosemary: Build legacy libalsautils from source
Change-Id: Iecfcb73ab1e49eafa8b7a26a21139fe60e5ae5b5
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
3b4c1eb36d rosemary: Define AAPT configuration
Change-Id: Ic3a241c34c9d6437aebc7007a82487e5e42069b3
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
1dc9bc0153 rosemary: rro_overlays: Build SystemUIOverlayRosemary
Change-Id: Iba72766d78fe10f608cc8daeb38524a775c20c47
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
9a67b9de6b rosemary: configs: Import rosemary powerhint
* Imported from mt6768-common tree & adapted for rosemary

Change-Id: I0d5a58bebdb85cc6c2645084b7472f50dc20f8e7
2023-04-25 17:59:38 +02:00
bengris32
a7090eea22 rosemary: Build MediaTek libperfmgr
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I820c220fd4c6ef93a6c63a6a36117e53d117a022
2023-04-25 17:59:38 +02:00
bengris32
d6b9bde6a7 rosemary: Build stub mtkpower service
* It seems even after adding a dummy libmtkperf_client library,
  camera still refuses to work, it seems MediaTek have used a
  mix of that client library, and direct HIDL calls to the power
  implementation. Build a stub mtkpower service to get around
  this limitation.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I72753bc979f8a8fb2877abee89753c6f2f4ab267
2023-04-25 17:59:38 +02:00
bengris32
882d0ed448 rosemary: Source build mtkpower interfaces
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ieed9dcc914a4f2b38bb885257f4e34f56b3b44c3
2023-04-25 17:59:38 +02:00
bengris32
b85b86976f rosemary: Build dummy libmtkperf_client library
* Required for some vendor blobs that refuse to
  work without mtkpower

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: If519965f662988f15ea70f4390f8bed645af22e5
2023-04-25 17:59:38 +02:00
bengris32
dd8998b27d rosemary: Drop MediaTek PowerHAL
* We still have to keep some vendor interfaces and libs
  since some HALs have dependencies on them.

* Also switch to stub AIDL power service until we can get
  libperfmgr properly implemented.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I25022ceb2dd5d0541203663b005bfc15d2385435
2023-04-25 17:59:38 +02:00
Daniel Rosenberg
044c888f9d rosemary: Setup checkpoint_gc for /vendor
Test: start checkpointing, observe that checkpointing happens
Bug: 111020314
Change-Id: Ic090ac2d0ca9a7dd5485f5ab2a967977cd3ab6b8
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
9ae4e34f25 rosemary: rootdir: Pull missing project init
Change-Id: If3405bc52fb1d09aa314f30000ea3ddf45df4b8c
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
8843642c78 rosemary: Build sensors multihal from source
Change-Id: Iebccb00d08d15bfb466cff9de4aec435b13109e5
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
54aacc0e3e rosemary: Build neuralnetworks dependencies
Change-Id: Ife50351d3bcf8d581c4a6c7fe0633bcd3dacedf4
2023-04-25 17:59:38 +02:00
danascape
56e35bf53e rosemary: Build soundtrigger 2.3
Change-Id: I0f8743ac5266329b79022e9ad6392c9e9afd73b9
2023-04-25 17:59:38 +02:00
Matsvei Niaverau
f1315d26a4 rosemary: configs: Import public libraries list from stock
Change-Id: I9e0087ce1d40f5eafda0426d1440980e1a93fae1
2023-04-25 17:59:37 +02:00
SamarV-121
a74536f65c rosemary: Patch libMtkOmxVdecEx to use libui-v32
* Fixes OMX crash https://gist.githubusercontent.com/SamarV-121/efbeed785308c09655c354362b0f007c/raw

Change-Id: Id7f221f109e27a4d5544aa81ec73c60db0c0dc33
2023-04-25 17:59:17 +02:00
Vaisakh Murali
770d23c67e rosemary: Build libpcap from source
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I6de4b51b76c7fcdccb06036200f6992893da6b34
2023-04-23 19:15:57 +02:00
bengris32
a3a010b517 rosemary: Copy usb_audio_accessory_only_policy_configuration.xml from stock
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4debc0b3a2b8d973b9b1a688072bb6beaab04769
2023-04-23 19:15:57 +02:00
bengris32
611afa5808 rosemary: Shim missing libutils symbol for Camera HAL
* cannot locate symbol "_ZN7android7String87toUpperEv" referenced by "/vendor/lib64/libcam.halsensor.so"....

[1] 9434f59c17

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I7ac4e2362a9cca76009785d994d2aa6d103182f1
2023-04-23 19:15:57 +02:00
Vaisakh Murali
861bebbfd2 rosemary: Build libbluetooth_audio_session from source
The older VNDK 30 blob when linked against the newer default bluetooth
HW module, had a missing symbol:
`_ZN7android9bluetooth5audio25BluetoothAudioSession_2_132invalidOffloadAudioConfigurationE`

Since we build default bluetooth HW module from source, build
libbluetooth_audio_session from source as well.

Fixes: Bluetooth Audio on Android 12
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I13c09ecc37f709c575103d108acf5ca1b5aa2553
2023-04-23 19:15:57 +02:00
Matsvei Niaverau
46427aac3c rosemary: Build android.hardware.sensors@2.0-ScopedWakelock library
Change-Id: Iadf73cc3c1d07b97c19fd0db6ca8062ba72d4de9
2023-04-23 19:15:57 +02:00
Matsvei Niaverau
f0b02514a1 rosemary: Set up SKU-based ST NFC stack
* Based on miatoll implementation (7c21e60b93)

Change-Id: Ibb852acd55e4c0bc6928236637493520af221db2
2023-04-15 14:36:56 +02:00
Bruno Martins
684937ce0a rosemary: Blacklist fingerprint HAL key events
Change-Id: I57db108f5250c120726b77dd32f4666917c9eb7c
2023-04-15 14:36:56 +02:00
Sebastiano Barezzi
f206a06d5a rosemary: Build common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2023-04-15 14:36:56 +02:00
Sebastiano Barezzi
672987002a rosemary: Add hardware/xiaomi to Soong namespaces
Change-Id: I10767b34d19100f00f1aef2e3409d380dcaf5dc9
2023-04-15 14:36:56 +02:00