Commit Graph

478 Commits

Author SHA1 Message Date
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
db590efb5c rosemary: Override fingerprint and build description from V12.5.14.0
Change-Id: Idc7db1353f5b8fa2cd29e2060ecd0953501aaca3
2023-04-23 19:15:57 +02:00
Matsvei Niaverau
8a4326b9f0 rosemary: proprietary-files: Pull missing arm.graphics-V1-ndk_platform.so
Change-Id: Iaa7719e3a8308ea4699e987aac498fe6bc2030f2
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
7f5e4b0082 rosemary: Declare EXT4&F2FS support for userimages
Change-Id: I2c2de00eac1e9bc171316f2a876e3e8bbbba2021
2023-04-15 14:36:56 +02:00
Matsvei Niaverau
c0851fb277 rosemary: proprietary-files: Drop nonexistent libs
* Also pin fixed libmtkcam_stdutils

Change-Id: Ibbbe06e48581601518fc7afb87d1b247f7c27352
2023-04-15 14:36:56 +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
Matsvei Niaverau
65fab603f3 rosemary: Define OTA asserts
Change-Id: I68ec069cb3bb8f1be3c9ea3dba4340b920c84c02
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
minz1
56b658c803 rosemary: rro_overlays: Enable burn-in protection
Change-Id: Id280be855f309f3852a4c01f61738207d91a5d9c
2023-04-15 14:36:56 +02:00
Lexip
3bda8e65c6 rosemary: rro_overlays: Support AOD
* Enable optional AlwaysOnDisplay

Change-Id: Idb624eb434e646ab1dedb825d58f00d2f6203961
2023-04-15 14:36:56 +02:00
DarkJoker360
e06eaa6ff5 rosemary: Set dt2w node permissions on boot
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Change-Id: Ic47bdd4f68c1f4a8cc29f6b8d1bf46c04fbc4871
2023-04-15 14:36:56 +02:00
Matsvei Niaverau
07e59fc35b rosemary: proprietary-files: Drop libpowerhal module
* Not required after nashc-dev/android_hardware_mediatek@517c799

Change-Id: I18e5ce3771eaf702c53c23c2d4f713434fdba56b
2023-04-15 14:36:56 +02:00
TheMalachite
ff5ba11132 rosemary: rootdir: Drop useless services
Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: I7ad43ec34a70322cf30cfbfe684dec5a1577eae2
2023-04-15 14:36:56 +02:00
TheMalachite
f07c0837fb rosemary: rootdir: Remove sdcard symlink and iso mount
Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: Icff4c31d55be813d2284f0617072ce343e71db07
2023-04-15 14:36:56 +02:00
TheMalachite
a07c6392ed rosemary: rootdir: Drop on property:vold.decrypt
- We don't use FDE encryption

Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: Icd9c16a5f5b92992e8e41539971302a09cdde9be
2023-04-15 14:36:56 +02:00
Vaisakh Murali
0bed5f53a4 rosemary: rootdir: Elevate read permissions for mtk_cmdq and mdp_sync
Apparently on AOSP builds, these nodes when read by the hals
with O_RDONLY attribute, need an elevated read permission, which
is apparently unneeded on mtk builds/stock rom.

This fixes video playback/OMX

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I7f358d0037de569a4eb038e5ac2a17b7651d307d
2023-04-15 14:36:56 +02:00
telepathine
e8ea3644fa rosemary: props: Set call volume steps to 9
Change-Id: I703ec972bc66c68718a32b499b210f83d20c6322
2023-04-15 14:36:56 +02:00
telepathine
61471b2338 rosemary: InCallService: Map AOSP gain step range to MTK one
MTK has 15 volume steps, we have whatever is set in vc_call_vol_steps.
Mapping our range to theirs allows reaching higher volume levels.

A log curve is used to make gain transitions less abrupt at higher volumes.

Change-Id: I5f0e6467ba9fd0779d7e4abbf9f258b0b42224e4
2023-04-15 14:36:56 +02:00
bengris32
ced33fe9d4 rosemary: InCallService: Bugfixes and refactor
* Refactor and cleanup code
* Use proper way of getting audioDevice with getPort().type()
* Stop mixing up values between AudioSystem and AudioManager,
  as values between AudioManager (java) and AudioSystem (native)
  could change and become different from eachother.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I2311ed02b88148b71b374b19aaaf458f82f23824
2023-04-15 14:36:56 +02:00
LinkBoi00
510e3cda72 rosemary: app: MtkInCallService: Adjust gain values in all situations
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
2023-04-15 14:36:56 +02:00
bengris32
4c6dc4806a rosemary: Introduce Mediatek In-Call Service
* My attempt at fixing in call gain control on MediaTek devices.

* It attempts to replicate what the stock MediaTek framework does
  when controlling the volume of the earpiece speaker, since MTK's
  audio HAL is not able to set the gain of the speaker from the
  values sent by AOSP framework.

[LinkBoi00] Rebrand to Mediatek In-Call Service

Change-Id: I43f727f6fb73a0d38457a41a8361653d1d00e220
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
2023-04-15 14:36:56 +02:00
Kevin F. Haggerty
e20160a997 rosemary: sepolicy: Allow system_app to read /proc/pagetypeinfo
avc: denied { read } for name="pagetypeinfo" dev="proc" ino=4026543033
scontext=u:r:system_app:s0 tcontext=u:object_r:proc_pagetypeinfo:s0
tclass=file permissive=0

Change-Id: I16465eb9acca9ff64a755d47f86f4ff424ebe4de
2023-04-15 14:36:56 +02:00
Kevin F. Haggerty
cce24cd712 rosemary: sepolicy: Allow system_app to access zram sysfs nodes
avc: denied { search } for name="zram0" dev="sysfs" ino=20744
scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=dir
permissive=0

avc: denied { open } for name="mem_used_total" dev="sysfs" ino=20804
scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=file
permissive=0

avc: denied { read } for name="mem_used_total" dev="sysfs" ino=20804
scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=file
permissive=0

Change-Id: Ide9b1a9488b26fa69e7a2c8e73a8e657c8b28beb
2023-04-15 14:36:56 +02:00
Matsvei Niaverau
a41a41530c rosemary: rootdir: Set fstab as a swapfile
Change-Id: I59e08b005fb396dd5473e1cd113f6b10eac40c3c
2023-04-15 14:36:56 +02:00
Kshitij Gupta
25e13e931a rosemary: rootdir: Correct mode for video0 and video1
- init services fail to setup encoders on boot and camera and
  screenrecord fails to open video1 when trying to encode a video.
- While we may wanna consider looking through services that make use of
  these devs and correct their groups for AOSP, this gets the job done
  for now.

Change-Id: I0278efe201a9cbaa20c650fdc32bed6f9ecfd017
2023-04-15 14:36:56 +02:00
Alexander Koskovich
f1976cb3e3 rosemary: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2023-04-15 14:36:56 +02:00
SamarV-121
ec1ca2871b rosemary: lights: Uprev light aidl to v2
Change-Id: Id16a35cd1b38d9e39533cfd9a5b0bb74b51cb73a
2023-04-15 14:36:56 +02:00
bengris32
a355902279 rosemary: Drop TARGET_POWERHAL_AIDL_VERSION flag
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I6d53f4871cb572cf1656b47944d3f2f735ef94ec
2023-04-15 14:36:56 +02:00
bengris32
a63400f8d8 rosemary: props: Silence gralloc4 logspam
* Since Android 13, gralloc has been spamming the logs with:
E gralloc4: Empty SMPTE 2094-40 data

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib4d44443499f1396453bd7070aa1935485b329db
2023-04-15 14:36:56 +02:00
TheMalachite
0344668610 rosemary: Add persist.log.tag properties overrides
Change-Id: Ibd6a89cbc0fa17b36fff1a0759afb64705687d13
2023-04-15 14:36:56 +02:00
bengris32
0e9c276b8a rosemary: Set BOARD_HAS_MTK_HARDWARE to true
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I568d110431ad2c009fd1f9515f154701baf09a6e
2023-04-15 14:36:56 +02:00
bengris32
91c23d1cb7 rosemary: Link audio modules against prebuilt libalsautils.so
* Fixes USB DAC.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I63b4ce60e89ffe04c0e7dd558e21f9258f7112c9
2023-04-15 14:36:56 +02:00
Vaisakh Murali
d961ca9019 rosemary: Drop MTK audiopreprocessing
OSS counterpart works well, instead of using prebuilt blobs, use oss
where possible. This has no adverse effect on the audio quality.
Switch to OSS libaudiopreprocessing.

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: Ia9163b6363c79dbdab86d7088946a1fc8b200596
2023-04-15 14:36:56 +02:00
Zinadin Zidan
8b544333c5 rosemary: Drop Mi audio sounds
* Its broken in oss audio hals.

Signed-off-by: Zinadin Zidan <zidan44@pixelexperience.org>
Change-Id: I9b0f5351d306dd9fcb9e82c6bbf829832edfc1b0
2023-04-15 14:36:56 +02:00
bengris32
399d3d8fa8 rosemary: Enable multilib for prebuilt libutils-v32
* This ensures both the 32bit and 64bit prebuilt are installed
  by default.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
2023-04-15 14:36:56 +02:00
bengris32
15d2478a58 rosemary: Uprev Clearkey DRM HAL to 1.4
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2023-04-15 14:36:56 +02:00
bengris32
e076f5fcfe rosemary: Update kpoc_charger shim for T
[1] 79dc06a39f
[2] 6d043c5c5c

Signed-off-by: bengris32 <bengris32@protonmail.ch>
2023-04-15 14:36:56 +02:00
bengris32
ecc0530118 rosemary: Add developer GSI keys to fstab
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I0473a681e2a207c21832edd86d40c6f792b05c90
2023-04-15 14:36:56 +02:00
Bowgo Tsai
679f38642e rosemary: Adding developer GSI keys
Bug: 144399552
Test: tree-hugger

Change-Id: I0cf78bfc80c24bb217bb88831faa5a29ba04d194
2023-04-15 14:36:56 +02:00
bengris32
b081c2ffa3 rosemary: Remove GSI keys from the fstab
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I31b67403fd1ce9d554520b55e500c2f0c9ee29d1
2023-04-15 14:36:56 +02:00
Bowgo Tsai
47f4b34ecd rosemary: Removing GSI keys
Those keys will be embedded into VtsSecurityAvb on host side
instead, to verify the GSI image used on the device.

Bug: 149806769
Test: build and checks those keys are removed from
      /recovery/root/first_stage_ramdisk/avb/
Change-Id: I8a002ba6f1421fb460056ccae6572050bdb0ce3c
2023-04-15 14:36:56 +02:00
nift4
e2ded60ef6 rosemary: shims: Port to T 2023-04-15 14:36:56 +02:00
Edwin Wong
bb3f92e055 rosemary: Build clearkey HIDL service 2023-04-15 14:36:56 +02:00
SamarV-121
e1945ebb8d rosemary: wifi: Adapt to T 2023-04-15 14:36:56 +02:00
bengris32
e39645ab2c rosemary: Use HIDL compat libraries from hardware/lineage/compat
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2023-04-15 14:36:56 +02:00
Lucchetto
2a52c65520 rosemary: Use libhidlbase from vndk v32 for goodix interface
* _ZN7android8hardware7details17gBnConstructorMapE and _ZN7android8hardware7details17gBsConstructorMapE have been removed on Android 13

Signed-off-by: Lucchetto <lucchetto.tie@live.com>
2022-12-07 00:10:21 +01:00
hpnightowl
bff355f8ea rosemary: Drop audio.a2dp.default
* Building from here:
   https://github.com/LineageOS/android_build/blob/lineage-18.1/target/product/full_base.mk#L35

Change-Id: Ib71c1abd381468ec3621d60e5ca959f738f51168
2022-12-07 00:10:21 +01:00